Since it is needed by the newly upcoming Wired package (#94136), and since they embedded the new version in there, I upgraded it a bit and posted it here. WARNING: This is based on a cvs-snaphots daily from the upstream devs. Build was tested only with Linux on x86 Reproducible: Always Steps to Reproduce:
Created attachment 60065 [details] media-libs/portaudio-19 Ze ebuild
WARNING: The API changed from v18 to v19 to the point that depending softwares will break. I had jack and timidity++ linked to v18 and they stopped working after I emerged v19. There do not seem those packages are v19 aware yet. My solution was to recompile those programs with USE="-portaudio". So if you are in need of a working portaudio implmentation, do not emerge this. So far, only Wired seem to need it (see bug #94136).
Created attachment 76729 [details] media-libs/portaudio-19_pre20060110.ebuild Slotted version of ebuild
Created attachment 76989 [details] media-libs/portaudio-19_pre20060113.ebuild
sound herd, please bump, need this package for gnustep-gui
Is there not a snapshot available instead of the cvs? I would get rid of the unnecessary ${myconf} . The ebuild should use the $(get_libname) function instead of the hardcoded .so stuff so it works on darwin.
Created attachment 83220 [details] media-libs/portaudio/portaudio-19_pre20060323.ebuild Fix for using $(get_libname) function.
I have tried the portaudio-19 ebuild attached to the wired bug, the ebuild here and finally the CVS ebuild. All return the following error: (NOTE: gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)) --- * Copying portaudio from /var/tmp/portage/portaudio-19/distdir/cvs-src/www.portaudio.com/v19-devel ... * CVS module portaudio is now in /var/tmp/portage/portaudio-19/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/portaudio-19/work/portaudio ... * econf: updating portaudio/config.guess with /usr/share/gnuconfig/config.guess * econf: updating portaudio/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-alsa --without-oss --with-jack --build=i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for a BSD-compatible install... /bin/install -c checking for ar... /usr/bin/ar checking whether byte ordering is bigendian... no checking for snd_pcm_open in -lasound... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for pkg-config... /usr/bin/pkg-config checking for jack... yes checking JACK_CFLAGS... checking JACK_LIBS... -ljack checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for short... yes checking size of short... 2 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for pthread_create in -lpthread... yes configure: creating ./config.status config.status: creating Makefile config.status: creating portaudio-2.0.pc mkdir lib i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_allocation.c -o pa_common/pa_allocation.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_converters.c -o pa_common/pa_converters.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_cpuload.c -o pa_common/pa_cpuload.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_dither.c -o pa_common/pa_dither.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_front.c -o pa_common/pa_front.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_process.c -o pa_common/pa_process.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_skeleton.c -o pa_common/pa_skeleton.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_stream.c -o pa_common/pa_stream.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_common/pa_trace.c -o pa_common/pa_trace.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_linux_alsa/pa_linux_alsa.c -o pa_linux_alsa/pa_linux_alsa.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_jack/pa_jack.c -o pa_jack/pa_jack.o pa_jack/pa_jack.c: In function `BlockingCallback': pa_jack/pa_jack.c:268: warning: passing arg 2 of `RingBuffer_Write' discards qualifiers from pointer target type i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_unix/pa_unix_hostapis.c -o pa_unix/pa_unix_hostapis.o i686-pc-linux-gnu-gcc -c -g -O2 -Wall -pedantic -pipe -fPIC -DPA_LITTLE_ENDIAN -pthread -Ipa_common -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_LIBPTHREAD=1 -DPA_USE_ALSA=1 -DPA_USE_JACK=1 pa_unix/pa_unix_util.c -o pa_unix/pa_unix_util.o mkdir bin /usr/bin/ar ruv lib/libportaudio.a pa_common/pa_allocation.o pa_common/pa_converters.o pa_common/pa_cpuload.o pa_common/pa_dither.o pa_common/pa_front.o pa_common/pa_process.o pa_common/pa_skeleton.o pa_common/pa_stream.o pa_common/pa_trace.o pa_linux_alsa/pa_linux_alsa.o pa_jack/pa_jack.o pa_unix/pa_unix_hostapis.o pa_unix/pa_unix_util.o i686-pc-linux-gnu-gcc -shared -fPIC -o lib/libportaudio.so.0.0.19 pa_common/pa_allocation.o pa_common/pa_converters.o pa_common/pa_cpuload.o pa_common/pa_dither.o pa_common/pa_front.o pa_common/pa_process.o pa_common/pa_skeleton.o pa_common/pa_stream.o pa_common/pa_trace.o pa_linux_alsa/pa_linux_alsa.o pa_jack/pa_jack.o pa_unix/pa_unix_hostapis.o pa_unix/pa_unix_util.o -lasound -ljack -install_name /usr/lib/libportaudio.so.0.0.19 -compatibility_version 0.0.19 -current_version 0.0.19 /usr/bin/ar: creating lib/libportaudio.a a - pa_common/pa_allocation.o a - pa_common/pa_converters.o a - pa_common/pa_cpuload.o a - pa_common/pa_dither.o a - pa_common/pa_front.o a - pa_common/pa_process.o a - pa_common/pa_skeleton.o a - pa_common/pa_stream.o a - pa_common/pa_trace.o a - pa_linux_alsa/pa_linux_alsa.o a - pa_jack/pa_jack.o a - pa_unix/pa_unix_hostapis.o a - pa_unix/pa_unix_util.o i686-pc-linux-gnu-ranlib lib/libportaudio.a i686-pc-linux-gnu-gcc: /usr/lib/libportaudio.so.0.0.19: No such file or directory i686-pc-linux-gnu-gcc: 0.0.19: No such file or directory i686-pc-linux-gnu-gcc: 0.0.19: No such file or directory i686-pc-linux-gnu-gcc: unrecognized option `-compatibility_version' i686-pc-linux-gnu-gcc: unrecognized option `-current_version' make: *** [lib/libportaudio.so.0.0.19] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: media-libs/portaudio-19 failed. Call stack: ebuild.sh, line 1532: Called dyn_compile ebuild.sh, line 929: Called src_compile portaudio-19.ebuild, line 39: Called die
Created attachment 84560 [details] media-libs/portaudio/portaudio-19_pre20060413.ebuild Some Darwin'ist changes in CVS :)
Created attachment 84561 [details, diff] media-libs/portaudio/files/rm_darwin.patch
Created attachment 95450 [details] media-libs/portaudio/portaudio-19_pre20060830.ebuild Moved to SVN. Slot changed to "2".
Created attachment 105274 [details] media-libs/portaudio/portaudio-19_pre20070101.ebuild Scons support added.
Created attachment 108609 [details] media-libs/portaudio/portaudio-19_pre20070130.ebuild CPP bindings fixed.
Why this bug depend on 147042?
whoops I did it the wrong way :)
Created attachment 114244 [details] media-libs/portaudio/portaudio-19_pre1182.ebuild Symlinks to libportaudiocpp fixed.
bumped this one, under p.mask and will need to be rekeyworded when packages depending upon it will have migrated to the new api. I've modified the ebuild to use only autotools as that is much simpler. As it's released by upstream it cannot be slotted, and I dont want to differ from them with so many hacks, so I suppose we'll have to slowly migrate packages to v19.
I am currently using 19_pre061121 in portage... Has anyone tested this with alsa? I am working on the ebuild for mixxx (bug: 147042) and I noticed that i get some errors like "Debug: PortAudio: Open stream error: Invalid sample rate". Anyone verify that it works with alsa? Please see the mixxx log for crash report.
19_pre061121 slotted as "0", but portaudio-v18 and portaudio-v19 are incompatible. I think, slotting strongly needed.
Sorry! Not "0", but "18", like portaudio-18.
Is there application to test and see if portaudio 19 is working correctly? I am trying to figure out if there is a bug with mixxx 1.5 or portaudio or config issue.
since a pre of 19 is in the tree now, can this be closed¿
The 19 version can be keyworded ppc. It runs here together with mixxx.
v19_20071207, posted December 7, 2007, is out and available for download from the main site.
v19_20071207 compiles and works like a charm on amd64 with USE="alsa -jack -oss". I just had to rename the pre061121 ebuild from portage. I tested it with media-sound/rezound-0.12.3_beta USE="flac nls portaudio soundtouch vorbis -16bittmp -alsa -jack -oss" Note that I had to recompile it.
Odd... amd64 works fine, I get a "the sound player is not inizialized" on my x86 laptop, with the very same package versions and USE flags. O_o
Mmmh. the provided test patest_sine.c produces only very choppy audio, and I suspect that rezound actually uses OSS since it does lock the audio card from other streams... can anyone confirm/dismiss?
(In reply to comment #25) > v19_20071207 compiles and works like a charm on amd64 with USE="alsa -jack > -oss". For me fine with USE="alsa jack oss". Yes, I use Jack.
Created attachment 138238 [details] media-libs/portaudio/portaudio-19_pre20071207.ebuild
I've run some deeper tests. rezound does use oss instead of portaudio, even if you compile it with USE="-oss -alsa portaudio". USE="alsa -oss -jack" portaudio does NOT work. If I run the test programs I get only jibbering. USE="-alsa oss -jack" WORKS. I didn't test jack as I don't have it configured.
File is now known as http://www.portaudio.com/archives/pa_stable_v19_20071207.tar.gz
Unmasking can be tracked in bug 222841.