Bug#852853: libwww-curl-perl: FTBFS (Cannot find curl.h)

gregor herrmann gregoa at debian.org
Fri Jan 27 21:56:02 UTC 2017


Control: tag -1 + confirmed

On Fri, 27 Jan 2017 20:51:04 +0000, Santiago Vila wrote:

> I tried to build this package in stretch with "dpkg-buildpackage -B"
> but it failed:
> 
> --------------------------------------------------------------------------------
> [...]
>  debian/rules build-arch
> dh build-arch
>    dh_testdir -a
>    dh_update_autotools_config -a
>    dh_auto_configure -a
> 	perl -I. Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now"
> Locating required external dependency bin:curl-config... found at /usr/bin/curl-config.
> The version is libcurl 7.52.1
> Cannot find curl.h - cannot build constants files  - see Makefile.PL at Makefile.PL line 96.
> dh_auto_configure: perl -I. Makefile.PL INSTALLDIRS=vendor OPTIMIZE=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 LD=x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now returned exit code 2
> debian/rules:6: recipe for target 'build-arch' failed
> make: *** [build-arch] Error 2
> dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
> --------------------------------------------------------------------------------

Thanks, same here.

Seems like curl 7.52.1-1 moved the headers:

  * Another attempt at making -dev packages multi-arch.

and our libwww-curl-perl's Makefile.PL is bad at guessing the correct
include path.


Some looking around:

Makefile.PL adds $ARGV[0] to the @includes array, and `perl -I.
Makefile.PL /usr/include/x86_64-linux-gnu' works but passing it via

    dh_auto_configure -- $(INCLUDEDIR)

fails as that gets appended at the end:

dh_auto_configure -- /usr/include/x86_64-linux-gnu
	perl -I. Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -fdebug-prefix-map=/build/libwww-curl-perl-4.17=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-map=/build/libwww-curl-perl-4.17=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now" /usr/include/x86_64-linux-gnu

So I guess patching Makefile.PL it is.
Ok, pushed to git, reviews welcome.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at/ - Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Frank Zappa: METAL MAN HAS WON HIS WINGS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170127/2680fda1/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list