Commit Graph

246 Commits

Author SHA1 Message Date
jbj 1f366d6a00 Splint fiddles.
CVS patchset: 6728
CVS date: 2003/04/02 19:24:41
2003-04-02 19:24:41 +00:00
jbj 0b8c3f8319 Add benchmark stopwatch, change precision from milli- to micro-secs.
CVS patchset: 6715
CVS date: 2003/03/24 17:25:42
2003-03-24 17:25:42 +00:00
jbj 96cd0c2e28 Make sure that $(RPM_BUILD_ROOT}/usr/lib is 1st libarry searched.
Bump popt version.

CVS patchset: 6710
CVS date: 2003/03/20 23:42:05
2003-03-20 23:42:05 +00:00
jbj 77b724ec99 Create rpmsq, combining rpmdb/psm signal handlers.
CVS patchset: 6694
CVS date: 2003/03/16 22:36:52
2003-03-16 22:36:52 +00:00
jbj 97bed5159e Unchain iterator on NULL return.
Don't segfault on --fileclass.

CVS patchset: 6685
CVS date: 2003/03/14 18:11:09
2003-03-14 18:11:09 +00:00
jbj bcf3c3dde4 Close and free iterators/cursors on signal exit path.
CVS patchset: 6681
CVS date: 2003/03/13 12:04:35
2003-03-13 12:04:35 +00:00
jbj ed1cc2fa03 Sanity.
CVS patchset: 6680
CVS date: 2003/03/12 21:57:50
2003-03-12 21:57:50 +00:00
jbj 521861e744 Don't put newlines in base64 tag, add rpmHeader tag.
CVS patchset: 6679
CVS date: 2003/03/12 13:31:13
2003-03-12 13:31:13 +00:00
jbj 06b2ab0587 - --queryformat '[%{*:xml}\n]' to dump header content in XML.
CVS patchset: 6677
CVS date: 2003/03/12 02:08:20
2003-03-12 02:08:20 +00:00
jbj fc24c6edb4 Use an iterator to hide pattern matching on tag/ext names.
CVS patchset: 6676
CVS date: 2003/03/11 00:51:26
2003-03-11 00:51:26 +00:00
jbj f920058468 - upgrade to zlib-1.2.beta7.
- pass structure pointer, not args, through headerSprintf call chain.
- add ":xml" header format modifier.

CVS patchset: 6675
CVS date: 2003/03/10 23:28:24
2003-03-10 23:28:24 +00:00
jbj b58ca441e6 Minimize ars passed throuch headerSprintf call chain.
CVS patchset: 6670
CVS date: 2003/03/10 14:39:07
2003-03-10 14:39:07 +00:00
jbj 51e7f7a5e9 - fix: memory leak (85522).
CVS patchset: 6656
CVS date: 2003/03/06 22:50:04
2003-03-06 22:50:04 +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 3dade9b6af - file: fix ogg/vorbis file classification problems.
- skip fingerprints in /usr/share/doc and /usr/src/debug.
- add file(1) as /usr/lib/rpm/rpmfile.
- enable transaction coloring for s390x/ppc64.

CVS patchset: 6039
CVS date: 2003/02/14 23:03:35
2003-02-14 23:03:35 +00:00
jbj 3b6005fbd9 oops, get rid of debugging printf's.
destroy nptl functional test mutex/cond iff successful.
initialize getcwd buffer to zero to keep valgrind happy.

CVS patchset: 6035
CVS date: 2003/02/03 11:46:52
2003-02-03 11:46:52 +00:00
jbj 8b68faf981 - fix: trap SIGPIPE, close database(s).
- configurable default query output format.

CVS patchset: 6034
CVS date: 2003/01/31 22:55:28
2003-01-31 22:55:28 +00:00
jbj f49f99df00 - duplicate package checks with arch/os checks if colored.
- file conflict checks with colors.

CVS patchset: 6013
CVS date: 2003/01/17 17:43:04
2003-01-17 17:43:04 +00:00
jbj 050717618a - python: put rpmmodule.so where python expects to find.
- add brp-strip-static-archive build root policy helper.
- add -lelf to rpm LDFLAGS, not LDADD, since there is no libelf.la now.

CVS patchset: 6001
CVS date: 2003/01/08 21:37:01
2003-01-08 21:37:01 +00:00
jbj 2ca7f5f3b7 fix: restore upgrade functionality with colors.
CVS patchset: 5991
CVS date: 2003/01/01 16:54:04
2003-01-01 16:54:04 +00:00
jbj cb4b0b8ce1 - fix :armor query extension, tgpg mktmp handling (#80684).
- use rpmfiClass underneath --fileclass.

CVS patchset: 5985
CVS date: 2002/12/29 22:31:00
2002-12-29 22:31:00 +00:00
jbj d7a0ee2ca8 splint fiddles.
CVS patchset: 5980
CVS date: 2002/12/28 23:17:06
2002-12-28 23:17:06 +00:00
jbj e65f6df216 - error if querying with iterator on different sized arrays.
CVS patchset: 5979
CVS date: 2002/12/28 19:31:21
2002-12-28 19:31:21 +00:00
jbj 5e61b7cae8 - ignore ENOENT return from db->close (#80514,#79314).
CVS patchset: 5977
CVS date: 2002/12/27 19:42:22
2002-12-27 19:42:22 +00:00
jbj 3300e2810e Initialize differently if using rpc access.
CVS patchset: 5972
CVS date: 2002/12/26 17:18:01
2002-12-26 17:18:01 +00:00
jbj fec28fa004 Keep message to 1 line.
CVS patchset: 5967
CVS date: 2002/12/24 07:38:02
2002-12-24 07:38:02 +00:00
jbj e2c12fef0a Check for unshared posix mutexes only on 1st open.
CVS patchset: 5966
CVS date: 2002/12/24 07:33:26
2002-12-24 07:33:26 +00:00
jbj e788b7c1f3 - fix: remove rpmfi scareMem so that headers can be reloaded on ia64.
- fix: set DB_PRIVATE, not DB_ENV_PRIVATE, if unshared posix mutexes.
- remove useless kernel/glibc dependencies (#79872).
- add matching "config(N) = EVR"  dependencies iff %%config is found.

CVS patchset: 5963
CVS date: 2002/12/24 07:21:04
2002-12-24 07:21:04 +00:00
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