Package: xchat-gnome Version: 1:0.30.0~git20131003.d20b8d-2 Severity: important Tags: patch User: debian-p...@lists.debian.org Usertags: perl-5.20-transition
This package silently drops its libperl linkage when built with perl_5.20.0-1 from experimental: checking whether Perl support is requested... autodetect checking for perl... /usr/bin/perl configure: WARNING: Perl headers not found, disabling perl support This is because the probe in configure.ac now needs to either link with libperl or #define PERL_NO_INLINE_FUNCTIONS. See #752354. I'm attaching Damyan Ivanov's patch from #752354, which uses the first approach. -- Niko Tyni nt...@debian.org
Description: configure.ac: fix perl header test for perl 5.20 The PL_memory_wrap and Perl_croak_nocontext symbols are now in libperl so a test program needs to link with it. Adding $($PERL -MExtUtils::Embed -e ldopts) to the compiler command line does just that. Author: Damyan Ivanov <d...@debian.org> Bug-Debian: http://bugs.debian.org/752354 --- a/configure.ac +++ b/configure.ac @@ -164,7 +164,7 @@ fi 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 -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) $($PERL -MExtUtils::Embed -e ldopts) 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`