[packages/xchat-gnome] - fix perl detection in configure

baggins baggins at pld-linux.org
Mon Sep 15 22:57:12 CEST 2014


commit 14099315263a2dac9113296f55262ab170ccd9fb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Sep 15 22:56:57 2014 +0200

    - fix perl detection in configure

 perl-detect.patch | 11 +++++++++++
 xchat-gnome.spec  |  2 ++
 2 files changed, 13 insertions(+)
---
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}
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 <EXTERN.h>" > $PT;  echo "#include <perl.h>" >> $PT;  echo "#include <XSUB.h>" >> $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 <EXTERN.h>" > $PT;  echo "#include <perl.h>" >> $PT;  echo "#include <XSUB.h>" >> $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`
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xchat-gnome.git/commitdiff/14099315263a2dac9113296f55262ab170ccd9fb



More information about the pld-cvs-commit mailing list