Commit Graph

89 Commits

Author SHA1 Message Date
jbj 38edc49452 - close/discard Depends index after rpmdepCheck() use.
CVS patchset: 5049
CVS date: 2001/09/15 21:21:31
2001-09-15 21:21:31 +00:00
jbj da9b21485c Sync with rpm-4_0 branch.
CVS patchset: 5048
CVS date: 2001/09/15 13:49:11
2001-09-15 13:49:11 +00:00
jbj 1a5a027bcc - add support for mips (#49283).
- add __as, _build_arch, and __cxx macros (#36662, #36663, #49280).
- detailed build package error messages.

CVS patchset: 4996
CVS date: 2001/07/31 18:13:22
2001-07-31 18:13:22 +00:00
jbj c6fba63aca - fix: --noscripts is another multimode option.
- add tmpdir to configure db3 tmpdir into chroot tree.
- permit lazy db opens within chroot.
- fix: diddle dbenv path to accomodate backing store reopen in chroot.

CVS patchset: 4990
CVS date: 2001/07/28 00:33:07
2001-07-28 00:33:07 +00:00
jbj 77d49ea5a2 - isolate cdb access configuration (experimental, use at your own risk).
- fix: hard fail on locked dbopen if CDB locking not in use.
- fix: dbconfig with mp_mmapsize=16Mb/mp_size=1Mb for
  "everything ENOSPC" failure check.

CVS patchset: 4942
CVS date: 2001/07/14 20:09:56
2001-07-14 20:09:56 +00:00
jbj e15b4593eb - package version now configureable, default v3.
- rename rpm libraries to have version with libtool -release.
- fix: -i CLI context broken Yet Again.

CVS patchset: 4930
CVS date: 2001/07/10 17:59:11
2001-07-10 17:59:11 +00:00
jbj f40a045acb - add %{_gnu} macro to append "-gnu" to %{_target_platform} to
support --target/--host flavored %configure. Legacy behavior
  available by undefining %{_gnu}.

CVS patchset: 4899
CVS date: 2001/06/21 03:51:34
2001-06-21 03:51:34 +00:00
jbj 29ea1567e7 Sync with rpm-4_0 branch.
CVS patchset: 4876
CVS date: 2001/06/17 22:18:03
2001-06-17 22:18:03 +00:00
jbj c0ef3c810f - linux.req needs exit 0
CVS patchset: 4868
CVS date: 2001/06/15 21:52:47
2001-06-15 21:52:47 +00:00
jbj f0d2abd2bc - fix: db1 end-of-file not detected in legacy compatible way.
- fix: remove (harmless) chown error message from %post.
- add --target/--host to %configure, add example cross-build/config.site
  scripts to /usr/lib/rpm <arjanv@redhat.com> (#44581).
- rpmdb iterator selectors permit default/strcmp/regex/glob matching.
- rpmdb iterator selectors permit negative matches.

CVS patchset: 4861
CVS date: 2001/06/15 04:56:33
2001-06-15 04:56:33 +00:00
jbj 7bf9296288 - default to dbenv with mpool, --rebuilddb with nofsync is much faster.
CVS patchset: 4849
CVS date: 2001/06/06 19:57:12
2001-06-06 19:57:12 +00:00
jbj e6c22123bc - perform db->verify when closing db files.
CVS patchset: 4813
CVS date: 2001/05/25 19:51:53
2001-05-25 19:51:53 +00:00
jbj 3c563d2118 - upgrade to db-3.3.4.
CVS patchset: 4787
CVS date: 2001/05/14 20:12:10
2001-05-14 20:12:10 +00:00
jbj 87c15895a0 - add cron/logrotate scripts to save installed package filenames.
CVS patchset: 4777
CVS date: 2001/05/13 17:55:58
2001-05-13 17:55:58 +00:00
jbj d026618b6b - rpm executables now setuid rpm to share write locks.
- expose more db3 macro configuration tokens.

CVS patchset: 4756
CVS date: 2001/05/09 22:58:56
2001-05-09 22:58:56 +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 63890e6a4a Doco updates.
CVS patchset: 4641
CVS date: 2001/03/17 19:55:09
2001-03-17 19:55:09 +00:00
jbj a77bec0d7e - Add btree indexes for Dirnames, Requireversion, Provideversion, Insttaltid,
and Removetid.
- Add per-script and per-trigger control options and flags.
- Add --apply option and flags.

CVS patchset: 4605
CVS date: 2001/03/04 15:34:53
2001-03-04 15:34:53 +00:00
jbj 2be9ecf0eb 1st stab at --repackage.
CVS patchset: 4545
CVS date: 2001/02/11 22:02:29
2001-02-11 22:02:29 +00:00
jbj 0d5ea21985 Sync with rpm-4_0 branch.
CVS patchset: 4315
CVS date: 2000/12/04 00:55:17
2000-12-04 00:55:17 +00:00
jbj 62c5a91930 - add support for unzip rodrigob@conectiva.com.br>
CVS patchset: 4243
CVS date: 2000/11/02 17:57:25
2000-11-02 17:57:25 +00:00
jbj f2efc7263e - unify rpmError and rpmMessge interfaces through rpmlog.
- collect and display rpm build error messages at end of build.

CVS patchset: 4149
CVS date: 2000/09/01 21:15:40
2000-09-01 21:15:40 +00:00
jbj 17c5c7e645 Document global/system/user configuration hierarchy in rpmrc/macros (#17038).
CVS patchset: 4142
CVS date: 2000/08/28 15:25:04
2000-08-28 15:25:04 +00:00
jbj 95c0edf74b Turn on Depends return cache (again).
CVS patchset: 3923
CVS date: 2000/07/07 20:36:19
2000-07-07 20:36:19 +00:00
jbj 5df134128b - support for separate source/binary compression policy.
- support for bzip payloads.

CVS patchset: 3908
CVS date: 2000/06/23 01:19:45
2000-06-23 01:19:45 +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 eba9095586 Repair db1 functionality.
Require db3 in default configuration.

CVS patchset: 3818
CVS date: 2000/06/06 20:06:09
2000-06-06 20:06:09 +00:00
jbj f187aa7857 Add triply escaped newlines to %makeinfo.
CVS patchset: 3816
CVS date: 2000/06/05 16:40:04
2000-06-05 16:40:04 +00:00
jbj 22b3a309e1 Remove curly braces from makeinstall.
CVS patchset: 3815
CVS date: 2000/06/05 15:21:19
2000-06-05 15:21:19 +00:00
msw c9ca61e094 oops, revert this part
CVS patchset: 3772
CVS date: 2000/05/31 04:57:13
2000-05-31 04:57:13 +00:00
msw eed2d042ff include an escaped '\' as well as continuation for these macros that span shell lines
CVS patchset: 3769
CVS date: 2000/05/31 03:35:51
2000-05-31 03:35:51 +00:00
jbj f5faf37669 - turn on new, more complete version of %%configure.
- add %%makeinstall analogue of new %%configure for autoconf packages.

CVS patchset: 3765
CVS date: 2000/05/30 16:52:31
2000-05-30 16:52:31 +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 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 ac6c6b7704 fix: legacy packages required provides EVR/Flags to be added.
fix: generating provides EVER was broke with epoch.
db3 tuned for installer speed (i.e. no locking, create/remove on fly).
add new_db_api and old_db_api macros to control precisely for db version used.

CVS patchset: 3691
CVS date: 2000/04/21 00:21:15
2000-04-21 00:21:15 +00:00
jbj c89b7ff341 Hi!
I'd like to start building sparc64 packages (eventhough the install rule
details are yet to be designed - IMHO if 64bit SPARC userland is going into
7.0 we should rebuild all packages into 64bit in the next months or so to
have time to chase bugs etc.), and this is about what I need.
Basically I'd like to have %{_lib} to stand for the last part (normally
"lib") of dirname for directories like /lib, /usr/lib, /usr/X11R6/lib
because on sparc64-linux they are /lib64, /usr/lib64, /usr/X11R6/lib64 (and
on Solaris /lib/sparcv9, /usr/lib/sparcv9 etc.), so that one can use things
like
/usr/%{_lib} in the spec files.
Another thing which I need is an arch specific build root policy.
This patch does a few things:
1) add installplatform into EXTRA_DIST files, so that it is actually invoked
   during rpm build not from CVS
2) Define %_lib lib and let target specific macros override it
3) Split __spec_install_post into __arch_install_post and __os_install_post,
   --buildpolicy now specifies the __os_install_post part only. spec files
   can still override the __arch_install_post if the want to.
   brp-sparc64-linux is used to move 64bit libraries to */lib64 directories
   from */lib directories if make install of some package left them there.
