Commit Graph

248 Commits

Author SHA1 Message Date
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 73f95c99ce Rename db0.c to db1.c, resurrect db2.c (from db3.c).
Add ia64 and sparc64 changes.
rpm.spec: add per-platform sub-directories.
Add rpmdbSync to API.
installplatform: pass LIB=lib64 on sparc64.
db3.c: Add nodbsync, lockdbfd, debug dbi configuration.
db3.c: don't check dbi_mode when deciding on DB_WRITECURSOR.

CVS patchset: 3711
CVS date: 2000/05/01 17:50:35
2000-05-01 17:50:35 +00:00
jbj 5197d92f13 Don't incrementally link pthreads, causes segfault on (at least) alpha.
db0.c: Simulate db->sync on falloc.
db0.c: Use RPMDBI_PACKAGES for rpmtag comparisons.
db0.c: Add debug for dbi open/close like db3.
db0.c: Remove dbi if temporary (i.e. Depends).
db3.c: Filter DB_INCOMPLETE from db->sync return, it's usually harmless.
depends.c: Free Depends iterator, pass keylen, and use cursors.
depends.c: Free iterator *after* loop, not at end of 1st pass.
rpmdb.c: Fine grained cursor locks to avoid "crossed cursors" deadlocks.
rpmdb.c: Lazy open/close during rpmdbAdd/rpmdbRemove/openDatabase.
rpmdb.c: Remove last remnants of dbix, do dynamic lookup instead.
rpmdb.c: Resurrect rpmdbUpdateRecord in iterator loop.
macros.in: Add Depends dbi to config.
macros.in: Configure "nommap:mp_size=2Mb:pagesize=16Kb".

CVS patchset: 3707
CVS date: 2000/04/28 15:14:47
2000-04-28 15:14:47 +00:00
jbj 9c0c7e9fbd Sanity.
CVS patchset: 3697
CVS date: 2000/04/25 19:41:37
2000-04-25 19:41:37 +00:00
jbj b5cadb90d6 make db indices as lightweight as possible, with per-dbi config.
db1.c will never be needed, eliminate.
API: merge rebuilddb.c into rpmdb.c.

CVS patchset: 3694
CVS date: 2000/04/23 20:37:57
2000-04-23 20:37:57 +00:00
jbj 588daae4b4 Consolidate changes into rpmdb.c.
CVS patchset: 3683
CVS date: 2000/04/18 18:11:43
2000-04-18 18:11:43 +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 353a2811a4 add db3 to the pile, isolate all with incremental link and vectors.
CVS patchset: 3643
CVS date: 2000/03/27 15:55:07
2000-03-27 15:55:07 +00:00
jbj 62381feb62 Compilation with db3.
CVS patchset: 3642
CVS date: 2000/03/27 11:13:25
2000-03-27 11:13:25 +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 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 a217056e70 Permit building w/o libbz2.a.
In popt, check for building within the rpm tree before requiring GNU gettext.

CVS patchset: 3595
CVS date: 2000/02/27 23:40:36
2000-02-27 23:40:36 +00:00
jbj 466f98a9fb Automake portability diddles.
CVS patchset: 3586
CVS date: 2000/02/24 22:28:31
2000-02-24 22:28:31 +00:00
jbj b325535ff1 split python bindings into a separate sub-package of rpm.
CVS patchset: 3497
CVS date: 1999/12/24 14:54:34
1999-12-24 14:54:34 +00:00
jbj db3213b057 lib/stubs.c: Add portability routines to rpmlib for portable shared rpmlib.
lib/rpmio.c: Internalize single use of inet_aton().
lib/rpmio.h: Include libio.h retrofit here rather than in system.h.
configure.in: Remove regex/glob tests.

