On Mon, Sep 18, 2006, Adam D. Morley wrote: > [...] > It does indeed have "with_dbd_sqlite" set to no. Here's the tail end of > the output of "openpkg build -z -r /var/tmp/opkg perl-dbi" > (/var/tmp/opkg is a local cache of ftp.openpkg.org, circa last Thursday > or so, since we're behind a proxy. without -r, the results are the > same): > > echo :::: /var/tmp/opkg/SRC/perl-dbi-5.8.8-2.20060622.src.rpm :::: > /opt/openpkg/bin/openpkg rpm --define 'with_dbd_sqlite no' --rebuild > /var/tmp/opkg/SRC/perl-dbi-5.8.8-2.20060622.src.rpm || exit $? > /opt/openpkg/bin/openpkg rpm --force -Uvh > /opt/openpkg/RPM/PKG/perl-dbi-5.8.8-2.20060622.sparc64-solaris10-oop.rpm > || exit $? > echo :::: /var/tmp/opkg/SRC/perl-dbi-5.8.8-2.20060622.src.rpm = $? :::: > > The problem is: I built the package normally with 2.5. Further, > another system running the exact same version of OpenPKG that I'm > upgrading from reports the following from "openpkg build -z perl-dbi": > > echo :::: > ftp://ftp.openpkg.org/release/2.5/SRC/perl-dbi-5.8.7-2.5.0.src.rpm :::: > /opt/openpkg/bin/openpkg rpm --rebuild > ftp://ftp.openpkg.org/release/2.5/SRC/perl-dbi-5.8.7-2.5.0.src.rpm || > exit $? > /opt/openpkg/bin/openpkg rpm --force -Uvh > /opt/openpkg/RPM/PKG/perl-dbi-5.8.7-2.5.0.sparc64-solaris10-oop.rpm || > exit $? > echo :::: > ftp://ftp.openpkg.org/release/2.5/SRC/perl-dbi-5.8.7-2.5.0.src.rpm = $? > :::: > > So somewhere, the option got twiddled. I do know that the src rpm I > downloaded for 2.20060622 has the option set correctly at "yes." But, > upon trying to manually build the package from the source rpm, I get: > > [root perl-dbi]# openpkg rpm -bb perl-dbi.spec > error: Failed build dependencies: > sqlite is needed by perl-dbi-5.8.8-2.20060622 > > So somewhere from the upgrade to 2.5 to 2.20060622, openpkg build seems > to have missed the addition of sqlite as a requirement for perl-dbi. > Likely because 2.5's perl-dbi has "with_dbd_sqlite" set to "no", so the > build script must not consider this possibility?
Yes, seems like "openpkg build" has no possibility here. The default was "no" in 2.5 and is "yes" in 2.20060622. So, "openpkg build" thinks that the "no" in 2.5 was _manually_ set and correctly forward passes-through this value to the build of 2.20060622. There is real solution for this dependency-change-on-upgrade dilemma as RPM doesn't safe information whether an option was _explicitly_ set or not (and this way is set to the default). But I've now at least added the dependency perl-dbi::with_dbd_sqlite=yes to perl-dbix. > I take it the best way > to reset the option is to manually build sqlite, then rebuild perl-dbi > manually, and then continue with the -ZaKB? > [...] You can easily fix those situations with "openpkg build -g -Dwith_dbd_sqlite=yes perl-dbi | sh" as shown in the manual page which you can read via "openpkg man build". Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org