Commit Graph

240 Commits

Author SHA1 Message Date
jbj 2063e9bd53 Add dbcursor to dbi interface.
CVS patchset: 3830
CVS date: 2000/06/12 22:07:13
2000-06-12 22:07:13 +00:00
jbj bed61632d7 Fix db return code handling, majorly horked.
Autoconf detection of db-3.1.
Move --all to query/verify popt table.

CVS patchset: 3829
CVS date: 2000/06/11 19:15:27
2000-06-11 19:15:27 +00:00
jbj efcc0a3985 Use libtool-1.3.5.
Sanity (make dist).

CVS patchset: 3817
CVS date: 2000/06/06 09:01:06
2000-06-06 09:01:06 +00:00
jbj dcbbd47217 Split popt glue into lib/popt{BT,QV}.c.
Add dependencies to *.la.

CVS patchset: 3787
CVS date: 2000/06/01 04:47:42
2000-06-01 04:47:42 +00:00
jbj 18742142a9 Hack to pass build args correctly.
Create noarch symlink to canonical arch directory.

CVS patchset: 3785
CVS date: 2000/06/01 02:00:12
2000-06-01 02:00:12 +00:00
jbj 5807d4262e Remove build modes from rpm, use rpmb and/or popt glue instead.
CVS patchset: 3754
CVS date: 2000/05/26 18:51:11
2000-05-26 18:51:11 +00:00
jbj c7273eb0bc - change popt exec alias in oreder to exec rpm children.
- split rpm into 5 pieces along major mode fault lines with popt glue.

CVS patchset: 3750
CVS date: 2000/05/24 17:53:35
2000-05-24 17:53:35 +00:00
jbj 9733e2e589 fix: define/eval options assumed sizeof(int) == sizeof(void *).
CVS patchset: 3724
CVS date: 2000/05/12 23:10:43
2000-05-12 23:10:43 +00:00
jbj 00914dd961 Mostly functional db2 interface, db3 still has problems.
CVS patchset: 3645
CVS date: 2000/03/30 19:22:46
2000-03-30 19:22:46 +00:00
jbj 22a911a3b3 Add --preferdb for now to permit testing db0/db1/db2.
CVS patchset: 3641
CVS date: 2000/03/26 22:45:02
2000-03-26 22:45:02 +00:00
jbj cf68a32ca6 - fix: noLibio = 0 on Red Hat 4.x and 5.x.
- fix: typo in autodeps/linux.req.

CVS patchset: 3630
CVS date: 2000/03/15 19:50:57
2000-03-15 19:50:57 +00:00
jbj 742a513e5f Solaris2.6 portability.
CVS patchset: 3591
CVS date: 2000/02/27 18:52:30
2000-02-27 18:52:30 +00:00
jbj ace35961e8 Add %_i18ndomains configuration.
CVS patchset: 3583
CVS date: 2000/02/23 22:40:53
2000-02-23 22:40:53 +00:00
jbj becec721d0 i18n lookaside.
CVS patchset: 3581
CVS date: 2000/02/23 17:34:41
2000-02-23 17:34:41 +00:00
jbj d932818c23 Patches from PLD.
CVS patchset: 3556
CVS date: 2000/02/13 19:24:19
2000-02-13 19:24:19 +00:00
jbj 3da0771698 Correct --tarball option (long name should have been --tarbuild).
CVS patchset: 3485
CVS date: 1999/12/15 18:19:47
1999-12-15 18:19:47 +00:00
jbj 8f481702d8 reload macros from cmd line when re-reading config files.
CVS patchset: 3479
CVS date: 1999/12/12 21:14:05
1999-12-12 21:14:05 +00:00
jbj f202d104d0 Consistent usage for fileNames, baseNames, dirNames and dirIndexes throughout.
rpm.c: Add --nodirtokens and --dirtokens to control file list compression.
lib/misc.c: Default (conservative) valuse _noDirTokens is TRUE.
lib/misc.c: Add expandFileList analogue to compressFileList.
build/pack.c: Compress file list only if compression is requested.
lib/rpmdb.c: Expand file list before headerWrite if compression not requested.

