ports/131496: [PATCH] audio/mp3burn: fix automaitic swab detection on FreeBSD
Tobias Rehbein
tobias.rehbein at web.de
Sun Feb 8 13:20:05 UTC 2009
>Number: 131496
>Category: ports
>Synopsis: [PATCH] audio/mp3burn: fix automaitic swab detection on FreeBSD
>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: Sun Feb 08 13:20:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Tobias Rehbein
>Release: FreeBSD 7.1-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD sushi.pseudo.local 7.1-RELEASE-p1 FreeBSD 7.1-RELEASE-p1 #33: Tue Jan 13 21:39:05 CET 2009 tobi at sushi.pseudo.local:/usr/obj/usr/src/sys/SUSHI i386
>Description:
audio/mp3burn calls `'/bin/uname -m' to perform automatic swab detection. This fails as the uname tool is located in /usr/bin on FreeBSD systems. This results in corrupt Audio-CD.
>How-To-Repeat:
>Fix:
--- mp3burn-0.4.2_1.diff begins here ---
diff -ruN audio/mp3burn.orig/Makefile audio/mp3burn/Makefile
--- audio/mp3burn.orig/Makefile 2008-11-04 21:08:15.000000000 +0100
+++ audio/mp3burn/Makefile 2009-02-08 14:00:54.000000000 +0100
@@ -6,6 +6,7 @@
PORTNAME= mp3burn
PORTVERSION= 0.4.2
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff -ruN audio/mp3burn.orig/files/patch-mp3burn audio/mp3burn/files/patch-mp3burn
--- audio/mp3burn.orig/files/patch-mp3burn 1970-01-01 01:00:00.000000000 +0100
+++ audio/mp3burn/files/patch-mp3burn 2009-02-08 14:02:48.000000000 +0100
@@ -0,0 +1,11 @@
+--- ./mp3burn.orig 2009-02-08 13:02:26.000000000 +0000
++++ ./mp3burn 2009-02-08 13:02:37.000000000 +0000
+@@ -354,7 +354,7 @@
+ if (!($cdrecord_opts =~ /.*-swab.*/)) {
+ # assert: swab wasn't set
+ # check to see if it's needed
+- chop ($arch = `/bin/uname -m`);
++ chop ($arch = `/usr/bin/uname -m`);
+ if ($DEBUG) { print "arch=$arch\n"; }
+
+ if ($arch =~ /i[3456]86/ || $arch =~ /x86_64/ || $arch =~ /ppc/ ) { # ia32 - we need to swab
--- mp3burn-0.4.2_1.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list