4) Change installplatform so that on sparc* it creates both sparc and
   sparc64 target macro dirs (/usr/lib/rpm/sparc{,64}-redhat-linux in
   sparc*-redhat-linux case).

CVS patchset: 3685
CVS date: 2000/04/19 16:03:49
2000-04-19 16:03:49 +00:00
jbj 9763902847 use hashed access for package headers.
CVS patchset: 3660
CVS date: 2000/04/06 15:20:29
2000-04-06 15:20:29 +00:00
jbj 6b89dea994 Prefer db3.
CVS patchset: 3652
CVS date: 2000/04/03 14:24:55
2000-04-03 14:24:55 +00:00
jbj 00914dd961 Mostly functional db2 interface, db3 still has problems.
CVS patchset: 3645
CVS date: 2000/03/30 19:22:46
2000-03-30 19:22:46 +00:00
jbj e93943f1e0 - portability: skip bzip2 if not available.
- portability: skip gzseek if not available (zlib-1.0.4).
- portability: skip personality if not available (linux).
- portability: always include arpa/inet.h (HP-UX).
- portability: don't use id -u (Brandon Allbery).
- portability: don't chown/chgrp -h w/o lchown.
- portability: splats in rpm.spec to find /usr/{share,local}/locale/*

CVS patchset: 3610
CVS date: 2000/03/09 18:13:02
2000-03-09 18:13:02 +00:00
jbj d932818c23 Patches from PLD.
CVS patchset: 3556
CVS date: 2000/02/13 19:24:19
2000-02-13 19:24:19 +00:00
jbj 9416c8bfd1 add %_rebuilddbpath macro to permit rebuilding db in new location.
CVS patchset: 3522
CVS date: 2000/01/17 18:12:32
2000-01-17 18:12:32 +00:00
jbj 0d185e8fb5 fix: resurrect relative path's in fprint lookup queries.
CVS patchset: 3518
CVS date: 2000/01/12 21:48:58
2000-01-12 21:48:58 +00:00
jbj ea3ab95e17 default value for %_install_langs is all.
CVS patchset: 3517
CVS date: 2000/01/11 19:12:34
2000-01-11 19:12:34 +00:00
jbj 483793a877 configurable compression type/level for package payloads.
CVS patchset: 3516
CVS date: 2000/01/11 16:13:16
2000-01-11 16:13:16 +00:00
jbj 9f35fb4373 configurable PATH for install %pre/%post et al scriptlets.
use only %_install_langs, not LINGUAS/LANG when deciding to install.

CVS patchset: 3514
CVS date: 2000/01/11 15:22:35
2000-01-11 15:22:35 +00:00
jbj 65e8fdb8f9 add several BuildRoot FTW policies.
CVS patchset: 3511
CVS date: 2000/01/07 17:32:27
2000-01-07 17:32:27 +00:00