Commit Graph

1075 Commits

Author SHA1 Message Date
ewt b997c2ad4d don't let hdrs[] be sparse
CVS patchset: 2786
CVS date: 1999/02/07 23:14:04
1999-02-07 23:14:04 +00:00
ewt f93e0d2f61 added fdScript stuff
CVS patchset: 2783
CVS date: 1999/02/07 21:20:04
1999-02-07 21:20:04 +00:00
ewt 177b2215a9 need to chroot() a bit sooner
CVS patchset: 2781
CVS date: 1999/02/07 20:09:27
1999-02-07 20:09:27 +00:00
ewt d9ff192cba I don't know why this works better, but it does.
CVS patchset: 2780
CVS date: 1999/02/07 18:36:13
1999-02-07 18:36:13 +00:00
ewt 05e7aecfed uninstalls need to handle shared config files properly
CVS patchset: 2779
CVS date: 1999/02/07 16:44:21
1999-02-07 16:44:21 +00:00
jbj 6e22dccb47 - add BuildPrereq: in spec file and src rpm.
CVS patchset: 2776
CVS date: 1999/02/05 18:32:06
1999-02-05 18:32:06 +00:00
ewt 39daf317c7 changed minimal open code (again)
CVS patchset: 2775
CVS date: 1999/02/04 23:00:23
1999-02-04 23:00:23 +00:00
ewt 5409a7ad52 minimal opens need to provide name index
CVS patchset: 2774
CVS date: 1999/02/04 22:04:10
1999-02-04 22:04:10 +00:00
adevries a7366495ae Finally, preliminary http support.
- Alex

CVS patchset: 2773
CVS date: 1999/02/04 18:48:03
1999-02-04 18:48:03 +00:00
ewt c7c870b0c5 added rpmdbOpenForTraversal()
CVS patchset: 2771
CVS date: 1999/02/04 05:03:16
1999-02-04 05:03:16 +00:00
ewt 35cb65b449 handle spec file which Provide filenames
CVS patchset: 2770
CVS date: 1999/02/02 19:43:35
1999-02-02 19:43:35 +00:00
jbj ee244b7e0a Parse BuildRequires: and add appropriate RPMTAG_*REQUIRES* to src rpm
header.

CVS patchset: 2763
CVS date: 1999/01/26 21:57:57
1999-01-26 21:57:57 +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
ewt 6f6b66d55a changes for packages w/ 0 files
CVS patchset: 2752
CVS date: 1999/01/26 17:10:29
1999-01-26 17:10:29 +00:00
jbj 2daecca27b Eliminate generated files.
CVS patchset: 2750
CVS date: 1999/01/25 19:46:40
1999-01-25 19:46:40 +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 324f6639d7 After running libtoolize to update config.guess config.sub
CVS patchset: 2732
CVS date: 1999/01/21 22:30:50
1999-01-21 22:30:50 +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 11264c2b93 use SKIPNSTATE
CVS patchset: 2719
CVS date: 1999/01/19 16:24:57
1999-01-19 16:24:57 +00:00
ewt aeee273549 added SAVENSTATE action
CVS patchset: 2718
CVS date: 1999/01/19 16:24:43
1999-01-19 16:24:43 +00:00
ewt 06a29f2dd5 handle RPMTAG_ORIGFILENAMES properly
CVS patchset: 2715
CVS date: 1999/01/19 03:02:45
1999-01-19 03:02:45 +00:00
ewt 8c45431632 1) fixed relocations
2) let the relocation stuff omit files by path

CVS patchset: 2714
CVS date: 1999/01/19 03:01:52
1999-01-19 03:01:52 +00:00
ewt 74b036680c force the unknown action to be 0
CVS patchset: 2713
CVS date: 1999/01/19 02:58:48
1999-01-19 02:58:48 +00:00
ewt 46ddcf95cc mucked with comments a bit
CVS patchset: 2712
CVS date: 1999/01/19 02:56:13
1999-01-19 02:56:13 +00:00
ewt b5361c8318 relocate filelists from files opened in a callback
CVS patchset: 2704
CVS date: 1999/01/15 03:50:51
1999-01-15 03:50:51 +00:00
ewt d35b55b7b7 handle stat of / properly for fingerprints
CVS patchset: 2703
CVS date: 1999/01/15 03:49:40
1999-01-15 03:49:40 +00:00
jbj aa362e8c17 Use mmap when writing rpm's.
CVS patchset: 2701
CVS date: 1999/01/13 22:10:00
1999-01-13 22:10:00 +00:00
jbj fda6c97ad1 Don't free alooca memory.
CVS patchset: 2700
CVS date: 1999/01/13 21:20:00
1999-01-13 21:20:00 +00:00
jbj a48b72b8b9 Fix: seg fault due to multiple close in runScript().
More const char * within verify.

