Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/audacity/files: audacity-1.3.12-automagic.patch audacity-1.3.12-gcc45.patch
Date: Mon, 04 Oct 2010 08:53:09
Message-Id: 20101004085258.BD03C20051@flycatcher.gentoo.org
1 dirtyepic 10/10/04 08:52:58
2
3 Modified: audacity-1.3.12-automagic.patch
4 Added: audacity-1.3.12-gcc45.patch
5 Log:
6 Add patch from upstream to fix configure error w/ GCC 4.5 (bug #322145 by
7 Bartosz Brachaczek/Thomas Pfaff). Tweak automagic patch to avoid
8 collision. Fix wxGTK DEPEND (bug #327801 by Arttu Valo).
9
10 (Portage version: 2.2_rc88/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.2 media-sound/audacity/files/audacity-1.3.12-automagic.patch
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/audacity/files/audacity-1.3.12-automagic.patch?rev=1.2&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/audacity/files/audacity-1.3.12-automagic.patch?rev=1.2&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/audacity/files/audacity-1.3.12-automagic.patch?r1=1.1&r2=1.2
18
19 Index: audacity-1.3.12-automagic.patch
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/media-sound/audacity/files/audacity-1.3.12-automagic.patch,v
22 retrieving revision 1.1
23 retrieving revision 1.2
24 diff -u -r1.1 -r1.2
25 --- audacity-1.3.12-automagic.patch 12 Apr 2010 08:38:53 -0000 1.1
26 +++ audacity-1.3.12-automagic.patch 4 Oct 2010 08:52:58 -0000 1.2
27 @@ -1,7 +1,6 @@
28 -diff -ur ../audacity-src-1.3.12-beta.orig/configure.in ./configure.in
29 ---- ../audacity-src-1.3.12-beta.orig/configure.in 2010-03-30 12:32:42.000000000 +0100
30 -+++ ./configure.in 2010-04-02 17:03:07.154028262 +0100
31 -@@ -559,6 +559,8 @@
32 +--- a/configure.in
33 ++++ b/configure.in
34 +@@ -559,6 +559,8 @@ case "${host_os}" in
35 esac
36
37 dnl PortAudio configuration
38 @@ -10,7 +9,7 @@
39
40 LOCAL_LIBS="$LOCAL_LIBS portaudio-v19/lib/libportaudio.a"
41 EXTRAOBJS="$EXTRAOBJS ../lib-src/portaudio-v19/lib/libportaudio.a"
42 -@@ -575,13 +577,21 @@
43 +@@ -575,13 +577,21 @@ case "${host_os}" in
44 ;;
45 *)
46 dnl Unix
47 @@ -39,19 +38,18 @@
48 fi
49 AC_CHECK_LIB(hpi, HPI_SubSysCreate, have_asihpi=yes, have_asihpi=no, -lm)
50 if [[ $have_asihpi = "yes" ]] ; then
51 -Only in .: configure.in.orig
52 -diff -ur ../audacity-src-1.3.12-beta.orig/lib-src/portmixer/configure.ac ./lib-src/portmixer/configure.ac
53 ---- ../audacity-src-1.3.12-beta.orig/lib-src/portmixer/configure.ac 2010-03-30 12:29:47.000000000 +0100
54 -+++ ./lib-src/portmixer/configure.ac 2010-04-02 17:03:07.154028262 +0100
55 -@@ -97,6 +97,7 @@
56 - AC_CHECK_HEADER(alsa/asoundlib.h, have_alsa=yes, have_alsa=no)
57 - AC_CHECK_HEADER(CoreAudio/CoreAudio.h, have_coreaudio=yes, have_coreaudio=no)
58 +--- a/lib-src/portmixer/configure.ac
59 ++++ b/lib-src/portmixer/configure.ac
60 +@@ -31,6 +31,8 @@ AC_ARG_ENABLE([debug],
61 + [AC_SUBST( cflags, ["$cflags -g"] ) AC_MSG_RESULT(yes)],
62 + [AC_SUBST( cflags, ["$cflags -O2"] ) AC_MSG_RESULT(no)])
63
64 +AC_ARG_WITH([alsa], AS_HELP_STRING([--without-alsa], [Build without alsa library (default: test)]))
65 ++
66 #
67 - # Set up to use the identified ones
68 + # Check for portaudio path
69 #
70 -@@ -107,7 +108,7 @@
71 +@@ -107,7 +109,7 @@ if [[ $have_oss = "yes" ]] ; then
72 objects="$objects px_unix_oss.o"
73 fi
74
75 @@ -60,4 +58,3 @@
76 AC_MSG_NOTICE(Including support for ALSA);
77 AC_DEFINE(PX_USE_LINUX_ALSA)
78 objects="$objects px_linux_alsa.o"
79 -Only in ./lib-src/portmixer: configure.ac.orig
80
81
82
83 1.1 media-sound/audacity/files/audacity-1.3.12-gcc45.patch
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/audacity/files/audacity-1.3.12-gcc45.patch?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/audacity/files/audacity-1.3.12-gcc45.patch?rev=1.1&content-type=text/plain
87
88 Index: audacity-1.3.12-gcc45.patch
89 ===================================================================
90 https://bugs.gentoo.org/322145
91 http://bugzilla.audacityteam.org/show_bug.cgi?id=221
92
93 --- lib-src/portmixer/configure.ac
94 +++ lib-src/portmixer/configure.ac
95 @@ -49,34 +49,57 @@
96 fi
97
98 #
99 +# Check which APIs are available
100 +#
101 +
102 +have_oss=no
103 +AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h], have_oss=yes)
104 +
105 +AC_CHECK_HEADER(alsa/asoundlib.h, have_alsa=yes, have_alsa=no)
106 +AC_CHECK_HEADER(CoreAudio/CoreAudio.h, have_coreaudio=yes, have_coreaudio=no)
107 +AC_CHECK_HEADER(windows.h, have_windows=yes, have_windows=no)
108 +
109 +#
110 # Make sure the support is there
111 #
112 have_support=yes
113 -AC_EGREP_HEADER([PaWinDS_GetStreamInputGUID], [pa_win_ds.h], , [have_support=no])
114 -if [[ $have_support = "no" ]] ; then
115 - AC_MSG_WARN("Missing support in pa_win_ds.h");
116 -fi
117 -AC_EGREP_HEADER([PaAlsa_GetStreamInputCard], [pa_linux_alsa.h], , [have_support=no])
118 -if [[ $have_support = "no" ]] ; then
119 +
120 +if [[ $have_alsa = "yes" ]] ; then
121 + AC_EGREP_HEADER([PaAlsa_GetStreamInputCard], [pa_linux_alsa.h], , [have_support=no])
122 + if [[ $have_support = "no" ]] ; then
123 AC_MSG_WARN("Missing support in pa_linux_alsa.h");
124 + fi
125 fi
126 -AC_EGREP_HEADER([PaWinMME_GetStreamInputHandle], [pa_win_wmme.h], , [have_support=no])
127 -if [[ $have_support = "no" ]] ; then
128 - AC_MSG_WARN("Missing support in pa_win_wmme.h");
129 -fi
130 -AC_EGREP_HEADER([PaMacCore_GetStreamInputDevice], [pa_mac_core.h], , [have_support=no])
131 -if [[ $have_support = "no" ]] ; then
132 +
133 +if [[ $have_coreaudio = "yes" ]] ; then
134 + AC_EGREP_HEADER([PaMacCore_GetStreamInputDevice], [pa_mac_core.h], , [have_support=no])
135 + if [[ $have_support = "no" ]] ; then
136 AC_MSG_WARN("Missing support in pa_mac_core.h");
137 + fi
138 fi
139 -AC_EGREP_HEADER([PaOSS_GetStreamInputDevice], [pa_unix_oss.h], , [have_support=no])
140 -if [[ $have_support = "no" ]] ; then
141 +
142 +if [[ $have_oss = "yes" ]] ; then
143 + AC_EGREP_HEADER([PaOSS_GetStreamInputDevice], [pa_unix_oss.h], , [have_support=no])
144 + if [[ $have_support = "no" ]] ; then
145 AC_MSG_WARN("Missing support in pa_unix_oss.h");
146 + fi
147 fi
148 +
149 +if [[ $have_windows = "yes" ]] ; then
150 + AC_EGREP_HEADER([PaWinDS_GetStreamInputGUID], [pa_win_ds.h], , [have_support=no])
151 + if [[ $have_support = "no" ]] ; then
152 + AC_MSG_WARN("Missing support in pa_win_ds.h");
153 + fi
154 + AC_EGREP_HEADER([PaWinMME_GetStreamInputHandle], [pa_win_wmme.h], , [have_support=no])
155 + if [[ $have_support = "no" ]] ; then
156 + AC_MSG_WARN("Missing support in pa_win_wmme.h");
157 + fi
158 +fi
159 +
160 AC_EGREP_HEADER([Pa_GetStreamHostApiType], [portaudio.h], , [have_support=no])
161 if [[ $have_support = "no" ]] ; then
162 AC_MSG_WARN("Missing support in portaudio.h");
163 fi
164 -
165 if [[ $have_support = "no" ]] ; then
166 AC_MSG_ERROR("Your version of portaudio does not include required functions");
167 fi
168 @@ -88,16 +111,6 @@
169 AC_SUBST( objects, [px_mixer.o] )
170
171 #
172 -# Check which APIs are available
173 -#
174 -
175 -have_oss=no
176 -AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h], have_oss=yes)
177 -
178 -AC_CHECK_HEADER(alsa/asoundlib.h, have_alsa=yes, have_alsa=no)
179 -AC_CHECK_HEADER(CoreAudio/CoreAudio.h, have_coreaudio=yes, have_coreaudio=no)
180 -
181 -#
182 # Set up to use the identified ones
183 #
184 AC_MSG_NOTICE(---------------------------------------);