diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-22 23:06:28 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-22 23:06:28 +0000 |
commit | c7f715639cee75a918636c4b532c4d32dbc80a1e (patch) | |
tree | 7c8100090f08aab5f577a8a7977d0fdb11829032 /package/multimedia/alsa-utils/alsa-utils-1.0.18-acs_map.patch.avr32 | |
parent | 06b99ea3039df0c1b27bdf2fa10bbdcd4d9e03be (diff) | |
download | buildroot-novena-c7f715639cee75a918636c4b532c4d32dbc80a1e.tar.gz buildroot-novena-c7f715639cee75a918636c4b532c4d32dbc80a1e.zip |
Add workarounds for alsa-utils
Diffstat (limited to 'package/multimedia/alsa-utils/alsa-utils-1.0.18-acs_map.patch.avr32')
-rw-r--r-- | package/multimedia/alsa-utils/alsa-utils-1.0.18-acs_map.patch.avr32 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/multimedia/alsa-utils/alsa-utils-1.0.18-acs_map.patch.avr32 b/package/multimedia/alsa-utils/alsa-utils-1.0.18-acs_map.patch.avr32 new file mode 100644 index 000000000..e2103f850 --- /dev/null +++ b/package/multimedia/alsa-utils/alsa-utils-1.0.18-acs_map.patch.avr32 @@ -0,0 +1,29 @@ +When configuring alsa-utils, it will use the hosts <ncurses.h> +See: alsa-utils <VERSION> / alsamixer/.deps/alsamicer.Po +This will, on OpenSuSE 11.0, and possibly other distributions +result in that the preprocessor directive: +#define acs_map _nc_acs_map +which is present in the Buildroot build of ncurses, +is not executed, and the +extern <chartype> acs_map[]; +declaration in the host ncurses will +result in an undefined symbol: acs_map. + +This patches give up trying to force alsa-utils to use the correct +ncurses, and just defines a byte with the needed symbol. + + +diff -urN alsa-utils-1.0.18-0rig//alsamixer/alsamixer.c alsa-utils-1.0.18/alsamixer/alsamixer.c +--- alsa-utils-1.0.18-0rig//alsamixer/alsamixer.c 2008-10-29 13:42:11.000000000 +0100 ++++ alsa-utils-1.0.18/alsamixer/alsamixer.c 2009-01-22 23:35:29.000000000 +0100 +@@ -115,6 +115,10 @@ + #include <sys/time.h> + + #include <locale.h> ++/* Ugly hack to get rid of undefined "acs_map" */ ++/* This is caused by configure using host ncurses.h */ ++/* instead of buildroot's ncurses.h */ ++unsigned long acs_map[1]; + + #ifndef CURSESINC + #include <ncurses.h> |