1 |
pva 08/11/22 21:11:36 |
2 |
|
3 |
Added: sox-14.2.0-distro.patch |
4 |
Log: |
5 |
Don't try to get distro name from /etc/issue, bug #246299 thank Albert W. Hopkins for report. |
6 |
(Portage version: 2.2_rc15/cvs/Linux 2.6.26-openvz.git-35f41f1 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-sound/sox/files/sox-14.2.0-distro.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/sox/files/sox-14.2.0-distro.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/sox/files/sox-14.2.0-distro.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: sox-14.2.0-distro.patch |
15 |
=================================================================== |
16 |
=== modified file 'configure.ac' |
17 |
--- configure.ac 2008-11-11 12:27:08 +0000 |
18 |
+++ configure.ac 2008-11-11 12:28:01 +0000 |
19 |
@@ -117,15 +117,23 @@ |
20 |
AC_SUBST(APP_LDFLAGS) |
21 |
AC_SUBST(WARN_CFLAGS) |
22 |
|
23 |
-dnl Get distro name from /etc/issue |
24 |
-if test -r /etc/issue; then |
25 |
- AC_MSG_CHECKING([distro name]) |
26 |
- DISTRO=`sed -e "s/.[0-9][0-9;]*[mJH]//g" < /etc/issue|tr "\n" " " | sed -e "s/(\\\\?\\\\\\\\.*//" -e "s/ */ /g" -e "s/^ //" -e "s/ $//"` |
27 |
- AC_MSG_RESULT("$DISTRO") |
28 |
- AC_SUBST(DISTRO) |
29 |
- AC_DEFINE(HAVE_DISTRO, 1, [1 if DISTRO is defined]) |
30 |
- have_distro=yes |
31 |
+AC_ARG_WITH(distro, |
32 |
+ AC_HELP_STRING([--with-distro=distro], |
33 |
+ [Provide distribution name, by default will try to grep /etc/issue])) |
34 |
+ |
35 |
+if test "$with_distro" != "no"; then |
36 |
+ DISTRO=$with_distro |
37 |
+else |
38 |
+ dnl Get distro name from /etc/issue |
39 |
+ if test -r /etc/issue; then |
40 |
+ AC_MSG_CHECKING([distro name]) |
41 |
+ DISTRO=`sed -e "s/.[0-9][0-9;]*[mJH]//g" < /etc/issue|tr "\n" " " | sed -e "s/(\\\\?\\\\\\\\.*//" -e "s/ */ /g" -e "s/^ //" -e "s/ $//"` |
42 |
+ AC_MSG_RESULT("$DISTRO") |
43 |
+ fi |
44 |
fi |
45 |
+AC_SUBST(DISTRO) |
46 |
+AC_DEFINE(HAVE_DISTRO, 1, [1 if DISTRO is defined]) |
47 |
+have_distro=yes |
48 |
AM_CONDITIONAL(HAVE_DISTRO, test x$have_distro = xyes) |
49 |
|
50 |
dnl Check for system dependent features. |