Subject: pkg/13417: pkgsrc/mk/bsd.buildlink.mk fix for zoularis
To: None <gnats-bugs@gnats.netbsd.org>
From: None <peter@control.auc.dk>
List: netbsd-bugs
Date: 07/09/2001 03:02:40
>Number:         13417
>Category:       pkg
>Synopsis:       pkgsrc/mk/bsd.buildlink.mk fix for zoularis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 09 03:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Peter L. Petersen
>Release:        Zoularis-20010322 Solaris-8-sparc
>Organization:
Aalborg Univeristy
>Environment:
SunOS dupont.control.auc.dk 5.8 Generic_108528-06 sun4u sparc SUNW,Ultra-4

>Description:
Packages using 

.include "../../devel/zlib/buildlink.mk"

will nok compile under zoularis

>How-To-Repeat:
cd pkgsrc/graphics/png
bmake

.....
creating pngtest
/bin/sh: syntax error at line 1: `^' unexpected
*** Error code 2

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

>Fix:
To make pkgsrc/graphics/png compile under zoularis, use this patch

 gdiff -Naur ../../mk/bsd.buildlink.mk.peter-010709-10\:22  ../../mk/bsd.buildlink.mk
--- ../../mk/bsd.buildlink.mk.peter-010709-10:22        Mon Jul  2 13:23:02 2001
+++ ../../mk/bsd.buildlink.mk   Mon Jul  9 10:57:28 2001
@@ -160,7 +160,7 @@
 #
 .if defined(USE_LIBTOOL)
 REPLACE_BUILDLINK+=    \
-       `${FIND} . -name "*.lai" | ${SED} -e "s|^\./||" | ${SORT}`
+       `${FIND} . -name "*.lai" | ${SED} -e 's|^\./||' | ${SORT}`
 .endif
 
 .if defined(REPLACE_BUILDLINK)

/Peter
>Release-Note:
>Audit-Trail:
>Unformatted: