From 5c3e8058afae93886b229a9b3df7a66db48aada1 Mon Sep 17 00:00:00 2001 From: Tim Jackson Date: May 30 2009 10:51:18 +0000 Subject: Fix build against glibc2.10 --- diff --git a/alsa-tools-1.0.20-glibc2.10.patch b/alsa-tools-1.0.20-glibc2.10.patch new file mode 100644 index 0000000..dba5a3c --- /dev/null +++ b/alsa-tools-1.0.20-glibc2.10.patch @@ -0,0 +1,12 @@ +From http://article.gmane.org/gmane.linux.alsa.devel/63326 + +--- envy24control/strstr_icase_blank.c ++++ envy24control/strstr_icase_blank.c +@@ -48,7 +48,6 @@ int strstr_icase_blank(const char * const string1, const char * const string2) + char search_string[MAX_SEARCH_FIELD_LENGTH]; + char *pstr; + int pos_first_non_blank; +- int isblank(int c); + + strncpy(search_string, string2, MAX_SEARCH_FIELD_LENGTH); + search_string[MAX_SEARCH_FIELD_LENGTH - 1] = '\0'; diff --git a/alsa-tools.spec b/alsa-tools.spec index 83caf1a..6cdc397 100644 --- a/alsa-tools.spec +++ b/alsa-tools.spec @@ -23,7 +23,7 @@ Summary: Specialist tools for ALSA Name: alsa-tools Version: 1.0.20 -Release: 1%{?dist}.1 +Release: 1%{?dist}.2 # Checked at least one source file from all the sub-projects contained in # the source tarball and they are consistent GPLv2+ - TJ 2007-11-15 @@ -39,6 +39,7 @@ Source2: envy24control.png Source3: echomixer.desktop Source4: echomixer.png Source5: 90-alsa-tools-firmware.rules +Patch0: alsa-tools-1.0.20-glibc2.10.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel >= %{version} %if 0%{!?_without_tools:1} @@ -86,6 +87,7 @@ The following tools are available: %prep %setup -q -n %{name}-%{version} +%patch0 %build @@ -216,7 +218,7 @@ install -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d %endif %changelog -* Sun May 10 2009 Tim Jackson - 1.0.20-1.fc12.1 +* Sun May 10 2009 Tim Jackson - 1.0.20-1.fc12.2 - Update to 1.0.20 * Mon Feb 23 2009 Fedora Release Engineering - 1.0.19-3