diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-11-10 11:57:53 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-11-10 11:57:53 +0000 |
commit | 28fb454ca27e7e29853d3cc006d3b6bdcc8953d1 (patch) | |
tree | add6d356817034b6f4f08c854deb76d5d81106d8 /media-libs/alsa-lib/files | |
parent | New release. (diff) | |
download | gentoo-2-28fb454ca27e7e29853d3cc006d3b6bdcc8953d1.tar.gz gentoo-2-28fb454ca27e7e29853d3cc006d3b6bdcc8953d1.tar.bz2 gentoo-2-28fb454ca27e7e29853d3cc006d3b6bdcc8953d1.zip |
Added patch to not link tests statically (should fix bug #99764) and patch to remove omixer test and fix code.c for GCC4 (bug #112025).
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'media-libs/alsa-lib/files')
-rw-r--r-- | media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-hardened.patch | 12 | ||||
-rw-r--r-- | media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-test.patch | 70 |
2 files changed, 82 insertions, 0 deletions
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-hardened.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-hardened.patch new file mode 100644 index 000000000000..a064c702dc4a --- /dev/null +++ b/media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-hardened.patch @@ -0,0 +1,12 @@ +Index: alsa-lib-1.0.10rc3/test/Makefile.am +=================================================================== +--- alsa-lib-1.0.10rc3.orig/test/Makefile.am ++++ alsa-lib-1.0.10rc3/test/Makefile.am +@@ -16,6 +16,6 @@ queue_timer_LDADD=../src/libasound.la + code_CFLAGS=-Wall -pipe -g -O2 + + INCLUDES=-I$(top_srcdir)/include +-AM_CFLAGS=-static -Wall -pipe -g ++AM_CFLAGS=-Wall -pipe -g + + EXTRA_DIST=seq-decoder.c seq-sender.c midifile.h midifile.c midifile.3 diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-test.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-test.patch new file mode 100644 index 000000000000..6c2e706ef107 --- /dev/null +++ b/media-libs/alsa-lib/files/alsa-lib-1.0.10_rc3-test.patch @@ -0,0 +1,70 @@ +Index: alsa-lib-1.0.10rc3/test/Makefile.am +=================================================================== +--- alsa-lib-1.0.10rc3.orig/test/Makefile.am ++++ alsa-lib-1.0.10rc3/test/Makefile.am +@@ -1,6 +1,6 @@ + check_PROGRAMS=control pcm latency seq \ + playmidi1 timer rawmidi midiloop \ +- omixer code oldapi queue_timer ++ code oldapi queue_timer + + control_LDADD=../src/libasound.la + pcm_LDADD=../src/libasound.la +@@ -10,7 +10,6 @@ playmidi1_LDADD=../src/libasound.la + timer_LDADD=../src/libasound.la + rawmidi_LDADD=../src/libasound.la + midiloop_LDADD=../src/libasound.la +-omixer_LDADD=../src/libasound.la + oldapi_LDADD=../src/libasound.la + queue_timer_LDADD=../src/libasound.la + code_CFLAGS=-Wall -pipe -g -O2 +Index: alsa-lib-1.0.10rc3/test/code.c +=================================================================== +--- alsa-lib-1.0.10rc3.orig/test/code.c ++++ alsa-lib-1.0.10rc3/test/code.c +@@ -96,8 +96,8 @@ void mix_areas_srv(unsigned int size, + { + while (size-- > 0) { + atomic_add(sum, *src); +- ((char*)src) += src_step; +- ((char*)sum) += sum_step; ++ src = (((char*)src) + src_step); ++ sum = (((char*)sum) + sum_step); + } + } + +@@ -113,8 +113,8 @@ void saturate(unsigned int size, + *dst = 0x7fff; + else + *dst = sample; +- ((char*)dst) += dst_step; +- ((char*)sum) += sum_step; ++ dst = (((char*)dst) + dst_step); ++ sum = (((char*)sum) + sum_step); + } + } + +@@ -133,9 +133,9 @@ void mix_areas0(unsigned int size, + *dst = 0x7fff; + else + *dst = sample; +- ((char *)dst) += dst_step; +- ((char *)src) += src_step; +- ((char *)sum) += sum_step; ++ dst = (((char*)dst) + dst_step); ++ src = (((char*)src) + src_step); ++ sum = (((char*)sum) + sum_step); + } + } + +@@ -167,8 +167,8 @@ void mix_areas2(unsigned int size, + *dst = sample; + } while (unlikely(sample != *sum)); + sum++; +- ((char *)dst) += dst_step; +- ((char *)src) += src_step; ++ dst = (((char*)dst) + dst_step); ++ src = (((char*)src) + src_step); + } + } + |