Commit Graph

156 Commits

Author SHA1 Message Date
Gleb Fotengauer-Malinovskiy
9de85d7c9d Apply apt-0.5.15lorg2-alt-rpmSystem-DistroVer.patch
Added in commit e97a90d:
0.5.15lorg2-alt3

- Resolved a few issues introduced after cnc6.
2014-06-24 17:37:07 +04:00
Gleb Fotengauer-Malinovskiy
4947a45206 Apply apt-0.5.15lorg2-alt-buildlib.patch
Added in commit e97a90d:
0.5.15lorg2-alt3

- Resolved a few issues introduced after cnc6.
2014-06-24 17:36:33 +04:00
c55405a8c6 0.5.15lorg2-alt44
- libapt: enlarged integer types in pkgCache::Version (closes: #29514).
2014-03-10 21:24:43 +00:00
30b34b442f Enlarge integer types used in pkgCache::Version (ALT#29514) 2014-03-10 21:20:41 +00:00
Anton V. Boyarshinov
c34d1936c5 0.5.15lorg2-alt43
- use apt-cdrom for general distribution media
- stricted verify-elf removed
2014-03-03 13:11:22 +04:00
Anton V. Boyarshinov
24134286f1 apt-0.5.15cnc6-alt-defaults.patch: default mountpoint for apt-cdrom changed to /media/ALTLinux 2014-02-28 15:39:14 +04:00
f236235fff 0.5.15lorg2-alt42
- Fixed and enabled LFS support (closes: #28214).
2013-01-11 20:46:45 +00:00
86ea6395e4 0.5.15lorg2-alt41
- apt-get, apt-shell: when a package could not be found, print the
  unmangled package request string (by Igor Vlasenko; closes: #27364).
- apt-shell: do not abort when commit is cancelled (closes: #13877);
  Unlike one may suppose, this change will not cause the cache of
  accumulated changes to be cleared by cancelled "commit" operation, but
  this is exactly what Vitaly Lipatov has proposed in his comments to #13877.
2012-05-24 17:41:43 +00:00
968a2cbf2f apt-shell (InstallPackages): do not abort when commit is cancelled (ALT#13877)
Unlike one may suppose, this change will not cause the cache of accumulated
changes to be cleared by cancelled "commit" operation, but this is
exactly what Vitaly Lipatov has proposed in his comments to ALT#13877.
2012-05-24 15:09:45 +00:00
7f7e8d7b6b apt-get, apt-shell: print (un)resolved package diagnostics consistently (ALT#27364)
When a package could not be found, print the unmangled string passed to
the utility.  Based on patch by Igor Vlasenko.
2012-05-24 14:54:05 +00:00
f8fdaed2ec 0.5.15lorg2-alt40
- Increased default APT::Cache-Limit on x86_64 up to 64M.
2012-05-16 10:44:59 +00:00
6f34271309 Increase default APT::Cache-Limit on x86_64 up to 64M 2012-05-16 10:00:26 +00:00
7e6ddc994e 0.5.15lorg2-alt39
- Fixed build with rpm >= rpm-4.0.4-alt100.36.
2011-10-06 20:46:41 +00:00
127b9f28f4 Drop --repackage support that was removed in rpm-4.0.4-alt100.36 2011-10-06 20:46:12 +00:00
fa7c8cf436 0.5.15lorg2-alt38
- Enhanced ReInstall error diagnostics (closes: #24044).
2011-02-13 13:25:24 +00:00
e1aab96204 Enhance ReInstall error diagnostics (ALT#24044) 2011-02-13 13:23:58 +00:00
Alexey Tourbin
57c0417fcd 0.5.15lorg2-alt37
- pkgcache.h: optimized FindPackage() stuff
- depcache.cc: fixed -alt36 optimization
2011-01-27 19:33:26 +03:00
Alexey Tourbin
a816216e64 pkgcache.h: tweak FindPkg routines 2011-01-27 06:50:44 +03:00
Alexey Tourbin
8a871f0b52 pkgcache.h: increase HashTable size 2011-01-27 05:33:07 +03:00
Alexey Tourbin
8fbf622172 pkgcache.h: improved string hashing 2011-01-27 05:32:59 +03:00
Alexey Tourbin
31e94207f5 depcache.cc: added explicit proxy for VS.CheckDep() calls 2011-01-27 05:31:47 +03:00
Alexey Tourbin
c961480233 Revert "depcache.cc: optimize CheckDep() calls for Now/Install/Candidate versions"
This reverts commit c3ca6b81bc.
2011-01-27 03:58:31 +03:00
Alexey Tourbin
6cec139b53 0.5.15lorg2-alt36
- depcache.cc: optimize CheckDep() calls for Now/Install/Candidate versions
2011-01-25 12:54:43 +03:00
Alexey Tourbin
c3ca6b81bc depcache.cc: optimize CheckDep() calls for Now/Install/Candidate versions 2011-01-25 06:46:50 +03:00
Alexey Tourbin
5a8f69df6a rpmversion.cc: avoid extra strcmp calls 2011-01-21 22:12:23 +03:00
2cd7926cca 0.5.15lorg2-alt35
- Fixed RPATH in apt utilities.
- Applied strict ELF verification rules in this package.
2010-11-23 23:06:02 +00:00
921c2df95a Recode spec: KOI8-R -> UTF-8 2010-11-23 23:05:53 +00:00
cbca34aecf %set_verify_elf_method strict 2010-11-23 22:58:37 +00:00
67c96d6c70 Drop obsolete m4/*.m4 files
System default .m4 files are more up to date than this old crap.
This change also fixes the RPATH issue.
2010-11-23 22:51:56 +00:00
98a9351ff7 0.5.15lorg2-alt34
- Increased default APT::Cache-Limit up to 48M.
2010-11-04 14:22:15 +00:00
e867bd28a8 Increase default APT::Cache-Limit up to 48M 2010-11-04 14:16:27 +00:00
Alexey Tourbin
b793b0f558 0.5.15lorg2-alt33
- rpmpm.c: fixed rpmdepCheck() call
2010-08-18 16:43:49 +04:00
Alexey Tourbin
ccee73bb59 rpmpm.c: fixed rpmdepCheck() call
It is not clear what rpmdepCheck() return code is supposed to mean.
Logically, non-zero return code should mean that the dependency check
failed.  However, rpm can also return 0 (for "no error") while setting
"conflicts" pointer.  So, for now, it seems that we should check both
the return code and the pointer.
2010-08-18 16:41:23 +04:00
Alexey Tourbin
cfd2cddf4a 0.5.15lorg2-alt32
- acquire-item.cc: added support for xz-compressed pkglists
2010-05-27 00:21:42 +04:00
Alexey Tourbin
3d0bd9350a acquire-item.cc: added support for xz-compressed pkglists 2010-05-27 00:12:32 +04:00
Alexey I. Froloff
62198fabdc 0.5.15lorg2-alt31.1
- NMU:
  + RecordParser::Changelog(), SrcRecordParser::Changelog(): access to
    raw changelog data
2009-12-21 15:19:11 +03:00
Alexey I. Froloff
1843a505d9 Access to changelogs via record parser interface
Add RecordParser::Changelog() and SrcRecordParser::Changelog() functions
that returns raw changelog text.

libapt-pkg SONAME changed according to libtool versioning rules.

Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
2009-12-18 01:18:04 +03:00
Alexey Tourbin
01ac47bcaf 0.5.15lorg2-alt31
- rpmversion.cc (CheckDep): optimize out rpmRangesOverlap() call
- pkgcache.cc (AllTargets): optimize out CheckDep() calls
- luaiface.cc: added "savestate" and "restorestate"
2009-12-17 00:47:59 +03:00
Alexey Tourbin
b7b482faeb luaiface.cc: added "savestate" and "restorestate" 2009-12-17 00:43:09 +03:00
Alexey Tourbin
46fa5b45fc pkgcache.cc (AllTargets): optimize out CheckDep() calls 2009-12-17 00:38:39 +03:00
Alexey Tourbin
c0a5d41afb rpmversion.cc (CheckDep): optimize out rpmRangesOverlap() call
(before this change)
[at@altair ~]$ time $TMPDIR/build/aptbox/apt-get -qq script ./installable.lua
cannot install: kile
566.10user 270.93system 13:58.64elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+36070878minor)pagefaults 0swaps
[at@altair ~]$

(after this change)
[at@altair ~]$ LD_PRELOAD=$TMPDIR/libapt-pkg-libc6.9-6.so.2 time $TMPDIR/build/aptbox/apt-get -qq script ./installable.lua
cannot install: kile
286.06user 266.22system 9:13.49elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+35839571minor)pagefaults 0swaps
[at@altair ~]$
2009-12-17 00:38:26 +03:00
Alexey Tourbin
262da2edf5 0.5.15lorg2-alt30
- added support for changelogs in "apt-cache show"
2009-11-20 07:09:56 +03:00
Alexey Tourbin
080122ef61 added support for changelogs in "apt-cache show" 2009-11-20 06:29:24 +03:00
Alexey Tourbin
df0f099e6a 0.5.15lorg2-alt29
- apt-utils no longer packaged, replaced with apt-repo-tools
2009-09-27 16:51:25 +04:00
Alexey Tourbin
ff9b1fea10 spec: disabled apt-utils (replaced with apt-repo-tools) 2009-09-27 16:51:12 +04:00
Alexey Tourbin
ff8d494599 0.5.15lorg2-alt28
- apt-cache.cc: fixed "whatdepends" for versioned virtual dependencies
2009-08-03 16:04:26 +04:00
Alexey Tourbin
1e29517661 apt-cache.cc (WhatDepends): fixed for versioned virtual dependencies
(old)
$ apt-cache whatdepends perl-Bit-Vector
perl-Bit-Vector-6.4-alt2
$

(new)
$ ./cmdline/apt-cache whatdepends perl-Bit-Vector
perl-Bit-Vector-6.4-alt2
  perl-Date-Calc-5.4-alt2
    Depends: <perl(Bit/Vector.pm)>
      perl-Bit-Vector-6.4-alt2
$

Note that perl-Date-Calc has versioned virtual dependency:

$ rpm -qR perl-Date-Calc |grep Vector
perl(Bit/Vector.pm) >= 6.400
$

The problem was that version comparison was performed against
perl-Bit-Vector version (which is 6.4-alt2), not against provided
perl(Bit/Vector.pm) version (which is 6.400).

$ diff -U1 <(apt-cache whatdepends perl-base) <(./cmdline/apt-cache whatdepends perl-base)
--- /tmp/.private/at/zshtuurCP  2009-08-03 15:45:46 +0400
+++ /tmp/.private/at/zshfynbjW  2009-08-03 15:45:46 +0400
@@ -7145,2 +7145,5 @@
       perl-base-1:5.8.9-alt3
+  perl-HTML-FromText-2.05-alt3
+    Depends: <perl(Text/Tabs.pm)>
+      perl-base-1:5.8.9-alt3
   perl-Getopt-ArgvFile-1.10-alt2
@@ -8458,4 +8461,2 @@
       perl-base-1:5.8.9-alt3
-  perl-base-1:5.8.9-alt3
-    Obsoletes: <perl-MIME-Base64>
   nix-0.12-1

Again, this shows that versioned virtual dependencies are handled
properly now, more or less.  However, there is also a change in
"Obsoletes" which I did not expect.

apt/apt-pkg/rpm/rpmversion.cc:
| // rpmVS::CheckDep - Check a single dependency				/*{{{*/
| // ---------------------------------------------------------------------
| /* This prototype is a wrapper over CheckDep above. It's useful in the
|    cases where the kind of dependency matters to decide if it matches
|    or not */
| bool rpmVersioningSystem::CheckDep(const char *PkgVer,
| 				   pkgCache::DepIterator Dep)
| {
|    if (Dep->Type == pkgCache::Dep::Obsoletes &&
|        (PkgVer == 0 || PkgVer[0] == 0))
|       return false;
|    return CheckDep(PkgVer,Dep->CompareOp,Dep.TargetVer());
| }

I'm not sure if this "Obsoletes" logic should be enabled in WhatDepends.
But at least it can show "Requires" now, which is what I need.
2009-08-03 15:55:22 +04:00
Alexey Tourbin
bdb4cdf341 0.5.15lorg2-alt27
- depcache.cc: fixed for gcc-4.4
- buildlib/tools.m4: hackaround glibc soname change
- apt-cache.cc: added APT::Cache::DumpPackages option
2009-07-13 03:28:27 +04:00
Alexey Tourbin
81c112101f apt-cache.cc: added APT::Cache::DumpPackages option 2009-07-13 01:43:17 +04:00
Alexey Tourbin
e78206f1e5 buildlib/tools.m4: hackaround glibc soname change 2009-07-13 01:06:02 +04:00