NetBSD Problem Report #30920

From chuck@xxx.pdl.cmu.edu  Fri Aug  5 14:27:22 2005
Return-Path: <chuck@xxx.pdl.cmu.edu>
Received: from xxx.pdl.cmu.edu (XXX.PDL.CMU.EDU [128.2.134.93])
	by narn.netbsd.org (Postfix) with ESMTP id 58C3463B117
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  5 Aug 2005 14:27:22 +0000 (UTC)
Message-Id: <200508051427.j75ERiHF024866@xxx.pdl.cmu.edu>
Date: Fri, 5 Aug 2005 10:27:44 -0400 (EDT)
From: Chuck Cranor <chuck@xxx.pdl.cmu.edu>
Reply-To: chuck@ece.cmu.edu
To: gnats-bugs@netbsd.org
Subject: audio/mpg321 is missing a dependency on audio/libao-oss
X-Send-Pr-Version: 3.95

>Number:         30920
>Category:       pkg
>Synopsis:       audio/mpg321 is missing a dependency on audio/libao-oss
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jmmv
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 05 14:28:00 +0000 2005
>Closed-Date:    Sat Oct 08 12:35:51 +0000 2005
>Last-Modified:  Sat Oct 08 12:36:01 +0000 2005
>Originator:     Chuck Cranor
>Release:        NetBSD 3.0_BETA, pkgsrc cvs on 03-Aug-2005
>Organization:
CMU
>Environment:
System: NetBSD xxx.pdl.cmu.edu 3.0_BETA NetBSD 3.0_BETA (XXX) #0: Tue Aug 2 13:00:21 EDT 2005 chuck@xxx.pdl.cmu.edu:/home/netbsd/30/src/sys/arch/i386/compile/XXX i386
Architecture: i386
Machine: i386
>Description:

	audio/mpg321 compiles and installs, but does not function at all 
	unless audio/libao-oss is installed.   (libao plugins were broken
	out into their own packages on 2005/05/20 by jmmv --- that is when
	this got broken.)

>How-To-Repeat:

	% pkg_info | egrep -i 'libao|mpg321'
	libao-0.8.6nb2      Cross-platform audio library
	mpg321-0.2.10nb4    Free replacement for mpg123
	% mpg321 /tmp/foo.mp3
	No default libao driver available.
	% 
	% 

   [I installed audio/libao-oss in another window]

	% pkg_info | egrep -i 'libao|mpg321'
	libao-0.8.6nb2      Cross-platform audio library
	mpg321-0.2.10nb4    Free replacement for mpg123
	libao-oss-0.8.6     Cross-platform audio library (OSS plugin)
	% mpg321 /tmp/foo.mp3
	High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
	Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
	Uses code from various people. See 'README' for more!
	THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

	Directory: /tmp/
	Playing MPEG stream from foo.mp3 ...
	MPEG 1.0 layer III, 128 kbit/s, 44100 Hz stereo
	^C
	[0:01] Decoding of foo.mp3 finished.
	% 

>Fix:

	add dependency on audio/libao-oss

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: Chuck Cranor <chuck@xxx.pdl.cmu.edu>
Subject: Re: pkg/30920: audio/mpg321 is missing a dependency on audio/libao-oss
Date: Fri, 5 Aug 2005 17:50:00 +0200

 On Fri, Aug 05, 2005 at 02:28:00PM +0000, Chuck Cranor wrote:
 > 	add dependency on audio/libao-oss

 No -- on NetBSD, you should better install audio/libao-sun.
 Since it depends on the platform which you want and you even
 have the choice on some platforms, the packages are not installed
 automatically.

 I thought libao had a MESSAGE about this, but it seems it doesn't :(
  Thomas

Responsible-Changed-From-To: pkg-manager->rxg
Responsible-Changed-By: recht@netbsd.org
Responsible-Changed-When: Sat, 06 Aug 2005 18:12:57 +0000
Responsible-Changed-Why:
over to maintainer


