Subject: pkg/27072: galeon12 problems with buildlink
To: None <gnats-bugs@gnats.NetBSD.org>
From: Simon Burge <simonb@wasabisystems.com>
List: pkgsrc-bugs
Date: 09/29/2004 14:33:48
>Number:         27072
>Category:       pkg
>Synopsis:       galeon12 problems with buildlink
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 29 04:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0_BETA, sources from 2.0 branch on 5 Sep 2004, pkgsrc
>Organization:
Wasabi Systems
>Environment:
System: NetBSD thoreau 2.0_BETA NetBSD 2.0_BETA (THOREAU)
	#10: Sat Sep 18 17:38:45 EST 2004
	simonb@thoreau:/usr/obj/sys/arch/i386/compile/THOREAU i386
Architecture: i386
Machine: i386
>Description:
	Trying to build pkgsrc/www/galeon12 on an i386 2.0 branch
	machine gives the following errors:

===> Creating toolchain wrappers for galeon-1.2.14
/bin/cp /usr/obj/pkg/www/galeon12/work.thoreau/.buildlink/bin/cc /usr/obj/pkg/www/galeon12/work.thoreau/.buildlink/bin/cc.orig
cp: /usr/obj/pkg/www/galeon12/work.thoreau/.buildlink/bin/cc: No such file or directory
*** Error code 1

Stop.

	Deleting the following likes from the package Makefile fixes the
	problem for me:

.if !empty(CC_VERSION:Mgcc-3*)
# Workaround for gcc3 build issue
post-buildlink:
        ${CP} ${BUILDLINK_DIR}/bin/cc ${BUILDLINK_DIR}/bin/cc.orig
        ${SED} 's:\(exec \$$cmd\):\1 -lstdc++ -lm:' ${BUILDLINK_DIR}/bin/cc.orig
\
                                                > ${BUILDLINK_DIR}/bin/cc
.endif

>How-To-Repeat:
	On at least an i386 2.0 box:

	  $ cd /usr/pkgsrc/www/galeon12
	  $ make

>Fix:
	None given.  I don't know why the above was added, but deleting
	it makes this package build on NetBSD 2.0.
>Release-Note:
>Audit-Trail:
>Unformatted:
 		source from 28 Sep 2004.