Commit Graph

100 Commits

Author SHA1 Message Date
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 0ecdbba935 - yet more boring lclint annotations and fiddles.
CVS patchset: 4732
CVS date: 2001/04/30 22:32:22
2001-04-30 22:32:22 +00:00
jbj 3b5820c420 - globalize _free(3) wrapper in rpmlib.h, consistent usage throughout.
- internalize locale insensitive ctype(3) in rpmio.h
- boring lclint annotations and fiddles.

CVS patchset: 4721
CVS date: 2001/04/29 01:05:43
2001-04-29 01:05:43 +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 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 2e13767946 doxygen annotations for build/*.
- fix: don't hang on build error.
- fix: remove "error: " prefix from signature verification message.

CVS patchset: 4426
CVS date: 2001/01/11 14:13:04
2001-01-11 14:13:04 +00:00
jbj 23fcf67cb5 - fix: avoid locale issues with strcasecmp/strncasecmp (#23199).
- remove almost all explicit uses of stderr in rpmlib using rpmError().

CVS patchset: 4406
CVS date: 2001/01/03 20:19:27
2001-01-03 20:19:27 +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 44e5913dae - fine-grained Requires, remove install PreReq's from Requires db.
CVS patchset: 4258
CVS date: 2000/11/12 11:11:49
2000-11-12 11:11:49 +00:00
jbj 679aca04c8 Doxygen annotations.
CVS patchset: 4147
CVS date: 2000/08/30 17:47:53
2000-08-30 17:47:53 +00:00
jbj a131131381 Doxygen annotations.
CVS patchset: 4130
CVS date: 2000/08/27 19:18:25
2000-08-27 19:18:25 +00:00
jbj 77ea46f6a0 - rip out pre-transaction syscalls, more design is needed.
- display rpmlib provides when invoked with --showrc.
- remove (dead) dependency checks on implicitly provided package names.
- remove (dead) rpmdb API code in python bindings.
- remove (legacy) support for version 1 packaging.
- remove (legacy) support for converting gdbm databases.

CVS patchset: 3950
CVS date: 2000/07/15 14:53:54
2000-07-15 14:53:54 +00:00
jbj 17706c9d5a Typo.
CVS patchset: 3948
CVS date: 2000/07/14 16:53:19
2000-07-14 16:53:19 +00:00
jbj 7344a12725 - remove build mode help from rpm.c, use rpmb instead.
- support for rpmlib(...) internal feature dependencies.

CVS patchset: 3933
CVS date: 2000/07/11 02:12:49
2000-07-11 02:12:49 +00:00
jbj db3190176b - prefix payload paths with "./", otherwise "/" can't be represented.
- fix: compressFilelist broke when fed '/'.
- fix: typo in --last popt alias (#12690).
- fix: clean file paths before performing -qf (#12493).

CVS patchset: 3930
CVS date: 2000/07/09 23:10:25
2000-07-09 23:10:25 +00:00
jbj 913d116d71 - add pre-transaction syscall's to handle /etc/init.d change.
- don't bother saving '/' as fingerprint subdir.

CVS patchset: 3926
CVS date: 2000/07/09 04:42:12
2000-07-09 04:42:12 +00:00
jbj a463744b6d - change optflags for i386.
- multilib patch, take 1.

CVS patchset: 3920
CVS date: 2000/07/05 20:39:15
2000-07-05 20:39:15 +00:00
jbj 18a1a352b4 - add RPMTAG_OPTFLAGS, configured optflags when package was built.
- add RPMTAG_DISTURL for rpmfind-like tools (content unknown yet).
- teach brp-compress about /usr/info and /usr/share/info as well.
- update macros.in from rpm-4.0 (w/o dbi configuration).

CVS patchset: 3878
CVS date: 2000/06/20 21:45:50
2000-06-20 21:45:50 +00:00
jbj 4272f490ca - API: uncouple fadio from rest of rpmio.
- API: externalize legacy fdOpen interface for rpmfind et al.

CVS patchset: 3873
CVS date: 2000/06/20 15:54:48
2000-06-20 15:54:48 +00:00
jbj c38a7cdcfb Move low level support routines to librpmio.
CVS patchset: 3822
CVS date: 2000/06/09 18:57:23
2000-06-09 18:57:23 +00:00
jbj 48e8650520 The death of rpmdbFindBy{Group,TriggeredBy,Header}.
CVS patchset: 3673
CVS date: 2000/04/13 09:07:08
2000-04-13 09:07:08 +00:00
jbj cab176172b - API: change dbi to pass by reference, not value.
- cram all of db1, db_185, and db2 interfaces into rpmlib.

CVS patchset: 3636
CVS date: 2000/03/23 15:49:50
2000-03-23 15:49:50 +00:00
jbj dd35cf769b Documentation sugar.
CVS patchset: 3533
CVS date: 2000/01/24 20:02:32
2000-01-24 20:02:32 +00:00
jbj 6e704014b7 Initialize values behind pointers before calling rpmGet{Arch,Os}Info.
Sanity (make dist).

CVS patchset: 3492
CVS date: 1999/12/19 19:55:14
1999-12-19 19:55:14 +00:00
jbj 4d26dfa475 Minimal python compile.
CVS patchset: 3439
CVS date: 1999/11/26 22:31:19
1999-11-26 22:31:19 +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 c6d768583e macros.in: Add buildsubdir and scriptlet template macros.
build/build.c: Rewrite to use scriptlet templates.
build/files.c: Rename variables to prepare for (possibly) URL's in %files.
build/myftw.c: Use Lstat.
build/parsePreamble.c: Permit URL's in BuildRoot tag if not from spec file.
build/parseSpec.c: ditto
build/parsePrep.c: Add buildsubdir macro.
lib/macro.c: Add url2path (nickname u2p) and verbose macro primitives.
lib/url.c: urlPath returns "" if url is NULL (rpmGenPath memory corruption).

CVS patchset: 3430
CVS date: 1999/11/19 18:19:41
1999-11-19 18:19:41 +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 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 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 3ae84a6867 lclint annotations.
CVS patchset: 3390
CVS date: 1999/10/21 15:04:25
1999-10-21 15:04:25 +00:00
jbj cabcec3626 lclint annotations from build.
CVS patchset: 3366
CVS date: 1999/10/04 19:40:03
1999-10-04 19:40:03 +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 6bdf51d7f3 Start experimental support for bzip2 payloads.
CVS patchset: 3309
CVS date: 1999/09/20 13:34:47
1999-09-20 13:34:47 +00:00
jbj 6281ee4de1 Use sizeof("...")-1 throughout.
CVS patchset: 3268
CVS date: 1999/09/07 22:49:45
1999-09-07 22:49:45 +00:00
jbj e04da27415 Remove legacy langNum interface.l
CVS patchset: 3249
CVS date: 1999/08/24 14:10:58
1999-08-24 14:10:58 +00:00
jbj 0f7a33ebf8 add versions to provides.
CVS patchset: 3196
CVS date: 1999/07/22 17:48:31
1999-07-22 17:48:31 +00:00
jbj 8bc8f024e6 Finesse tagName dependency loop.
CVS patchset: 3108
CVS date: 1999/06/23 21:01:38
1999-06-23 21:01:38 +00:00
jbj a5697afafd don't spin while waiting for delayed requires/provides input (#3289).
common parse for all dependency token syntax.

CVS patchset: 3094
CVS date: 1999/06/17 15:44:47
1999-06-17 15:44:47 +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 89e28f78e8 Make silly headerGetEntry consistent throughout.
CVS patchset: 2995
CVS date: 1999/04/14 12:35:08
1999-04-14 12:35:08 +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