From: Chuck Cranor <chuck@ece.cmu.edu>
To: Thomas Klausner <wiz@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/30920: audio/mpg321 is missing a dependency on audio/libao-oss
Date: Fri, 12 Aug 2005 12:34:42 -0400

 > 
 > On Fri, Aug 05, 2005 at 02:28:00PM +0000, Chuck Cranor wrote:
 > > 	add dependency on audio/libao-oss
 > 
 > No -- on NetBSD, you should better install audio/libao-sun.
 > Since it depends on the platform which you want and you even
 > have the choice on some platforms, the packages are not installed
 > automatically.
 > 
 > I thought libao had a MESSAGE about this, but it seems it doesn't :(


 hi-

     so the high-level issue that concerns me is that we used to
 have an 'auto/mpg321' package that worked fine out of the box,
 and now mpg321 no longer works out of the box.

     speaking as a user, all i care about is the mpg321 application
 working when i install it...  I don't care about libao or what options 
 it installs, as long as my appliations work by default i am happy.

     even if there was a MESSAGE (that would scroll unread off my 
 screen), the current config asks us lazy pkgsrc users to think too 
 much rather than providing a reasonable default working mpg321 
 application.


 chuck

Responsible-Changed-From-To: rxg->jmmv
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sun, 14 Aug 2005 09:51:11 +0000
Responsible-Changed-Why:
Not really mpg321-related, but caused by the splitoff of libao-*,
which jmmv committed.


From: Thomas Klausner <wiz@NetBSD.org>
To: Chuck Cranor <chuck@ece.cmu.edu>
Cc: gnats-bugs@NetBSD.org, jmmv@NetBSD.org
Subject: Re: pkg/30920: audio/mpg321 is missing a dependency on audio/libao-oss
Date: Sun, 14 Aug 2005 11:50:55 +0200

 On Fri, Aug 12, 2005 at 12:34:42PM -0400, Chuck Cranor wrote:
 >     so the high-level issue that concerns me is that we used to
 > have an 'auto/mpg321' package that worked fine out of the box,
 > and now mpg321 no longer works out of the box.
 > 
 >     speaking as a user, all i care about is the mpg321 application
 > working when i install it...  I don't care about libao or what options 
 > it installs, as long as my appliations work by default i am happy.
 > 
 >     even if there was a MESSAGE (that would scroll unread off my 
 > screen), the current config asks us lazy pkgsrc users to think too 
 > much rather than providing a reasonable default working mpg321 
 > application.

 Perhaps the -oss and -sun packages should be folded back in to the
 libao package as options, with a useful per-platform default setting.
 I'll leave that up to jmmv, who separated the package in the first
 place.
  Thomas

