it's due re_string_fetch_byte_case was marked pure, while it is not
Summary: A cross-platform build environment
Name: kBuild
Version: 0.1.9998
-Release: 1
+Release: 2
Group: Development/Tools
# Most tools are from NetBSD, some are from FreeBSD, and make and sed are from GNU
License: BSD and GPL v2+
Patch0: %{name}-0.1.3-escape.patch
Patch1: %{name}-0.1.5-dprintf.patch
Patch2: %{name}-0.1.5-pthread.patch
+Patch3: re_string_fetch_byte_case-not-pure-attribute.patch
BuildRequires: acl-devel
BuildRequires: autoconf
BuildRequires: automake
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
cat > SvnInfo.kmk << EOF
KBUILD_SVN_REV := %{svnrev}
--- /dev/null
+inspired from a fix from glibc:
+http://www.sourceware.org/ml/libc-alpha/2011-12/msg00091.html
+
+--- kBuild-0.1.9998/./src/sed/lib/regex_internal.c~ 2012-11-25 17:35:24.000000000 +0200
++++ kBuild-0.1.9998/./src/sed/lib/regex_internal.c 2012-11-25 19:16:31.260977775 +0200
+@@ -781,7 +781,7 @@
+ }
+
+ static unsigned char
+-internal_function __attribute ((pure))
++internal_function
+ re_string_fetch_byte_case (re_string_t *pstr)
+ {
+ if (BE (!pstr->mbs_allocated, 1))