We have been using openpkg for a few years now and am finally looking at
a migration to using version 2.5 (currently mix of 2.2 and 2.3).
My main criticism previously had been the dependency resolution when
building and then installing packages. With the later versions (not sure
exactly when) I saw that you can use 'openpkg build' to automate this.
Using the tutorial I attempting to use this and ran into a couple of
problems.
The first was when attempting to use the 'openpkg build' it uses the
rpmbuild command with a ftp based URL to download the packages.
Unfortunately rpmbuild does not seem to be proxy aware. We are stuck
behind an authenticating proxy.
To work around this I changed the /libexec/openpkg/build script
to do the following:
# output build commands
echo "echo :::: ::::"
if [ ! -f "/..rpm" ]; then
echo "wget || exit $?"
short=
echo "/bin/openpkg rpm --rebuild || exit
$?"
fi
This works in the simplistic cases by setting the 'ftp_proxy'
environment variable with http://username:[EMAIL PROTECTED]:80/. This
certainly is not an 'elegant' solution, but it worked in my case.
The next problem is that as soon as it tries to build the first package
(make) it fails as it cant find a compiler. Walking through the scripts
it would seem that the environment is cleared out. For the bootstrap I
used a gcc from a previous installation of openpkg and that works.
As a workaround in this case I created a symbolic link from
/bin/cc to the gcc in the other installation (under a different
directory name). Is this the right way to do this? I tried various
incarnations of setting CC and GCC before running build, but these did
not seem to work.
Thanks for any assistance you can provide.
Jason Wilson
************************************************************************
The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.
Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.
If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.
************************************************************************
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [email protected]