On Fri, Dec 07, 2007, Birger Krägelin wrote:

>         for PKG in fsl make binutils gcc perl
>         do
>            /opt/local/bin/openpkg build  -D use_cc="/openpkg/bin/gcc" \
>                                          -D use_make="/openpkg/bin/make" \
>                                          ${PKG} | sh
>         done
>
> this does not work, error messages are
>
> ...
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
> config.status: creating pcre-config
> config.status: WARNING:  pcre-config.in seems to ignore the --datarootdir 
> setting
> config.status: creating config.h
> config.status: executing adjustment commands
> + /openpkg/bin/make --no-print-directory
> /bin/sh: make: not found
> make: *** [_SUBDIRS_all] Error 1
> error: Bad exit status from /opt/local/RPM/TMP/rpm-tmp.15668 (%build)
> RPM build errors:
>     Bad exit status from /opt/local/RPM/TMP/rpm-tmp.15668 (%build)
>
> what's going on there?
> I run this as user root, I run this as user opkg (/opt/local-user), I
> setup PATH, I create symlinks in /usr/local/bin

Well, you are building in order "fsl make...", i.e. first "fsl" then
"make" (keep in mind that there is no dependency from "make" to "fsl" so
"openpkg build" sees to reason to change the order). Nevertheless you
specify -Duse_make="/openpkg/bin/make" for all packages. So, you have to
build "make binutils gcc" first. Then you can the usual "openpkg build"
in any order.

So, my way to bootstrap under Solaris would be:

$ sh openpkg-*-*.src.sh --use_cc="/openpkg/bin/gcc"
$ sh ./openpkg-*-*.sh
$ /openpkg/bin/openpkg build \
  -D use_cc="/openpkg/bin/gcc" \
  make | sh
$ /openpkg/bin/openpkg build \
  -D use_cc="/openpkg/bin/gcc" \
  -D use_make="/openpkg/bin/make" \
  binutils gcc | sh

After this you should be able to build whatever you like in an arbitrary
order and with simple "/openpkg/bin/openpkg build foo | sh" commands...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      [email protected]

Reply via email to