diff --git a/media-sound/twolame/patches/twolame-0.3.13.patchset b/media-sound/twolame/patches/twolame-0.3.13.patchset new file mode 100644 index 000000000..31d5e55e4 --- /dev/null +++ b/media-sound/twolame/patches/twolame-0.3.13.patchset @@ -0,0 +1,23 @@ +From 294c0b700326ab24d1a793e81338a93aebb2e69e Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sat, 13 Sep 2014 18:02:16 +0200 +Subject: gcc2 fix. + + +diff --git a/frontend/frontend.c b/frontend/frontend.c +index f722955..3cdbf6c 100644 +--- a/frontend/frontend.c ++++ b/frontend/frontend.c +@@ -736,8 +736,8 @@ int main(int argc, char **argv) + // + mp2fill_size = twolame_encode_flush(encopts, mp2buffer, MP2_BUF_SIZE); + if (mp2fill_size > 0) { +- frame_count++; + int bytes_out = fwrite(mp2buffer, sizeof(unsigned char), mp2fill_size, outputfile); ++ frame_count++; + if (bytes_out <= 0) { + perror("error while writing to output file"); + exit(ERR_WRITING_OUTPUT); +-- +1.8.3.4 + diff --git a/media-sound/twolame/twolame-0.3.13.recipe b/media-sound/twolame/twolame-0.3.13.recipe index 16e18b842..e6e013644 100644 --- a/media-sound/twolame/twolame-0.3.13.recipe +++ b/media-sound/twolame/twolame-0.3.13.recipe @@ -13,6 +13,8 @@ REVISION="1" ARCHITECTURES="x86_gcc2 x86 ?x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" +PATCHES="twolame-$portVersion.recipe" + PROVIDES=" twolame$secondaryArchSuffix = $portVersion compat >= 0 cmd:twolame