From 14099315263a2dac9113296f55262ab170ccd9fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 15 Sep 2014 22:56:57 +0200 Subject: [PATCH] - fix perl detection in configure --- perl-detect.patch | 11 +++++++++++ xchat-gnome.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 perl-detect.patch diff --git a/perl-detect.patch b/perl-detect.patch new file mode 100644 index 0000000..2d5f262 --- /dev/null +++ b/perl-detect.patch @@ -0,0 +1,11 @@ +--- xchat-gnome-0.26.1/configure.ac~ 2009-04-12 15:49:32.000000000 +0200 ++++ xchat-gnome-0.26.1/configure.ac 2014-09-15 22:56:20.000621295 +0200 +@@ -173,7 +173,7 @@ + + if test "x$have_perl" != "xno"; then + AC_MSG_CHECKING(for Perl header files) +- PERL_HEADER_TEST=`PT=perltest.c ; echo "#include " > $PT; echo "#include " >> $PT; echo "#include " >> $PT ; echo "int main() { return 0; }" >> $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1` ++ PERL_HEADER_TEST=`PT=perltest.c ; echo "#include " > $PT; echo "#include " >> $PT; echo "#include " >> $PT ; echo "int main() { return 0; }" >> $PT ; $CC -c -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1` + + if test "x$PERL_HEADER_TEST" = "x0" ; then + PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts` diff --git a/xchat-gnome.spec b/xchat-gnome.spec index 756547a..f41a015 100644 --- a/xchat-gnome.spec +++ b/xchat-gnome.spec @@ -12,6 +12,7 @@ Source0: http://ftp.gnome.org/pub/GNOME/sources/xchat-gnome/0.26/%{name}-%{versi Patch0: %{name}-long-delimiter.patch Patch1: %{name}-notify.patch Patch2: %{name}-makefile.patch +Patch3: perl-detect.patch URL: http://xchat-gnome.navi.cx/ BuildRequires: GConf2-devel >= 2.24.0 BuildRequires: autoconf >= 2.60 @@ -83,6 +84,7 @@ Wtyczka dodająca do XChata możliwość uruchamiania skryptów w Pythonie. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %{__libtoolize} -- 2.44.0