CVS patchset: 3436
CVS date: 1999/11/26 21:58:42
1999-11-26 21:58:42 +00:00
jbj 07fa561681 rpm.c: Add --ftpdebug, --urldebug, --rpmiodebug (for my sanity).
build/pack.c: Remove unnecessary persist in package{Sources,Binaries}.
lib/rpmio.c: Expose fdGetFp() for use in url.c.
lib/rpmio.c: Debug refs with FILE/FTP/HTTP url's.
lib/url.c: Push fp in order to use Fclose() when cleaning up url cache.

CVS patchset: 3425
CVS date: 1999/11/15 22:16:54
1999-11-15 22:16:54 +00:00
jbj 4e62a322a2 lib/rpmio.c: Implement per-fd layers as a stack, add fdPush/fdPop.
lib/rpmio.c: Add fd{Get,Set}{Io,Fp,Fdno} abstraction wrappers.
lib/rpmio.c: Start rationalizing debug output by using fdbg to display the
	fd layer stack.
rpm.c: Add --nolibio to disable libio if desired.
rpm2cpio.c: Use Fdopen(..., gzdio) and ufdCopy().
build/build.c: Use Fdopen(..., fpio) rather than fdio.
build/files.c: Use Fdopen(..., fpio) rather than ufdio.
build/parseSpec.c: ditto.
lib/macro.c: ditto.
lib/rpmrc.c: ditto
lib/macro.c: Use Fopen(..., ufdio) in isCompressed() rather that fdOpen().
lib/misc.c: ditto.
lib/misc.c: Avoid fstat by using Stat.
build/pack.c: Add persist fdLink() and use fdFree() in package{Sources,Binaries}
build/pack.c: Try to remove the fdDup before cpioBuildArchive() call.
build/pack.c: Use rpmGenPath with %{_builddir}.
build/parsePreamble.c: Use fdSize rather than Stat to get icon file size.
lib/rpmrc.c: ditto
lib/ftp.c: start capturing ufdio layer syserrno/errcookie.

CVS patchset: 3424
CVS date: 1999/11/14 19:15:18
1999-11-14 19:15:18 +00:00
jbj 8ce88756fd Use Fstrerror on ufdio throughut.
rpm.c: add --rmspec to usage output.
build/files.c: use ufdio to permit '%files -f <url>' (untested).
build/pack.c: use ufdio in readRPM(), writeRPM(), and addFileToTag().
build/parsePreamble.c: use ufdio in readIcon().
lib/ftp.c: httpOpen() now takes FD_t ctrl arg to uncouple from u->ctrl.
lib/install.c: usr rpmGenPath() to identify first found url in file path concat.
lib/install.c: permit url's in files[i].relativePath.
lib/macro.c: use ufdio, diddle macros for tmacro standalone build.
lib/macro.c: Create rpmGenPath().
lib/macro.c: diddle macro files path to permit url's.
lib/rpmchecksig.c: use Fopen on fdio.
lib/rpmio.c: replace copyData() with ufdCopy().
lib/rpmio.c: replace httpGetFile() with ufdGetFile().
lib/rpmio.c: add ufdWrite().
lib/rpmio.c: permit 2 simultaneous persistent malloc/open HTTP/1.1 connections.
lib/rpmio.c: Add Lstat(), Stat(), and Access().
lib/rpmio.c: assume paths in syscall stubs are loopback (WRONG).
lib/url.c: add urlPath().

