Request 68 was acted upon. _________________________________________________________________________
URL: https://rt.openpkg.org/id/68 Ticket: [OpenPKG #68] Subject: upgrade bootstrap to RPM 4.2 Requestors: [EMAIL PROTECTED] Queue: openpkg Owner: rse Status: open Transaction: Correspondence added by rse Time: Fri Jul 11 09:43:15 2003 ________________________________________________________________________ Remember this for OpenPKG 2.0 development which starts soon once we've kicked out OpenPKG 1.3. ----- Forwarded message from Conrad Steenberg <[EMAIL PROTECTED]> ----- Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Subject: Bootstrap port to rpm-4.2.1 From: Conrad Steenberg <[EMAIL PROTECTED]> To: OpenPKG Developer Mailing list <[EMAIL PROTECTED]> Date: 10 Jul 2003 16:59:13 -0700 Reply-To: [EMAIL PROTECTED] Precedence: list Hi I made a port of the bootstrap package to rpm-4.2.1, available at http://heppc22.hep.caltech.edu/openpkg/ This addresses RT ticket #68 at https://rt.openpkg.org/SelfService/Display.html?id=68 Since the downloads are rather large, the .boot and .spec files and changed/added patch files are also available. The README is below. Hopefully this would be a useful start to the 4.2 port :-) Cheers! Conrad -- Conrad Steenberg <[EMAIL PROTECTED]> README file --------------------------------------------------- OpenPKG port to rpm-4.2.1 based on openpkg-20030710 --------------------------------------------------- In this directory: 1. Prebuilt source RPM/shell scripts openpkg-20030710_4.2.1-20030710_4.2.1.src.rpm openpkg-20030710_4.2.1-20030710_4.2.1.src.sh 2. Boot script and spec file openpkg.spec openpkg.boot 3. Patches modified to work with rpm-4.2.1 rpm.patch.bugfix rpm.patch.feature rpm.patch.fts rpm.patch.makefile rpm.patch.porting You also need: rpm-4.2.1.tar.gz from http://www.rpm.org beecrypt-3.0.0.tar.gz from http://sourceforge.net/projects/beecrypt/ Make diffs as appropriate Caveats ------- 1. rpm.patch.regen is not applied, since it is specific to rpm-4.0.2 2. rpm --install --justdb in the build process fails for some reason, so the rpm package is _really_ installed to prepare the rpm database. 3. This part of rpm.patch.porting was not applied out of sheer laziness: +--------------------------------------------------------------------------- | Avoid non-portable construct: a self-referencing structure | declaration cannot be combined with the corresponding typedef. | Although GCC supports this (and does the correct thing), most | other stricter compilers complain and fail. +--------------------------------------------------------------------------- Index: rpmio/rpmmacro.h --- rpmio/rpmmacro.h 2000/12/11 18:41:27 1.1.1.2 +++ rpmio/rpmmacro.h 2001/06/25 19:26:59 1.2 @@ -6,14 +6,15 @@ */ /*! The structure used to store a macro. */ -typedef /[EMAIL PROTECTED]@*/ struct MacroEntry { +struct MacroEntry { struct MacroEntry *prev;/*!< Macro entry stack. */ const char *name; /*!< Macro name. */ const char *opts; /*!< Macro parameters (a la getopt) */ const char *body; /*!< Macro body. */ int used; /*!< No. of expansions. */ int level; /*!< Scoping level. */ -} MacroEntry; +}; +typedef /[EMAIL PROTECTED]@*/ struct MacroEntry MacroEntry; /*! The structure used to store the set of macros in a context. */ typedef /[EMAIL PROTECTED]@*/ struct MacroContext { 4. This version of rpm uses the 'rpmbuild' command to build packages. it is included in the path of the installation. It actually calls the 'rpmb' command, but Redhat-9 also does it this way, so there. 5. I'm new to OpenPKG so touching any of this may format your root partition, misalign important astronomical objects, or cause some other really serious mischief to happen. You've been warned ;-) Cheers Conrad Steenberg <[EMAIL PROTECTED]> ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED] ----- End forwarded message ----- Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com