[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-26 Thread Ralf S. Engelschall via RT
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: Tue Aug 26 16:14:16 2003


Ok, the final results of our OPENPKG_UPGRADE_RPM42 branch was
now merged down to TRUNK in our OpenPKG CVS repository. This
way OpenPKG-CURRENT starting with openpkg-20030826-20030826
is now RPM 4.2.1 based. Thanks to all contributors for their help.
The merge details you can review under http://cvs.openpkg.org/chngview?cn=11872

-- 
 Ralf S. Engelschall
 OpenPKG Project Leader
 [EMAIL PROTECTED]

__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   [EMAIL PROTECTED]


[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-26 Thread Ralf S. Engelschall via RT
Request 68 was acted upon.
This is an automatically generated message.


 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: resolved
 Transaction: Status changed from open to resolved by rse
Time: Tue Aug 26 16:14:18 2003
_

According to our records, your request has been resolved. If you have
any further questions or concerns, please just respond to this message.
__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   [EMAIL PROTECTED]


[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-14 Thread Michael van Elst via RT
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: mlelstv
  Status: open
 Transaction: Correspondence added by mlelstv
Time: Tue Aug 05 14:38:30 2003


Conrad,

I managed to adapt rpm-4.2.1 to run under FreeBSD4 after ironing out
some heavy Linuxisms in the code. I don't see any major obstacle to
get it running on all our supported platforms.

 - Needs to be upgraded to the newer shell functions for rc scripts

Sure, but that's just drag and drop or copy and paste :)

 - popt options doesn't work in rpm

Can you elaborate on that ?

 - rpm wants to use its own version of libdb, this was worked around by
 renaming the rpm-specific libdb source dir (db3-db3.tmp). This way it
 picks up db-4.1.x from the main openpkg distribution, but it may not
 be
 the most elegant way of doing it.

Probably not, but it is important for compatibility. BTW, we use the
older db-3.2.9.

 - hardcoded a few defines to make rpm/4.2.1/rpmio compile since the
 configure script that ships with rpm-4.2.1 didn't seem to get it
 right.

Yes. There needs more to be done in this area for portability.

I hope to get a working package out this week.

Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS




[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-14 Thread Conrad Steenberg via RT
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: mlelstv
  Status: open
 Transaction: Correspondence added by [EMAIL PROTECTED]
Time: Tue Aug 05 18:21:24 2003


On Tue, 2003-08-05 at 05:38, Michael van Elst via RT wrote:
 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: mlelstv
   Status: open
  Transaction: Correspondence added by mlelstv
 Time: Tue Aug 05 14:38:30 2003
 
 
 Conrad,
 
 I managed to adapt rpm-4.2.1 to run under FreeBSD4 after ironing out
 some heavy Linuxisms in the code. I don't see any major obstacle to
 get it running on all our supported platforms.

Glad to hear :-)

 
  - Needs to be upgraded to the newer shell functions for rc scripts
 
 Sure, but that's just drag and drop or copy and paste :)
 
  - popt options doesn't work in rpm
 
 Can you elaborate on that ?

Typing rpm --help:
... [ a long list of options]
Options implemented via popt alias/exec:
 
Help options:
  -?, --help   Show this help message
  --usage  Display brief usage message
[end]

I.e. the list of 'options implemented via popt alias/exec' is empty.
Testing with e.g. 
rpm -qip package.rpm
gives '-qip: unknown option'

Cheers

Conrad

 
  - rpm wants to use its own version of libdb, this was worked around by
  renaming the rpm-specific libdb source dir (db3-db3.tmp). This way it
  picks up db-4.1.x from the main openpkg distribution, but it may not
  be
  the most elegant way of doing it.
 
 Probably not, but it is important for compatibility. BTW, we use the
 older db-3.2.9.

  - hardcoded a few defines to make rpm/4.2.1/rpmio compile since the
  configure script that ships with rpm-4.2.1 didn't seem to get it
  right.
 
 Yes. There needs more to be done in this area for portability.
 
 I hope to get a working package out this week.
 
 Greetings,

-- 
Conrad Steenberg [EMAIL PROTECTED]




[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-14 Thread Conrad Steenberg via RT
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: mlelstv
  Status: open
 Transaction: Correspondence added by [EMAIL PROTECTED]
Time: Wed Aug 06 02:00:46 2003


Hi

OK, I'll test your version once it is available. Hopefully the bug has
disappeared for good :-)

Conrad


On Tue, 2003-08-05 at 16:22, Michael van Elst via RT wrote:
 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: mlelstv
   Status: open
  Transaction: Correspondence added by mlelstv
 Time: Wed Aug 06 01:22:08 2003
 
 
 On Tue, Aug 05, 2003, Conrad Steenberg via RT wrote:
 
  I.e. the list of 'options implemented via popt alias/exec' is empty.
  Testing with e.g. 
  rpm -qip package.rpm
  gives '-qip: unknown option'
 
 Not here, I still have to correct a fixed path somewhere, but otherwise
 I get:
 
 Options implemented via popt alias/exec:
   --scriptslist install/erase scriptlets from
package(s)
   --setperms   set permissions of files in a package
   --setugids   set user/group ownership of files in a
package
   --conflicts  list capabilities this package conflicts
with
   --obsoletes  list other packages removed by installing
this package
   --provides   list capabilities that this package provides
   --requires   list capabilities required by package(s)
   --info   list descriptive information from package(s)
   --changelog  list change logs for this package
   --triggers   list trigger scriptlets from package(s)
   --last   list package(s) by install time, most
recent first
   --filesbypkg list all files from each package
   --fileclass  list file names with classes
   --filecolor  list file names with colors
   --fileprovidelist file names with provides
   --filerequirelist file names with requires
   --redhatprovides find package name that contains a provided
capability (needs rpmdb-redhat package
installed)
   --redhatrequires find package name that contains a required
capability (needs rpmdb-redhat package
installed)
   --buildpolicy=policy   set buildroot policy (e.g. compress man
pages)
   --with=option  enable configure option for build
   --without=option   disable configure option for build
 
 and
 
 $ ./rpm -qip make-3.80-20030723.src.rpm 
 Name: make Relocations: (not relocateable)
 Version : 3.80  Vendor: Free Software Foundation
 Release : 20030723  Build Date: Wed Jul 23 21:20:59 2003
 Install Date: (not installed)   Build Host: dv1.dev.de.cw.net
 Group   : Development   Source RPM: (none)
 Size: 1216444  License: GPL
 Signature   : (none)
 Packager: The OpenPKG Project
 URL : http://www.gnu.org/software/make/
 Summary : The GNU Make
 Description :
  This is the GNU variant of make(1). The purpose of this utility is
  to determine automatically which pieces of a large program need to
  be recompiled, and issue the commands to recompile them.
 
 
 This is mostly the result of having a full macros file, i.e. we have
 to augment the openpkg macros file and as you see from the --redhatrequires
 we also have to clean it up :-)
 
 
 Greetings,
-- 
Conrad Steenberg [EMAIL PROTECTED]




[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-14 Thread Michael van Elst via RT
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: mlelstv
  Status: open
 Transaction: Correspondence added by mlelstv
Time: Wed Aug 06 01:22:08 2003


On Tue, Aug 05, 2003, Conrad Steenberg via RT wrote:

 I.e. the list of 'options implemented via popt alias/exec' is empty.
 Testing with e.g. 
 rpm -qip package.rpm
 gives '-qip: unknown option'

Not here, I still have to correct a fixed path somewhere, but otherwise
I get:

Options implemented via popt alias/exec:
  --scriptslist install/erase scriptlets from
   package(s)
  --setperms   set permissions of files in a package
  --setugids   set user/group ownership of files in a
   package
  --conflicts  list capabilities this package conflicts
   with
  --obsoletes  list other packages removed by installing
   this package
  --provides   list capabilities that this package provides
  --requires   list capabilities required by package(s)
  --info   list descriptive information from package(s)
  --changelog  list change logs for this package
  --triggers   list trigger scriptlets from package(s)
  --last   list package(s) by install time, most
   recent first
  --filesbypkg list all files from each package
  --fileclass  list file names with classes
  --filecolor  list file names with colors
  --fileprovidelist file names with provides
  --filerequirelist file names with requires
  --redhatprovides find package name that contains a provided
   capability (needs rpmdb-redhat package
   installed)
  --redhatrequires find package name that contains a required
   capability (needs rpmdb-redhat package
   installed)
  --buildpolicy=policy   set buildroot policy (e.g. compress man
   pages)
  --with=option  enable configure option for build
  --without=option   disable configure option for build

and

$ ./rpm -qip make-3.80-20030723.src.rpm 
Name: make Relocations: (not relocateable)
Version : 3.80  Vendor: Free Software Foundation
Release : 20030723  Build Date: Wed Jul 23 21:20:59 2003
Install Date: (not installed)   Build Host: dv1.dev.de.cw.net
Group   : Development   Source RPM: (none)
Size: 1216444  License: GPL
Signature   : (none)
Packager: The OpenPKG Project
URL : http://www.gnu.org/software/make/
Summary : The GNU Make
Description :
 This is the GNU variant of make(1). The purpose of this utility is
 to determine automatically which pieces of a large program need to
 be recompiled, and issue the commands to recompile them.


This is mostly the result of having a full macros file, i.e. we have
to augment the openpkg macros file and as you see from the --redhatrequires
we also have to clean it up :-)


Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS



[OpenPKG #68] upgrade bootstrap to RPM 4.2 [comment]

2003-08-04 Thread Ralf S. Engelschall via RT
Request 68 was acted upon.
This is a comment. It is not sent to the Requestor(s).
_

 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: stalled
 Transaction: Comments added by rse
Time: Mon Aug 04 15:17:57 2003
_

Additionally, we need the following features to be patched in:

- possibility to add custom headers or at least add hard-coded
  a Class header.
- possibility to add custom sections or at least add hard-coded
  %test, %vcheck sections.
- dependency enhancement: alternative dependencies (OR instead of
  AND logic).
- dependency enhancement: library type dependencies???
  (needs more thinking ;-)


[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-04 Thread Guest User via RT
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: mlelstv
  Status: open
 Transaction: Correspondence added by guest
Time: Mon Aug 04 17:25:04 2003


 [rse - 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.

Hi

I've placed updated versions (rpm and .sh) of the openpkg base using rpm-4.2.1 at 
http://hepgrid1.caltech.edu/clarens/source/

Congratulations on releasing 1.3!

Cheers

Conrad




[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-04 Thread Michael van Elst via RT
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: mlelstv
  Status: open
 Transaction: Correspondence added by mlelstv
Time: Mon Aug 04 18:12:33 2003


Conrad,

 I've placed updated versions (rpm and .sh) of the openpkg base using rpm-4.2.1 at 
 http://hepgrid1.caltech.edu/clarens/source/

Just in time :-) I will have a close look.

On what systems do you use rpm-4.2.1 ?


Greetings,
-- 
,eM=.a-. Michael van Elst
   dWWMWM -  :GM==;[EMAIL PROTECTED]
  :WWMWMw=--.  W='  cable  wireless
   9WWMm==-.
-Wmw-  CABLE  WIRELESS



[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-08-04 Thread Conrad Steenberg via RT
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: mlelstv
  Status: open
 Transaction: Correspondence added by [EMAIL PROTECTED]
Time: Mon Aug 04 18:40:52 2003


Hi

I only used it on Redhat 7/8/9 so far. It is known not to compile on
Redhat 6.

Since you will have to look this gift horse in the mouth anyway, here is
a rundown of the crooked teeth I know about:
- Needs to be upgraded to the newer shell functions for rc scripts
- popt options doesn't work in rpm
- rpm wants to use its own version of libdb, this was worked around by 
renaming the rpm-specific libdb source dir (db3-db3.tmp). This way it
picks up db-4.1.x from the main openpkg distribution, but it may not be
the most elegant way of doing it.
- hardcoded a few defines to make rpm/4.2.1/rpmio compile since the
configure script that ships with rpm-4.2.1 didn't seem to get it right.

On the positive side, I've worked with this version on about 6 different
machines for a bout 2 weeks without any crashes, corrupt databases etc.

Cheers

Conrad


On Mon, 2003-08-04 at 09:12, Michael van Elst via RT wrote:
 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: mlelstv
   Status: open
  Transaction: Correspondence added by mlelstv
 Time: Mon Aug 04 18:12:33 2003
 
 
 Conrad,
 
  I've placed updated versions (rpm and .sh) of the openpkg base using rpm-4.2.1 at 
  http://hepgrid1.caltech.edu/clarens/source/
 
 Just in time :-) I will have a close look.
 
 On what systems do you use rpm-4.2.1 ?
 
 
 Greetings,
-- 
Conrad Steenberg [EMAIL PROTECTED]




[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-07-11 Thread Ralf S. Engelschall via RT
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.h2000/12/11 18:41:27 1.1.1.2
+++ rpmio/rpmmacro.h2001/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. */
 intused;   /*! No. of expansions. */
 intlevel;  /*! 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 Projectwww.openpkg.org
Developer Communication List   [EMAIL PROTECTED]
- End forwarded message -

   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com




[OpenPKG #68] upgrade bootstrap to RPM 4.2

2003-06-18 Thread Guest User via RT
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 guest
Time: Thu Jun 19 06:41:22 2003


 [Nobody - Wed Apr 02 17:00:02 2003]:
 
 For OpenPKG 2.0 (CURRENT branch) the bootstrap has
 to be upgraded to RPM 4.2.
 
 
 

This may fix a problem seen with relocating packages, e.g.:
OpenPKG installed under /home/conrad/openpkg
Installing package 'apt' originally compiled for an installation at 
/data/clarens/opkg, results in:

rpm --install --prefix /home/conrad//openpkg/ apt-0.5.5cnc6-fr1.ix86-linux2.4-dco.rpm
warning: /home/conrad/openpkg created as /home/conrad/openpkg.rpmnew
warning: /home/conrad/openpkg saved as /home/conrad/openpkg.rpmorig
warning: /home/conrad/openpkg created as /home/conrad/openpkg.rpmnew
warning: /home/conrad/openpkg created as /home/conrad/openpkg.rpmnew
error: can't unlink /home/conrad/openpkg-RPMDELETE: Is a directory
error: can't unlink /home/conrad/openpkg-RPMDELETE: Is a directory
error: can't rename /home/conrad/openpkg to /home/conrad/openpkg-RPMDELETE: Is a 
directory
error: unpacking of archive failed on file /home/conrad/openpkg: cpio: unlink failed - 
Is a directory

[ The // is needed for a well known bug fixed in rpm-4.0.3 ]