Hi Bill,
when are the .src.rpm build ? are they re-build each time the
spec file changes (does not seem to be the case). So they are build once
per release, and if we need something bleeding edge, we can use the
RPM/SRC dir, right ?
is there a way to fetch automatically dependencies from inside
the spec file ? tried openpkg man .. but i just know the "build" command
at this time, and openpkg man openpkg does not refer to any other command,
except lsync, but it does not seem to be what i need.
is there some kind of "fetch" command, or is apt suited for this
task of fetching the sources before build ?
This is what the ``openpkg build packagename'' command does.
It's part of the openpkg-tools package. You can create a file,
$HOME/.openpkg/build, with options for the build as well as
definitions for individual package options.
Hmm. To me, openpkg build only does a rpmbuild --rebuild of the .src.rpm
that he has just fetched from ftp.openpkg.org, like we can see below;
[EMAIL PROTECTED] openpkg build apache | egrep -v ^#
echo ::::
ftp://ftp.openpkg.org/release/E1.0/SRC/BASE/apache-1.3.37-E1.0.0.src.rpm
::::
/openpkg/bin/openpkg rpm --rebuild
ftp://ftp.openpkg.org/release/E1.0/SRC/BASE/apache-1.3.37-E1.0.0.src.rpm
|| exit $?
/openpkg/bin/openpkg rpm -Uvh
/openpkg/RPM/PKG/apache-1.3.37-E1.0.0.ix86-fedora3-openpkg.rpm || exit $?
echo ::::
ftp://ftp.openpkg.org/release/E1.0/SRC/BASE/apache-1.3.37-E1.0.0.src.rpm =
$? ::::
I'm attaching the .openpkg/build file for the system I'm using
for this e-mail. Some options may be non-standard as have done
some tweaking on a few packages to meet our local needs (e.g.
adding with_shared to python to support with_python for the
postgresql package). Our system is a hybrid of OpenPKG Release
2.5 and CURRENT with some local packages.
hmm interesting. I can see that your openpkg repository was changed
to ftp://ftp.celestial.com/private/ftp.openpkg.org/release/2.5, can
you tell me how you did this ?
The build file does not show the whole build process, so it's still
not clear to me if the command you typed detected that some tar.gz
or tar.bz2 files files where missing and downloaded it.
Currently i'm using E1.0, and the following file;
ftp://ftp.openpkg.org/release/E1.0/SRC/BASE/apache-1.3.37-E1.0.0.src.rpm
is not in sync with latest cvs version of apache.spec, nor does it
include all the tar.bz2 or tar.gz files needed to compile with --ba the
apache.spec .
Uncompressed the src.rpm file to a cpio, then cpio -id the result,
to have the tar archives missing. Still don't know how to fetch
automatically the tar archives .. :-)
(
error: Bad file:
/openpkg/RPM/SRC/apache/suhosin-patch-5.2.1-0.9.6.2.patch.gz: No such file
or directory
error: Bad file: /openpkg/RPM/SRC/apache/mod_auth_kerb-5.3.tar.gz: No such
file or directory
error: Bad file: /openpkg/RPM/SRC/apache/suhosin-0.9.16.tgz: No such file
or directory
error: Bad file: /openpkg/RPM/SRC/apache/suphp-0.6.2.tar.gz: No such file
or directory
error: Bad file: /openpkg/RPM/SRC/apache/php-5.2.1.tar.gz: No such file or
directory
)
______________________________________________________________________
OpenPKG http://openpkg.org
User Communication List [email protected]