Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2014 17:09:42 +0200 (EET)
From:      Johannes Jost Meixner <xmj@chaot.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        aragon@phat.za.net
Subject:   ports/187634: [PATCH] audio/alsa-utils: Fix package build with XMLTO turned off
Message-ID:  <17506199968125452262.enqueue@mx12.chaot.net>
Resent-Message-ID: <201403161510.s2GFA0S5060843@freefall.freebsd.org>

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

>Number:         187634
>Category:       ports
>Synopsis:       [PATCH] audio/alsa-utils: Fix package build with XMLTO turned off
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 15:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Johannes Jost Meixner
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
Goldener Grund OUe
>Environment:
System: FreeBSD mx12.chaot.net 11.0-CURRENT FreeBSD 11.0-CURRENT #4: Sun Mar  9 15:34:03 EET
>Description:
- Fix package build
- Deprecate USE_BZIP

Unsetting the XMLTO option leads to a situation in which alsactl_init.7.gz won't
be present, leading to a failure of pkg create during port compilation.

Adding the OPTIONS_SUB knob and an %%XMLTO%% to the pkg-plist fixes this.

Port maintainer (aragon@phat.za.net) is cc'd.

port test: ok
testport: ok
redports: https://redports.org/buildarchive/20140316150300-18521/

Generated with FreeBSD Port Tools 1.00.2014.03.16 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

--- alsa-utils-1.0.27.2.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 348413)
+++ Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	alsa-utils
 PORTVERSION=	1.0.27.2
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	ALSA/utils \
 		GENTOO/distfiles
@@ -13,12 +14,12 @@
 LIB_DEPENDS=	libasound.so:${PORTSDIR}/audio/alsa-lib
 RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
 
-USE_BZIP2=	yes
-USES=		gmake
+USES=		gmake tar:bzip2
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-udev-rules-dir="\$${prefix}/lib/udev"
 CFLAGS+=	-I${LOCALBASE}/include
 
+OPTIONS_SUB=	yes
 OPTIONS_DEFINE=	XMLTO NLS
 OPTIONS_DEFAULT=XMLTO
 XMLTO_DESC=	Generate alsactl_init(7) man page using xmlto(1)
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 348413)
+++ pkg-plist	(working copy)
@@ -29,7 +29,7 @@
 man/man1/aseqnet.1.gz
 man/man1/iecset.1.gz
 man/man1/speaker-test.1.gz
-man/man7/alsactl_init.7.gz
+%%XMLTO%%man/man7/alsactl_init.7.gz
 man/man8/alsaconf.8.gz
 sbin/alsaconf
 sbin/alsactl
--- alsa-utils-1.0.27.2.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?17506199968125452262.enqueue>