ports/106747: [PATCH] audio/mpegaudio: fix build with gcc41
trasz
trasz at pin.if.uz.zgora.pl
Fri Dec 15 01:25:40 UTC 2006
>Number: 106747
>Category: ports
>Synopsis: [PATCH] audio/mpegaudio: fix build with gcc41
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 15 01:20:00 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: trasz
>Release: FreeBSD 6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006
>Description:
Fix build with gcc41 and pet portlint.
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006121307/mpegaudio-3.9.log
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- mpegaudio-3.9.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/audio/mpegaudio/files/patch-ad /home/trasz/mpegaudio/files/patch-ad
--- /usr/ports/audio/mpegaudio/files/patch-ad Mon Dec 11 03:46:00 2000
+++ /home/trasz/mpegaudio/files/patch-ad Fri Dec 15 02:14:09 2006
@@ -1,5 +1,5 @@
---- musicin.c.orig Wed Jan 5 10:13:44 1994
-+++ musicin.c Tue Aug 22 02:40:40 2000
+--- musicin.c.orig Wed Jan 5 02:13:44 1994
++++ musicin.c Fri Dec 15 02:03:30 2006
@@ -101,6 +101,8 @@
#include "common.h"
#include "encoder.h"
@@ -123,3 +123,12 @@
if (*t == 'y' || *t == 'Y') exit(0);
}
+@@ -919,7 +921,7 @@
+ /*
+ /************************************************************************/
+
+-static void usage() /* print syntax & exit */
++void usage() /* print syntax & exit */
+ {
+ fprintf(stderr,
+ "usage: %s queries for all arguments, or\n",
diff -ruN --exclude=CVS /usr/ports/audio/mpegaudio/files/patch-ae /home/trasz/mpegaudio/files/patch-ae
--- /usr/ports/audio/mpegaudio/files/patch-ae Mon Dec 11 03:46:00 2000
+++ /home/trasz/mpegaudio/files/patch-ae Fri Dec 15 02:14:09 2006
@@ -1,5 +1,5 @@
---- musicout.c.orig Wed Jan 5 13:39:27 1994
-+++ musicout.c Tue Aug 22 02:37:30 2000
+--- musicout.c.orig Wed Jan 5 05:39:27 1994
++++ musicout.c Fri Dec 15 02:04:31 2006
@@ -58,6 +58,8 @@
#include "common.h"
#include "decoder.h"
@@ -45,3 +45,12 @@
if (*t == 'y' || *t == 'Y') exit(0);
}
else { /* interpret CL Args */
+@@ -429,7 +431,7 @@
+ exit( 0 );
+ }
+
+-static void usage() /* print syntax & exit */
++void usage() /* print syntax & exit */
+ {
+ fprintf(stderr,
+ "usage: %s queries for all arguments, or\n",
diff -ruN --exclude=CVS /usr/ports/audio/mpegaudio/pkg-plist /home/trasz/mpegaudio/pkg-plist
--- /usr/ports/audio/mpegaudio/pkg-plist Mon Dec 11 03:45:56 2000
+++ /home/trasz/mpegaudio/pkg-plist Fri Dec 15 02:14:09 2006
@@ -1,25 +1,25 @@
bin/mpeg_musicin
bin/mpeg_musicout
-share/mpegaudio/tables/1cb0
-share/mpegaudio/tables/1cb1
-share/mpegaudio/tables/1cb2
-share/mpegaudio/tables/1th0
-share/mpegaudio/tables/1th1
-share/mpegaudio/tables/1th2
-share/mpegaudio/tables/2cb0
-share/mpegaudio/tables/2cb1
-share/mpegaudio/tables/2cb2
-share/mpegaudio/tables/2th0
-share/mpegaudio/tables/2th1
-share/mpegaudio/tables/2th2
-share/mpegaudio/tables/absthr_0
-share/mpegaudio/tables/absthr_1
-share/mpegaudio/tables/absthr_2
-share/mpegaudio/tables/alloc_0
-share/mpegaudio/tables/alloc_1
-share/mpegaudio/tables/alloc_2
-share/mpegaudio/tables/alloc_3
-share/mpegaudio/tables/dewindow
-share/mpegaudio/tables/enwindow
- at dirrm share/mpegaudio/tables
- at dirrm share/mpegaudio
+%%DATADIR%%/tables/1cb0
+%%DATADIR%%/tables/1cb1
+%%DATADIR%%/tables/1cb2
+%%DATADIR%%/tables/1th0
+%%DATADIR%%/tables/1th1
+%%DATADIR%%/tables/1th2
+%%DATADIR%%/tables/2cb0
+%%DATADIR%%/tables/2cb1
+%%DATADIR%%/tables/2cb2
+%%DATADIR%%/tables/2th0
+%%DATADIR%%/tables/2th1
+%%DATADIR%%/tables/2th2
+%%DATADIR%%/tables/absthr_0
+%%DATADIR%%/tables/absthr_1
+%%DATADIR%%/tables/absthr_2
+%%DATADIR%%/tables/alloc_0
+%%DATADIR%%/tables/alloc_1
+%%DATADIR%%/tables/alloc_2
+%%DATADIR%%/tables/alloc_3
+%%DATADIR%%/tables/dewindow
+%%DATADIR%%/tables/enwindow
+ at dirrm %%DATADIR%%/tables
+ at dirrm %%DATADIR%%
--- mpegaudio-3.9.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list