On 6 April 2010 04:37, Jeff Johnson <n3npq....@gmail.com> wrote: > > > I can certainly sort out the generic RPM problem for you. > > What hampers me is that RPM is highly configurable, and > so I'm out of my element w OpenPKG. > > But if you manage to get -vv output, the type and location where resolved > of every dependency is printed (just grep for /openpkg/lib64) > > You will see a "NO" because this is an unresolved dependency.
Indeed, the following command:- $ sudo -u openpkg /openpkg/bin/openpkg rpm -Uvvh /openpkg/RPM/PKG/openssl-1.0.0-20100331.amd64-rhel5.4-openpkg.rpm gave:- D: opening db environment /openpkg/RPM/CACHE/Packages auto_commit:cdb D: opening db index /openpkg/RPM/CACHE/Packages rdonly mode=0x0 D: opening db index /openpkg/RPM/CACHE/Basenames rdonly mode=0x0 D: Dirs: /openpkg/lib64 NO D: package openssl-1.0.0-20100331 has unsatisfied Dirs: /openpkg/lib64 > I gave you the work-around for stubbing out a Dirnames dependency. > There's also an rpm(8) disabler --noparentdirs that will turn > off the checking. $ find /openpkg/man/ -name '*rpm*' returned no results. But adding the --noparentdirs seemed to have done the trick:- $ sudo -u openpkg /openpkg/bin/openpkg rpm -Uvvh --noparentdirs /openpkg/RPM/PKG/openssl-1.0.0-20100331.amd64-rhel5.4-openpkg.rpm > > Same procedure, just .../etc/rpm/sysinfo/Requirename for stubbing > out a requires dependency. > > if Requires: (not Dirs:) is seen then this is just a packaging flaw. > Find what > > What I _DONT_ know is what path the ../etc/rpm/sysinfo directory has moved to. > But rpm --showrc should display that information. $ openpkg rpm --showrc | grep sysinfo -14: _rpmds_sysinfo_path %{_etcrpm}/sysinfo $ openpkg rpm --showrc | grep etcrpm -14: _etcrpm /openpkg/etc/openpkg -14: _rpmds_sysinfo_path %{_etcrpm}/sysinfo Ah ha! The path moved to /openpkg/etc/openpkg/sysinfo !! No wonder the Dirnames trick didn't work before. Just to confirm that the Dirnames trick works, I proceeded to "... rpm -e openssl" and reinstalled openssl the usual way:- $ sudo -u openpkg sh -c "/openpkg/bin/openpkg build \ -Dapache::with_{lots.of.flags} \ -Dopenssl::with_threads -ge apache openssl | sh" :::: http://download.openpkg.org/packages/current/source/CORE/openssl-1.0.0-20100331.src.rpm :::: Preparing... ########################################### [100%] 1:openssl ########################################### [100%] :-) :-) :-) > > hth That has been enormously helpful. Thanks a lot! Cheers, Jeffrey ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org