CVS patchset: 2696
CVS date: 1999/01/13 18:30:31
1999-01-13 18:30:31 +00:00
ewt 33d610be38 I'm too lazy to put these in a third time.
CVS patchset: 2691
CVS date: 1999/01/12 03:11:25
1999-01-12 03:11:25 +00:00
jbj 37a0fd968d Typo.
CVS patchset: 2690
CVS date: 1999/01/11 23:16:09
1999-01-11 23:16:09 +00:00
jbj dd63b4fd68 More fixes from Toshio.
CVS patchset: 2688
CVS date: 1999/01/10 17:10:17
1999-01-10 17:10:17 +00:00
jbj 8e4b5d19fc 1998 8 Jan Toshio Kuratomi <badger@prtr-13.ucsc.edu>
* rpm.c: An error message for --nomd5 incorrectly  read "--nopgp can only
      be used during...."... Changed the --nopgp to --nomd5
1998 7 Jan  Toshio Kuratomi <bagder@prtr-13.ucsc.edu>
    * lib/rpmlib.h: Add a RPMSIGTAG_GPG define for gnupg.
    * lib/rpmlib.h: Add RPMVAR_GPG_PATH and RPMVAR_GPG_NAME variables.
    * lib/rpmrc.c: (optionTable) Add gpg_path and gpg_name to the optionTable
      (same stats as pgp_name and pgp_path.)
    * lib/signature.c: (rpmLookupSignatureType) Add RPMSIGTAG_GPG as one of the
      recognized types.
    * lib/signature.c: (rpmAddSignature) Add ability to create gnupg signature.
    * lib/signature.c: (makeGPGSignature) Routine to create a gnupg signature
      (based on makePGPSignature.)
    * lib/signature.c: (rpmVerifySignature) Add ability to verify gnupg
      signatures.
    * lib/signature.c: (verifyGPGSignature) Routine to verify a gnupg signature
      (based on verifyPGPSignature.)
    * lib/signature.c: (rpmGetPassPhrase) When getting pass phrase for gnupg,
      use RPMVAR_GPG_NAME instead of RPMVAR_PGP_NAME if we are signing with
      GPG isntead of PGP.
    * lib/signature.c: (checkPassPhrase) Need to allow for GPG when we check
      the PassPhrase's correctness.
    * rpm.c: Add equivalent GPG lines everywhere we find a PGP line.
    * rpm.c: Add equivalent gpg stanzas wherever we find a pgp stanza.
    * checksig.h: define CHECKSIG_GPG (1 << 2)  [Is this correct?]
    * checksig.c: (doCheckSig) Check for GPG signatures.  [A lot could be
      wrong/left out here.]
    * rpm.c: change the call to rpmGetPassPhrase to throw in the sigType as
      well.
    * signature.h: change rpmGetPassPhrase declaration to:
      rpmGetPassPhrase(const char * prompt, const int sigTag);
    * signature.c: (rpmGetPassPhrase) change the function to accept the
      signature type as its second argument.

CVS patchset: 2686
CVS date: 1999/01/09 00:24:02
1999-01-09 00:24:02 +00:00
jbj 8792366734 Fix check for source RPM.
CVS patchset: 2685
CVS date: 1999/01/08 20:30:50
1999-01-08 20:30:50 +00:00
jbj 303fa780d3 EGCS cruft.
Use cpioStrerror when getNextHeader fails.
More const warnings removed.
binary rpms always have RPMTAG_SOURCERPM, source rpms do not.

CVS patchset: 2682
CVS date: 1999/01/08 16:44:30
1999-01-08 16:44:30 +00:00
ewt 401268b739 *** empty log message ***
CVS patchset: 2681
CVS date: 1999/01/08 03:12:51
1999-01-08 03:12:51 +00:00
ewt c4b85d23ed const cleanups
CVS patchset: 2680
CVS date: 1999/01/08 03:12:11
1999-01-08 03:12:11 +00:00
ewt a12dc83141 make use of currentDirectory()
CVS patchset: 2679
CVS date: 1999/01/08 03:11:54
1999-01-08 03:11:54 +00:00
ewt 8bef8b932c added currentDirectory()
CVS patchset: 2678
CVS date: 1999/01/08 03:10:12
1999-01-08 03:10:12 +00:00
ewt 0c69b1363d 1) const cleanups
2) chroot() when setting up file actions

