Summary: | USE=flac emerge timidity++2.13.2-r3 fails. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Malcolm Lashley (RETIRED) <malc> |
Component: | New packages | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | spreetec |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch to compile with FLAC libraries
my patch file |
Description
Malcolm Lashley (RETIRED)
2006-11-28 12:16:08 UTC
*** Bug 159175 has been marked as a duplicate of this bug. *** Created attachment 104973 [details, diff]
patch to compile with FLAC libraries
I have created a patch to fix this: *** flac_a.c Sun May 23 07:35:44 2004 --- flac_a.c Sat Dec 30 13:24:08 2006 *************** *** 813,819 **** return; } - - if (flac_options.isogg) { #ifdef AU_OGGFLAC if ((ctx->state.ogg = OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != OggFLAC__STREAM_ENCODER_OK) { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid (%s)", --- 813,818 ---- return; } #ifdef AU_OGGFLAC + if (flac_options.isogg) { if ((ctx->state.ogg = OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != OggFLAC__STREAM_ENCODER_OK) { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid (%s)", Apply it in <tmd_src_dir>/timidity sorry i dont understand what to do : *** flac_a.c Sun May 23 07:35:44 2004 --- flac_a.c Sat Dec 30 13:24:08 2006 *************** *** 813,819 **** return; } - - if (flac_options.isogg) { #ifdef AU_OGGFLAC if ((ctx->state.ogg = OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != OggFLAC__STREAM_ENCODER_OK) { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid (%s)", --- 813,818 ---- return; } #ifdef AU_OGGFLAC + if (flac_options.isogg) { if ((ctx->state.ogg = OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != OggFLAC__STREAM_ENCODER_OK) { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid (%s)", i have created a script in /var/tmp/portage/timid../work/Timi.../timi/ calles patch1, i tried to simply run this or compile it with gcc. but nothing seems to be working. its the first time i try to apply a patch, i am not even sure if i selected the correct code i thought functions always end with } and not with , i am a very beginner so please be kind ;-) THX a LOT (In reply to comment #4) > sorry i dont understand what to do : > > *** flac_a.c Sun May 23 07:35:44 2004 > --- flac_a.c Sat Dec 30 13:24:08 2006 > *************** > *** 813,819 **** > return; > } > - > - if (flac_options.isogg) { > #ifdef AU_OGGFLAC > if ((ctx->state.ogg = > OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != > OggFLAC__STREAM_ENCODER_OK) { > ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid > (%s)", > --- 813,818 ---- > return; > } > #ifdef AU_OGGFLAC > + if (flac_options.isogg) { > if ((ctx->state.ogg = > OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != > OggFLAC__STREAM_ENCODER_OK) { > ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid > (%s)", > > > i have created a script in /var/tmp/portage/timid../work/Timi.../timi/ calles > patch1, i tried to simply run this or compile it with gcc. but nothing seems > to be working. its the first time i try to apply a patch, i am not even sure if > i selected the correct code i thought functions always end with } and not with > , > > i am a very beginner so please be kind ;-) THX a LOT > You should apply it to /var/tmp/portage/timidity++-2.13.2-r2/work/TiMidity++-2.13.2/timidity like this patch -p0 < flac_a.c.diff That is: ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild fetch ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild unpack cd /var/tmp/portage/timidity++-2.13.2-r2/work/TiMidity++-2.13.2/timidity patch -p0 < flac_a.c.diff ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild compile ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild install ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild qmerge not possible :( i did : ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild fetch ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild unpack cd /var/tmp/portage/timidity++-2.13.2-r2/work/TiMidity++-2.13.2/timidity except this cd /var/tmp/portage/timidity++-2.13.2-r3/work/TiMidity++-2.13.2/timidity .. then when i try to patch : # patch -p0 < patch.diff patch: **** malformed patch at line 11: OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != what to do now ? (In reply to comment #6) What do you mean by? > except this > cd /var/tmp/portage/timidity++-2.13.2-r3/work/TiMidity++-2.13.2/timidity .. You have to be in that particulary dirctory when patching. (The directory where file flac_a.c is situated). > > what to do now ? > Apply the patch into that directory. Obviously you have to be root. The bug had been sorted upstream and should be resolved into portage in a few days. i was in the dir where the flac file is, i was root but i get this strange error.. could you tell me what to do, because i want to know what went wrong..... THX A LOT , happy new year.. Comment on attachment 104973 [details, diff]
patch to compile with FLAC libraries
--- flac_a.c 2004-05-23 07:35:44.000000000 +0300
+++ flac_a.c 2006-12-30 13:24:08.000000000 +0200
@@ -812,9 +812,8 @@
flac_session_close();
return;
}
-
- if (flac_options.isogg) {
#ifdef AU_OGGFLAC
+ if (flac_options.isogg) {
if ((ctx->state.ogg = OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != OggFLAC__STREAM_ENCODER_OK) {
ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "OggFLAC stream encoder is invalid (%s)",
OggFLAC__StreamEncoderStateString[ctx->state.ogg]);
so far so good, with the new code i was able to patch the file, but now it stops at this point : ebuild /usr/portage/media-sound/timidity++/timidity++-2.13.2-r3.ebuild compile # patch -p0 < flac_a.c.diff patching file flac_a.c patch: **** malformed patch at line 12: OggFLAC__stream_encoder_get_state(ctx->encoder.ogg.stream)) != Created attachment 106131 [details]
my patch file
IT CANT be so difficult. here is the file i am using for patching ... copy & paste problems or what the hell goes wrong all the time
Fixed now in -r3. not for, the problem wasnt the unpatched version. even with the patched one i couldnt install timidity++. but i finally have found the problem !! i emerged flac without OGG useflag, maybe some check should be added in timidity... thx a lot |