Commit Graph

368 Commits

Author SHA1 Message Date
jbj e3c423226e Sanity.
CVS patchset: 5960
CVS date: 2002/12/23 20:58:36
2002-12-23 20:58:36 +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 ec1cec8763 - error on exclusive Packages fcntl lock if DB_ENV_PRIVATE is set.
CVS patchset: 5953
CVS date: 2002/12/20 18:25:59
2002-12-20 18:25:59 +00:00
jbj 1a49f5b1ac - test pthread_{mutex,cond}attr_setpshared(), add DB_ENV_PRIVATE if not.
CVS patchset: 5952
CVS date: 2002/12/20 16:09:15
2002-12-20 16:09:15 +00:00
jbj b3bc3cb19d - add --file{class,provide,require} popt aliases and header extensions
CVS patchset: 5947
CVS date: 2002/12/18 22:54:00
2002-12-18 22:54:00 +00:00
jbj 96f4a259b5 - fix: make sure each library has DT_NEEDED for all unresolved syms.
CVS patchset: 5941
CVS date: 2002/12/14 21:39:19
2002-12-14 21:39:19 +00:00
jbj 80b23366e7 - use usrlib_LTLIBRARIES to install directly in /usr/lib64 instead.
CVS patchset: 5911
CVS date: 2002/12/01 21:34:06
2002-12-01 21:34:06 +00:00
jbj 0efbbada0f - link rpm libraries together, use shared helpers with external -lelf.
- move libfmagic to librpmio.
- use libtool-1.4.3, autoconf-2.56.
- add explicit -L/lib64 -L/usr/lib64 for libtool mode=relink on x86_64.

