Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Nov 2013 16:50:24 -0600 (CST)
From:      Lawrence Chen <lchen@lhaven.homeip.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        beastie_t@lhaven.homeip.net
Subject:   ports/183825: [patch] net/nxserver: build fails due to missing audiofile-config
Message-ID:  <201311092250.rA9MoOlc032367@zen.lhaven.homeip.net>
Resent-Message-ID: <201311092300.rA9N00g3035824@freefall.freebsd.org>

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

>Number:         183825
>Category:       ports
>Synopsis:       [patch] net/nxserver: build fails due to missing audiofile-config
>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:   Sat Nov 09 23:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Lawrence Chen
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	
	Unable to rebuild net/nxserver against updated libaudiofile, as
	audiofile-config has been removed in favor of pkgconf.

	audiofile-config was last present in 0.2.7, the prior version in
	ports.
>How-To-Repeat:
	
	try to (re)build this port, and it will fail in configure of nxesd
	which needs audiofile-config to get the compiler flags and check that
	it is at least 0.1.5.
>Fix:

	

	Use environment variable to use pkgconf instead of audiofile-config,
	and disable minimum version check as process with pkgconf differs
	signficantly from audiofile-config method.

	Assumes version is met now. Could change to using
	BUILD_DEPENDS/RUN_DEPENDS for libaudiofile instead of LIB_DEPENDS
	to test for minimum version, if necessary.

--- patch begins here ---
--- Makefile.orig	2013-11-08 14:31:40.000000000 +0000
+++ Makefile	2013-11-09 22:16:26.441633034 +0000
@@ -75,12 +75,17 @@
 do-build:
 	cd ${WRKSRC}/nx-X11 && ${SETENV} ${MAKE_ENV} \
 		${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
-.for i in nxproxy nxkill nxesd
+.for i in nxproxy nxkill
 	cd ${WRKSRC}/${i} && \
 		${CONFIGURE_ENV} ./configure --prefix=${NXPREFIX} && \
 		${SETENV} ${MAKE_ENV} \
 		${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
 .endfor
+	cd ${WRKSRC}/nxesd && \
+		${CONFIGURE_ENV} AUDIOFILE_CONFIG="/usr/local/bin/pkgconf audiofile" \
+		./configure --disable-audiofiletest --prefix=${NXPREFIX} && \
+		${SETENV} ${MAKE_ENV} \
+		${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
 	cd ${WRKSRC}/nxdesktop && ${CONFIGURE_ENV} ./configure \
 		--with-sound --prefix=${NXPREFIX} && \
 		${SETENV} ${MAKE_ENV} \
--- patch ends here ---


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



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