From: Rui-Xiang Guo <rxg@myrealbox.com>
To: gnats-bugs@netbsd.org
Cc: rxg@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	wiz@netbsd.org
Subject: Re: pkg/30920: audio/mpg321 is missing a dependency on audio/libao-oss
Date: Fri, 19 Aug 2005 13:04:38 +0800

 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Fri, Aug 12, 2005 at 04:35:04PM +0000, Chuck Cranor wrote:
 > The following reply was made to PR pkg/30920; it has been noted by GNATS.
 > 
 > From: Chuck Cranor <chuck@ece.cmu.edu>
 > To: Thomas Klausner <wiz@NetBSD.org>
 > Cc: gnats-bugs@NetBSD.org
 > Subject: Re: pkg/30920: audio/mpg321 is missing a dependency on audio/libao-oss
 > Date: Fri, 12 Aug 2005 12:34:42 -0400
 > 
 >  > 
 >  > On Fri, Aug 05, 2005 at 02:28:00PM +0000, Chuck Cranor wrote:
 >  > > 	add dependency on audio/libao-oss
 >  > 
 >  > No -- on NetBSD, you should better install audio/libao-sun.
 >  > Since it depends on the platform which you want and you even
 >  > have the choice on some platforms, the packages are not installed
 >  > automatically.
 >  > 
 >  > I thought libao had a MESSAGE about this, but it seems it doesn't :(
 >  
 >  
 >  hi-
 >  
 >      so the high-level issue that concerns me is that we used to
 >  have an 'auto/mpg321' package that worked fine out of the box,
 >  and now mpg321 no longer works out of the box.
 >  
 >      speaking as a user, all i care about is the mpg321 application
 >  working when i install it...  I don't care about libao or what options 
 >  it installs, as long as my appliations work by default i am happy.
 >  
 >      even if there was a MESSAGE (that would scroll unread off my 
 >  screen), the current config asks us lazy pkgsrc users to think too 
 >  much rather than providing a reasonable default working mpg321 
 >  application.

 Hi,
 please try this patch -
 RCS file: /cvsroot/pkgsrc/audio/mpg321/Makefile,v
 retrieving revision 1.9
 diff -b -u -r1.9 Makefile
 --- Makefile    11 Apr 2005 21:44:55 -0000      1.9
 +++ Makefile    19 Aug 2005 04:51:57 -0000
 @@ -12,6 +12,8 @@
  GNU_CONFIGURE=         yes
  CONFIGURE_ARGS+=       --disable-mpg123-symlink

 +.include "options.mk"
 +
  .include "../../audio/libao/buildlink3.mk"
  .include "../../audio/libid3tag/buildlink3.mk"
  .include "../../audio/libmad/buildlink3.mk"

 and added the attached 'options.mk' into audio/mpg321,
 I think it fit your needs.
 In fact, this problem also happen with chat/gaim, maybe also other pkgs.

 -rxg

 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="options.mk"

 # $NetBSD$

 PKG_OPTIONS_VAR=	PKG_OPTIONS.mpg321
 PKG_SUPPORTED_OPTIONS=	libao-arts libao-esound libao-macosx libao-oss libao-sun

 .include "../../mk/bsd.prefs.mk"

 .if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
 PKG_SUGGESTED_OPTIONS+=	libao-sun
 CONFIGURE_ARGS+=	--with-default-audio=sun
 .endif

 .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux"
 PKG_SUGGESTED_OPTIONS+=	libao-oss
 CONFIGURE_ARGS+=	--with-default-audio=oss
 .endif

 .include "../../mk/bsd.options.mk"

 .if !empty(PKG_OPTIONS:Mlibao-arts)
 DEPENDS+=		libao-arts>=0.8.6:../../audio/libao-arts
 .endif

 .if !empty(PKG_OPTIONS:Mlibao-esound)
 DEPENDS+=		libao-esound>=0.8.6:../../audio/libao-esound
 .endif

 .if !empty(PKG_OPTIONS:Mlibao-macosx)
 DEPENDS+=		libao-macosx>=0.8.6:../../audio/libao-macosx
 .endif

 .if !empty(PKG_OPTIONS:Mlibao-oss)
 DEPENDS+=		libao-oss>=0.8.6:../../audio/libao-oss
 .endif

 .if !empty(PKG_OPTIONS:Mlibao-sun)
 DEPENDS+=		libao-sun>=0.8.6:../../audio/libao-sun
 .endif

 --ikeVEW9yuYc//A+q--

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Rui-Xiang Guo <rxg@myrealbox.com>
Cc: gnats-bugs@netbsd.org, rxg@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org, wiz@netbsd.org
Subject: Re: pkg/30920: audio/mpg321 is missing a dependency on audio/libao-oss
Date: Thu, 18 Aug 2005 22:23:35 -0700 (PDT)

 I didn't test and maybe I don't understand :) but should this be like:

 ....

    .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux"
    PKG_SUGGESTED_OPTIONS+= libao-oss
 - CONFIGURE_ARGS+=        --with-default-audio=oss
    .endif
 ...
    .if !empty(PKG_OPTIONS:Mlibao-oss)
    DEPENDS+=               libao-oss>=0.8.6:../../audio/libao-oss
 + CONFIGURE_ARGS+=        --with-default-audio=oss
    .endif

   Jeremy C. Reed

   	  	 	 BSD News, BSD tutorials, BSD links
  	  	 	 http://www.bsdnewsletter.com/

