Panu Matilainen
90e10708f8
Fixup paths and Makefiles for rpmdb/ elimination
2008-05-12 12:28:12 +03:00
Panu Matilainen
a68a5a049e
Start (re-)joining librpmdb and librpm
...
- the split is largely arbitrary and mostly just causes, well, arbitrary
issues and limitations
- just move content from rpmdb/ to lib/ for now
2008-05-12 12:17:01 +03:00
jbj
9c636fed5b
- create rpmdb.la so that linkage against rpm's db-3.2.9 is possible.
...
CVS patchset: 4752
CVS date: 2001/05/08 00:03:14
2001-05-08 00:03:14 +00:00
jbj
8f75bbc17d
- enough lclint annotations and fiddles already.
...
CVS patchset: 4741
CVS date: 2001/05/05 19:28:32
2001-05-05 19:28:32 +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
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
f75a3f71ab
Doxygen annotations for config files.
...
Doxygen annotations for rpmdep section.
Add manifests for install modes.
CVS patchset: 4675
CVS date: 2001/04/10 12:36:45
2001-04-10 12:36:45 +00:00
jbj
8f99e61fc7
Merge changes from rpm-4.0.2.
...
Add iterators and reverse flag so that erase transactions can run backwards.
CVS patchset: 4556
CVS date: 2001/02/17 17:53:21
2001-02-17 17:53:21 +00:00
jbj
c825d02369
lclint annotations.
...
CVS patchset: 4500
CVS date: 2001/01/26 17:06:09
2001-01-26 17:06:09 +00:00
jbj
3ad99fcba5
- add cscope/ctags (Rodrigo Barbosa<rodrigob@conectiva.com.br>).
...
- remove getMacroBody() from rpmio API.
- hide libio lossage in prototype, not API.
lclint annotations.
CVS patchset: 4230
CVS date: 2000/10/28 17:16:25
2000-10-28 17:16:25 +00:00
jbj
c7b24dad58
- translate rpm.8 man page (Peter Ivanyi <ivanyi@internet.sk>).
...
Doxygen annotations.
CVS patchset: 4146
CVS date: 2000/08/29 22:04:33
2000-08-29 22:04:33 +00:00
jbj
f8b364d7a8
Doxygen annotations.
...
CVS patchset: 4132
CVS date: 2000/08/27 19:27:03
2000-08-27 19:27:03 +00:00
jbj
5f308b88fd
doxygen/lclint annotations.
...
CVS patchset: 4106
CVS date: 2000/08/23 13:05:01
2000-08-23 13:05:01 +00:00
jbj
625d765b6e
lclint fiddles.
...
avoid pathological buffer overflow in lib/rpmrc.c
CVS patchset: 3922
CVS date: 2000/07/07 20:06:41
2000-07-07 20:06:41 +00:00
jbj
99e915cbab
fix: open all db indices before performing chroot.
...
CVS patchset: 3868
CVS date: 2000/06/19 11:35:29
2000-06-19 11:35:29 +00:00
jbj
1d0544854e
Don't use BSDish typedefs.
...
CVS patchset: 3832
CVS date: 2000/06/12 22:12:28
2000-06-12 22:12:28 +00:00
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
764e820f16
Repair rebuilddb lossage, removing debug messages and final copy on user msgs.
...
Initialize dbN vector from dbNopen.
Use db3 return convention for dbNopen.
Always save tag index in join key.
Rename rpmdbAppendIteratorMatches -> rpmdbAppendIterator.
Remove tolerant from rpmdbRemove API.
Use hdrNum rather than offset, tagNum rather than fileNumber most everywhere.
rpmdb.c: Create rpmdbPruneIterator to exclude items from set.
rpmdb.c: Remove legacy code from rpmdbAdd/rpmdbRemove.
rpmdb.c: Rename (shorten) many routines.
tagName.c: prepare for ADDED/REMOVED/AVAILABLE temorary databases.
depends.c: use rpmdbPruneIterator.
depends.c: don't check ranges unless provides names match.
depends.c: Depends now works (watch out for data values of 0).
rpmpopt.in: Add --dbapi and --rebuilddbapi options.
CVS patchset: 3720
CVS date: 2000/05/07 00:53:11
2000-05-07 00:53:11 +00:00
jbj
c19f4c1c31
Add usedbenv (disabled) to use db3 as db1 was used.
...
Configure to accept any db api (but rebuild will switch to db3).
Rename *_major to *_api throughout.
Always open Depends with O_CREAT|O_RDWR.
db1.c: use good ol' requredby.rpm name, not requiredbyindex.rpm.
db1.c: hide pkgs FD_t in dbi_db, eliminate dbi_pkgs.
depends.c: Skip Depends caching on dbiPut failure (e.g. perms).
rpmdb.c: remove _useDbiMajor, pass dbapi on call.
rpmdb.c: repair rot in rpmdbRemoveDatabase()/rpmdbMoveDatabase().
rpmdb.c: disable ^C hack in signal block/unblock.
CVS patchset: 3712
CVS date: 2000/05/02 08:30:31
2000-05-02 08:30:31 +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
113948c75c
Sanity and API clean up. (make dist)
...
CVS patchset: 3705
CVS date: 2000/04/27 01:11:48
2000-04-27 01:11:48 +00:00
jbj
24a64f2739
- API: replace rpmdbUpdateRecord with rpmdbRemove/rpmdbAdd.
...
- API: replace rpmdbFindByLabel with RPMDBI_LABEL iteration.
- API: replace rpmdbGetRecord with iterators.
- API: replace findMatches with iterators.
CVS patchset: 3704
CVS date: 2000/04/27 00:10:28
2000-04-27 00:10:28 +00:00
jbj
b24f837828
Rip out remaining legacy dbi interfaces.
...
Add flags to all calls.
Create dbi interface wrapper to vectors.
CVS patchset: 3701
CVS date: 2000/04/26 14:06:16
2000-04-26 14:06:16 +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
f75d794af4
Change iterator interface to use RPMTAG_FOO rather than RPMDBI_FOO.
...
CVS patchset: 3687
CVS date: 2000/04/19 22:15:02
2000-04-19 22:15:02 +00:00
jbj
bb4eafd53d
Data size of index databases now per-index (was always 8 bytes).
...
Global rpm data base parameterization used per-index.
CVS patchset: 3684
CVS date: 2000/04/19 15:26:10
2000-04-19 15:26:10 +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
eb75d9280b
use "rpmdb db" consistently throughout, add doxygen tags.
...
db3.c: save join keys in endian neutral binary format.
rpmdb.c: create rpmdbCountPackages().
install.c: use rpmdbCountPackages().
uninstall.c: Ditto.
CVS patchset: 3662
CVS date: 2000/04/07 16:09:25
2000-04-07 16:09:25 +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
0a816b4cb5
add perms to openDatabase() call.
...
CVS patchset: 3300
CVS date: 1999/09/17 22:10:39
1999-09-17 22:10:39 +00:00
jbj
f005d4c15c
Fiddles to resurrect lclint.
...
CVS patchset: 3281
CVS date: 1999/09/12 20:43:23
1999-09-12 20:43:23 +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
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
ewt
a771d1a7a8
added rpmdbFindFpList
...
CVS patchset: 2628
CVS date: 1998/12/30 23:01:11
1998-12-30 23:01:11 +00:00
ewt
d12d3e8eea
1) let you pass the db type per-index
...
2) during rebuild, just open packages.rpm, not the indexes
CVS patchset: 2579
CVS date: 1998/12/03 14:47:55
1998-12-03 14:47:55 +00:00
jbj
dc7ee4090d
finish hiding rpmdb index record data ("matches").
...
CVS patchset: 2543
CVS date: 1998/11/19 18:10:28
1998-11-19 18:10:28 +00:00
jbj
9acba0bddd
Add multiple include avoidance and c++ prototype wrapping throughout *.h.
...
Delete trailing white space in *.h.
CVS patchset: 2181
CVS date: 1998/07/25 15:10:58
1998-07-25 15:10:58 +00:00
ewt
da0ef2e35e
Initial revision
...
CVS patchset: 1020
CVS date: 1996/09/16 22:28:47
1996-09-16 22:28:47 +00:00