CVS patchset: 2677
CVS date: 1999/01/08 03:09:57
1999-01-08 03:09:57 +00:00
ewt a4a7a0e44e assemble replaced file list
CVS patchset: 2676
CVS date: 1999/01/07 17:06:24
1999-01-07 17:06:24 +00:00
ewt fbc95234ac added struct sharedFileInfo
CVS patchset: 2675
CVS date: 1999/01/07 17:05:10
1999-01-07 17:05:10 +00:00
ewt b369006f28 replaced file list is passed in externally
CVS patchset: 2674
CVS date: 1999/01/07 17:05:02
1999-01-07 17:05:02 +00:00
ewt deff5aec38 try to use notify function properly (though hashing still doesn't work??)
CVS patchset: 2672
CVS date: 1999/01/07 04:07:31
1999-01-07 04:07:31 +00:00
ewt 3036da5cf6 1) don't pass a label string for source package installation
2) rpmtransAddPackage() can fail (only on source packages though)

CVS patchset: 2671
CVS date: 1999/01/07 04:07:00
1999-01-07 04:07:00 +00:00
ewt fd5e7c4e30 don't let them add packages for installation if they are source packages
CVS patchset: 2670
CVS date: 1999/01/07 04:06:30
1999-01-07 04:06:30 +00:00
jbj 72111f3e44 Re-implement the ability to install source rpms.
CVS patchset: 2668
CVS date: 1999/01/07 00:45:52
1999-01-07 00:45:52 +00:00
jbj b2f3993b1b Eliminate inline functions (the inline, not the function).
EGCS cruft.

CVS patchset: 2667
CVS date: 1999/01/06 21:05:03
1999-01-06 21:05:03 +00:00
jbj 0e31bb0e78 Typos.
CVS patchset: 2665
CVS date: 1999/01/06 18:19:36
1999-01-06 18:19:36 +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 7eca53f7ea fixed an infinite loop (oops)
CVS patchset: 2662
CVS date: 1999/01/06 03:56:31
1999-01-06 03:56:31 +00:00
ewt 1fd38f0988 use altH in problem struct
CVS patchset: 2659
CVS date: 1999/01/06 03:16:35
1999-01-06 03:16:35 +00:00
ewt decbbfcdab display altH info for file conflicts
CVS patchset: 2658
CVS date: 1999/01/06 03:16:14
1999-01-06 03:16:14 +00:00
ewt 78064b8749 added altH field to problem structure
CVS patchset: 2657
CVS date: 1999/01/06 03:15:45
1999-01-06 03:15:45 +00:00
ewt 03c8985d5e include lookup.h
CVS patchset: 2656
CVS date: 1999/01/06 03:14:44
1999-01-06 03:14:44 +00:00
ewt 8b6764efbc *** empty log message ***
CVS patchset: 2655
CVS date: 1999/01/06 03:14:26
1999-01-06 03:14:26 +00:00
ewt 0a15aaad53 headers in available lists weren't being freed properly
CVS patchset: 2654
CVS date: 1999/01/06 02:29:42
1999-01-06 02:29:42 +00:00
jbj 8af5b5af87 Expand path macros with rpmGetPath(path, ...).
CVS patchset: 2652
CVS date: 1999/01/05 23:13:56
1999-01-05 23:13:56 +00:00
jbj c7c985480a Avoid segfault with "rpm --initdb" when no database exists.
CVS patchset: 2650
CVS date: 1999/01/05 17:27:04
1999-01-05 17:27:04 +00:00
ewt 84bfb712a6 1) install packages still need to pay attention to db entries for
packages being removed
2) don't ignore the removal action decided on by the database just
   because of overlapping files

CVS patchset: 2648
CVS date: 1999/01/04 19:11:04
1999-01-04 19:11:04 +00:00
ewt c4567f6371 canonicalize the root directory
CVS patchset: 2647
CVS date: 1999/01/04 16:44:52
1999-01-04 16:44:52 +00:00
ewt fcfce2db40 removed removeBinaryPackage()
CVS patchset: 2646
CVS date: 1999/01/04 16:44:38
1999-01-04 16:44:38 +00:00
ewt 37d4963129 package removal should have proper semantics now
CVS patchset: 2645
CVS date: 1999/01/04 16:44:20
1999-01-04 16:44:20 +00:00
ewt 46328662ee Use an action list which is passed into removeBinaryPackage() rather then
generating our own. This outdated a bunch of functions (like
handleSharedFiles()), which have been removed.

CVS patchset: 2644
CVS date: 1999/01/04 16:44:05
1999-01-04 16:44:05 +00:00
ewt 6ef4113eb3 1) renamed enum instAction to enum fileActions
2) removed KEEP action (it was identical to SKIP), added REMOVE action
3) removed findSharedFiles() prototype
4) added removeBinaryPackages() and fileActionString() prototype

CVS patchset: 2643
CVS date: 1999/01/04 16:43:31
1999-01-04 16:43:31 +00:00
ewt fca3a181f4 1) moved root canonicalization to transaction set creation
2) removed KEEP state (SKIP had identical semantics)
3) added REMOVE state to fileActionString()
4) export fileActionString()

