Commit Graph

38 Commits

Author SHA1 Message Date
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 4c63d48ebe Remiver compiler warnings on alpha.
CVS patchset: 3725
CVS date: 2000/05/12 23:12:15
2000-05-12 23:12:15 +00:00
jbj 3cbb3be045 - treat legacy falloc.c as "special" db[01] index for package headers.
CVS patchset: 3667
CVS date: 2000/04/11 16:15:54
2000-04-11 16:15:54 +00:00
jbj ca5882b322 Makefile.am: Add RPM-GPG-KEY to the package.
Use fdLink/fdFree for fd/scriptFd references in transaction set/availableList.
fprint.h: Permit (and check for) subDir = NULL in fingerPrints.
More lclint annotations.

CVS patchset: 3462
CVS date: 1999/12/07 21:14:51
1999-12-07 21:14:51 +00:00
jbj 8289346751 Add underscore in front of (possibly) non-supported FDIO_t vectors.
Make buildFileList() part of rpmlib API as rpmBuildFileList().
lib/rpmdb.c: Compare fingerprints from different caches by value.

CVS patchset: 3448
CVS date: 1999/12/01 19:57:17
1999-12-01 19:57:17 +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 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 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 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 568dceb42b Do lseek as part of readp/writep.
CVS patchset: 3378
CVS date: 1999/10/08 17:42:02
1999-10-08 17:42:02 +00:00
jbj 8ef4ebd133 Use xmalloc/xstrdup rather than malloc/strdup.
CVS patchset: 3377
CVS date: 1999/10/08 16:38:33
1999-10-08 16:38:33 +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 4cf669a6f5 lclint annotations.
CVS patchset: 3292
CVS date: 1999/09/17 21:26:00
1999-09-17 21:26:00 +00:00
jbj 795a39fe3f More informative message for "free list corrupt".
CVS patchset: 3212
CVS date: 1999/08/02 21:06:33
1999-08-02 21:06:33 +00:00
jbj 8bd997f2e0 Perl bindings need
#include <foo.h>
not
	#include "foo.h"

CVS patchset: 3143
CVS date: 1999/07/13 21:37:57
1999-07-13 21:37:57 +00:00
jbj 527e1bc4e0 fix: last update transaction set segfault bug in installer.
improved checks for statfs (Tim Mooney).
remove inconsistent use of __P((...)) throughout.
non-static inline functions caused IRIX cc pain.
CPIOERR_CHECK_ERRNO masking caused AIX cc warnings.

CVS patchset: 2993
CVS date: 1999/04/14 11:28:31
1999-04-14 11:28:31 +00:00
jbj 776dc9c258 change support@redhat.com to rpm-list@redhat.com.
CVS patchset: 2891
CVS date: 1999/03/14 00:34:52
1999-03-14 00:34:52 +00:00
ewt f3c66319d3 wasn't using fdClose() for some odd reason
CVS patchset: 2849
CVS date: 1999/03/05 01:17:21
1999-03-05 01:17:21 +00:00
jbj 2578b7fc84 implement abstract fd type almost everywhere.
CVS patchset: 2542
CVS date: 1998/11/18 21:41:05
1998-11-18 21:41:05 +00:00
jbj 28c4ae83a3 LCLINT pass 0.
CVS patchset: 2540
CVS date: 1998/11/16 21:40:28
1998-11-16 21:40:28 +00:00
jbj 1607fbe7a3 Consolidate i18n baggage into AM_GNU_GETTEXT and system.h.
CVS patchset: 2425
CVS date: 1998/10/08 14:59:17
1998-10-08 14:59:17 +00:00
jbj fd068345e6 add Slovak translation (Stanislav Meduna <stano@trillian.eunet.sk>)
gettextify rpmMessage/rpmError/fprintf messages.

CVS patchset: 2368
CVS date: 1998/09/27 22:03:52
1998-09-27 22:03:52 +00:00
jbj e4151252f8 Aggregate system includes into system.h.
Rearrange functions to minimize exported routines in librpmbuild API.
VS: ----------------------------------------------------------------------

CVS patchset: 2183
CVS date: 1998/07/25 21:00:26
1998-07-25 21:00:26 +00:00
ewt a5681a3d0c Minor cleanups.
CVS patchset: 1600
CVS date: 1997/05/07 14:56:06
1997-05-07 14:56:06 +00:00
ewt 364db20c19 1) made faNextOffset(), faFirstOffset() return signed ints
2) both return -1 on error
3) faNextOffset() detects loops and returns -1

CVS patchset: 1374
CVS date: 1997/01/29 17:39:11
1997-01-29 17:39:11 +00:00
ewt f255f857aa numerous bug fixes
CVS patchset: 451
CVS date: 1996/03/01 17:44:02
1996-03-01 17:44:02 +00:00
ewt 55134cf737 adds freed blocks to the free list
CVS patchset: 447
CVS date: 1996/03/01 03:28:55
1996-03-01 03:28:55 +00:00
ewt d46f2806ee marks free blocks, though faFree() still isn't quite right
CVS patchset: 335
CVS date: 1996/02/20 00:17:35
1996-02-20 00:17:35 +00:00
ewt c8c0165386 started rewrite to allow fragment collection, free space reclamation. It
isn't done yet though, and this version is pretty broken

CVS patchset: 318
CVS date: 1996/02/19 04:51:12
1996-02-19 04:51:12 +00:00
ewt e808a695a8 fixed traversal over freed spaces
CVS patchset: 146
CVS date: 1996/01/06 00:06:52
1996-01-06 00:06:52 +00:00
ewt 99a43e9240 began to add faFree(), though it doesn't work yet
CVS patchset: 135
CVS date: 1996/01/05 18:15:57
1996-01-05 18:15:57 +00:00
root c0ca0abdc7 fixed bug in faAlloc()
CVS patchset: 92
CVS date: 1995/12/27 17:04:12
1995-12-27 17:04:12 +00:00
ewt fcc49648fd Added routines for traversal
CVS patchset: 60
CVS date: 1995/12/19 16:17:39
1995-12-19 16:17:39 +00:00
ewt 75ab7b91d4 Initial revision
CVS patchset: 31
CVS date: 1995/12/13 20:13:49
1995-12-13 20:13:49 +00:00