From nobody@FreeBSD.org  Tue Dec 14 23:28:03 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E9278106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Dec 2010 23:28:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D7A078FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Dec 2010 23:28:03 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBENS3b9093576
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Dec 2010 23:28:03 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oBENS3n5093575;
	Tue, 14 Dec 2010 23:28:03 GMT
	(envelope-from nobody)
Message-Id: <201012142328.oBENS3n5093575@red.freebsd.org>
Date: Tue, 14 Dec 2010 23:28:03 GMT
From: Anatoly Borodin <anatoly.borodin@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: audio/sox: play fails to start
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: dnelson@allantgroup.com

>Number:         153159
>Category:       ports
>Synopsis:       audio/sox: play fails to start
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    makc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 14 23:30:06 UTC 2010
>Closed-Date:    Thu Dec 16 17:35:23 UTC 2010
>Last-Modified:  Thu Dec 16 17:40:11 UTC 2010
>Originator:     Anatoly Borodin
>Release:        
>Organization:
>Environment:
>Description:
play fails to start, it cannot find some libraries. It may be connected to some compile options.
>How-To-Repeat:
# play some.mp3
ALSA lib pcm.c:2173:(snd_pcm_open_conf) Cannot open shared library /usr/local/lib/alsa-lib/libasound_module_pcm_oss.so
play FAIL formats: can't open output file `default': snd_pcm_open error: No such file or directory

# cd /usr/ports/audio/sox; make showconfig
===> The following configuration options are available for sox-14.3.0_5:
     AO=on "Enable libao output"
     AMRNB=on "AMR Speech Codec (Narrowband)"
     AMRWB=on "AMR Speech Codec (Wideband)"
     FFMPEG=on "Enable ffmpeg en/decoding"
     FLAC=on "Enable flac en/decoding with libflac"
     GSM=on "Use libgsm from ports (else use bundled lib)"
     ID3TAG=on "Enable mp3 tagging with libid3tag"
     LADSPA=on "Audio plugin support"
     LAME=on "Enable mp3 encoding with LAME"
     MAD=on "Enable mp3 decoding with MAD"
     PNG=on "Enable PNG spectrogram creation"
     SNDFILE=on "Enable libsndfile"
     VORBIS=on "Enable Ogg Vorbis support"
     WAVPACK=on "Enable Wavpack support"
===> Use 'make config' to modify these settings

>Fix:
# fgrep -rIsl libasound_module_pcm_oss /usr/ports/audio/
/usr/ports/audio/alsa-plugins/pkg-plist
/usr/ports/audio/alsa-utils/Makefile
/usr/ports/audio/hydrogen/Makefile
/usr/ports/audio/xmp/Makefile

After installing audio/alsa-plugins play works properly.

Some RUN_DEPENDS should be added.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Dec 14 23:30:16 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153159 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: dnelson@allantgroup.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/153159: audio/sox: play fails to start
Date: Tue, 14 Dec 2010 23:30:13 UT

 Maintainer of audio/sox,
 
 Please note that PR ports/153159 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/153159
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Dan Nelson <dnelson@allantgroup.com>
To: bug-followup@FreeBSD.ORG
Cc:  
Subject: Re: ports/153159: audio/sox: play fails to start
Date: Wed, 15 Dec 2010 09:48:39 -0600

 --0F1p//8PRICkK4MW
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 
 The attached patch should fix the problem (I used audio/xmp's Makefile as a
 template).
 
 Any port committer that wants to commit this, please use the following log
 entry:
 
 ===
 
 Sox will use alsa-lib if it finds it and isn't told not to use it, so add an
 optional dependency on it, defaulting to off.  Bump portrevision to repair
 any installed sox binaries that might be broken due to the unreported
 dependency.
 
 ===
 
 -- 
 	Dan Nelson
 	dnelson@allantgroup.com
 
 --0F1p//8PRICkK4MW
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="sox.diff"
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/audio/sox/Makefile,v
 retrieving revision 1.51
 diff -u -r1.51 Makefile
 --- Makefile	12 Dec 2010 16:51:50 -0000	1.51
 +++ Makefile	15 Dec 2010 15:21:01 -0000
 @@ -7,7 +7,7 @@
  
  PORTNAME=	sox
  PORTVERSION=	14.3.0
 -PORTREVISION=	6
 +PORTREVISION=	7
  CATEGORIES=	audio
  MASTER_SITES=	SF
  
 @@ -32,7 +32,8 @@
  _LAME=	on
  .endif
  
 -OPTIONS=	AO "Enable libao output" on \
 +OPTIONS=	ALSA "ALSA output driver" off \
 +		AO "Enable libao output" on \
  		AMRNB "AMR Speech Codec (Narrowband)" off \
  		AMRWB "AMR Speech Codec (Wideband)" off \
  		FFMPEG "Enable ffmpeg en/decoding" on \
 @@ -55,6 +56,14 @@
  CONFIGURE_ARGS+=	--with-pkgconfigdir="${PREFIX}/libdata/pkgconfig"
  CONFIGURE_ARGS+=	--with-distro="${CONFIGURE_TARGET} ${PKGNAME}"
  
 +.if defined(WITH_ALSA)
 +LIB_DEPENDS+=		asound.2:${PORTSDIR}/audio/alsa-lib
 +RUN_DEPENDS+=		${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
 +CONFIGURE_ARGS+=	--with-alsa
 +.else
 +CONFIGURE_ARGS+=	--without-alsa
 +.endif
 +
  .if defined(WITH_AO)
  CONFIGURE_ARGS+=	--with-ao
  LIB_DEPENDS+=		ao.4:${PORTSDIR}/audio/libao
 
 --0F1p//8PRICkK4MW--
Responsible-Changed-From-To: freebsd-ports-bugs->makc 
Responsible-Changed-By: makc 
Responsible-Changed-When: Thu Dec 16 06:41:12 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153159 
State-Changed-From-To: feedback->open 
State-Changed-By: makc 
State-Changed-When: Thu Dec 16 06:42:25 UTC 2010 
State-Changed-Why:  
Feedback received. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153159 
State-Changed-From-To: open->closed 
State-Changed-By: makc 
State-Changed-When: Thu Dec 16 17:35:22 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153159 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/153159: commit references a PR
Date: Thu, 16 Dec 2010 17:34:45 +0000 (UTC)

 makc        2010-12-16 17:34:41 UTC
 
   FreeBSD ports repository
 
   Modified files:
     audio/sox            Makefile distinfo 
   Log:
   Add optinal dependency on alsa-lib
   Remove md5 checksum while I'm here
   
   PR:             ports/153159
   Reported by:    Anatoly Borodin <anatoly.borodin at gmail.com>
   Patched by:     Dan Nelson (maintainer)
   
   Revision  Changes    Path
   1.52      +10 -1     ports/audio/sox/Makefile
   1.21      +0 -1      ports/audio/sox/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
