Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2010 20:49:54 +0200 (CEST)
From:      Oliver Wegner <oliver@skriptepedia.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        oliver@skriptepedia.de
Subject:   ports/145661: [patch] audio/xmms2 : compilation error when configured to use audio/mpg123
Message-ID:  <201004121849.o3CInsPo013664@freebsd.oliver.local>
Resent-Message-ID: <201004121930.o3CJU3PL084922@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         145661
>Category:       ports
>Synopsis:       [patch] audio/xmms2 : compilation error when configured to use audio/mpg123
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 12 19:30:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Wegner
>Release:        FreeBSD 8.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD freebsd.oliver.local 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
building xmms2 (Versions in Makefile say: PORTVERSION=0.6 , PORTREVISION=4) with
option MPG123 fails with the following error (ports are from csup):

[root@freebsd /usr/ports/audio/xmms2]# FORCE_PKG_REGISTER=1 make
...
Error: shared library "mpg123.20" does not exist
*** Error code 1

inspecting libmpg123 (that has been built in the very same process from the very same
source tree (csup) ):

[root@freebsd /usr/ports/audio/xmms2]# ls -la /usr/local/lib/libmpg123.*
-rwxr-xr-x 1 root wheel 968 Apr 12 19:59 /usr/local/lib/libmpg123.la
lrwxr-xr-x 1 root wheel 15 Apr 12 19:59 /usr/local/lib/libmpg123.so -> libmpg123.so.22
-rwxr-xr-x 1 root wheel 264134 Apr 12 19:59 /usr/local/lib/libmpg123.so.22

while the xmms2 Makefile still refers to libmpg123.so.20:

[root@freebsd /usr/ports/audio/xmms2]# cat Makefile|grep mpg123
LIB_DEPENDS+= mpg123.20:${PORTSDIR}/audio/mpg123

Adjusting the Makefile to use libmpg123.so.22 fixes this (see fix below).

>How-To-Repeat:
see above

>Fix:
--- Makefile.org        2010-04-12 18:20:12.000000000 +0200
+++ Makefile    2010-04-12 20:08:16.000000000 +0200
@@ -234,7 +234,7 @@
 .endif
 
 .if !defined(WITHOUT_MPG123)
-LIB_DEPENDS+=  mpg123.20:${PORTSDIR}/audio/mpg123
+LIB_DEPENDS+=  mpg123.22:${PORTSDIR}/audio/mpg123
 PLIST_SUB+=    MPG123=""
 .else
 EXCLUDE+=      --without-plugins="mpg123"

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004121849.o3CInsPo013664>