CVS patchset: 2642
CVS date: 1999/01/04 16:42:15
1999-01-04 16:42:15 +00:00
jbj 854d1760c0 Expand SPECDIR/SOURCEDIR using macros.
CVS patchset: 2641
CVS date: 1999/01/03 03:13:50
1999-01-03 03:13:50 +00:00
jbj e8d006c635 use "original db-1.85" if available (Raw Hide glibc 2.1).
CVS patchset: 2640
CVS date: 1998/12/31 22:09:43
1998-12-31 22:09:43 +00:00
ewt 7731ce66a1 create .rpmorig stuff
CVS patchset: 2639
CVS date: 1998/12/31 20:19:07
1998-12-31 20:19:07 +00:00
ewt 670095971e generate a file action list and pass it into installBinaryPackage()
CVS patchset: 2638
CVS date: 1998/12/31 19:16:31
1998-12-31 19:16:31 +00:00
ewt 9102dc094c makes use of a passed in action list rather then generating our own
CVS patchset: 2637
CVS date: 1998/12/31 19:16:12
1998-12-31 19:16:12 +00:00
ewt 3dde252b68 switched around file conflict logic to build a proper action set
CVS patchset: 2636
CVS date: 1998/12/31 16:19:42
1998-12-31 16:19:42 +00:00
ewt ae67120546 updated a comment ;-)
CVS patchset: 2635
CVS date: 1998/12/31 16:19:20
1998-12-31 16:19:20 +00:00
ewt 029e1deb65 enum instActions { UNKNOWN, CREATE, BACKUP, KEEP, SAVE, SKIP, ALTNAME };
enum fileTypes { XDIR, BDEV, CDEV, SOCK, PIPE, REG, LINK } ;

CVS patchset: 2634
CVS date: 1998/12/31 16:18:58
1998-12-31 16:18:58 +00:00
ewt bedb797889 renamed some enums to avoid conflicts with enums now defined in install.h
CVS patchset: 2633
CVS date: 1998/12/31 16:18:27
1998-12-31 16:18:27 +00:00
ewt 381dd7d453 reworked shared file lookups in database; it's *much* more efficient now
CVS patchset: 2632
CVS date: 1998/12/30 23:03:43
1998-12-30 23:03:43 +00:00
ewt b2c5f65efb updated relocateable package handling
CVS patchset: 2631
CVS date: 1998/12/30 23:03:18
1998-12-30 23:03:18 +00:00
ewt 8d0dd34d5c added RPMPROB_FILE_CONFLICT message
CVS patchset: 2630
CVS date: 1998/12/30 23:02:49
1998-12-30 23:02:49 +00:00
ewt 87451ef325 fixed scare memory option
CVS patchset: 2629
CVS date: 1998/12/30 23:02:27
1998-12-30 23:02:27 +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 fdef7d4574 headerLoad() wasn't initializing the usage count
CVS patchset: 2627
CVS date: 1998/12/30 21:39:51
1998-12-30 21:39:51 +00:00
ewt 7618c64e23 1) make use of fpLookupList() for some speedup
2) be a bit better about freeing memory -- I'm sure there are plenty
   of holes left still, though
3) added a braindead db lookup for shared files. this will be reworked soon.

CVS patchset: 2624
CVS date: 1998/12/30 16:59:54
1998-12-30 16:59:54 +00:00
ewt d7ad76b4fc added fpLookupList()
CVS patchset: 2623
CVS date: 1998/12/30 16:56:28
1998-12-30 16:56:28 +00:00
ewt 35381371cd make use of fingerprints for checking file conflicts
CVS patchset: 2617
CVS date: 1998/12/26 18:32:08
1998-12-26 18:32:08 +00:00
ewt 55d6927c9d 1) allow generic key types
2) possibly copy the key around
3) optionally return the key stored in the table

CVS patchset: 2616
CVS date: 1998/12/26 18:31:45
1998-12-26 18:31:45 +00:00
ewt 008d124000 added fpHashFunction() and fpEqual()
CVS patchset: 2615
CVS date: 1998/12/26 18:29:32
1998-12-26 18:29:32 +00:00
ewt 429557f9d6 use fingerprinting for path lookups
CVS patchset: 2614
CVS date: 1998/12/26 17:13:34
1998-12-26 17:13:34 +00:00
ewt a2c96ed1f5 removed unused variable
CVS patchset: 2613
CVS date: 1998/12/26 17:13:10
1998-12-26 17:13:10 +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 92a278f68e *** empty log message ***
CVS patchset: 2606
CVS date: 1998/12/18 19:09:38
1998-12-18 19:09:38 +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
ewt 033797c0ef added dbiGetFirstKey()
CVS patchset: 2602
CVS date: 1998/12/15 05:48:11
1998-12-15 05:48:11 +00:00
ewt 26bd58415b 1) store basenames only in fileindex
2) do realpath stuff in rpmdbFindByFile()
3) do smart symlink chasing

