pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47838: PYTHON_FOR_BUILD_ONLY= tool can cause problems build openssl dependency for python



>Number:         47838
>Category:       pkg
>Synopsis:       PYTHON_FOR_BUILD_ONLY=  tool can cause problems build openssl 
>dependency for python
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 20 05:00:00 +0000 2013
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS dev32 5.11 illumos-gate i86pc i386 i86pc

>Description:
after a fresh bootstrap and build of gcc47 on solaris abi=32, building 
meta-pkgs/modular-xorg revealed a serious problem building openssl as a 
dependency of python27 when python itself is a "tool" BUILD dependency instead 
of "yes".
The following error extract:
===> Building for openssl-1.0.1e
making all in crypto...
gmake[1]: Entering directory 
`/tmp/pkgsrc/security/openssl/work/openssl-1.0.1e/crypto'
( echo "#ifndef MK1MF_BUILD"; \
echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
echo '  #define CFLAGS "gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS 
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O -I/opt/pkg/include -I/usr/include 
-O3 -fomit-frame-pointer -march=pentium -Wall -DL_ENDIAN 
-DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM 
-DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM 
-DGHASH_ASM"'; \
echo '  #define PLATFORM "solaris-x86-gcc"'; \
echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS 
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O -I/opt/pkg/include -I/usr/include 
-O3 -fomit-frame-pointer -march=pentium -Wall -DL_ENDIAN 
-DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM 
-DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM 
-DGHASH_ASM -I/opt/pkg/include -I/usr/include i386 -c -o cryptlib.o cryptlib.c
gcc: error: i386: No such file or directory
gmake[1]: *** [cryptlib.o] Error 1
gmake[1]: Leaving directory 
`/tmp/pkgsrc/security/openssl/work/openssl-1.0.1e/crypto'
gmake: *** [build_crypto] Error 1
*** Error code 2

Stop.

>How-To-Repeat:
Fresh bootstrap with abi=32
build lang/gcc47
build meta-pkgs/modular-xorg
>Fix:
specific fix unknown, but workaround is the following:

richard@x3200:~/src/pkgsrc/x11/xcb-proto$ cvs diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/xcb-proto/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile    10 May 2013 22:40:31 -0000      1.11
+++ Makefile    20 May 2013 04:55:11 -0000
@@ -20,7 +20,7 @@
 CONFIGURE_ENV+=                XMLLLINT=${BUILDLINK_PREFIX.libxml}/bin/xmllint
 
 # XXX just for the "configure" check
-PYTHON_FOR_BUILD_ONLY= tool
+PYTHON_FOR_BUILD_ONLY= yes
 .include "../../lang/python/application.mk"
 BUILDLINK_DEPMETHOD.libxml2?=  build
 .include "../../textproc/libxml2/buildlink3.mk"




Home | Main Index | Thread Index | Old Index