From 6d80bfb5eba63ee0e529be3d37545f44e743d490 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 1 Sep 2009 12:21:49 +0000 Subject: [PATCH] - workaround for glibc on x86_64 (rawhide), it causes build failure, will be removed when it's fixed in glibc --- kdelibs.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/kdelibs.spec b/kdelibs.spec index 477fe0a..5a32ee8 100644 --- a/kdelibs.spec +++ b/kdelibs.spec @@ -201,15 +201,9 @@ format for easy browsing. %patch0 -p1 -b .parallel_devel %patch2 -p1 -b .kde149705 -%if 0%{?fedora} >= 9 %patch5 -p1 -b .k3spell-hunspell -%else -# shouldn't be needed f9+, we'll see -- Rex -%patch6 -p1 -b .openssl -%endif %patch8 -p1 -b .all-css %patch9 -p1 -b .branding -sed -i -e "s|@@VERSION_RELEASE@@|%{version}-%{release}|" kio/kio/kprotocolmanager.cpp %patch11 -p1 -b .policykit %patch12 -p1 -b .Administration-menu %patch14 -p1 -b .libexecdir @@ -222,6 +216,14 @@ sed -i -e "s|@@VERSION_RELEASE@@|%{version}-%{release}|" kio/kio/kprotocolmanage %build +# add release version +sed -i -e "s|@@VERSION_RELEASE@@|%{version}-%{release}|" kio/kio/kprotocolmanager.cpp + +# workaround for glibc on x86_64 (rawhide) +%ifarch x86_64 +sed -i -e "s|-std=iso9899:1990||" cmake/modules/FindKDE4Internal.cmake +%endif + mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} -DKDE_DISTRIBUTION_TEXT="%{version}-%{release} Fedora" ..