summaryrefslogtreecommitdiff
path: root/macros.in
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-05-02 08:30:31 +0000
committerjbj <devnull@localhost>2000-05-02 08:30:31 +0000
commitc19f4c1c317aab49e57f2f9c81b4c031e99f0734 (patch)
tree4c38b713696d6607bd04891c00cf7752a054e5e8 /macros.in
parent73f95c99cea1308e32ccdbfe90dcc8ccd585d9d6 (diff)
downloadrpm-c19f4c1c317aab49e57f2f9c81b4c031e99f0734.tar.gz
rpm-c19f4c1c317aab49e57f2f9c81b4c031e99f0734.tar.bz2
rpm-c19f4c1c317aab49e57f2f9c81b4c031e99f0734.zip
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
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in39
1 files changed, 7 insertions, 32 deletions
diff --git a/macros.in b/macros.in
index 8f5b90d99..f95880623 100644
--- a/macros.in
+++ b/macros.in
@@ -1,4 +1,4 @@
-# $Id: macros.in,v 1.56 2000/05/01 17:50:35 jbj Exp $
+# $Id: macros.in,v 1.57 2000/05/02 08:30:31 jbj Exp $
#==============================================================================
# Macro naming conventions (preliminary):
#
@@ -213,63 +213,38 @@
# -1 db3 -> db2 -> db1 (as available).
#
# There are two macros so that --rebuilddb can convert db1 -> db3
-%_dbapi 1
+%_dbapi -1
%_dbapi_rebuild 3
#
# token Berkeley db flag or value
# =================================================
-# recover DB_RECOVER
-# recover_fatal DB_RECOVER_FATAL
-# create DB_CREATE
-# lockdown DB_LOCKDOWN
-# cdb DB_INIT_CDB
-# lock DB_INIT_LOCK
-# log DB_INIT_LOG
-# mpool DB_INIT_MPOOL
-# txn DB_INIT_TXN
-# nommap DB_NOMMAP
-# private DB_PRIVATE
-# shared DB_SYSTEM_MEM
-# thread DB_THREAD
-# txn_nosync DB_TXN_NOSYNC
# hash DB_HASH
#
-# See http://www.sleepycat.com for Berkeley db-3.0.55 configuration.
-#
-# The (intended) default value for rpm-3.1 on Red Hat Linux is
-# db3:hash:mpool:cdb:usecursors:mp_mmapsize=8Mb:mp_size=8Mb:pagesize=512
+# See http://www.sleepycat.com for Berkeley db-3.0.55 documentation.
#
# Additional rpm specific configuration:
# usecursors Should DB3 cursors be used in get/put/del ?
+# lockdbfd Should the file be locked using fcntl shared/exclusive locks?
#
-%__dbi_major db%{_dbapi}
%__dbi_type hash
-%__dbi_flags mpool:cdb
%__dbi_other usecursors
-%__dbi_verbose verbose
-%__dbi_mp_mmapsize mp_mmapsize=16Mb
-%__dbi_mp_size mp_size=512Kb
-%__dbi_pagesize pagesize=512
%__dbi_perms perms=0644
# This is a colon (or white space) separated list of tokens for Berkeley
# dbi configuration.
%_dbi_config \
- %{__dbi_major}\
%{__dbi_type}\
- %{__dbi_flags}\
%{__dbi_other}\
- %{__dbi_verbose}\
- %{__dbi_mp_mmapsize}\
- %{__dbi_mp_size}\
- %{__dbi_pagesize}\
%{__dbi_perms}\
%{nil}
# The list of tags for which indices will be built.
%_dbi_indices Packages:Name:Basenames:Group:Requirename:Providename:Conflictname:Triggername:Depends
+# "Packages" needs fcntl shared/exclusive lock.
+%_dbi_config_Packages %{_dbi_config}:lockdbfd
+
# "Depends" is a per-transaction cache of known dependency resolutions.
%_dbi_config_Depends %{_dbi_config}:temporary