On Tue, Jun 05, 2007, Ralf S. Engelschall wrote:
[...]
for the moment, on the i386, I have to create two virtual packages,
as suggested by Bill (binutils and gcc).
A "gcc" package should be enough as this is the only one requiring
"binutils". OTOH, is GCC or Binutils the actual problem under Mac OS X?
I guess it is Binutils and stock GCC works, right? Or in other words:
would it work if we use the "gcc" package but without the "binutils"
package (instead the system ld/as etc are used)?
Virtual package binutils was only a way to tell rpm db that it's
installed.
Virtual package gcc needed gcc g++ and i686-apple-darwin8-g++-4.0.1
i686-apple-darwin8-gcc-4.0.1 linked to /openpkg/bin
With these two hacks I had a working openpkg instance.
Ok, I've hacked "binutils", "gcc" and "openpkg-import" a little bit
and now you can try out the following two things to get your OpenPKG
instance working:
1. The regular method:
The latest "binutils" package now builds without as(1), ld(1) and
strip(1) now under Darwin / Mac OS X. In case those three tools are
the major problem makers under Mac OS X this now could solve the
issue. Just install "binutils" and "gcc" the regular way and see
whether a package which requires "gcc" now really builds fine and
also _WORKS_ under run-time.
Tried to install binutils, fails with the following;
http://www.kalou.net/openpkg/openpkg-build-binutils-failed.20070604.txt
2. The replacement method:
In case approach (1) fails, you can try to replace the "binutils"
and "gcc" packages with virtual packages containing symlinks to the
system commands. For this install OpenPKG package "openpkg-import"
with options "with_binutils=yes" and perhaps even "with_gcc=yes" set.
Hmmm. Just installed openpkg-import
( openpkg build openpkg-import -Dwith_gcc=yes -Dwith_binutils=yes | sh )
tried with space between -D and with, same result.
but this package seems to have no file .. don't understand how it
should behave .. did I miss something ? when I retry build nagios | sh
after installing openpkg-import, it triggers the build of binutils
once more ..
Olivier
______________________________________________________________________
OpenPKG http://openpkg.org
User Communication List openpkg-users@openpkg.org