CVS patchset: 2600
CVS date: 1998/12/15 05:45:36
1998-12-15 05:45:36 +00:00
ewt 665fc7e909 don't do realpath stuff here; it's done in rpmdbFindByFile() now
CVS patchset: 2599
CVS date: 1998/12/15 05:43:18
1998-12-15 05:43:18 +00:00
jbj ce37ae3d9d permit http:// and file:// url's as well as ftp://.
attempt ftp ABOR on query/verify url's.
cache open ftp control descriptor with password.
verify needed same realpath semantics as query.
plug fd leak in urlGetFile().

CVS patchset: 2598
CVS date: 1998/12/14 21:34:11
1998-12-14 21:34:11 +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 9d8c68e32d translate cpio errors using cpioStrerror.
CVS patchset: 2592
CVS date: 1998/12/05 23:22:41
1998-12-05 23:22:41 +00:00
jbj 3fae42117d display "..?....." rather than "..5....." for unreadable files.
run time (rather than compile time) host endian check.

CVS patchset: 2589
CVS date: 1998/12/05 19:38:29
1998-12-05 19:38:29 +00:00
jbj c36ca7c15b Typos.
CVS patchset: 2588
CVS date: 1998/12/05 19:18:43
1998-12-05 19:18:43 +00:00
jbj c76756479e caldera patches (ray@Caldera.DE)
CVS patchset: 2584
CVS date: 1998/12/03 19:36:01
1998-12-03 19:36:01 +00:00
jbj d92ce3f635 added ARM patches.
CVS patchset: 2583
CVS date: 1998/12/03 19:30:32
1998-12-03 19:30:32 +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
ewt 8351bf636a made rpmio.o contiain the functions properly
CVS patchset: 2576
CVS date: 1998/12/02 20:50:57
1998-12-02 20:50:57 +00:00
jbj 9b362a451a Compile in default macro values sufficient to pass make check.
CVS patchset: 2575
CVS date: 1998/12/02 19:55:36
1998-12-02 19:55:36 +00:00
jbj b3179e6de3 Set max_macro_depth to 16 always.
CVS patchset: 2574
CVS date: 1998/12/02 18:09:41
1998-12-02 18:09:41 +00:00
jbj d923921296 change --rcfile to permit colon separated file list.
compile in defaults from rpmrc/macros.

CVS patchset: 2573
CVS date: 1998/12/02 17:59:32
1998-12-02 17:59:32 +00:00
jbj 4c4388dea1 Sanity.
CVS patchset: 2572
CVS date: 1998/12/02 15:17:01
1998-12-02 15:17:01 +00:00
jbj d13e728542 More build popts moved to build.c
Fix access of freed memory.

CVS patchset: 2571
CVS date: 1998/12/01 23:28:26
1998-12-01 23:28:26 +00:00
jbj 234db2e2f6 Start separating build options.
I18N for popt tables.

CVS patchset: 2568
CVS date: 1998/12/01 17:18:38
1998-12-01 17:18:38 +00:00
jbj 5f72265982 Sanity.
CVS patchset: 2567
CVS date: 1998/12/01 00:10:18
1998-12-01 00:10:18 +00:00
ewt 4dede4ad3c switched exists() to rpmfileexists()
CVS patchset: 2563
CVS date: 1998/11/30 17:48:03
1998-11-30 17:48:03 +00:00
jbj b2fd4c2d88 Add dup for the "other" gzdopen premature close.
CVS patchset: 2556
CVS date: 1998/11/25 00:42:36
1998-11-25 00:42:36 +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 bf93337cec Sanity.
CVS patchset: 2554
CVS date: 1998/11/23 21:47:55
1998-11-23 21:47:55 +00:00
jbj fa463ea4ab Typo.
CVS patchset: 2553
CVS date: 1998/11/23 19:06:28
1998-11-23 19:06:28 +00:00
jbj eb0436b4b2 Start abstracting compressed I/O.
CVS patchset: 2552
CVS date: 1998/11/22 19:48:48
1998-11-22 19:48:48 +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 2b44c3a5c3 permit "rpm -q --specfile ... file.spec" queries.
CVS patchset: 2547
CVS date: 1998/11/20 00:29:46
1998-11-20 00:29:46 +00:00
jbj 7e617bde36 lclint noise.
CVS patchset: 2544
CVS date: 1998/11/19 19:10:23
1998-11-19 19:10:23 +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 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 9e52926682 Sanity.
CVS patchset: 2541
CVS date: 1998/11/18 19:42:07
1998-11-18 19:42:07 +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 468597524d remove redundant md5 computation on uninstall.
CVS patchset: 2534
CVS date: 1998/11/08 18:23:16
1998-11-08 18:23:16 +00:00
jbj bb2f68c510 don't compute md5sum on non-file %config objects. (from Jos Vos)
CVS patchset: 2529
CVS date: 1998/11/07 22:48:12
1998-11-07 22:48:12 +00:00
jbj 496f994b05 add new Epoch: keyword just like Serial:.
CVS patchset: 2520
CVS date: 1998/11/06 22:12:01
1998-11-06 22:12:01 +00:00
jbj 4514c7600f solaris: don't attempt static link. (Tim Mooney)
fix: timeCheck in rpm.c should be unsigned long. (Tim Mooney)
osf: prov searches only shared libraries. (Tim Mooney)
solaris: set PATH in prov/req scripts. (Tim Mooney)
fix: ignore modes on symlinks. (Tim Mooney)