CVS patchset: 3440
CVS date: 1999/11/27 00:15:07
1999-11-27 00:15:07 +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 aeab1e959d fix: typo in error message (#6858).
tufdio.c: Create.
rpmurl.h: Add ctrl, data, buf, and bufAlloced to urlinfo. UFDSANE assertion.
rpmio.h: Add fdWritable(), fdReadable(), fdRdline(), exported (for now) to
         ftp.c checkResponse().
ftp.c: checkResponse() rewritten to use above.
ftp.c: checkResponse() handles html in 501 response on closed http connection.
ftp.c: ftpCommand() rewritten to simplify (using stpcpy).
ftp.c: httpOpen() now reopens time-out persistent connection.
ftp.c: Get rid of O_NONBLOCK reads, not necessary AFAICT.
ftp.c: ftpFileDesc() uses u->data rather than passed in fd arg.
Use a consistent refcounting scheme to achieve persistent malloc and open ctrl.
query.c: get ready for Remglob().
rpmio.c: ftpCmd() functional (using tufdio).

CVS patchset: 3420
CVS date: 1999/11/09 20:57:38
1999-11-09 20:57:38 +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 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 907e305591 Build on solaris2.6 with gcc.
CVS patchset: 3362
CVS date: 1999/09/30 21:20:34
1999-09-30 21:20:34 +00:00
jbj c7a6121706 Search /usr/include before misc.
CVS patchset: 3335
CVS date: 1999/09/26 23:44:36
1999-09-26 23:44:36 +00:00
jbj bc0955ad3c Solaris compilation.
CVS patchset: 3332
CVS date: 1999/09/26 17:28:00
1999-09-26 17:28:00 +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 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 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 56496ce088 Quick 'n dirty macro evaluation.
CVS patchset: 3120
CVS date: 1999/07/02 20:56:04
1999-07-02 20:56:04 +00:00
jbj ae5b56fa00 move url.c and ftp.c to rpmlib right next to query.
CVS patchset: 3115
CVS date: 1999/06/30 19:02:46
1999-06-30 19:02:46 +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 0cf9b0bdfe fix: % before non-alphabetic non-macro special now passed unscathed.
CVS patchset: 3023
CVS date: 1999/04/20 19:17:23
1999-04-20 19:17:23 +00:00
jbj e9e7a32d24 Add popt to include path.
CVS patchset: 2975
CVS date: 1999/04/09 14:15:28
1999-04-09 14:15:28 +00:00
jbj 5bb717be19 make '-' character illegal (again) in version/release.
Use auto-standard names for auto-package components.

CVS patchset: 2753
CVS date: 1999/01/26 18:08:14
1999-01-26 18:08:14 +00:00
jbj b3ff088a22 Use libtool to build libraries, but force --disable-shared for now.
CVS patchset: 2745
CVS date: 1999/01/22 18:42:31
1999-01-22 18:42:31 +00:00
jbj 4bcd4d620d Automake: almost functional make dist.
CVS patchset: 2729
CVS date: 1999/01/21 18:42:53
1999-01-21 18:42:53 +00:00
jbj 394f3cb1dd Eliminate Makefile.inc dependence in subdirs.
Change "Bad header" to "Bad/unreadable header" for most common cpio failure.

CVS patchset: 2728
CVS date: 1999/01/21 17:18:38
1999-01-21 17:18:38 +00:00
jbj 459dc6ef3e create rpmbzio.c to avoid implicit dependence on libbz2 for installer.
CVS patchset: 2727
CVS date: 1999/01/19 23:59:28
1999-01-19 23:59:28 +00:00
jbj 903b747e02 Released rpm-2.90 -- version is now 2.91
Use automake 1.4 and autoconf 2.13.

CVS patchset: 2726
CVS date: 1999/01/19 23:54:30
1999-01-19 23:54:30 +00:00
ewt 1319828529 added simple fingerprinting
CVS patchset: 2612
CVS date: 1998/12/26 17:12:50
1998-12-26 17:12:50 +00:00
ewt 29edbba1a8 1) initial cut at hash tables
2) initial cut at file list handling during transaction processing

CVS patchset: 2611
CVS date: 1998/12/26 16:33:51
1998-12-26 16:33:51 +00:00
ewt 10d3b6d5b6 first pass at new transaction api; basic installing/removing works
fine but I wouldn't push it much harder then that

CVS patchset: 2603
CVS date: 1998/12/16 21:58:53
1998-12-16 21:58:53 +00:00
jbj 80693fe2ce Move inlines to rpmio.c.
rpmio.h needs necessary includes.

CVS patchset: 2594
CVS date: 1998/12/10 20:56:01
1998-12-10 20:56:01 +00:00
jbj 4551a1256f Clean up on files.c.
CVS patchset: 2555
CVS date: 1998/11/24 19:30:38
1998-11-24 19:30:38 +00:00
jbj a15a36abd1 Sanity.
CVS patchset: 2551
CVS date: 1998/11/20 20:18:22
1998-11-20 20:18:22 +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
ewt 62efcbd3fc 1) split query option parsing into popt subtables
2) moved query code into rpmlib

CVS patchset: 2502
CVS date: 1998/10/27 05:41:02
1998-10-27 05:41:02 +00:00
jbj df9b72c229 permit rpm to be built in a sub-directory (--srcdir=DIR).
CVS patchset: 2441
CVS date: 1998/10/11 15:19:55
1998-10-11 15:19:55 +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 1516f1d56c configure using automake.
CVS patchset: 2418
CVS date: 1998/10/08 10:40:27
1998-10-08 10:40:27 +00:00