Commit Graph

61 Commits

Author SHA1 Message Date
Panu Matilainen 0fdfaed857 Bunch of variable initializations to avoid compiler warnings. 2007-07-10 13:43:46 +03:00
Panu Matilainen f1b4f7590b Fix bunch of string formatting warnings. 2007-07-10 10:27:55 +03:00
Panu Matilainen de50397c71 Plug some memory leaks.
Patches from rpm5.org / JBJ.
2007-07-02 15:02:15 +03:00
Paul Nasrat be96c4edb3 This patch fixes an off-by-one error in rpmalAllFileSatisfiesDepend() which
could lead to a segfault.
2007-02-22 12:09:46 +00:00
jbj 228d0e350a Splint fiddles.
CVS patchset: 7669
CVS date: 2005/01/04 17:11:00
2005-01-04 17:11:00 +00:00
jbj 67b6b42557 Splint clean.
CVS patchset: 7517
CVS date: 2004/10/27 04:55:11
2004-10-27 04:55:11 +00:00
jbj 194e3c10d3 - fix: handle non-unique dirnames in rpmalAdd().
CVS patchset: 7516
CVS date: 2004/10/27 02:17:58
2004-10-27 02:17:58 +00:00
jbj 7a34fdc4a2 Stare at a redhat-artwork problem in rpmal.c with multiple versions,
punt for now.
Add transaction elements to rpmgi ts.

