Commit Graph

119 Commits

Author SHA1 Message Date
ecfa3c0fb8 0.5.15lorg2-alt22
- Fixed build with g++-4.3.x (Stanislav Ievlev).
2008-12-12 15:31:20 +00:00
Stanislav Ievlev
d20fc76a4d - fix build with gcc-4.3 2008-12-12 16:43:56 +03:00
dcb817f3ff Merge branch 'master' of git.alt:/people/avm/packages/apt 2008-11-27 22:42:25 +00:00
Alex V. Myltsev
d6ac8fcdfa 0.5.15lorg2-alt21
- fix by led@: change type of Package.ID to int (fixes #16900)
- fixes by raorn@:
 - apt-get.cc: protect VerTag (fixes #16311)
 - apt-get.cc: fix memory corruption (fixes #14929)
 - fileutl.cc: change semantics of flExtension() (fixes #15909)
2008-09-01 22:41:45 +04:00
06b3e692bd apt.spec: s/repositaries/repositories/ (ALT#14775) 2008-05-11 22:49:08 +00:00
Alexey Tourbin
92b2ba1c36 0.5.15lorg2-alt20
- genpkglist.cc: RPMTAG_FILEFLAGS should not be copied into header list
- lorg-cache-limit.patch: increase cache size limit
- removed old triggers, updated dependencies
2008-05-11 19:12:59 +04:00
Alexey Tourbin
b3abb08b99 spec (apt-utils): removed comment 2008-05-11 19:11:26 +04:00
Alexey Tourbin
1351d4a75c spec: removed URL part in Source0 2008-05-11 19:10:49 +04:00
Alexey Tourbin
ecbb921870 spec: removed *apt-0.5* obsoletes 2008-05-11 19:09:13 +04:00
Alexey Tourbin
f8e8cd00c6 spec: dropped very old triggers (Master 2.4 has apt-0.5.15cnc6-alt6) 2008-05-11 19:07:20 +04:00
Alexey Tourbin
d5ff215628 lorg-cache-limit.patch: increase cache size limit 2008-05-11 18:58:35 +04:00
Alexey Tourbin
ab496886f6 genpkglist.cc: RPMTAG_FILEFLAGS should not be copied into header list
(Or, at least, RPMTAG_FILEFLAGS should be copiled consistently with
RPMTAG_BASENAMES, RPMTAG_DIRNAMES, and RPMTAG_DIRINDEXES.)
2008-05-11 17:40:09 +04:00
Alexey Tourbin
6ba7ec5518 0.5.15lorg2-alt19
- lorg-pkgcachegen-selfprov.patch: allow self-referencing provides,
  so that e.g. ocaml-runtime#3.10.2-alt2 can provide ocaml-runtime = 3.10
2008-03-30 06:08:07 +04:00
Alexey Tourbin
c8750effef spec: buildreq (bzlib-devel and zlib-devel were missing) 2008-03-30 05:01:46 +04:00
Alexey Tourbin
818a9d5ff8 lorg-pkgcachegen-selfprov.patch: allow self-referencing provides
E.g. ocaml-runtime#3.10.2-alt1 can provide ocaml-runtime = 3.10.
2008-03-30 01:30:43 +03:00
Alex V. Myltsev
b8a9615897 0.5.15lorg2-alt18
- algorithms.cc: better package name comparison
  (now automake_1.10 > automake_1.9)
2007-12-17 17:58:41 +03:00
Alex V. Myltsev
94df084ec5 Better pkgname comparison: now automake_1.10 > automake_1.9.
Before this patch, strcmp(3) would be used to select
the best package. This was sometimes counter-intuitive
(for example, APT would choose autoconf_2.5 over
autoconf_2.13).

[NB: fixing this can break some packages that rely
on the historic sort order; e.g. postgresql74
may be preferred to postgresql8.2.]

We considered using rpmvercmp() for package name
comparison, but chose to write a specially-crafted
function that's mostly compatible with strcmp(3),
except for numeric fragments in the names.

As a matter of fact, strtoull usage is suboptimal here.
It may overflow the returned long long, leading to an
incorrect comparison. Fixing the code to avoid strtoull
is, however, left as an exercise to the diligent
maintenance programmer (and you are insane anyway
if you need package names that trigger the overflow).
2007-12-17 17:58:41 +03:00
Alexey Tourbin
71740d9f91 0.5.15lorg2-alt17
- genpkglist.cc: rewrite copyStrippedFileList() to avoid inplace
  dirnames edit bug
2007-12-03 10:49:31 +03:00
Alexey Tourbin
42f65df4d9 0.5.15lorg2-alt16
- genpkglist: removed very bad piece of code which could break
  my fine-grained file list stripping algorithm
- genbasedir: made silent by default, added --verbose and --silent
  options (Alex V. Myltsev)
2007-11-23 14:43:15 +03:00
bed9545e2a 0.5.15lorg2-alt15
- apt-get: Fixed manifest file support (Stanislav Ievlev).
2007-10-30 12:02:46 +00:00
Alexey Tourbin
67ca1fb77f 0.5.15lorg2-alt14
- genpkglist: don't strip paths that are owned by 2 or more packages,
  to deal with cross-arch semi-unmets like /usr/share/wallpapers
- apt-get: added support of manifest file (Stanislav Ievlev)
2007-10-24 18:36:51 +04:00
Stanislav Ievlev
c8560f7ff1 - add support of manifest file 2007-10-22 16:29:28 +04:00
Alexey Tourbin
341bcecf1e 0.5.15lorg2-alt13
- Updated file list stripping algorithm in genpkglist (apt-utils);
  now it keeps files which can resolve file-level dependencies.
2007-08-11 23:36:16 +04:00
Alexey Tourbin
30e27b0f1c apt-0.5.15lorg2-alt-genpkglist-reqfiles.patch
genpkglist strips file lists by default (without --bloat option).
It keeps only some "useful files" by using a few ad hoc patterns.

This can break file-level dependencies.  Consider pkgA requires
/usr/lib/foo1/bar, and pkgB owns this file without explicitly
providing it.  Now if genpkglist strips /usr/lib/foo1/bar
from pkgB file list, this is going to be an unmet dependency.

This patch changes genpkglist behaviour, so that, when genpkglist
is invoked without --bloat option, it first finds all file-level
dependencies (something like "rpm -qaR |grep ^/").  This requires
a separate pass.  The list of file-level dependencies is saved into
"reqfiles" global variable.  And on the second (normal) pass, the
function usefulFile() is modified to check the "reqfiles" variable;
that is, it should keep a file in the file list if it's been required
by some package in the repo.

(Unfortunately, this patch does not solve all of the problems
I want it to solve; we have separate repos for i586 and noarch --
inter-repo file-level dependencies cannot be resolved this way.)
2007-08-11 20:01:05 +04:00
Alexey Tourbin
fe9628abf2 0.5.15lorg2-alt12
- Fixed apt-get exit status (#11527)
2007-08-01 00:29:36 +04:00
Alexey Tourbin
aaa4540dd6 spec: updated URL 2007-08-01 00:29:06 +04:00
Alexey Tourbin
1b13c64d1d git-mv apt-0.5.15lorg3-alt-exit-status.patch apt-0.5.15lorg3-alt-exit-status.patch 2007-08-01 00:28:32 +04:00
Slava Semushin
d4f21fc971 0.5.15lorg2-alt11.1
- Fixed typo in output of help command in apt-shell (#5400)
- Fixed wrong message during remove package(s) in apt-shell (#7618)
2007-08-01 00:59:13 +07:00
Slava Semushin
2485721f59 Fixed wrong message during remove package(s) in apt-shell (#7618) 2007-07-31 23:46:03 +07:00
Slava Semushin
e6ba1a5631 Fixed typo in output of help command in apt-shell (#5400) 2007-07-31 23:22:22 +07:00
Alexey Tourbin
50c8f0252e fixed apt-get exit status (#11527) 2007-04-19 01:24:13 +04:00
Alexey Tourbin
a8a5b2693d 0.5.15lorg2-alt11
- Updated 'apt-get install' algorithm for versioned dependencies:
  + fixed wrong usage of ScoreSort condition introduced in previous release;
  + added explicit check if any package satisfying versioned dependency is
    already installed or selected for install; in this case, apt-get will
    not try to install any other package.
2007-04-09 16:17:11 +04:00
a7e56f9ac2 0.5.15lorg2-alt10
- Added bzip2 and gzip requirements (#10408).
2007-03-23 22:11:02 +00:00
Alexey Tourbin
11c1ca4797 0.5.15lorg2-alt9
- Updated my previous patch for versioned dependencies, which was half-way
  wrong and incomplete.  For versioned virtual dependencies like python=2.4,
  'apt-get install' will always select real package with the best version
  (which is python-strict#2.4.4-alt8, as for now)
2007-03-22 23:22:13 +03:00
Alexey Tourbin
6c2eeb8ea6 updated versionmatch/TryToChangeVer logic
My previous versionmatch.patch was half-way wrong and/or incomplete.
The problem was that pkgCache::VerIterator::CompareVer() does not
do full-blown version comparison, but rather something strange
(see apt-pkg/pkgcache.cc).

I also noticed that, while TryToInstall() does use Fix.ScoreSort,
TryToChangeVer() does not, which is probably wrong.

The solution is as follows:

1) pkgVersionMatch::FindAll() does not sort versions any longer;
it does not have sufficient information, such as Cache and Fix,
to sort the versions.

2) TryToChangeVer() calls FindAll() instead of Find() and uses
Fix.ScoreSort to sort the versions.  If Fix.ScoreSort returns 0,
it also tries Cache.VS().CmpVersion(), which is the right way to
reach rpmvercmp().

Also updated 'Selected version ... for ...' diagnostics.

(old result and message)
$ ~tmp/build/aptbox/apt-get --dry-run install python=2.4 2>&1 |grep ^Selected
Selected version 2.4.4-alt8 for python
$

The result was wrong, because I have a better version,
which is 2.4.4-alt8.1.

(new result and message)
$ ~tmp/build/aptbox/apt-get --dry-run install python=2.4 2>&1 |grep ^Selected
Selected version python-strict#2.4.4-alt8.1 for python=2.4
$

Update: also do not sort ascending and reverse the list, this is going
to break "stable sort" logic.  Just sort descending.

Update2: actually make CmpVersion() primarily sort condition and
Fix.ScoreSort secondary sort condition.  Fix.ScoreSort should not be
activated early, because e.g. for 'python-devel>=2.3' it is going to
select python2.3-dev, but I want python-dev#2.4.
2007-03-22 23:14:38 +03:00
11b0080fe6 0.5.15lorg2-alt8
- Fixed longstanding problem with versioned virtual packages (Alexey Tourbin),
  see http://lists.altlinux.org/pipermail/devel/2006-December/039317.html
2006-12-31 00:29:51 +00:00
b1a4603d03 0.5.15lorg2-alt7
- apt-get: More simple-output enhancements (Stanislav Ievlev).
2006-11-30 14:55:12 +00:00
9eacf5f64e 0.5.15lorg2-alt6
- apt-get: Fixed virtual packages handling (Alexey Tourbin).
- apt-get: Implemented simple-output option (Stanislav Ievlev).
2006-10-10 20:47:53 +00:00
9960833d4e 0.5.15lorg2-alt5
- pkgCache::PrvIterator:
  + Add default constructor, required for aptitude 0.4.1 (Raorn, #9604).
- rpmRecordParser::BufCat, rpmSrcRecordParser::BufCat:
  + Fix realloc usage (#9409).
2006-10-05 17:11:13 +00:00
d9cc297848 Fix realloc(3) usage. 2006-10-05 17:04:50 +00:00
6b8849f508 apt-pkg/cacheiterators.h(pkgCache::PrvIterator): Add default constructor, required for aptitude 0.4.1 (Raorn, #9604). 2006-10-05 14:24:32 +00:00
Alexey Tourbin
1c5bf91a4b 0.5.15lorg2-alt4
- Patched and rebuilt for lua-5.1.
2006-05-16 18:14:17 +00:00
e97a90dec9 0.5.15lorg2-alt3
- Resolved a few issues introduced after cnc6.
2006-04-02 12:15:03 +00:00
b7ffdc5104 0.5.15cnc6-alt18
- apt-get: Fixed APT::Get::PrintLocalFile for local files (#8902).
2006-02-21 00:47:29 +00:00
ALT QA Team Robot
1b451e55ac 0.5.15cnc6-alt17.1
- Rebuilt with libreadline.so.5.
2005-12-30 02:24:12 +00:00
8542fdc35f 0.5.15cnc6-alt17
- apt-utils: Set locale to "C" (#2587).
- apt-utils: Added list of utilities to package description (#3564).
- apt-get: Implemented APT::Get::PrintLocalFile option.
2005-11-25 22:15:14 +00:00
Sergey Bolshakov
a4e32c8988 0.5.15cnc6-alt16
- apt-shell: -q option for update added
2005-07-15 17:30:29 +00:00
Kachalov Anton
3cda23c1f9 0.5.15cnc6-alt15
- apt-pkg/sourcelist.cc:
  Added support for multiple fingerprints for the same vendor name
2005-07-14 15:45:01 +00:00
Sergey Bolshakov
62c21c20e1 0.5.15cnc6-alt14
- apt-shell: #5401 fixed (rider@)
- apt-pipe: race during shutting down fixed
2005-06-27 18:44:05 +00:00
Sergey Bolshakov
a8de0fe5ed 0.5.15cnc6-alt13
- apt-shell: possible fix of #4707 (rider@)
2005-06-16 11:25:49 +00:00
Sergey Bolshakov
422369f2c0 0.5.15cnc6-alt12
- apt-pipe: inactivity timeout removed
- apt-pipe: do not copy packages from cdrom during install
2005-05-31 09:11:20 +00:00
8b55ef8c63 0.5.15cnc6-alt11
- apt-get: corrected virtual package remove algorithm (#6276).
- Updated default cdrom mount point (#6152).
2005-05-18 17:03:04 +00:00
Sergey Bolshakov
640336b9a5 0.5.15cnc6-alt9
- apt-shell: ls -G redo (rider@)
2005-05-04 09:43:09 +00:00
Sergey Bolshakov
6432ae509e 0.5.15cnc6-alt8
- belarusian translation updated
- apt-shell: ls -g/-G implemented (rider@)
- apt-pipe minor cleanups
2005-04-29 10:00:58 +00:00
Sergey Bolshakov
fd9f159142 0.5.15cnc6-alt7
- Acquire::CDROM::mount value in apt.conf(5) changed from /mnt/cdrom to /media/cdrom
- apt-pipe utility added
2005-04-11 13:50:36 +00:00
ALT QA Team Robot
b2ce28c8a5 0.5.15cnc6-alt6.1
- Rebuilt with libstdc++.so.6.
2005-01-18 13:32:01 +00:00
f064429f6c 0.5.15cnc6-alt6
- /var/lib/apt: relocated to libapt subpackage (#4697).
- UnmountCdrom(): silently ignore subfs and supermount filesystems (#4806).
2004-08-31 15:38:11 +00:00
Kachalov Anton
8a5d976f4a 0.5.15cnc6-alt5
- apt-shell fixes (#3091)
2004-07-05 14:29:44 +00:00
d952729a63 0.5.15cnc6-alt4
- apt-shell fixes from Mouse (#4306).
2004-06-07 15:28:59 +00:00
68f3ce87c1 0.5.15cnc6-alt3
- apt-pkg/pkgcachegen.cc:
  Remove old sources cache file before creating new one.
- More fixes reported by compiler, patch by Anton V. Denisov.
2004-05-16 17:22:03 +00:00
ed8729e345 0.5.15cnc6-alt2
- Fixed aclocal warnings, patch by Anton V. Denisov.
- Updated russian translation from Anton Denisov.
2004-05-14 15:00:59 +00:00
Kachalov Anton
6e5c25c245 0.5.15cnc6-alt1
- Updated to 0.5.15cnc6
- New:
  + apt-0.5.15cnc6-alt-rpm-order (fix RPM::Order default value)
- Updated:
  + apt-0.5.15cnc6-alt-fixes
  + apt-0.5.15cnc6-alt-defaults
  + apt-0.5.15cnc6-alt-rpm-fancypercent
  + apt-0.5.15cnc6-alt-virtual_scores
- Merged upstream:
  + apt-0.5.15cnc6-alt-install_virtual
2004-05-13 12:23:54 +00:00
4938f612f8 0.5.15cnc5-alt4
- Fixed build with fresh autotools.
2004-02-27 17:49:54 +00:00
d1ec80173d 0.5.15cnc5-alt3
- Readded contrib to documentation.
- Updated russian translation from Anton Denisov.
2004-01-21 16:50:09 +00:00
cbb5c922e9 0.5.15cnc5-alt2
- Added one more %triggerun to correct apt.conf,
  due to apt methods migration.
- Applied patch from Alexey Tourbin to use systemwide lua5.
- Applied patch from Sviatoslav Sviridov to workaround VendorList bug.
2004-01-19 13:53:24 +00:00
0501f88ac1 0.5.15cnc5-alt1
- Specfile cleanup.
- Rediffed patches.
- Fixed --help/--version segfault.
- Fixed some compilation warnings.
- Relocated methods to /usr/lib/apt/methods/.
2004-01-16 19:01:26 +00:00
4ef124c6d0 0.5.5cnc4.1-alt7
- apt-pkg/rpm/rpmpm.cc(pkgRPMPM::ExecRPM): honor "quiet" option.
- Additional sorting hacks for virtual packages (mouse).
2003-09-29 14:00:22 +00:00
3212342525 0.5.5cnc1-alt3
- Introduced APT::Ignore-dpkg support and set this flag by default,
  to address #0002119.
2003-02-13 13:28:59 +00:00
e3ad0ef694 0.3.19cnc55-alt3
- Added librpm-4.0.4 build support.
- Built with librpm-4.0.4, updated buildrequires.
2002-03-27 15:18:37 +00:00