pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/34966: CC set in pkgtools/bootstrap-mk-files breaks math/gap install
>Number: 34966
>Category: pkg
>Synopsis: CC set in pkgtools/bootstrap-mk-files breaks math/gap install
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 02 05:50:00 +0000 2006
>Originator: Oliver Gould
>Release:
>Organization:
Stevens Institute of Techmology
>Environment:
Darwin absolute 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT
2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
>Description:
/usr/pkg/share/mk/sys.mk sets CC to "gcc -pipe" or "cc
-pipe". When math/gap appends the compiler to the package
name (math/gap/Makefile:31), the command line during the
install phase gets mangled due to the unexpected space
character. Furthermore, /usr/pkg/bin/gap (a shell script)
becomes misconfigured (and fails to run) due to the space in
the pathname configured based on the CC variable.
>How-To-Repeat:
cd pkgtools/bootstrap-mk-files
make install
...
cd ../../math/gap
make install
...
/usr/bin/install -d -o root -g wheel -m 755
/usr/pkg/lib/gap4.3/bin/i386-apple-darwin8-gcc -pipe
/usr/bin/install -c -s -o root -g wheel -m 555
/usr/pkgsrc/math/gap/work/gap4r3/bin/i386-apple-darwin8-gcc -pipe/gap
/usr/pkg/lib/gap4.3/bin/i386-apple-darwin8-gcc -pipe
install: /usr/pkgsrc/math/gap/work/gap4r3/bin/i386-apple-darwin8-gcc:
Inappropriate file type or format
*** Error code 71
>Fix:
--- pkg/share/mk/sys.mk 2006-10-18 17:17:20.000000000 -0400
+++ /home/ogould/work/sys.mk 2006-11-01 13:07:03.000000000 -0500
@@ -21,12 +21,12 @@
LINK.S?= ${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS}
.if exists(/usr/bin/gcc)
-CC?= gcc -pipe
+CC?= gcc
.else
-CC?= cc -pipe
+CC?= cc
.endif
DBG?= -O2
-CFLAGS?= ${DBG}
+CFLAGS?= -pipe ${DBG}
COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
Home |
Main Index |
Thread Index |
Old Index