CVS patchset: 2517
CVS date: 1998/11/06 19:55:55
1998-11-06 19:55:55 +00:00
ewt 983300ecb3 their must be a { between two % in a query format (unless %% is used)
CVS patchset: 2509
CVS date: 1998/10/29 16:33:04
1998-10-29 16:33:04 +00:00
jbj 482a553ada fix off-by-1 alloca that prevented relocating /.
CVS patchset: 2504
CVS date: 1998/10/27 19:54:08
1998-10-27 19:54:08 +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 5fc8cb62a5 First attempt at "make check".
CVS patchset: 2465
CVS date: 1998/10/20 11:54:13
1998-10-20 11:54:13 +00:00
jbj 9f20ee028b augment --showrc with -v, only display set variables without -v.
add macrofiles variable, permit second entry to initMacros().

CVS patchset: 2463
CVS date: 1998/10/15 23:29:25
1998-10-15 23:29:25 +00:00
jbj 0406f6dae3 Test drill.
CVS patchset: 2446
CVS date: 1998/10/11 20:58:58
1998-10-11 20:58:58 +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 8ce5bb8feb return CPIO_BAD_HEADER instead of exiting. (Scott M. Stone)
CVS patchset: 2438
CVS date: 1998/10/09 00:52:32
1998-10-09 00:52:32 +00:00
jbj 768c0238b0 untranslate "(none)" for auto relocating script wrappers.
CVS patchset: 2436
CVS date: 1998/10/09 00:48:18
1998-10-09 00:48:18 +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 d93b2ada11 egcs warning removal.
CVS patchset: 2422
CVS date: 1998/10/08 11:55:37
1998-10-08 11:55:37 +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
jbj 44df481b46 fix per-arch macro setting (e.g. optflags).
better way to handle Linux vs. linux.

CVS patchset: 2416
CVS date: 1998/10/07 16:05:51
1998-10-07 16:05:51 +00:00
jbj 698ec23718 attempt to deal rationally with os as "Linux" or "linux".
CVS patchset: 2415
CVS date: 1998/10/07 15:33:51
1998-10-07 15:33:51 +00:00
jbj 7a57c1de12 Typo.
CVS patchset: 2414
CVS date: 1998/10/07 13:48:53
1998-10-07 13:48:53 +00:00
jbj 7ad030f18f non-linux arch/os identification (Eugene Kanter).
CVS patchset: 2410
CVS date: 1998/10/06 19:18:47
1998-10-06 19:18:47 +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 bd3f2ce413 First injection.
CVS patchset: 2325
CVS date: 1998/09/18 19:10:12
1998-09-18 19:10:12 +00:00
jbj b4f7b7d126 eliminate infinite loop with missing tmpdir (Trent Jarvi).
CVS patchset: 2310
CVS date: 1998/09/14 18:55:18
1998-09-14 18:55:18 +00:00
jbj 3d2769f74d fix database rebuilds with triggers (Steve Sanberg).
CVS patchset: 2290
CVS date: 1998/09/11 07:57:41
1998-09-11 07:57:41 +00:00
jbj dd573c5a8a diagnostic message if unreadable/short source or patch file.
CVS patchset: 2287
CVS date: 1998/09/10 16:25:15
1998-09-10 16:25:15 +00:00
jbj 0a4e182e40 Integrate shell and macro enviroments for scripts.
CVS patchset: 2282
CVS date: 1998/09/05 23:13:35
1998-09-05 23:13:35 +00:00
jbj 5973a1a52d More RPMVAR_* conversion to macros.
CVS patchset: 2281
CVS date: 1998/09/05 21:54:05
1998-09-05 21:54:05 +00:00
jbj e8b7b65b28 Start converting variables into macro expansions.
RPMVAR_SOURCEDIR -> %{_sourcedir}
   RPMVAR_BUILDDIR -> %{_builddir}

CVS patchset: 2279
CVS date: 1998/09/05 20:02:08
1998-09-05 20:02:08 +00:00
jbj dd8f00921a Rewrite strsep code using strtok for ANSI C portability.
Remove RPMVAR_SETENV for now.

CVS patchset: 2278
CVS date: 1998/09/05 18:20:52
1998-09-05 18:20:52 +00:00
jbj 8fa9463826 Sync with 5.2 branch.
CVS patchset: 2275
CVS date: 1998/09/04 16:17:46
1998-09-04 16:17:46 +00:00
jbj 7c055ccee6 Typo.
CVS patchset: 2263
CVS date: 1998/08/20 19:12:30
1998-08-20 19:12:30 +00:00
jbj 0a38e41556 Add RPMTAG_EPOCH and RPMTAG_CAPABILITY init to 0.
CVS patchset: 2262
CVS date: 1998/08/20 16:34:58
1998-08-20 16:34:58 +00:00
ewt fddd1e7215 added epoch handling
CVS patchset: 2261
CVS date: 1998/08/19 02:30:02
1998-08-19 02:30:02 +00:00
jbj 8e9041037f sanity.
CVS patchset: 2253
CVS date: 1998/08/16 14:26:04
1998-08-16 14:26:04 +00:00
ewt 2ae7a2d53c added :hex format
CVS patchset: 2250
CVS date: 1998/08/16 13:43:10
1998-08-16 13:43:10 +00:00
jbj 85d8c81723 Fix infinite recursion on non-ERANGE return from getcwd() during install.
CVS patchset: 2245
CVS date: 1998/08/15 14:04:57
1998-08-15 14:04:57 +00:00
jbj f612cb1bf3 Sync with 2.5.2 branch patches.
cpio_gzip: dup the fd before doing gzdopen (Thanks Erik!)
 add --noLang to skip non-default languages.

CVS patchset: 2243
CVS date: 1998/08/11 18:24:48
1998-08-11 18:24:48 +00:00
jbj 145d77b79d initMacros must be called someplace to enable full reursion.
Suggestions for further arch/os decimation.

CVS patchset: 2238
CVS date: 1998/08/07 18:35:05
1998-08-07 18:35:05 +00:00
adevries dda966d543 Added support for --buildplatform, setenv: tag in rpmrc, fixed
%buildplatform, fixed it so that the default buildarch is the
canonacalized architecture, not the native.  Cross building appears to
work!

CVS patchset: 2233
CVS date: 1998/08/06 19:35:07
1998-08-06 19:35:07 +00:00
ewt e1753d36d0 fixed another typo
CVS patchset: 2228
CVS date: 1998/08/03 15:05:27
1998-08-03 15:05:27 +00:00
ewt 9ad6207b3d fixed spelling of expected
CVS patchset: 2224
CVS date: 1998/08/03 14:59:00
1998-08-03 14:59:00 +00:00
jbj f33efd0cc4 String substitution macro file.
CVS patchset: 2223
CVS date: 1998/08/02 15:14:38
1998-08-02 15:14:38 +00:00
jbj 12c5bea4d8 Special case of "/" in %files was broken.
Don't freeMacros in freeSpec -- macros have been globalized.
Remove extra debugging '_' prefix.

CVS patchset: 2220
CVS date: 1998/08/02 13:48:37
1998-08-02 13:48:37 +00:00
jbj c8271be9c7 Preliminary macro invironment as side effect of rpmrc parse.
CVS patchset: 2219
CVS date: 1998/08/01 18:48:06
1998-08-01 18:48:06 +00:00
jbj c88091c8e0 Typo.
CVS patchset: 2216
CVS date: 1998/07/31 20:17:06
1998-07-31 20:17:06 +00:00
jbj f005d723a5 Macro handling in rpmlib -- rework include: tag with macro expansion.
CVS patchset: 2215
CVS date: 1998/07/31 20:11:49
1998-07-31 20:11:49 +00:00
jbj fc09e52f54 First attempt at librpmbuild API.
CVS patchset: 2214
CVS date: 1998/07/30 22:42:18
1998-07-30 22:42:18 +00:00
jbj 5142bf78e6 Consolidated includes for librpmbuild API.
CVS patchset: 2213
CVS date: 1998/07/30 22:09:42
1998-07-30 22:09:42 +00:00
adevries 49059ccc58 Woops!
fixed it so on free(), it doesn't segfault.
-

CVS patchset: 2199
CVS date: 1998/07/29 00:57:09
1998-07-29 00:57:09 +00:00
adevries 8438ce1cd7 Modified rpmrc.c to allow include: lines in rpmrc files. Also, added functionality to be able to do rpmrc variable-based includes, such as:
include: /usr/lib/rpm/build/%buildplatform.conf
Added three new RPMVAR types, RPMVAR_OS, RPMVAR_ARCH and RPMVAR_BUILDPLATFORM .
-

CVS patchset: 2198
CVS date: 1998/07/29 00:39:18
1998-07-29 00:39:18 +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
jbj c617a31606 Generalize cpio I/O to eliminate pipe to exec'd gzip on install.
CVS patchset: 2182
CVS date: 1998/07/25 15:33:15
1998-07-25 15:33:15 +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 51ec6e32a0 Provides: parsing in rpmrc wasn't done properly
CVS patchset: 2160
CVS date: 1998/06/30 18:52:54
1998-06-30 18:52:54 +00:00
ewt bfc226e9ad added an error message when rmdir() fails
CVS patchset: 2159
CVS date: 1998/06/30 18:52:29
1998-06-30 18:52:29 +00:00
ewt 5de4d92922 added --notriggers
CVS patchset: 2158
CVS date: 1998/06/30 18:51:44
1998-06-30 18:51:44 +00:00
ewt e74380923f 1) added NOTRIGGERS support
2) trigger versions include the trigger name for some reason; ignore the
   name portion if it's there