From: "Julio M. Merino Vidal" <jmmv84@gmail.com>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/30920: audio/mpg321 is missing a dependency on audio/libao-oss
Date: Fri, 19 Aug 2005 09:55:00 +0200

 On 8/19/05, Rui-Xiang Guo <rxg@myrealbox.com> wrote:
 > The following reply was made to PR pkg/30920; it has been noted by GNATS.
 >  Hi,
 >  please try this patch -
 [...]
 >  .if !empty(PKG_OPTIONS:Mlibao-oss)
 >  DEPENDS+=3D              libao-oss>=3D0.8.6:../../audio/libao-oss
 >  .endif
 >=20
 >  .if !empty(PKG_OPTIONS:Mlibao-sun)
 >  DEPENDS+=3D              libao-sun>=3D0.8.6:../../audio/libao-sun
 >  .endif

 The whole purpose of the original split of libao was to avoid
 having build-time options, so this is just going backwards.

 wiz@'s suggestion (merging libao-sun and libao-oss again into
 libao), is a possible solution to have everything working out
 of the box again, although I don't like it much.  I can live with it
 because it doesn't add extra dependencies on most systems,
 but I like to not install oss stuff if possible.

 Though... I just had another idea.  In libao's buildlink file, we'd
 add an extra dependency of the form libao-*:../../audio/libao-oss
 (not sure if the wildcard there could DTRT, but something else
 probably will).  That is, a dependency that accepts any plugin
 and defaults to oss.  This way, whenever you install an app that
 uses libao, libao-oss will be installed iff you hadn't installed any
 other plugin by hand before.  This is binary friendly and avoids
 options.

 Do you think this'd be appropriate?

 --=20
 Julio M. Merino Vidal <jmmv84@gmail.com>
 http://www.livejournal.com/users/jmmv/
 The NetBSD Project - http://www.NetBSD.org/

From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30920 CVS commit: pkgsrc/audio
Date: Sat,  8 Oct 2005 12:30:38 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jmmv
 Date:		Sat Oct  8 12:30:38 UTC 2005

 Modified Files:
 	pkgsrc/audio/libao: buildlink3.mk
 	pkgsrc/audio/libao-arts: Makefile
 	pkgsrc/audio/libao-esound: Makefile
 	pkgsrc/audio/libao-macosx: Makefile
 	pkgsrc/audio/libao-oss: Makefile
 	pkgsrc/audio/libao-sun: Makefile

 Log Message:
 For packages using libao, add a default dependency on a plugin (either
 oss or sun), based on the current OS name.  This is only used if no
 other libao plugin is installed, and is binary package friendly.

 Addresses PR pkg/30920 by Chuck Cranor.


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.7 pkgsrc/audio/libao/buildlink3.mk
 cvs rdiff -r1.12 -r1.13 pkgsrc/audio/libao-arts/Makefile
 cvs rdiff -r1.8 -r1.9 pkgsrc/audio/libao-esound/Makefile
 cvs rdiff -r1.1 -r1.2 pkgsrc/audio/libao-macosx/Makefile
 cvs rdiff -r1.1 -r1.2 pkgsrc/audio/libao-oss/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/audio/libao-sun/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: jmmv@netbsd.org
State-Changed-When: Sat, 08 Oct 2005 12:35:51 +0000
State-Changed-Why:
Fixed, thanks.


From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30920 CVS commit: pkgsrc
Date: Sat,  8 Oct 2005 12:35:15 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jmmv
 Date:		Sat Oct  8 12:35:15 UTC 2005

 Modified Files:
 	pkgsrc/audio/flac123: Makefile
 	pkgsrc/audio/liteamp: Makefile
 	pkgsrc/audio/mpg321: Makefile
 	pkgsrc/audio/musicpd: Makefile
 	pkgsrc/audio/py-ao: Makefile
 	pkgsrc/audio/tremor-tools: Makefile
 	pkgsrc/audio/vorbis-tools: Makefile
 	pkgsrc/chat/gaim: Makefile
 	pkgsrc/sysutils/cdrdao: Makefile

 Log Message:
 Bump revision due to a new dependency on a default libao plugin.
 Addresses PR pkg/30920 by Chuck Cranor.


 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.4 pkgsrc/audio/flac123/Makefile
 cvs rdiff -r1.14 -r1.15 pkgsrc/audio/liteamp/Makefile
 cvs rdiff -r1.9 -r1.10 pkgsrc/audio/mpg321/Makefile
 cvs rdiff -r1.15 -r1.16 pkgsrc/audio/musicpd/Makefile
 cvs rdiff -r1.5 -r1.6 pkgsrc/audio/py-ao/Makefile
 cvs rdiff -r1.16 -r1.17 pkgsrc/audio/tremor-tools/Makefile
 cvs rdiff -r1.35 -r1.36 pkgsrc/audio/vorbis-tools/Makefile
 cvs rdiff -r1.101 -r1.102 pkgsrc/chat/gaim/Makefile
 cvs rdiff -r1.27 -r1.28 pkgsrc/sysutils/cdrdao/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.