On Mon, Jun 21, 2004, F. Even wrote:

Dear F.,

> I've experienced an error (at end of msg) trying to upgrade OpenPKG to
> the 1.9 bootstrap so I can update it to 2.0. Any suggestions?
> 
> System: FreeBSD 4.0
> 
I hope you mean FreeBSD 4.10, but anyway:

> [EMAIL PROTECTED] pwd
> /cw/RPM/TMP
> [EMAIL PROTECTED] ls -lrt [...]
> [EMAIL PROTECTED] pwd
> /cw/RPM/SRC
> [EMAIL PROTECTED] ls -lt | head
> 
> Does the existence of these files matter? Do I just have cruft from
> the previous builds that need to be removed?
> 
With respect to OpenPKG you can always safely discard anything in and
below $PREFIX/RPM/TMP and $PREFIX/RPM/SRC. Take care when you use these
areas on your own initiative, i.e. for developing and maintaining local
package modifications.

> [EMAIL PROTECTED] rpm --rebuild 
> ftp://ftp.openpkg.org/release/2.0/SRC/openpkg-1.9.0-2.0.0.src.rpm
> [curl fails in main.c:1014:2: #error "lack of strtoll() needs fixing"]
> 
I remember we recently did some portability hacking for the curl
application embedded in the bootstrap. Please try the latest 2.0 [1]
bootstrap and if that doesn't help use the latest CURRENT [2] bootstrap.

Because you're upgrading from 1.x you have to tweak the spec
to get accepted by the old rpm. Follow the second option of
"upgrade procedure with intermediate step" as described in
http://cvs.openpkg.org/openpkg-re/upgrade.txt What you need is
probably something like a 1.9.3 package which you can create by
installing the source RPM of 2.0.3 and editing the openpkg.spec in
$PREFIX/RPM/SRC/openpkg. Remove the "Class:" header and the %track
section and append the string " [CORE]" to the "Description:" header.
That's the whole difference between 2.0.0 and 1.9.0 anyway. The same
works with CURRENT, too. The 1.9.x number is arbitrary by the way, be
creative.

[1] ftp://ftp.openpkg.org/release/2.0/UPD/openpkg-2.0.3-2.0.3.src.rpm
[2] ftp://ftp.openpkg.org/current/SRC/openpkg-20040609-20040609.src.rpm

--
[EMAIL PROTECTED], Cable & Wireless
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to