CVS patchset: 3422
CVS date: 1999/11/12 17:20:49
1999-11-12 17:20:49 +00:00
jbj 7fc3a97733 Add ref/deref/new/fileno/open vectors to FDIO_t.
Hide fdOpen/ufdOpen, use {fdio,ufdio}->open throughout.
url.c: Create ref counted abstract urlinfo type with debugging.
url.c: Rename functions to urlNew/urlFree/urlFreeCache for consistency.
rpmio.c: Create ref counted abstract FD_t type with debugging.
rpmio.c: Create private struct _FD_s type.
cpio.c: Create fd[GS]etCpioPos to preserve FD_t abstraction.

CVS patchset: 3414
CVS date: 1999/11/02 14:33:14
1999-11-02 14:33:14 +00:00
jbj b57249fd5e Spec: Add rootdir (as in chroot).
parseSpec(): Pass rootdir argument.
rpm.c: Rework bigMode enum to simplify per-mode option checks.
build/build.c: Attempt a chroot before execl().
falloc.c: thinko: test for non-existent packages database was broke.
makeTempFile(): Skip possible URL leader on tempfile name expansion.
rpmio.c: Mkdir/Chdir/Rmdir/Rename/Chroot/Unlink syscall wrappers.
rpmdb.c: Coalesce and simplify legacy openDatabase() wrappers.
uninstall.c: Skip possible URL leader on chroot arg.

CVS patchset: 3409
CVS date: 1999/10/31 21:38:21
1999-10-31 21:38:21 +00:00
jbj 3d087dcf52 Rename faFoo() routines, use FD_t I/O with fadio cookie throughout.
Try to be URL sensitive on filename arguments throughout.
falloc.c: Eliminate faFile, use FD_t.
falloc.c: preserve abstract FD_t by creating fadGet*()/fadSet*().
macro.c: rpmGetPath() expansions were clobbering URL's.
rpmio.c: create Fcntl(), Pread(), Pwrite() from previous faFoo().
rpmio.c: attempt per FD_t debugging.
rpm.c: permit --dbpath with --rebuild.

CVS patchset: 3408
CVS date: 1999/10/30 21:26:45
1999-10-30 21:26:45 +00:00
jbj 2b84d36c2e Make fdFileno() static, use Fileno()/Ferror() analogues throughout.
Make ufdClose() static, use Fclose() with ufdio cookie throughout.
rpm.c: Clean urlinfoCache and rpmBuildArgs leaks.
url.c: urlIsURL() should be here, not in rpmio.c.
url.c: Preserve FD_t abstraction by creating ufdGetUrlinfo().
url.c: Create freeUrlinfoCache().
rpmio.c: Create ufdio cookie.

CVS patchset: 3407
CVS date: 1999/10/30 16:43:29
1999-10-30 16:43:29 +00:00
jbj 7b4cf4bf19 fix: resurrect multiple target platform builds.
CVS patchset: 3404
CVS date: 1999/10/29 23:03:12
1999-10-29 23:03:12 +00:00
jbj 1e0138188b check for memory leaks (almost all leaks are plugged).
CVS patchset: 3403
CVS date: 1999/10/29 16:06:01
1999-10-29 16:06:01 +00:00
jbj 0d0b405c20 use compressed filenames on install side.
start unifying FD types, CFD_t now gone.

CVS patchset: 3402
CVS date: 1999/10/27 23:18:10
1999-10-27 23:18:10 +00:00
jbj bd34f27bb4 lclint annotations and compiler cruft.
CVS patchset: 3394
CVS date: 1999/10/21 20:36:16
1999-10-21 20:36:16 +00:00
jbj 32942a7b6b Check in time stamps.
CVS patchset: 3342
CVS date: 1999/09/29 23:26:08
1999-09-29 23:26:08 +00:00
jbj e60094b302 Retrofit glibc __progname.
CVS patchset: 3330
CVS date: 1999/09/26 15:04:03
1999-09-26 15:04:03 +00:00
jbj e6318cc57f fix: removed files fingerprint memory leak.
fix: resurrect allfiles flag from rpm-2.5.x.