CVS patchset: 5910
CVS date: 2002/12/01 18:03:22
2002-12-01 18:03:22 +00:00
jbj 760d3a0c8b More splint fiddles.
CVS patchset: 5908
CVS date: 2002/11/30 22:15:29
2002-11-30 22:15:29 +00:00
jbj 1c023424d7 Correct doxygen-1.2.18 warnings.
CVS patchset: 5875
CVS date: 2002/11/19 15:07:08
2002-11-19 15:07:08 +00:00
jbj 47b8b81468 splint fiddles.
CVS patchset: 5828
CVS date: 2002/11/05 23:08:19
2002-11-05 23:08:19 +00:00
jbj d65517beca - fix: /dev/initctl has not MD5 segfault (#76718).
CVS patchset: 5817
CVS date: 2002/10/25 14:46:49
2002-10-25 14:46:49 +00:00
jbj 4a77efce46 - add debug sub-package patch.
- re-add elfutils/libdwarf (for dwarf.h), eliminate tools/dwarf2.h.

CVS patchset: 5789
CVS date: 2002/10/18 18:45:47
2002-10-18 18:45:47 +00:00
jbj ada36102ab Replace libelf with elfutils.
CVS patchset: 5778
CVS date: 2002/10/15 18:44:16
2002-10-15 18:44:16 +00:00
jbj 0ef682d77e - lclint clean.
CVS patchset: 5715
CVS date: 2002/09/17 15:21:03
2002-09-17 15:21:03 +00:00
jbj 40726dd94f Sync with rpm-4.1 parsing changes.
CVS patchset: 5711
CVS date: 2002/09/16 20:10:20
2002-09-16 20:10:20 +00:00
jbj 77ec71122f - fix: register SIGCHLD handler before forking (#73134).
CVS patchset: 5704
CVS date: 2002/09/04 18:08:12
2002-09-04 18:08:12 +00:00
jbj 0c09564b83 - fix: parse header data more carefully.
CVS patchset: 5701
CVS date: 2002/09/04 01:52:26
2002-09-04 01:52:26 +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 cc5d229b0e Sync with rpm-4.1.
CVS patchset: 5695
CVS date: 2002/08/31 22:39:34
2002-08-31 22:39:34 +00:00
jbj 02f9006732 - fix: segfault with --checksig, plug memory leak (#72455).
- rpm-4.1 release candidate.

CVS patchset: 5684
CVS date: 2002/08/27 20:50:21
2002-08-27 20:50:21 +00:00
jbj 0fae1010f0 - set cachesize without a dbenv, the default is far too small.
- db: don't return EACCES on db->close w/o environment.
- unify cachesize configuration, with (or without) a dbenv.
- comments regarding unsupported (yet) db-4.1.17 functionality.

CVS patchset: 5674
CVS date: 2002/08/26 18:56:11
2002-08-26 18:56:11 +00:00
jbj 9e06e3b8ca - fix: region trailer offset sanity check wrong (#71996).
CVS patchset: 5654
CVS date: 2002/08/22 00:37:21
2002-08-22 00:37:21 +00:00
jbj b6b6612cfa - check for interrupt during iteration.
- python: add ts.setProbFilter() method, remove ts.run() argument.

CVS patchset: 5652
CVS date: 2002/08/20 22:05:18
2002-08-20 22:05:18 +00:00
jbj 46d1fa7527 - fix: add epoch to "already installed" check.
CVS patchset: 5650
CVS date: 2002/08/20 14:56:37
2002-08-20 14:56:37 +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 c7881d8017 - python: explicit method to set transFlags.
- python: stuff package name into a string for repackage callbacks.
- rollback: re-create empty transaction set for multiple rollbacks.
- fix: %%basename typo (Dmitry V. Levin<ldv@altlinux.org>).
- fix: queryformat segfaults (Dmitry V. Levin<ldv@altlinux.org>).

CVS patchset: 5639
CVS date: 2002/08/15 18:50:46
2002-08-15 18:50:46 +00:00
jbj 622e406784 Update to db-4.1.17.
CVS patchset: 5636
CVS date: 2002/08/14 21:35:35
2002-08-14 21:35:35 +00:00
jbj 9114d6ffea - fix: rebuilddb stat'ed target, not source, for rename sanity, take 2.
CVS patchset: 5627
CVS date: 2002/08/14 14:48:04
2002-08-14 14:48:04 +00:00
jbj 48a2529ce4 - fix: rebuilddb stat'ed target, not source, for rename sanity.
- create /var/lib/rpm if non-existent in, say, a chroot.
- erased packages are now repackaged into /var/spool/repackage.

CVS patchset: 5625
CVS date: 2002/08/13 20:40:32
2002-08-13 20:40:32 +00:00
jbj c961f3f78e - python: add return codes for rollbacks and fooDB methods.
- avoid generating fingerprints for locale/zoneinfo sub-directories.

CVS patchset: 5618
CVS date: 2002/08/08 22:20:26
2002-08-08 22:20:26 +00:00
jbj 6106bdb359 lclint fiddles.
CVS patchset: 5615
CVS date: 2002/08/08 16:06:13
2002-08-08 16:06:13 +00:00
jbj 00375ca2bf Remove dbi_tear_down, now that rpmdb's are closed on signals.
lclint fiddles.

CVS patchset: 5596
CVS date: 2002/08/03 22:31:39
2002-08-03 22:31:39 +00:00
jbj f5c9fd111b - check header blobs on export (i.e. rpmdbAdd())..
- enable iterator header blob checks for install/erase modes.
- python: _vsflags_up2date macro to configure verify signature flags.

CVS patchset: 5595
CVS date: 2002/08/02 21:52:01
2002-08-02 21:52:01 +00:00
jbj d8eaee30df - preserve rpmdb file attributes across --rebuilddb (#70367).
CVS patchset: 5590
CVS date: 2002/08/01 21:20:26
2002-08-01 21:20:26 +00:00
jbj 33e9f2c0d2 - prevent stale locks in __db files by closing databases on signals.
CVS patchset: 5583
CVS date: 2002/07/30 21:37:10
2002-07-30 21:37:10 +00:00
jbj 5a1ebaccd5 - python: don't segfault in ts.GetKeys() on erased packages.
resurrect build modes.
add undocumented debugging options.

CVS patchset: 5577
CVS date: 2002/07/28 14:52:33
2002-07-28 14:52:33 +00:00
jbj 81fef98480 - python: add ts.hdrCheck(), ts.rebuildDB() methods.
- python: iterating on an ts object returns transaction elements now.
- add yellowdog as vendor.

CVS patchset: 5570
CVS date: 2002/07/25 00:13:25
2002-07-25 00:13:25 +00:00
jbj ede1f445e0 - verify signatures/digests retrieved through rpmdbNextIterator().
- imbue %ghost with missingok attribute with --verify (#68933).

CVS patchset: 5568
CVS date: 2002/07/24 16:21:23
2002-07-24 16:21:23 +00:00
jbj 6af194ed8e - add methods to make signature handling opaque wrto rpmts.
CVS patchset: 5566
CVS date: 2002/07/21 22:06:19
2002-07-21 22:06:19 +00:00
jbj 293a81e259 - version added to *.la dependency libraries (#69063).
- expose digests in rpmio API, but hide internal beecrypt API (#68999).

CVS patchset: 5561
CVS date: 2002/07/20 21:07:31
2002-07-20 21:07:31 +00:00
jbj bfb8488c10 - popt: parse file into string of options (#56860).
CVS patchset: 5560
CVS date: 2002/07/20 19:02:40
2002-07-20 19:02:40 +00:00
jbj 3ea74aa3c7 - python: sanity check fixes on rpmts/rpmte methods.
CVS patchset: 5554
CVS date: 2002/07/14 21:23:29
2002-07-14 21:23:29 +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 1bf723fca4 - update for sv.po.
CVS patchset: 5545
CVS date: 2002/07/11 21:47:51
2002-07-11 21:47:51 +00:00
jbj 1bbc4b2c37 - fix: repair 2ndary match criteria with rpmdb iterators.
CVS patchset: 5544
CVS date: 2002/07/11 16:44:55
2002-07-11 16:44:55 +00:00
jbj 241fad1287 Propagate splint-3.0.1.7 close(2) internalState annotation throughout.
CVS patchset: 5542
CVS date: 2002/07/08 14:21:26
2002-07-08 14:21:26 +00:00
jbj 6dca216517 - fix: forgot lazy open of database on --freshen path (#67907).
- proof-of-concept rpmcache functionality.

CVS patchset: 5539
CVS date: 2002/07/04 21:08:05
2002-07-04 21:08:05 +00:00
jbj af3c677f06 - use rpmfi in showQueryPackage(), eliminating headerGetEntry().
CVS patchset: 5538
CVS date: 2002/07/03 14:01:49
2002-07-03 14:01:49 +00:00
jbj e5fb770e7d Add boundsread annotations throughout, enable +bounds checking.
Start narrowing the scope of bounds annotations by adding more annotations.

CVS patchset: 5537
CVS date: 2002/07/02 23:54:35
2002-07-02 23:54:35 +00:00
jbj 77076c7c8d add (disabled for now) dependency check to rpmgraph.
splint and gettext fiddles.

CVS patchset: 5536
CVS date: 2002/07/02 13:16:50
2002-07-02 13:16:50 +00:00
jbj 8c4991e9d5 - warn only once for each NOKEY/UNTRUSTED key id.
- factor common options into table, add rpmcliInit() and rpmcliFini().
- add preliminary rpmgraph(8) and rpmcache(8) executables to rpm-devel.

CVS patchset: 5535
CVS date: 2002/06/30 22:47:32
2002-06-30 22:47:32 +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 f96fc8d894 - resurrect libelf with Elf64, prelink verify should work everywhere.
autostuff fiddles.

CVS patchset: 5517
CVS date: 2002/06/20 21:53:31
2002-06-20 21:53:31 +00:00
jbj 110df96c22 - add translated man pages from PLD.
CVS patchset: 5514
CVS date: 2002/06/20 17:17:23
2002-06-20 17:17:23 +00:00
jbj 0a7481d0f7 - make sure that rpm can verify prelinked shared libraries.
- don't install /usr/lib/rpm/redhat per-vendor configuration anymore.

CVS patchset: 5512
CVS date: 2002/06/20 02:19:21
2002-06-20 02:19:21 +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 20901c1a62 - beecrypt: merge changes from beecrypt-2.3.0.
- beecrypt: merge doxygen markup with rpmapi doco.
- beecrypt: revert cpu/arch compile option mixup (#66752).

CVS patchset: 5495
CVS date: 2002/06/15 19:43:41
2002-06-15 19:43:41 +00:00
jbj 93ae345321 - fix: separate existence and number checks for problems found.
CVS patchset: 5481
CVS date: 2002/06/12 14:52:59
2002-06-12 14:52:59 +00:00
jbj 14d95f25f7 - use /etc/rpm/platform (if it exists), rather than uname(2), for arch.
CVS patchset: 5464
CVS date: 2002/06/04 22:02:15
2002-06-04 22:02:15 +00:00
jbj 4008c689df Enable CDB access as default.
Remove unused int from dbiIndexSet.

CVS patchset: 5443
CVS date: 2002/05/21 16:33:33
2002-05-21 16:33:33 +00:00
jbj db4f917fa9 Make sure that db.h symlink is created.
CVS patchset: 5442
CVS date: 2002/05/21 14:56:05
2002-05-21 14:56:05 +00:00
jbj 0b61bf1475 Always use cursors.
Use DB_KEYLAST with db->c_put for now, just like rpm-4.0.x.
Make sure that db->c_get is done before doing db->c_del.
Check that CDB access is still functional.

CVS patchset: 5441
CVS date: 2002/05/21 00:00:39
2002-05-21 00:00:39 +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 38385c8d63 Transactions made increasingly opaque.
CVS patchset: 5438
CVS date: 2002/05/17 21:08:39
2002-05-17 21:08:39 +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 b4c604e75c - plug most install mode leaks.
CVS patchset: 5424
CVS date: 2002/05/07 01:07:41
2002-05-07 01:07:41 +00:00
jbj e6ba507f77 - rework most of rpmdb.c prepatory to implementing duplicates.
- fix: 2 memory leaks in headerSprintf.
- fix: db mire's access out-of-bounds memory.

CVS patchset: 5423
CVS date: 2002/05/06 19:48:14
2002-05-06 19:48:14 +00:00
jbj 287934f4aa Add mi_key and mi_data to db match iterator.
CVS patchset: 5422
CVS date: 2002/05/05 21:49:45
2002-05-05 21:49:45 +00:00
jbj 81c2a9d267 Add toy db->associate, db->join, dbcursor->c_pget wrappers.
CVS patchset: 5421
CVS date: 2002/05/04 20:13:14
2002-05-04 20:13:14 +00:00
jbj 40aceb784a Pass dbiGet() flags from application.
CVS patchset: 5420
CVS date: 2002/05/04 16:41:01
2002-05-04 16:41:01 +00:00
jbj d30a242160 Eliminate another layer of db abstraction, continue eradicating db1.
CVS patchset: 5419
CVS date: 2002/05/04 12:55:03
2002-05-04 12:55:03 +00:00
jbj 3abd712fc3 Wire key DBT through the API.
CVS patchset: 5418
CVS date: 2002/05/04 00:02:37
2002-05-04 00:02:37 +00:00
jbj 48cd520355 - use DBT_DB_MALLOC to eliminate re-malloc'ing header blobs.
CVS patchset: 5417
CVS date: 2002/05/03 23:26:25
2002-05-03 23:26:25 +00:00
jbj 2b83d36c08 - eliminate db1 support.
- fix: rpmdb iterator memory leak in python bindings.
- fix: include <sys/time.h> for 6.2 python modules.
- remove vestiges of mipseb arch (#62408).

CVS patchset: 5414
CVS date: 2002/05/02 22:16:30
2002-05-02 22:16:30 +00:00
jbj cf2484ce1f - attempt to make peace with automake-1.6.1, autoconf-2.53.
- rip out two layers of dbN gook, internal Berkeley db is here to stay.

CVS patchset: 5412
CVS date: 2002/05/01 22:13:00
2002-05-01 22:13:00 +00:00
jbj e3c57cf71e - merge conflicts into problems, handle as transaction set variable.
CVS patchset: 5402
CVS date: 2002/04/13 18:52:18
2002-04-13 18:52:18 +00:00
jbj b45c27e2ab doxygen cleanup.
CVS patchset: 5379
CVS date: 2002/04/08 18:56:01
2002-04-08 18:56:01 +00:00
jbj ffdfd1056e - speedup large queries by ~50%.
- revert to presentation ordering Yet Again (#62158).
- non-glibc: on upgrade, mergesort is much faster than quicksort.

CVS patchset: 5377
CVS date: 2002/04/07 19:52:42
2002-04-07 19:52:42 +00:00
jbj e7b38bbd0c Test program for file name join.
CVS patchset: 5363
CVS date: 2002/03/17 21:13:43
2002-03-17 21:13:43 +00:00
jbj 976cf8dec7 Pass ts and args to rpmInstall() and rpmErase().
CVS patchset: 5355
CVS date: 2002/03/13 15:06:07
2002-03-13 15:06:07 +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 c6449e9c44 - add header DSA signature.
CVS patchset: 5345
CVS date: 2002/03/06 23:17:31
2002-03-06 23:17:31 +00:00
jbj 2e2d1cad39 - add payload uncompressed size to signature to avoid rewriting header.
- drill header sha1 into signature parallel to header+payload md5.
- mandatory "most effective" signature check on query/verify/install.
- don't bother adding empty filemd's to index.
- add Pubkey index, using signer id as binary key.
- display pubkeys in hex when debugging db access.
- retrieve pubkey(s) from rpmdb, not from detached signature file.
- reapply Berkeley DB patch #4491.

CVS patchset: 5341
CVS date: 2002/03/03 23:09:49
2002-03-03 23:09:49 +00:00
jbj 5c2e4bdc1e Annotation fiddles.
CVS patchset: 5336
CVS date: 2002/02/25 15:29:22
2002-02-25 15:29:22 +00:00
jbj 0108a7b8cb tpkgid cleanup.
Recognize GNU extensions in myGlobPatternP(), flag in misc/fnmatch.h, as well.

CVS patchset: 5331
CVS date: 2002/02/22 17:12:15
2002-02-22 17:12:15 +00:00
jbj b41f855114 Add pkgid db builder pre-cursor.
CVS patchset: 5329
CVS date: 2002/02/21 00:30:49
2002-02-21 00:30:49 +00:00
jbj 09f274515f - make peace with automake et al in 8.0, ugh.
CVS patchset: 5314
CVS date: 2002/02/10 21:13:52
2002-02-10 21:13:52 +00:00
jbj 56de656223 - generate index for pkgid (aka Sigmd5) tag, query/verify by pkgid.
- generate index for hdrid (aka Sha1header) tag, query/verify by hdrid.
- generate index for fileid (aka Filemd5s) tag, query/verify by fileid.
- query/verify by install transaction id.

CVS patchset: 5300
CVS date: 2002/02/04 23:29:59
2002-02-04 23:29:59 +00:00
jbj 696c5d9d67 rollback changes from 4.0.4.
CVS patchset: 5297
CVS date: 2002/02/04 16:53:51
2002-02-04 16:53:51 +00:00
jbj 81d60b4706 Sync with rpm-4.0.4 rollbacks.
CVS patchset: 5293
CVS date: 2002/02/02 22:45:41
2002-02-02 22:45:41 +00:00
jbj ff7a19b2bd - permit args to be hidden within %%__find_{requires,provides}.
- a couple more perl.{prov,req} fiddles.

CVS patchset: 5289
CVS date: 2002/02/01 15:19:44
2002-02-01 15:19:44 +00:00
jbj e1a7a8a081 Transaction rollbacks from rpm-4.04, (sanity flush).
CVS patchset: 5281
CVS date: 2002/01/28 15:51:06
2002-01-28 15:51:06 +00:00
jbj 0bbb7bb94e - turn on auto-generated perl requirements (#58519, #58536, #58537).
Sanity.

CVS patchset: 5265
CVS date: 2002/01/23 00:58:47
2002-01-23 00:58:47 +00:00
jbj c74fa24965 - missing key(s) on keyring when verifying a signature is now an error.
- remove dependency whiteout.
- splint fiddles.

CVS patchset: 5255
CVS date: 2002/01/18 22:51:30
2002-01-18 22:51:30 +00:00
jbj cbcc2cc467 - fix: signing multiple times dinna work, discard immutable region.
- remove poptmodule.so for separate packaging.

CVS patchset: 5250
CVS date: 2002/01/10 19:16:54
2002-01-10 19:16:54 +00:00
jbj ce922f5bdf - handle lazy db open's in chroot with absolute path, not prefix strip.
CVS patchset: 5239
CVS date: 2002/01/06 22:12:44
2002-01-06 22:12:44 +00:00
jbj 350d7592de - sparc: make dbenv per-rpmdb, not per-dbi.
CVS patchset: 5237
CVS date: 2002/01/06 02:23:33
2002-01-06 02:23:33 +00:00
jbj 85f676ed66 - lclint-3.0.0.19 fiddles.
CVS patchset: 5217
CVS date: 2001/12/08 17:21:36
2001-12-08 17:21:36 +00:00
jbj a224782884 - header handling moved to librpmdb to avoid linkage loops.
CVS patchset: 5193
CVS date: 2001/11/19 22:45:35
2001-11-19 22:45:35 +00:00
jbj 846ed75f9b - tweak overlapped file fingerprint retrieval for speed.
CVS patchset: 5181
CVS date: 2001/11/15 18:22:33
2001-11-15 18:22:33 +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 fe68f3c0cd - add header refcount annotations throughout.
CVS patchset: 5146
CVS date: 2001/11/01 20:15:10
2001-11-01 20:15:10 +00:00
jbj 966fabbc44 - memory indices for dependency check are typedef'd and abstract'd.
- no-brainer refcounts for fi object, debug the mess.
- dump the header early in transaction, recreate fi before installing.

CVS patchset: 5137
CVS date: 2001/10/28 22:17:47
2001-10-28 22:17:47 +00:00
jbj 7402ce1546 - legacy signatures always checked where possible on package read.
- wire transactions through rpmcli build modes.
- lazy rpmdb open/close through transaction methods (mostly anyways).
- no-brainer refcounts for rpmdb object.
- check added header against transaction set, replace if newer.

CVS patchset: 5135
CVS date: 2001/10/27 20:09:20
2001-10-27 20:09:20 +00:00
jbj f03b462b1e - legacy signatures always checked on -qp and -Vp.
CVS patchset: 5133
CVS date: 2001/10/25 01:36:32
2001-10-25 01:36:32 +00:00
jbj 72f92dd744 - wire transactions through rpmcli signature modes.
CVS patchset: 5131
CVS date: 2001/10/23 20:52:51
2001-10-23 20:52:51 +00:00
jbj 1ad22a0bc4 - all symbols but hdrVec are now forward references in linkage.
CVS patchset: 5128
CVS date: 2001/10/21 21:43:32
2001-10-21 21:43:32 +00:00
jbj d5dd3dfbc6 - stupid macros to configure public key file paths.
CVS patchset: 5127
CVS date: 2001/10/20 22:31:09
2001-10-20 22:31:09 +00:00
jbj ca1d809cb1 Rewire digests, step 2.
CVS patchset: 5122
CVS date: 2001/10/19 01:35:57
2001-10-19 01:35:57 +00:00
jbj d57a29baac Converging on lclint-3.0.17 strict level.
CVS patchset: 5118
CVS date: 2001/10/17 16:43:36
2001-10-17 16:43:36 +00:00
jbj 96a3f7a55d Factor -type problems into explicit code annotations.
CVS patchset: 5117
CVS date: 2001/10/16 17:42:18
2001-10-16 17:42:18 +00:00
jbj 9f45bcd3ec More lclint annotations.
CVS patchset: 5116
CVS date: 2001/10/16 14:58:57
2001-10-16 14:58:57 +00:00
jbj 14c1b443f6 More branchstate lclint annotations.
CVS patchset: 5114
CVS date: 2001/10/15 19:27:13
2001-10-15 19:27:13 +00:00
jbj 72471f2e54 Explicit branchstate annotations.
CVS patchset: 5113
CVS date: 2001/10/15 17:53:34
2001-10-15 17:53:34 +00:00
jbj 3f462f318f - upgrade to db-4.0.7.
CVS patchset: 5112
CVS date: 2001/10/15 04:22:09
2001-10-15 04:22:09 +00:00
jbj d8dc44f363 lclint fiddles to annotate globals.
CVS patchset: 5106
CVS date: 2001/10/15 03:22:10
2001-10-15 03:22:10 +00:00
jbj 4b67d7621c More lclint annotations.
CVS patchset: 5105
CVS date: 2001/10/13 22:01:38
2001-10-13 22:01:38 +00:00
jbj 525f4cb8b1 - ratchet up to lclint "strict" level.
CVS patchset: 5104
CVS date: 2001/10/13 19:35:58
2001-10-13 19:35:58 +00:00
jbj 2a420b223d - drop rpmio/base64.[ch] in favor of beecrypt versions.
CVS patchset: 5079
CVS date: 2001/09/25 14:03:27
2001-09-25 14:03:27 +00:00
jbj 9d555b6216 Move to lclint-3.0.0.15, revisit and clean up annotations.
intl/: Add gettext orphans.
popt/intl/: Add gettext orphans.
beecrypt: Add beecrypt repository.
rpmio/tdigest.c: Add beecrypt digest checks.

CVS patchset: 5077
CVS date: 2001/09/24 21:53:14
2001-09-24 21:53:14 +00:00
jbj 1eef0782f6 - lclint-3.0.0.15 fiddles.
CVS patchset: 5067
CVS date: 2001/09/21 15:07:11
2001-09-21 15:07:11 +00:00
jbj 38edc49452 - close/discard Depends index after rpmdepCheck() use.
CVS patchset: 5049
CVS date: 2001/09/15 21:21:31
2001-09-15 21:21:31 +00:00
jbj da9b21485c Sync with rpm-4_0 branch.
CVS patchset: 5048
CVS date: 2001/09/15 13:49:11
2001-09-15 13:49:11 +00:00
jbj a0ebbe5925 - headers without RPMTAG_NAME are skipped when retrieved.
CVS patchset: 5025
CVS date: 2001/08/24 17:55:08
2001-08-24 17:55:08 +00:00
jbj 3b6b341a44 - python: add exception to detect bad data in hdrUnload.
- change dir creation message from warning to debug for now.

CVS patchset: 5017
CVS date: 2001/08/16 18:49:07
2001-08-16 18:49:07 +00:00
jbj a36acaf3b8 - fix: segfault on headerFree given malicious data.
- fix: don't verify hash page nelem.
- better error messages for verification failures.
- include directory /usr/lib/rpm in rpm package.

CVS patchset: 5013
CVS date: 2001/08/13 16:39:14
2001-08-13 16:39:14 +00:00
jbj e699b8fab3 - portability: some compilers squawk at return ((void) foo()) (#50419).
- remove fdFileno() from librpmio, use inline version instead (#50420).
- fix: linux find-requires needs quotes around [:blank:].
- remove /var/lib/rpm/__db* cache files if %__dbi_cdb is not configured.
- python: add hiesenbug patch.

CVS patchset: 5005
CVS date: 2001/08/06 11:27:27
2001-08-06 11:27:27 +00:00
jbj dce5aa0ebd lclint clean again.
CVS patchset: 5001
CVS date: 2001/08/03 15:17:55
2001-08-03 15:17:55 +00:00
jbj 46d2e8bbd8 - fix: i18n tags not terminated correctly with NUL (#50304).
- add explicit casts to work around a s390 compiler problem.

CVS patchset: 4998
CVS date: 2001/08/03 05:04:13
2001-08-03 05:04:13 +00:00
jbj c6fba63aca - fix: --noscripts is another multimode option.
- add tmpdir to configure db3 tmpdir into chroot tree.
- permit lazy db opens within chroot.
- fix: diddle dbenv path to accomodate backing store reopen in chroot.

CVS patchset: 4990
CVS date: 2001/07/28 00:33:07
2001-07-28 00:33:07 +00:00
jbj 085e3275d2 - rename pmac to ppcmac.
- ia64: revert -O0 compilation.
- upgrade to db-3.3.11 final.

CVS patchset: 4984
CVS date: 2001/07/24 02:52:52
2001-07-24 02:52:52 +00:00
jbj 3a2ddf1551 - fix: 4 memory leaks eliminated.
CVS patchset: 4960
CVS date: 2001/07/19 21:14:05
2001-07-19 21:14:05 +00:00
jbj ecfb46adaa - fix: don't total hard linked file size multiple times (#46286).
- add %dev(type,major,minor) directive to permit non-root dev build.

CVS patchset: 4944
CVS date: 2001/07/16 14:48:07
2001-07-16 14:48:07 +00:00
jbj 77d49ea5a2 - isolate cdb access configuration (experimental, use at your own risk).
- fix: hard fail on locked dbopen if CDB locking not in use.
- fix: dbconfig with mp_mmapsize=16Mb/mp_size=1Mb for
  "everything ENOSPC" failure check.

CVS patchset: 4942
CVS date: 2001/07/14 20:09:56
2001-07-14 20:09:56 +00:00
jbj 3bbe7a7fc4 - unlink all __db.nnn files before 1st db open.
CVS patchset: 4932
CVS date: 2001/07/11 00:07:46
2001-07-11 00:07:46 +00:00
jbj e15b4593eb - package version now configureable, default v3.
- rename rpm libraries to have version with libtool -release.
- fix: -i CLI context broken Yet Again.

CVS patchset: 4930
CVS date: 2001/07/10 17:59:11
2001-07-10 17:59:11 +00:00
jbj 9df3fc957f - expose rpmShowProgress() and rpmVerifyDigest() in rpmcli.h.
- portability: avoid st_mtime, gendiff uses basename, etc (#47497).
- glibc-2.0.x has not __va_copy().
- popthelp.c: static copy of stpcpy/stpncpy for the deprived (#47500).

CVS patchset: 4921
CVS date: 2001/07/06 20:37:42
2001-07-06 20:37:42 +00:00
jbj c6bd3de937 - preliminary abstraction to support per-header methods.
CVS patchset: 4878
CVS date: 2001/06/19 11:38:51
2001-06-19 11:38:51 +00:00
jbj 29ea1567e7 Sync with rpm-4_0 branch.
CVS patchset: 4876
CVS date: 2001/06/17 22:18:03
2001-06-17 22:18:03 +00:00
jbj 58b120d878 - alpha: don't add "()(64bit)" dependency markers.
CVS patchset: 4863
CVS date: 2001/06/15 16:01:10
2001-06-15 16:01:10 +00:00
jbj f0d2abd2bc - fix: db1 end-of-file not detected in legacy compatible way.
- fix: remove (harmless) chown error message from %post.
- add --target/--host to %configure, add example cross-build/config.site
  scripts to /usr/lib/rpm <arjanv@redhat.com> (#44581).
- rpmdb iterator selectors permit default/strcmp/regex/glob matching.
- rpmdb iterator selectors permit negative matches.

CVS patchset: 4861
CVS date: 2001/06/15 04:56:33
2001-06-15 04:56:33 +00:00
jbj 22b9de5f33 - add rpmdbSetIteratorRE() for regex matching in database iterators.
- permit rpm -qa to take RE args applied to name tag.
- permit dbiFindMatches() to use version/release patterns.
- eliminate all uses of rpmdbSetIterator{Version,Release}.

CVS patchset: 4859
CVS date: 2001/06/13 20:57:06
2001-06-13 20:57:06 +00:00
jbj 7233e3ad73 - remove rpmrc Provides: Yet Again, use virtual packages.
- dump cursor debugging wrappers.
- rpm --verify can disable rpmFileAttr checks.

CVS patchset: 4856
CVS date: 2001/06/12 17:06:47
2001-06-12 17:06:47 +00:00
jbj 1b87bd9ef7 - remove dead code frpm popt table reorg.
- more CLI typedefs/prototypes moved from rpmlib.h to rpmcli.h.
- rpm --verify skips files in non-installed states.
- rpm --verify skips content checks for %ghost files.
- rpm --verify displays config/doc/gnost/license/readme atrrs for files.
- rpm --verify checks immutable header region digest if available.
- rpmbuild adds header region digest (SHA1 as string).
- use rpmTag* typedefs in new hge/hae/hme/hre header vectors.

CVS patchset: 4854
CVS date: 2001/06/12 04:10:21
2001-06-12 04:10:21 +00:00
jbj 03f5273901 - fix: QUERY_FOR_LIST file count clobbered.
- create top level rpmcli API, factor top level modes into popt tables.
- popt: add POPT_BIT_SET/POPT_BIT_CLR to API.
- autogen.sh checks for latest libtool-1.4 and automake-1.4-p2.
- rpm --verify reports failure(s) if corresponding tag is not in header.
- rpm --verify honors %config(missingok), add -v for legacy behavior.

CVS patchset: 4852
CVS date: 2001/06/08 20:45:59
2001-06-08 20:45:59 +00:00
jbj 7bf9296288 - default to dbenv with mpool, --rebuilddb with nofsync is much faster.
CVS patchset: 4849
CVS date: 2001/06/06 19:57:12
2001-06-06 19:57:12 +00:00
jbj f0a67ca8b0 - permit duplicates for btree indices.
CVS patchset: 4843
CVS date: 2001/06/06 12:36:31
2001-06-06 12:36:31 +00:00
jbj c635bbf0ae fix: increment pointer in funky header ext while loop.
CVS patchset: 4841
CVS date: 2001/06/05 22:01:13
2001-06-05 22:01:13 +00:00
jbj 8959a0de70 Typos.
CVS patchset: 4837
CVS date: 2001/06/05 20:39:35
2001-06-05 20:39:35 +00:00
jbj 4ae69250a2 - fix typos in linux.{req,prov}.
CVS patchset: 4834
CVS date: 2001/06/05 19:26:22
2001-06-05 19:26:22 +00:00
jbj 750d54d8a3 lclint fiddles.
CVS patchset: 4833
CVS date: 2001/06/04 13:55:58
2001-06-04 13:55:58 +00:00
jbj f5ebe3fb42 - return multiple suggested packages (Pawel Kolodziej <pawelk@pld.org.pl>).
- fix: return suggested packages when using Depends cache.

CVS patchset: 4823
CVS date: 2001/05/31 22:31:14
2001-05-31 22:31:14 +00:00
jbj cc54f00167 - fix: for busted db1, attempt chain reconnection to following record.
CVS patchset: 4819
CVS date: 2001/05/30 22:42:43
2001-05-30 22:42:43 +00:00
jbj 61cd63ab8e - eliminate db-1.85 and db-2.x configuration.
- fix: popt arg sanity checks broken, optarg != optArg.
- fix: popt range checks on floats/doubles broken.
- popt: return POPT_ERROR_ERRNO on config open/read/close failure.

CVS patchset: 4815
CVS date: 2001/05/29 15:03:35
2001-05-29 15:03:35 +00:00
jbj e6c22123bc - perform db->verify when closing db files.
CVS patchset: 4813
CVS date: 2001/05/25 19:51:53
2001-05-25 19:51:53 +00:00
jbj 71f818828e - headerFree() returns NULL, _free is C++ safe.
CVS patchset: 4807
CVS date: 2001/05/23 14:25:19
2001-05-23 14:25:19 +00:00
jbj cec2fe637a - fix: filter duplicate package removals (#35828).
- add armv3l arch.

CVS patchset: 4795
CVS date: 2001/05/16 19:19:15
2001-05-16 19:19:15 +00:00
jbj 3c563d2118 - upgrade to db-3.3.4.
CVS patchset: 4787
CVS date: 2001/05/14 20:12:10
2001-05-14 20:12:10 +00:00
jbj 87c15895a0 - add cron/logrotate scripts to save installed package filenames.
CVS patchset: 4777
CVS date: 2001/05/13 17:55:58
2001-05-13 17:55:58 +00:00
jbj 27009dd00b - harden rpmdb iterators from damaged header instance segfaults.
CVS patchset: 4774
CVS date: 2001/05/11 23:25:46
2001-05-11 23:25:46 +00:00
jbj 39c24d294e Remove typos and stray debugging fprintf's.
CVS patchset: 4770
CVS date: 2001/05/11 16:45:06
2001-05-11 16:45:06 +00:00
jbj f5d0541223 - rpm database has rpm.rpm g+w permissions to share db3 mutexes.
- expose more db3 macro configuration tokens.
- move fprint.[ch] and hash.[ch] to rpmdb directory.
- detect and fiddle incompatible mixtures of db3 env/open flags.
- add DBI_WRITECURSOR to map to db3 flags with CDB database model.
- add rpmdbSetIteratorRewrite to warn of pending lazy (re-)writes.

CVS patchset: 4766
CVS date: 2001/05/11 04:06:12
2001-05-11 04:06:12 +00:00
jbj c7ee573367 - rpm database has rpm.rpm g+w permissions to share db3 mutexes.
- expose more db3 macro configuration tokens.
- move fprint.[ch] and hash.[ch] to rpmdb directory.
- detect and fiddle incompatible mixtures of db3 env/open flags.
- add DBI_WRITECURSOR to map to db3 flags with CDB database model.
- add rpmdbSetIteratorRewrite to warn of pending lazy (re-)writes.

CVS patchset: 4765
CVS date: 2001/05/11 04:01:04
2001-05-11 04:01:04 +00:00
jbj d026618b6b - rpm executables now setuid rpm to share write locks.
- expose more db3 macro configuration tokens.

CVS patchset: 4756
CVS date: 2001/05/09 22:58:56
2001-05-09 22:58:56 +00:00
jbj 47a7f6e917 Create db2 file manifest, as alpha is different.
CVS patchset: 4755
CVS date: 2001/05/08 13:59:47
2001-05-08 13:59:47 +00:00
jbj 9c636fed5b - create rpmdb.la so that linkage against rpm's db-3.2.9 is possible.
CVS patchset: 4752
CVS date: 2001/05/08 00:03:14
2001-05-08 00:03:14 +00:00