On Tue, Jun 17, 2003, Conrad Steenberg wrote: > I built a relocatable package, and I'm trying to install it on another > system with a different OpenPKG root. Using e.g. > rpm --prefix /home/username/openpkg <pkg>.rpm > > results in > error: unpacking of archive failed [....] > Conrad, OpenPKG uses rpm as a base. We had to extend rpm functionality in some areas while other rpm functionalities stay dormant. We cannot support any aspect rpm offers which leads to some options, including --relocate, simply not working. We should consider disabling them.
OpenPKG was not designed to support relocation of binary packages. Unless you stick with the minimum and usually useless possibility of extracting files to another location relocation would be a hard job to do when it comes to change the already prepared pathnames found in configfiles and binaries. The OpenPKG way of doing it is to rebuild from source. Even this was sometimes a hard job to accomplish, and many packages had to be tweaked a lot to make this happen. But that's what we support and if you find any package that fails to do this we'll fix it (openldap remains a good candidate for bug discovery). If you just want the files for whatever reason, say without installing and risk overwriting an existing instance or you don't have a matching instance but want to have a look at a config file, use rpm2cpio and extract it. If you want to build a package only once but use it multiple times in different OpenPKG instances, you can create a proxy package which is more or less a bunch of symlinks across instances. This allows for rapid deployment and preserves disk space at the expense of upgrading the master package requires some additional considerations. Finally, on 2002-01-16 Dave Dykstra posted an interesting article on this list about breloc which is a small program that does binary edits on files to relocate compiled-in "prefix"es. We decided not to include it and the functionality of binary relocatability into OpenPKG. If you would like to give it a try, have a look at http://www.bell-labs.com/nsbd/breloc.html -- [EMAIL PROTECTED] Development Team, Operations Northern Europe, Cable & Wireless ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED]