CVS patchset: 3312
CVS date: 1999/09/21 17:21:57
1999-09-21 17:21:57 +00:00
jbj 20d78e939a fix: command line install had header memory leak.
check for NULL on all memory allocations.
free rpmrc mallocs on exit.
permit run time leak detection.

CVS patchset: 3311
CVS date: 1999/09/21 03:22:53
1999-09-21 03:22:53 +00:00
jbj 075fa0ef78 glibc2: always enable dynamic mtrace if available.
CVS patchset: 3279
CVS date: 1999/09/12 00:41:51
1999-09-12 00:41:51 +00:00
jbj 70a0eb1d9b pgp and pgp5 have compatible RSA signature (#4780).
CVS patchset: 3276
CVS date: 1999/09/10 23:48:56
1999-09-10 23:48:56 +00:00
jbj fabbb86306 add --freshen to usage message (#4823).
CVS patchset: 3261
CVS date: 1999/09/07 14:50:32
1999-09-07 14:50:32 +00:00
jbj d753cdadf7 fix: don't successfully match with strncasecmp("sparc", "sparc64", 5)
CVS patchset: 3259
CVS date: 1999/09/06 20:59:39
1999-09-06 20:59:39 +00:00
jbj 5c4a3b51ce Typo.
CVS patchset: 3248
CVS date: 1999/08/23 23:51:34
1999-08-23 23:51:34 +00:00
jbj 3ae1ccb3aa fix: segfault with "--sign" w/o supplying files (#4651).
CVS patchset: 3247
CVS date: 1999/08/23 23:10:35
1999-08-23 23:10:35 +00:00
jbj b5b29dd7a3 Clarify licensing: "GNU General Public License" not s/General //.
CVS patchset: 3214
CVS date: 1999/08/04 18:07:18
1999-08-04 18:07:18 +00:00
jbj 3952d8e797 popt: heavy dose of const.
CVS patchset: 3206
CVS date: 1999/07/27 22:05:43
1999-07-27 22:05:43 +00:00
jbj 40d76f715b move checksig/resign major modes into rpmlib.
CVS patchset: 3157
CVS date: 1999/07/14 16:47:30
1999-07-14 16:47:30 +00:00
jbj d795e1e296 move install/erase major modes into rpmlib.
CVS patchset: 3155
CVS date: 1999/07/14 15:43:30
1999-07-14 15:43:30 +00:00
jbj 7f9aeb867a add --eval to find result of macro expansion.
CVS patchset: 3135
CVS date: 1999/07/08 19:59:55
1999-07-08 19:59:55 +00:00
jbj 2cc65c7fb7 Ugly hack to get query dependencies right.
CVS patchset: 3118
CVS date: 1999/06/30 21:18:43
1999-06-30 21:18:43 +00:00
jbj bafb62fbb0 MiNT port (Guido Flohr <gufl0000@stud.uni-sb.de>).
CVS patchset: 3096
CVS date: 1999/06/17 21:35:34
1999-06-17 21:35:34 +00:00
jbj 9a01054a20 resurrect "rpm -Va --nofiles" (i.e. dependencies only) (#3111)
CVS patchset: 3092
CVS date: 1999/06/16 21:39:57
1999-06-16 21:39:57 +00:00
ewt f85d25c0b0 1) got --prefix working (again)
2) rpmtransAddPackage() makes a copy of the relocation list

CVS patchset: 3073
CVS date: 1999/05/23 18:34:30
1999-05-23 18:34:30 +00:00
jbj 8d0c528b59 fix: prevent return code wrap during packagage checking/resigning.
CVS patchset: 3063
CVS date: 1999/05/15 14:46:29
1999-05-15 14:46:29 +00:00
jbj b638d1ef0e colesce query and verify modes.
CVS patchset: 3055
CVS date: 1999/05/10 23:41:04
1999-05-10 23:41:04 +00:00