Bug 186543 - audio/musicpd fails to build if sidplay support is enabled
Summary: audio/musicpd fails to build if sidplay support is enabled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-07 17:50 UTC by Jens Grassel
Modified: 2014-02-16 20:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Grassel 2014-02-07 17:50:01 UTC
If I enable the SIDPLAY2 option for musicpd it fails to build complaining about missing libraries:

configure: error: sidplay decoder plugin: libresid-builder or libsidutils not found
===>  Script "configure" failed unexpectedly.
Please report the problem to crees@FreeBSD.org [maintainer] and attach the
"/usr/ports/audio/musicpd/work/mpd-0.18.5/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/audio/musicpd.
*** [build] Error code 1

Stop in /usr/ports/audio/musicpd.

However I have installed the sidplay and sidplay2 libraries.

# pkg info | grep sidplay
gstreamer-plugins-sidplay-0.10.19,3 Gstreamer Commodore SID decoder plugin
libsidplay-1.36.59             Commodore SID-chip emulator library to play SID music files
libsidplay2-2.1.1_2            Library to play Commodore 64 SID-tunes cycle accurate

# locate libsidutils
/usr/local/lib/libsidutils.a
/usr/local/lib/libsidutils.la
/usr/local/lib/libsidutils.so
/usr/local/lib/libsidutils.so.0
/usr/local/libdata/pkgconfig/libsidutils.pc
/usr/ports/audio/libsidplay2/files/patch-libsidutils_include_sidplay_utils_SidUsage.h

# locate resid-builder
/usr/local/lib/sidplay/builders/libresid-builder.a
/usr/local/lib/sidplay/builders/libresid-builder.la
/usr/local/lib/sidplay/builders/libresid-builder.so
/usr/local/lib/sidplay/builders/libresid-builder.so.0

How-To-Repeat: 1. enable SIDPLAY2 in /usr/ports/audio/musicpd
2. make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-07 18:06:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->crees

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-02-16 20:18:03 UTC
Author: crees
Date: Sun Feb 16 20:17:56 2014
New Revision: 344628
URL: http://svnweb.freebsd.org/changeset/ports/344628
QAT: https://qat.redports.org/buildarchive/r344628/

Log:
  ldconfig should find all the libs installed
  
  PR:		ports/186543

Modified:
  head/audio/libsidplay2/Makefile

Modified: head/audio/libsidplay2/Makefile
==============================================================================
--- head/audio/libsidplay2/Makefile	Sun Feb 16 20:12:06 2014	(r344627)
+++ head/audio/libsidplay2/Makefile	Sun Feb 16 20:17:56 2014	(r344628)
@@ -3,13 +3,13 @@
 
 PORTNAME=	libsidplay2
 PORTVERSION=	2.1.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	audio emulators
 MASTER_SITES=	SF/sidplay2/sidplay2/sidplay-libs-${PORTVERSION}
 DISTNAME=	sidplay-libs-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Library to play Commodore 64 SID-tunes cycle accurate
+COMMENT=	Library to play Commodore 64 SID-tunes cycle accurately
 
 USES=		gmake pathfix pkgconfig
 USE_AUTOTOOLS=	libtool
@@ -18,7 +18,7 @@ LIBTOOLFILES=	builders/hardsid-builder/c
 		libsidplay/configure \
 		libsidutils/configure \
 		resid/configure
-USE_LDCONFIG=	yes
+USE_LDCONFIG=	${PREFIX}/lib ${PREFIX}/lib/sidplay/builders
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' \
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-02-16 20:18:48 UTC
Author: crees
Date: Sun Feb 16 20:18:41 2014
New Revision: 344629
URL: http://svnweb.freebsd.org/changeset/ports/344629
QAT: https://qat.redports.org/buildarchive/r344629/

Log:
  Fix build with sidplay2
  
  PR:		ports/186543

Modified:
  head/audio/musicpd/Makefile

Modified: head/audio/musicpd/Makefile
==============================================================================
--- head/audio/musicpd/Makefile	Sun Feb 16 20:17:56 2014	(r344628)
+++ head/audio/musicpd/Makefile	Sun Feb 16 20:18:41 2014	(r344629)
@@ -21,7 +21,7 @@ USE_RC_SUBR=	${PORTNAME}
 CONFIGURE_ARGS+=--disable-alsa --disable-systemd-daemon --disable-roar
 CFLAGS+=	-I${PREFIX}/include
 CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+LDFLAGS+=	-L${LOCALBASE}/lib -L${LOCALBASE}/lib/sidplay/builders
 
 PORTDOCS=	AUTHORS README COPYING NEWS UPGRADING
 
@@ -106,7 +106,7 @@ PULSEAUDIO_LIB_DEPENDS=libpulse.so:${POR
 SAMPLERATE_CONFIGURE_ENABLE=lsr
 SAMPLERATE_LIB_DEPENDS=libsamplerate.so:${PORTSDIR}/audio/libsamplerate
 SIDPLAY2_CONFIGURE_ENABLE=sidplay
-SIDPLAY_LIB_DEPENDS=libsidplay2.so:${PORTSDIR}/audio/libsidplay2
+SIDPLAY2_LIB_DEPENDS=libsidplay2.so:${PORTSDIR}/audio/libsidplay2
 SNDFILE_CONFIGURE_ENABLE=sndfile
 SNDFILE_LIB_DEPENDS=libsndfile.so:${PORTSDIR}/audio/libsndfile
 SQLITE3_CONFIGURE_ENABLE=sqlite
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Chris Rees freebsd_committer freebsd_triage 2014-02-16 20:19:11 UTC
State Changed
From-To: open->closed

I'm sorry you've had to wait.  I've just fixed it, please update and try 
again.