Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49763 - oggenc does not support FLAC when vorbis-tools is built with USE="flac"
Summary: oggenc does not support FLAC when vorbis-tools is built with USE="flac"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-02 14:56 UTC by Brandon Hale (RETIRED)
Modified: 2004-05-03 20:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix configuration with USE="flac" (vorbis-tools-1.0.1.ebuild.diff,477 bytes, patch)
2004-05-02 15:50 UTC, Brandon Hale (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Hale (RETIRED) gentoo-dev 2004-05-02 14:56:10 UTC
brandon@y0shi The Process of Belief $ oggenc -q1 01.\ Bad\ Religion\ -\ Supersonic.flac 
ERROR: Input file "01. Bad Religion - Supersonic.flac" is not a supported format

[ebuild   R   ] media-sound/vorbis-tools-1.0.1  +flac -nls -speex  0 kB

From the manpage:
oggenc reads audio data in either raw, WAV, or AIFF format and encodes
it  into  an  Ogg Vorbis stream.  oggenc may also read audio data from
FLAC and Ogg FLAC files depending upon compile-time options.

It is expected that the useflag would apply the correct "compile-time options".
Any hints to what I've done wrong, or what is amiss in the ebuild would be appreciated.
Comment 1 Brandon Hale (RETIRED) gentoo-dev 2004-05-02 15:50:29 UTC
Created attachment 30560 [details, diff]
patch to fix configuration with USE="flac"

Added patch to fix the bug, check it out.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-03 18:24:00 UTC
using vorbis-tools-1.0.1, i got flac support...

~ $ ldd `which oggenc`
        libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x4003e000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40127000)
        libOggFLAC.so.1 => /usr/lib/libOggFLAC.so.1 (0x4014f000)
        libFLAC.so.4 => /usr/lib/libFLAC.so.4 (0x40155000)
        libm.so.6 => /lib/libm.so.6 (0x4018c000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x401ae000)
        libc.so.6 => /lib/libc.so.6 (0x401b3000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Your patch does nothing except omit the '--with-flac' when USE=flac is set...

Can youu please verify that this doesn't work by emerging it again using our ebuild and checking oggenc with the above ldd command?
Comment 3 Brandon Hale (RETIRED) gentoo-dev 2004-05-03 19:46:03 UTC
brandon@y0shi brandon $ ldd `which oggenc`
        linux-gate.so.1 =>  (0xffffe000)
        libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x40022000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x4010a000)
        libOggFLAC.so.1 => /usr/lib/libOggFLAC.so.1 (0x40133000)
        libFLAC.so.4 => /usr/lib/libFLAC.so.4 (0x40139000)
        libm.so.6 => /lib/libm.so.6 (0x4016e000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x4018f000)
        libc.so.6 => /lib/libc.so.6 (0x40195000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

This is all well and good, oggenc is linked to Flac libs.. however, it just doesnt support
flac, as I have already posted, confirmed with someone else, and fixed. Here is the output again for kicks, please try to reproduce. If you need a .flac to test, ping me on irc and I'll send one your way.

brandon@y0shi brandon $ oggenc -q1 music/Nirvana/Nirvana/12.\ Nirvana\ -\ Dumb.flac 
ERROR: Input file "music/Nirvana/Nirvana/12. Nirvana - Dumb.flac" is not a supported format

When built with my patch, it works beautifully. Seems to be a bug in the configure script.
Comment 4 Brandon Hale (RETIRED) gentoo-dev 2004-05-03 19:47:22 UTC
Note that the configure script does not recognize --with-flac, only --without-flac, so the use_with is technically incorrect in any case.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-03 20:57:36 UTC
in portage.  thanks.