Sox in 7.1 broken or corrupt?

Christian Weisgerber naddy at freebsd.org
Sat Feb 14 10:55:21 PST 2009


Lars Eighner:

> >> It appears to me the audio/sox port is broken.  During configure the
> >> screen breaks up with a bunch of ANSI garbage.
> 
> Oh, I see.  The config script looks for something it calls "distro name" in
> /etc/issue .  I don't think this is the right way to get this information;

Oh my.  This appears to be a desperate attempt to figure out on
which flavor of Linux sox is being built, since Linux distributions
are all different but you can't distinguish them by uname.

We should just disable the whole test.  I'll commit this patch if
the maintainer approves.

Index: files/patch-configure
===================================================================
RCS file: files/patch-configure
diff -N files/patch-configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-configure	14 Feb 2009 18:17:51 -0000
@@ -0,0 +1,11 @@
+--- configure.orig	2009-02-14 19:08:53.000000000 +0100
++++ configure	2009-02-14 19:09:06.000000000 +0100
+@@ -20805,7 +20805,7 @@
+ 
+ 
+ 
+-if test -r /etc/issue; then
++if false && test -r /etc/issue; then
+   { $as_echo "$as_me:$LINENO: checking distro name" >&5
+ $as_echo_n "checking distro name... " >&6; }
+   DISTRO=`sed -e "s/.0-90-9;*mJH//g" < /etc/issue|tr "\n" " " | sed -e "s/(\\\\?\\\\\\\\.*//" -e "s/  */ /g" -e "s/^ //" -e "s/ $//"`
-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the freebsd-ports mailing list