pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/45644 (audio/mpg123 and audio/mpg123-oss have conflicting PLIST)



The following reply was made to PR pkg/45644; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: John Marino <netbsd%marino.st@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: pkg/45644 (audio/mpg123 and audio/mpg123-oss have conflicting 
PLIST)
Date: Wed, 23 Nov 2011 11:55:45 +0100

 On Wed, Nov 23, 2011 at 11:35:02AM +0100, John Marino wrote:
 > That's sort of separate topic, but since I am not familiar with these
 > mpg123 packages all I can say is that on the sutface is they seem
 > similar and therefore should be consolidated.  However, I don't know the
 > history of why multiple versions exist to begin with.
 
 The mpg123 issue is more tricky: the "sun" or "oss" modules are just that,
 modules that get build (or not). They install separate shared libraries.
 The ideal solution would be to build mpg123 itself without any module, and
 supply the modules as separate packages.
 
 However, if you do that, mpg123 gets build with (so to say) /dev/null as
 default output. It still works if you explicitly specify the output method,
 but users are used to just call "mpg123 music.mp3", and not getting any
 sound from that is a non starter.
 
 So the idea was to pick a proper default module and "build that in" the
 main pkg. This way the upstream configure magic picks it up and
 compiles it in as the default. The installed files are still separate
 (i.e. the "oss" module is a separate shared library dlopened at
 runtime), but the mpg123 executable has the name of that module
 compiled in.
 
 Thinking of it, we should probably patch the configure script, pass the
 name of the default module from the pkgsrc makefile to the configure
 script, but not build the module in the main pkg. Instead, depend on a
 separate pkg providing the module.
 
 E.g. on NetBSD mpg123 would build without any modules but depend on mpg123-sun
 and have "sun" as compiled-in default output method name.
 
 If you want to look at the configure stuff, please feel free - I'm not sure
 when I would get around to it.
 
 Martin
 


Home | Main Index | Thread Index | Old Index