From fukui@fanet.net  Sat Apr 19 12:53:42 2008
Return-Path: <fukui@fanet.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E9BC4106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Apr 2008 12:53:42 +0000 (UTC)
	(envelope-from fukui@fanet.net)
Received: from mail.fanet.net (home.fanet.net [202.229.191.26])
	by mx1.freebsd.org (Postfix) with ESMTP id 982DF8FC1C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Apr 2008 12:53:42 +0000 (UTC)
	(envelope-from fukui@fanet.net)
Received: from home.fanet.net
	by mail.fanet.net (8.13.8+3.5Wbeta/8.13.8) with ESMTP id m3JCfV7d029907
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Apr 2008 21:41:31 +0900 (JST)
	(envelope-from fukui@fanet.net)
Received: (from fukui@localhost)
	by home.fanet.net (8.13.8+3.5Wbeta/8.13.8/Submit) id m3JCfUFo029906;
	Sat, 19 Apr 2008 21:41:30 +0900 (JST)
	(envelope-from fukui)
Message-Id: <200804191241.m3JCfUFo029906@home.fanet.net>
Date: Sat, 19 Apr 2008 21:41:30 +0900 (JST)
From: Masayuki FUKUI <fukui.FreeBSD@fanet.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: ports/audio/sox: MP3 support broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify: dnelson@allantgroup.com

>Number:         122911
>Category:       ports
>Synopsis:       ports/audio/sox: MP3 support broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 19 13:00:06 UTC 2008
>Closed-Date:    Fri May 30 23:03:02 UTC 2008
>Last-Modified:  Fri May 30 23:03:02 UTC 2008
>Originator:     Masayuki FUKUI
>Release:        FreeBSD 6.3-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD home 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #0: Thu Apr 17 16:23:17 JST 2008 root@proxy:/usr/src/sys/i386/compile/proxy i386
>Description:
The MP3 support of SoX 14.0.1 (ports/audio/sox) is broken. 

In SoX compiled with WITH_LAME=yes,

>How-To-Repeat:
cd /usr/ports/audio/sox
make install
/usr/local/bin/sox
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Apr 19 13:00:35 UTC 2008 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@mavetju.org>
To: Masayuki FUKUI <fukui.FreeBSD@fanet.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/122911: ports/audio/sox: MP3 support broken
Date: Sat, 19 Apr 2008 23:17:00 +1000

 On Sat, Apr 19, 2008 at 09:41:30PM +0900, Masayuki FUKUI wrote:
 >  >SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al ao au auto avi avr caf cdda cdr cvs cvsd dat dvms fap ffmpeg flac fssd gsm hcom ima ircam la lpc lpc10 lu m3u m4a mat mat4 mat5 maud mp4 mpg nist nul null oss ossdsp paf pls prc pvf raw s1 s2 s3 s4 sb  sd2 sds sf sl smp snd sndfile sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox w64 wav wavpcm wmv wve xa xi
 
 [/usr/ports/audio/sox] edwin@k7>make showconfig
 ===> The following configuration options are available for sox-14.0.1_1:
      AO=on "Enable libao output"
      AMRNB=off "AMR Speech Codec (Narrowband)"
      AMRWB=off "AMR Speech Codec (Wideband)"
      FFMPEG=on "Enable ffmpeg en/decoding"
      FLAC=on "Enable flac en/decoding with libflac"
      GSM=off "Use libgsm from ports (else use bundled lib)"
      LADSPA=off "Audio plugin support"
      LAME=on "Enable mp3 encoding with LAME"
      MAD=on "Enable mp3 decoding with MAD"
      SAMPLERATE=on "Enable libsamplerate"
      SNDFILE=on "Enable libsndfile"
      VORBIS=off "Enable Ogg Vorbis support"
 ===> Use 'make config' to modify these settings
 
 SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al ao au auto avi
 avr caf cdda cdr cvs cvsd dat dvms fap ffmpeg flac fssd gsm hcom
 ima ircam la lpc lpc10 lu m3u m4a mat mat4 mat5 maud mp2 mp3 mp4
                                                          ^^^
 mpg nist nul null oss ossdsp paf pls prc pvf raw s1 s2 s3 s4 sb sd2
 sds sf sl smp snd sndfile sndt sou sph sw txw u1 u2 u3 u4 ub ul uw
 vms voc vox w64 wav wavpcm wmv wve xa xi
 
 
 Maybe you need mp3 encoding and decoding before it shows up there.
 
 Edwin
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |              Weblog: http://www.mavetju.org/weblog/

From: Dan Nelson <dnelson@allantgroup.com>
To: bug-followup@FreeBSD.ORG
Cc: fukui.FreeBSD@fanet.net
Subject: Re: ports/122911: ports/audio/sox: MP3 support broken
Date: Mon, 21 Apr 2008 10:34:42 -0500

 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/122911
 
 The sox-13.0.0_1 package that you get if you run "pkg_add -r sox" on a
 6.3-release machine fails because lame is RESTRICTED and has no
 package.  The package cluster seems to build lame anyway, so sox got
 linked with a libmp3lame.so.0 that no package will ever provide. 
 Building the lame port makes it work in my qemu test box.
 
 The 6-stable sox-14.0.1_1 package can't fetch a lame package either,
 but it dlopens its dependant libraries so at least it will run minus
 mp3 support.  Building the lame port makes mp3 work in my tests.
 
 I'm trying a full source build of sox and dependencies which will take
 a couple hours in qemu, but I don't expect it to have any problems.
 
 When you ran the port build, at the end of the configure stage, there
 is a "Report configuration" section.  Did "LAME MP3 writer" say "yes"
 or "no"?  If it says "no", can you look at config.log and determine
 why libmp3lame wasn't found?
 
 -- 
 	Dan Nelson
 	dnelson@allantgroup.com
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Fri May 30 23:03:01 UTC 2008 
State-Changed-Why:  
Problem solved. So can we close this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122911 
>Unformatted:
 >% sox
 >sox: SoX v14.0.1
 >
 (snip)
 >
 >SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al ao au auto avi avr caf cdda cdr cvs cvsd dat dvms fap ffmpeg flac fssd gsm hcom ima ircam la lpc lpc10 lu m3u m4a mat mat4 mat5 maud mp4 mpg nist nul null oss ossdsp paf pls prc pvf raw s1 s2 s3 s4 sb   sd2 sds sf sl smp snd sndfile sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vox w64 wav wavpcm wmv wve xa xi
 
 MP3 is not included in SUPPORTED FILE FORMATS.
 
 The distributed `packages-6-stable' is also similar.
