[packages/gtk-webkit3] Use sed to replace -g2 with -g1

megabajt megabajt at pld-linux.org
Mon Oct 1 18:51:25 CEST 2012


commit 03ddff35e1685335d87eea1708784703011c09b1
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date:   Mon Oct 1 18:50:48 2012 +0200

    Use sed to replace -g2 with -g1

 gtk-webkit3.spec | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk-webkit3.spec b/gtk-webkit3.spec
index 94f0203..2846d5c 100644
--- a/gtk-webkit3.spec
+++ b/gtk-webkit3.spec
@@ -67,8 +67,6 @@ Requires:	pango >= 1:1.21.0
 %{?with_introspection:Conflicts:	gir-repository < 0.6.5-7}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		filterout -g2
-
 %description
 gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3.
 
@@ -115,8 +113,8 @@ Dokumentacja API WebKita.
 # replace -g2 with -g1 to not run into 4 GB ar format limit
 # https://bugs.webkit.org/show_bug.cgi?id=91154
 # http://sourceware.org/bugzilla/show_bug.cgi?id=14625
-export CFLAGS="%{rpmcflags} -g1"
-export CXXFLAGS="%{rpmcxxflags} -g1"
+export CFLAGS="%(echo %{rpmcflags} | sed 's/ -g2/ -g1/g')"
+export CXXFLAGS="%(echo %{rpmcxxflags} | sed 's/ -g2/ -g1/g')"
 %configure \
 	--disable-silent-rules \
 	%{__enable_disable introspection} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtk-webkit3.git/commitdiff/03ddff35e1685335d87eea1708784703011c09b1



More information about the pld-cvs-commit mailing list