CVS patchset: 7491
CVS date: 2004/10/19 22:52:33
2004-10-19 22:52:33 +00:00
jbj dd17e87985 - ia64: auto-relocate entire, not partial, directory contents (#126905).
- ia64: auto-relocate glibc.ix86 interpreter path (#100563).
- shared libraries in separate rpm-libs package.
- fix: defattr for rpm-libs (#130461).
- fix: static glibc/libgcc helpers always installed (#127522).
- ia64: make sure that autorelocated file dependencies are satisfied.
- ia64: relocate all scriptlet interpreters.
- ia64: don't bother trying to preload autorelocated modules.
- fix: filesystem package needs mail/lock w/o getgrnam.
- fix: do getpwnam/getgrnam to load correct modules before chroot.

CVS patchset: 7415
CVS date: 2004/08/31 15:39:37
2004-08-31 15:39:37 +00:00
jbj 47abfc1242 Make sure no. of added provides matches added list size if some
dependencies are skipped due to coloring (#103865).

CVS patchset: 7010
CVS date: 2003/12/26 16:14:49
2003-12-26 16:14:49 +00:00
jbj 783219a832 fix: prevent segfault if malicious server sends 1 GB of data through ftpNLST.
fix: rpmal could segfault under obscure conditions.
Use array, not individual structures, for rpmsw{Enter,Exit} timestamps.

CVS patchset: 6735
CVS date: 2003/04/08 21:42:55
2003-04-08 21:42:55 +00:00
jbj e8cf6cbb05 Sanity.
CVS patchset: 6652
CVS date: 2003/03/05 00:13:11
2003-03-05 00:13:11 +00:00
jbj 39cbc98d69 1st crack at colored installs.
CVS patchset: 5989
CVS date: 2002/12/31 01:23:03
2002-12-31 01:23:03 +00:00
jbj b63b4a5d12 - simplify specfile query linkage loop.
- drill rpmts into parseSpec(), carrying Spec along.

CVS patchset: 5958
CVS date: 2002/12/22 02:11:05
2002-12-22 02:11:05 +00:00
jbj 1f6cdca2d5 - add --enable-posixmutexes when configuring on linux.
- add rpmdb_{deadlock,dump,load,svc,stat,verify} utilities.
- include srpm pkgid in binary headers (#71460).
- add %check scriptlet to run after %install (#64137).

CVS patchset: 5957
CVS date: 2002/12/21 20:37:37
2002-12-21 20:37:37 +00:00
jbj ec22ac6d3c Sanity.
CVS patchset: 5955
CVS date: 2002/12/21 01:05:44
2002-12-21 01:05:44 +00:00
jbj c96202ddef - internal automagic dependency generation (disabled for now).
CVS patchset: 5913
CVS date: 2002/12/03 02:57:02
2002-12-03 02:57:02 +00:00
jbj f19f373a59 - fix: always do rpmalMakeIndex.
- fix: resurrect --triggers (#73330).
- python: typo in NOKEY exception string.

CVS patchset: 5696
CVS date: 2002/09/03 12:23:51
2002-09-03 12:23:51 +00:00
jbj ae8428475c - add --with-efence to configure, check install/upgrade with efence.
- beecrypt: short hex string conversion overflows target buffer.
- mark "successors only" packages in transaction.
- reap scriptlets with SIGCHLD handler.
- rename PSM_t to rpmpsm, add methods and refcounts to manage.
- remove %%configure/%%makeinstall from arch-os/macros, default is OK.
- don't export MALLOC_CHECK_ to scriptlets.
- squeaky clean memory leak checking.
- always malloc rpmfi structure, refcounts are correct in rpmtsRun().
- skip redundant /sbin/ldconfig scripts on upgrade (if possible).

CVS patchset: 5645
CVS date: 2002/08/19 22:27:44
2002-08-19 22:27:44 +00:00
jbj 9b29055f42 - supply transitive closure for CLI packages from rpmdb-redhat database.
CVS patchset: 5624
CVS date: 2002/08/13 16:36:44
2002-08-13 16:36:44 +00:00
jbj 261b4a2ecb - install rpmal.h and rpmhash.h, implicit rpmps.hinclude, for now.
- revert headerFree/headerLink/headerUnlink debugging.

CVS patchset: 5550
CVS date: 2002/07/13 19:08:51
2002-07-13 19:08:51 +00:00
jbj a273ea6a09 - fix: permit deletions of added packages (#67108).
CVS patchset: 5541
CVS date: 2002/07/06 18:48:09
2002-07-06 18:48:09 +00:00
jbj 05cb73a7ee Factor bounds checking annotations into source code.
CVS patchset: 5521
CVS date: 2002/06/22 18:51:56
2002-06-22 18:51:56 +00:00
jbj 49658e0fff Annotate incondefs in source code.
CVS patchset: 5509
CVS date: 2002/06/19 18:52:46
2002-06-19 18:52:46 +00:00
jbj 259bb824cc Add rpmal bindings, Grand Renaming to rpmalFoo().
CVS patchset: 5450
CVS date: 2002/05/27 18:12:12
2002-05-27 18:12:12 +00:00
jbj 2126e4ad09 - Grand Renaming of rpm data types.
CVS patchset: 5439
CVS date: 2002/05/19 18:42:25
2002-05-19 18:42:25 +00:00
jbj 076a6e29c5 - opaque (well mostly) rpmTransactionSet using methods.
CVS patchset: 5437
CVS date: 2002/05/16 16:55:21
2002-05-16 16:55:21 +00:00
jbj 46bbc20b32 - use rpmdb-redhat to suggest dependency resolution(s).
CVS patchset: 5401
CVS date: 2002/04/13 01:28:20
2002-04-13 01:28:20 +00:00
jbj 2404e8d918 - rescusitate --rebuild.
CVS patchset: 5389
CVS date: 2002/04/11 16:55:19
2002-04-11 16:55:19 +00:00
jbj d18bbd9bdc - drill ts/fi through verify mode, add methods to keep fi abstract.
- use mmap when calculating file digests on verify, ~20% faster.

CVS patchset: 5352
CVS date: 2002/03/12 16:56:17
2002-03-12 16:56:17 +00:00
jbj e98018b4d8 - fix a couple dinky memory leaks.
- build with an internal zlib for now.

CVS patchset: 5207
CVS date: 2001/11/23 15:49:11
2001-11-23 15:49:11 +00:00
jbj f50fc15ba0 depends.c and rpmal.c have opaque TFI_t.
CVS patchset: 5180
CVS date: 2001/11/14 00:14:01
2001-11-14 00:14:01 +00:00
jbj b1c03797eb - split file info tag sets into rpmfi.c.
- create toy TFI_t iterators.

CVS patchset: 5179
CVS date: 2001/11/13 19:04:33
2001-11-13 19:04:33 +00:00
jbj 21a35690b3 - commit to using rpmDepSet and TFI_t, not header.
- lclint rpmio fiddles.

CVS patchset: 5177
CVS date: 2001/11/12 20:51:05
2001-11-12 20:51:05 +00:00
jbj 55ffccbdde - unify rpmFNSet into TFI_t.
- eliminate header reference in rpmtransAddPackage, use TFI_t data.

CVS patchset: 5176
CVS date: 2001/11/11 22:51:00
2001-11-11 22:51:00 +00:00
jbj 1eb0503123 Replace loadFi with fiNew, freeFi with fiFree.
CVS patchset: 5175
CVS date: 2001/11/11 20:45:20
2001-11-11 20:45:20 +00:00
jbj b97f1cf32b - common structure elements for unification of TFI_t and rpmFNSet.
CVS patchset: 5173
CVS date: 2001/11/11 12:47:08
2001-11-11 12:47:08 +00:00
jbj 8d08d4a43b Rip headers out of addedPackages.
CVS patchset: 5170
CVS date: 2001/11/11 01:46:43
2001-11-11 01:46:43 +00:00
jbj a086ad7dd1 Start removing alGetHeader.
CVS patchset: 5168
CVS date: 2001/11/10 19:24:19
2001-11-10 19:24:19 +00:00
jbj 431499aeca - strip header tags for erased as well as installed transactionElements.
CVS patchset: 5167
CVS date: 2001/11/10 01:39:50
2001-11-10 01:39:50 +00:00
jbj eb1789dad7 - no-brainer refcounts for rpmDepSet and rpmFNSet objects.
CVS patchset: 5166
CVS date: 2001/11/09 23:13:50
2001-11-09 23:13:50 +00:00
jbj 56a319f1aa - header tag sets are per-transactionElement, not per-availablePackage.
CVS patchset: 5165
CVS date: 2001/11/09 20:41:18
2001-11-09 20:41:18 +00:00
jbj 978a87ed82 Start deconstructing TFI_t in favor of a per-transactionElement rpmFNSet.
CVS patchset: 5164
CVS date: 2001/11/09 19:22:29
2001-11-09 19:22:29 +00:00
jbj 0467af9ab5 Remove dead code.
CVS patchset: 5161
CVS date: 2001/11/08 16:28:35
2001-11-08 16:28:35 +00:00
jbj ae2e9b1bad - linear search on added package provides is dumb.
- discarding entire signature header when using --addsign is dumb.
- typedef the fuile name/python object "key" throughout as fnpyKey.
- start ripping rpmDependencyConflict out of the API.

CVS patchset: 5160
CVS date: 2001/11/08 00:12:49
2001-11-08 00:12:49 +00:00
jbj e680cce3e8 - fix: harmless typo in db3 chroot hack.
- fix: big-endian's with sizeof(time_t) != sizeof(int_32) mtime broken.
- fix: add Korean message catalogs (#54473).
- add RPHNPLATFORM and PLATFORM tags.
- linear search on added package provides is dumb.
- discarding entire signature header when using --addsign is dumb.

CVS patchset: 5159
CVS date: 2001/11/06 22:46:26
2001-11-06 22:46:26 +00:00
jbj 0724785fb3 Start merging file info into dependency set.
CVS patchset: 5157
CVS date: 2001/11/05 14:09:22
2001-11-05 14:09:22 +00:00
jbj a5a5eed7c4 Start deconstructing availablePackage list.
CVS patchset: 5156
CVS date: 2001/11/05 03:44:05
2001-11-05 03:44:05 +00:00
jbj 37a303a3a7 - rpmal: availablePackage is totally opaque, alKey with index replaces.
CVS patchset: 5155
CVS date: 2001/11/04 22:00:11
2001-11-04 22:00:11 +00:00
jbj 358848088d - depends.c: rpmDepSet is (almost) opaque, move to rpmds.[ch].
CVS patchset: 5152
CVS date: 2001/11/03 02:34:15
2001-11-03 02:34:15 +00:00