CVS patchset: 2157
CVS date: 1998/06/30 18:51:25
1998-06-30 18:51:25 +00:00
ewt 119bcbf204 fssizes weren't behaving for pacakges w/o file list
CVS patchset: 2150
CVS date: 1998/06/14 16:04:00
1998-06-14 16:04:00 +00:00
ewt 10cc4878e9 --justdb should tag files as normal
CVS patchset: 2147
CVS date: 1998/06/11 20:02:29
1998-06-11 20:02:29 +00:00
marc 1499694167 - added --last alias
- fix :depflags query format

CVS patchset: 2144
CVS date: 1998/06/04 17:03:29
1998-06-04 17:03:29 +00:00
marc a8975d188e - fixed ugly i18n header bug
- deal with lang paths sanely when entries are missing languages

CVS patchset: 2142
CVS date: 1998/06/02 21:34:51
1998-06-02 21:34:51 +00:00
ewt 1789870b35 - set file states to missing for --justdb packages
- handle missing file states properly in -e code
- install time wasn missing for --justdb packages

CVS patchset: 2135
CVS date: 1998/05/26 13:45:16
1998-05-26 13:45:16 +00:00
ewt 07ec9c5bc2 prefer db_185.h to db.h
CVS patchset: 2131
CVS date: 1998/05/26 13:22:39
1998-05-26 13:22:39 +00:00
marc c39795e7df Added headerGzRead() and headerGzWrite()
CVS patchset: 2127
CVS date: 1998/05/25 03:18:54
1998-05-25 03:18:54 +00:00
ewt e5dd155e6d added loads of .cvsignore files
CVS patchset: 2123
CVS date: 1998/05/21 18:12:48
1998-05-21 18:12:48 +00:00
marc 7e3b1b2197 - make %doc script obey --test
- hopefully fix temp file creation problems

