I'm trying to override CC in openpkg 1.3 under Solaris 8/SPARC, e.g.:

--------------------------------------------------
$ /opt/opkg/1.3/bin/rpm --define "with_cc /cw/bin/cc" --rebuild
./make-3.80-1.3.0.src.rpm

Installing make-3.80-1.3.0.src.rpm
/opt/opkg/1.3/lib/openpkg/rpmtool: cc: not found
Executing(%prep): env -i /opt/opkg/1.3/lib/openpkg/bash --norc --noprofile
--posix -e /opt/opkg/1.3/RPM/TMP/rpm-tmp.11073
+ cd /opt/opkg/1.3/RPM/TMP
+ cd /opt/opkg/1.3/RPM/TMP
+ rm -rf make-3.80
+ /opt/opkg/1.3/lib/openpkg/gzip -dc
/opt/opkg/1.3/RPM/SRC/make/make-3.80.tar.gz
+ /opt/opkg/1.3/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd make-3.80
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 1226 = 0 ']'
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 1226 = 0 ']'
+ chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #0 (make.patch):'
Patch #0 (make.patch):
+ /opt/opkg/1.3/lib/openpkg/patch -p0 -s
+ exit 0
Executing(%build): env -i /opt/opkg/1.3/lib/openpkg/bash --norc
--noprofile --posix -e /opt/opkg/1.3/RPM/TMP/rpm-tmp.11982
+ cd /opt/opkg/1.3/RPM/TMP
+ cd make-3.80
+ CC=cc
+ CFLAGS=-O
+ ./configure --prefix=/opt/opkg/1.3 --without-libiconv-prefix
--without-libintl-prefix --disable-nls
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... cc
checking for C compiler default output... configure: error: C compiler
cannot create executables
check `config.log' for details.
error: Bad exit status from /opt/opkg/1.3/RPM/TMP/rpm-tmp.11982 (%build)


RPM build errors:
    Bad exit status from /opt/opkg/1.3/RPM/TMP/rpm-tmp.11982 (%build)

$ /cw/bin/cc --version
cc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

$

--------------------------------------------------

>From config.log:
--------------------------------------------------
 .
 .
configure:2014: checking for C compiler version
configure:2017: cc --version </dev/null >&5
./configure: cc: command not found
configure:2020: $? = 127
configure:2022: cc -v </dev/null >&5
./configure: cc: command not found
configure:2025: $? = 127
configure:2027: cc -V </dev/null >&5
./configure: cc: command not found
configure:2030: $? = 127
configure:2050: checking for C compiler default output
configure:2053: cc -O   conftest.c  >&5
./configure: cc: command not found
configure:2056: $? = 127
configure: failed program was:
 .
 .
--------------------------------------------------


For some reason --define "with_cc /cw/bin/cc" has no effect for the rpm
rebuild. If I define "%l_cc /cw/bin/cc" in ~/.rpmmacros, it works, but
I'd like the command line override capability. This used to work in 1.2.

Is there something obvious I'm missing or did something change?

Thanks,
--
Vinod
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to