Subject: pkg/24639: buildlink3 framework corrupts ".la" files
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-bugs
Date: 03/02/2004 13:46:38
>Number:         24639
>Category:       pkg
>Synopsis:       buildlink3 framework corrupts ".la" files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 02 12:47:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.2 2004-03-02 packages sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD colwyn.zhadum.de 1.6.2 NetBSD 1.6.2 (COLWYN) #1: Sun Feb 8 11:34:08 CET 2004 tron@colwyn.zhadum.de:/src/sys/compile/COLWYN i386
Architecture: i386
Machine: i386
>Description:
Building the "gst-plugins" package fails during the link stage:

/src/NetBSD-current/pkgsrc/multimedia/gst-plugins/work/.buildlink/lib/libHermes.la: 17: Syntax error: Unterminated quoted string
gmake[3]: *** [libgstcolorspace.la] Error 2
gmake[3]: Leaving directory `/src/NetBSD-current/pkgsrc/multimedia/gst-plugins/work/gst-plugins-0.6.4/ext/hermes'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/src/NetBSD-current/pkgsrc/multimedia/gst-plugins/work/gst-plugins-0.6.4/ext'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/src/NetBSD-current/pkgsrc/multimedia/gst-plugins/work/gst-plugins-0.6.4'
gmake: *** [all] Error 2
*** Error code 2

The reason for this problem is that the buildlink3 framework corrupts
the ".la" file:

tron@colwyn:/usr/pkgsrc/multimedia/gst-plugins>diff -u /usr/pkg/lib/libHermes.la work/.buildlink/lib/libHermes.la
--- /usr/pkg/lib/libHermes.la   Thu Aug 28 12:16:53 2003
+++ work/.buildlink/lib/libHermes.la    Tue Mar  2 12:34:06 2004
@@ -14,7 +14,7 @@
 old_library='libHermes.a'
 
 # Libraries that this one depends upon.
-dependency_libs=' -L/usr/pkg/lib'
+dependency_libs=' 
 
 # Version information for libHermes.
 current=1
@@ -29,4 +29,4 @@
 dlpreopen=''
 
 # Directory that this library needs to be installed in:
-libdir='/usr/pkg/lib'
+libdir='/src/NetBSD-current/pkgsrc/multimedia/gst-plugins/work/.buildlink/lib'

>How-To-Repeat:
cd pkgsrc/multimedia/gst-plugins
make

>Fix:
Use buildlink2.

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