Subject: pkg/24346: audio/xine-arts fails to install, wrong libtool syntax in Makefile
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <Kai.Puolamaki@iki.fi>
List: netbsd-bugs
Date: 02/07/2004 15:49:18
>Number:         24346
>Category:       pkg
>Synopsis:       audio/xine-arts fails to install, wrong libtool syntax in Makefile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 07 15:50:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kai Puolamaki
>Release:        1.6.1
>Organization:
>Environment:
NetBSD winnie.localdomain 1.6.1 NetBSD 1.6.1 (WINNIE) #0: Sat Jan 31 12:28:48 EET 2004     root@winnie.localdomain:/usr/src/sys/arch/i386/compile/WINNIE i386

>Description:
sound/xine-arts fails to install. libtool --mode install is
stuck to an infinite loop. 

The loop is caused by a failed test
due to slash in the end of the path name 
(/usr/pkg/lib/xine/plugins/1.0.0/):

kaip@winnie ~ % cd /usr/pkgsrc/audio/xine-arts/work.i386/xine-lib-1-rc0a/src/audio_out
kaip@winnie audio_out % libtool -n --debug --mode=install install -c -o root -g wheel -m 444  xineplug_ao_out_arts.la /usr/pkg/lib/xine/plugins/1.0.0/
[clip]
+ dest=/usr/pkg/lib/xine/plugins/1.0.0
+ test /usr/pkg/lib/xine/plugins/1.0.0 != /usr/pkg/lib/xine/plugins/1.0.0/
+ tmp=/usr/pkg/lib/xine/plugins/1.0.0/
+ echo X/usr/pkg/lib/xine/plugins/1.0.0
+ /usr/bin/sed -e 1s/^X// -e s%[^/.][^/.]*/\.\.%%g -e s%/\./%/%g -e s%//*%/%g -e s%/$%%g
+ dest=/usr/pkg/lib/xine/plugins/1.0.0
+ test /usr/pkg/lib/xine/plugins/1.0.0 != /usr/pkg/lib/xine/plugins/1.0.0/
+ tmp=/usr/pkg/lib/xine/plugins/1.0.0/
+ echo+ /usr/bin/sed -e 1s/^X// -e s%[^/.][^/.]*/\.\.%%g -e s%/\./%/%g -e s%//*%/%g -e s%/$%%g
[clip]

>How-To-Repeat:
# cd /usr/pkgsrc/audio/xine-arts
# make install
===> Checking for vulnerabilities in xine-arts-1rc0a
=> Checksum OK for xine-lib-1-rc0a.tar.gz.
===> Extracting for xine-arts-1rc0a
[clip]
=> Fixing buildlink references in files-to-be-installed.
===> Installing for xine-arts-1rc0a
cd /usr/pkgsrc/audio/xine-arts/work.i386/xine-lib-1-rc0a/src/audio_out &&  /usr/pkg/bin/libtool --mode=install install -c -o root -g wheel -m 444  xineplug_ao_out_arts.la /usr/pkg/lib/xine/plugins/1.0.0/
[Install freezes here]
>Fix:
--- audio/xine-arts/Makefile.orig       Sat Feb  7 17:46:20 2004
+++ audio/xine-arts/Makefile    Sat Feb  7 17:46:30 2004
@@ -13,7 +13,7 @@
 do-install:
        cd ${WRKSRC}/src/audio_out && \
                ${LIBTOOL} --mode=install ${INSTALL_DATA} \
-               xineplug_ao_out_arts.la ${PREFIX}/lib/xine/plugins/1.0.0/
+               xineplug_ao_out_arts.la ${PREFIX}/lib/xine/plugins/1.0.0
 
 .include "../../audio/arts/buildlink2.mk"
 .include "../../converters/libiconv/buildlink2.mk"

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