Commit Graph

71 Commits

Author SHA1 Message Date
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 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 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 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 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 c3835f5ca0 - fix: specfile queries with BuildArch: (#27589).
CVS patchset: 4746
CVS date: 2001/05/06 19:17:14
2001-05-06 19:17:14 +00:00
jbj d78e027808 - still more boring lclint annotations and fiddles.
CVS patchset: 4738
CVS date: 2001/05/03 21:00:18
2001-05-03 21:00:18 +00:00
jbj fc920e3ac3 Update to doxygen-1.2.6 configuration.
Add manual files to Doxfile.in.
lclint annotations.

CVS patchset: 4624
CVS date: 2001/03/14 23:09:09
2001-03-14 23:09:09 +00:00
jbj eccb6f66fc Reorganize sources before implementing --repackage.
CVS patchset: 4543
CVS date: 2001/02/10 16:47:40
2001-02-10 16:47:40 +00:00
jbj d07437babb - cpio mappings carry dirname/basename, not absolute path.
CVS patchset: 4474
CVS date: 2001/01/21 15:43:32
2001-01-21 15:43:32 +00:00
jbj c74cc1df1c - fix: extra newline in many error messages (#23947).
- fix: rpm -Va with db1 needs per-iterator, not per-index, offset.
- add install/remove transaction id tags.

CVS patchset: 4441
CVS date: 2001/01/15 23:09:42
2001-01-15 23:09:42 +00:00
jbj fa3e119a83 - use popt autohelp for rpm helper binaries.
CVS patchset: 4396
CVS date: 2001/01/01 23:14:47
2001-01-01 23:14:47 +00:00
jbj db32ab6bea Sync with rpm-4_0 branch.
CVS patchset: 4338
CVS date: 2000/12/12 20:03:45
2000-12-12 20:03:45 +00:00
jbj 2885f536b6 Bring header reggions mods back to top of stack.
CVS patchset: 4305
CVS date: 2000/12/02 21:53:44
2000-12-02 21:53:44 +00:00
jbj f2efc7263e - unify rpmError and rpmMessge interfaces through rpmlog.
- collect and display rpm build error messages at end of build.

CVS patchset: 4149
CVS date: 2000/09/01 21:15:40
2000-09-01 21:15:40 +00:00
jbj d83648fc60 Rip out rpmrc configuration.
CVS patchset: 4134
CVS date: 2000/08/27 19:43:51
2000-08-27 19:43:51 +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 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 f4606533e4 fix: move free after error message that needs data.
CVS patchset: 3644
CVS date: 2000/03/30 19:21:09
2000-03-30 19:21:09 +00:00
jbj 4e095c79a7 Args reversed generating untar command.
CVS patchset: 3535
CVS date: 2000/01/24 22:03:52
2000-01-24 22:03:52 +00:00
jbj ddaf379281 Typo.
CVS patchset: 3521
CVS date: 2000/01/17 14:03:44
2000-01-17 14:03:44 +00:00
jbj 96c29a1ac7 extract spec files from bzip'ped tarballs too on tar builds.
CVS patchset: 3520
CVS date: 2000/01/15 14:17:07
2000-01-15 14:17:07 +00:00
jbj e6c1c88e7c Typo (t->num rather than tnum causes segfault while re-reading rpmrc on exit).
CVS patchset: 3491
CVS date: 1999/12/19 18:59:46
1999-12-19 18:59:46 +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 4221ce1aa1 lib/macro.c: Canonicalize paths in rpmGetPath().
build.c: ditto.
build/build.c: ditto.
build/files.c: ditto.
build/parsePreamble.c: ditto.
build/parseSpec.c: ditto.
build/myftw.c: Use Opendir/Readdir/Closedir wrappers.
lib/cpio.c: Use Readlink/Stat/Lstat wrappers while building archive.
lib/rpmio.c: functional ftpLstat, ftpStat and ftpReadlink.

CVS patchset: 3432
CVS date: 1999/11/24 00:03:54
1999-11-24 00:03:54 +00:00
jbj 1f6614e61e The death of lib/ftp.c, merged into lib/rpmio.c.
Start composting the rpmio API.
Preliminary (not working) support for HTTP PUT.
build.c: Check fd for NULL and use Ferror() for Fopen return.
build/parseSpec.c: ditto
build/pack.c: Use fdGetFP() rather than fpio->ffileno().
build/parseSpec.c: ditto
build/pack.c: Use Stat/Mkdir wrappers.
build/pack.c: Do Fflush before fdDup so that writes can remain buffered.
lib/install.c: ditto
build/parsePrep.c: Skip over URL leadin when writing %prep scriptlet.
lib/misc.c: Rewrite to use simpler urlPath(). Restore checks on local fs.
lib/rpmchecksig.c: Open with "r+" rather than "w" to avoid truncation.
lib/url.c: Do lazy malloc of u->buf in rpmio.c checkResponse().
lib/rpmio.c: Make persist/contentLength per-fd rather than per-url.
lib/rpmio.c: Add wr_chunked method for HTTP PUT (still broken).
lib/rpmio.c: ftpAbort() should use timedRead.
lib/rpmio.c: Add Fflush().
lib/url.c: urlPath() should return something ("/") on url = NULL (paranoia).
lib/url.c: urlSplit() should return something ("/") on url w/o path.

CVS patchset: 3429
CVS date: 1999/11/18 18:07:46
1999-11-18 18:07:46 +00:00
jbj e0b1d0be36 Swap 2nd and 3rd arg to Fread/Fwrite to preserve read/write type return.
Use Fstrerror to retrieve fd->syserrno.
Make ftpFileDoneNeeded per-fd rather than per-url.
Make data fd unique rather than per-url.
Use appropriate protocol commands for ufdio writing.

CVS patchset: 3421
CVS date: 1999/11/10 22:09:49
1999-11-10 22:09:49 +00:00
jbj 3363604c70 Use Fopen almost everywhere.
Rip out --enable-bzip2-payload, we'll use Fopen w macros instead.
Work out ref counting for ftpControl so that control channel is persistent.
build/build.c: Use fpio to write build stage script.
parseSpec.c: Rework include stack to use FD_t, not FILE *.
tread.c: Delete, use ufdio->read instead.
rpmio.c: Filter out fdio fd == NULL assertion failures.
rpmrc.c: Don't fail if HOME is not environment.
rpmrc.c: Rework ufdio FTP rcfile I/O to be more similar to stdio.

CVS patchset: 3417
CVS date: 1999/11/04 21:26:08
1999-11-04 21:26:08 +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 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 ff642c3a5e HPUX cc compiler fidgets.
CVS patchset: 3355
CVS date: 1999/09/30 16:56:05
1999-09-30 16:56:05 +00:00
jbj 5b7c1963eb Access fd_fileno correctly.
CVS patchset: 3354
CVS date: 1999/09/30 16:11:52
1999-09-30 16:11:52 +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 e5a77f761f fix: sanity test on specfile fails when encountering i18n chars.
CVS patchset: 3198
CVS date: 1999/07/22 19:38:25
1999-07-22 19:38:25 +00:00
jbj 3e2edc5422 add BuildConflicts: and BuildRequires: in spec file and src rpm.
CVS patchset: 3079
CVS date: 1999/05/26 04:05:33
1999-05-26 04:05:33 +00:00
jbj ab46aedd86 resurrect toplevel tar target.
spec file removal separate from source removal (Shing-Gene Yung).

CVS patchset: 3042
CVS date: 1999/04/30 15:55:45
1999-04-30 15:55:45 +00:00
jbj b72b138ea5 Update-po before new RU files.
CVS patchset: 3035
CVS date: 1999/04/28 14:12:55
1999-04-28 14:12:55 +00:00
jbj ba617e479d check build prerequisites before building from specfile.
CVS patchset: 3010
CVS date: 1999/04/17 14:23:42
1999-04-17 14:23:42 +00:00
jbj f98ec6d75d permit 0x1b in specfile sanity check.
CVS patchset: 2945
CVS date: 1999/04/05 15:23:37
1999-04-05 15:23:37 +00:00
jbj 6266b08a66 add per-target macrofiles to search path.
take globalMacroContext out of macro api.
fix: flush all macros between builds.

CVS patchset: 2936
CVS date: 1999/04/01 22:26:44
1999-04-01 22:26:44 +00:00
jbj e444149fe3 Typos.
CVS patchset: 2896
CVS date: 1999/03/17 20:01:09
1999-03-17 20:01:09 +00:00
jbj d84c548c0b fix: recursive strtok's is a no-no.
CVS patchset: 2894
CVS date: 1999/03/17 18:11:01
1999-03-17 18:11:01 +00:00
jbj 291f407baa Needed trailing / when expanding specdir.
CVS patchset: 2766
CVS date: 1999/01/27 15:40:06
1999-01-27 15:40:06 +00:00
jbj d2afcd0260 Use mktemp(3) for temp file names.
CVS patchset: 2697
CVS date: 1999/01/13 19:28:12
1999-01-13 19:28:12 +00:00
jbj bd626d134d propagate "const char *" into rpmlib prototypes.
CVS patchset: 2663
CVS date: 1999/01/06 17:33:50
1999-01-06 17:33:50 +00:00