CVS patchset: 2120
CVS date: 1998/05/21 03:21:13
1998-05-21 03:21:13 +00:00
ewt d2fc8072f9 don't pay attention to reqflags unless a reqversion is present <sigh>
CVS patchset: 2115
CVS date: 1998/05/10 18:37:35
1998-05-10 18:37:35 +00:00
ewt 16e9eae0e1 shared files weren't handled properly in netsharedpaths
CVS patchset: 2111
CVS date: 1998/05/06 21:46:03
1998-05-06 21:46:03 +00:00
ewt fb90f503dd fixed misc memory leaks
CVS patchset: 2108
CVS date: 1998/05/05 23:12:17
1998-05-05 23:12:17 +00:00
marc 72dedbf1dd - save/restore existing arch when done with buildarch
CVS patchset: 2105
CVS date: 1998/05/01 21:10:51
1998-05-01 21:10:51 +00:00
ewt 2afff79ebc didn't handle packages w/ empty filelists
CVS patchset: 2103
CVS date: 1998/05/01 19:33:36
1998-05-01 19:33:36 +00:00
marc bef12c4a53 - headerGetEntry() should return count of 1 when returning
strings plucked from i18n strings

CVS patchset: 2102
CVS date: 1998/05/01 17:10:25
1998-05-01 17:10:25 +00:00
ewt 9e5c81ab8b dump postun triggers properly
CVS patchset: 2099
CVS date: 1998/04/30 20:34:08
1998-04-30 20:34:08 +00:00