diff --git a/aaa_base.changes b/aaa_base.changes index 1845a6f..676b374 100644 --- a/aaa_base.changes +++ b/aaa_base.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Sep 3 19:43:51 UTC 2010 - trenn@novell.com + +- Recognize "+" at the end of the kernel version correctly. + From mmarek: + Starting with 2.6.35, the kernel build by default appends a plus sign to + the kernel version string when building in a git tree that is not in a clean + tagged state. + ------------------------------------------------------------------- Fri Aug 27 15:05:22 CEST 2010 - ro@suse.de diff --git a/aaa_base.spec b/aaa_base.spec index 3d441b0..90e19d5 100644 --- a/aaa_base.spec +++ b/aaa_base.spec @@ -41,6 +41,7 @@ Source8: get_kernel_version.c Source20: aaa_base-rpmlintrc Source21: aaa_base.pre Source22: aaa_base.post +Patch0: get_kernel_version_fix_plus_in_kernel_string.patch %description This package installs several important configuration files. Central @@ -60,11 +61,15 @@ and convenience hacks). %prep %setup -n aaa_base -b 5 -b 7 + cd .. mkdir -p scripts cp -v %{SOURCE21} scripts cp -v %{SOURCE22} scripts +cd $RPM_SOURCE_DIR +%patch0 -p0 + %build gcc $RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 $RPM_SOURCE_DIR/get_kernel_version.c -o $RPM_SOURCE_DIR/get_kernel_version diff --git a/get_kernel_version_fix_plus_in_kernel_string.patch b/get_kernel_version_fix_plus_in_kernel_string.patch new file mode 100644 index 0000000..71fb9f6 --- /dev/null +++ b/get_kernel_version_fix_plus_in_kernel_string.patch @@ -0,0 +1,18 @@ +From: Michal Marek +Subject: get_kernel_version: accept '+' in kernel version string + +Starting with 2.6.35, the kernel build by default appends a plus sign to +the kernel version string when building in a git tree that is not in a clean +tagged state. + +--- get_kernel_version.c~ 2010-09-02 22:34:31.000000000 +0200 ++++ get_kernel_version.c 2010-09-02 22:34:47.000000000 +0200 +@@ -26,7 +26,7 @@ + static inline int my_is_alnum_punct(char c) + { + return isdigit(c) || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') +- || c == '.' || c == ',' || c == '-' || c == '_'; ++ || c == '.' || c == ',' || c == '-' || c == '_' || c == '+'; + } + + int