Control: tag -1 + patch

On Tue, 05 Jun 2012 20:50:36 +0100, Dominic Hargreaves wrote:

> Source: nfqueue-bindings
> Version: 0.4-3
> Severity: normal
> User: debian-p...@lists.debian.org
> Usertags: perl-5.16-transition
> 
> This package FTBFS with perl 5.16 from experimental:
> 
> -- Found Perl: /usr/bin/perl (found version "5.16.0") 
> CMake Error: The following variables are used in this project, but they are 
> set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake 
> files:
> PERL_INCLUDE_PATH (ADVANCED)
>    used as include directory in directory 
> /build/dom-nfqueue-bindings_0.4-3+b1-i386-B3HOFx/nfqueue-bindings-0.4/perl
> 
> -- Configuring incomplete, errors occurred!
> make[2]: *** [all] Error 1

My guess is that this might be a CMake problem.
(Similar to http://www.netservers.co.uk/node/50)

Oh, no, there's a FindPerlLibs2.cmake in the source, which hardcodes
paths to perl versions (and doesn't know about 5.16).

And luckily the fix is easy: Ignore it and use the FindPerlLibs.cmake
file from cmake-data.

Patch attached.

Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Johnny Cash: Field Of Diamonds
diff -Nru nfqueue-bindings-0.4/debian/changelog nfqueue-bindings-0.4/debian/changelog
--- nfqueue-bindings-0.4/debian/changelog	2012-05-19 16:20:29.000000000 +0200
+++ nfqueue-bindings-0.4/debian/changelog	2013-05-08 21:33:54.000000000 +0200
@@ -1,3 +1,13 @@
+nfqueue-bindings (0.4-3.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "FTBFS with perl 5.16: NOTFOUND... PERL_INCLUDE_PATH":
+    add patch FindPerlLib.patch: use cmake-data's own FindPerlLibs instead of
+    the one shipped by upstream, which hardcodes perl paths with versions.
+    (Closes: #676274)
+
+ -- gregor herrmann <gre...@debian.org>  Wed, 08 May 2013 21:09:53 +0200
+
 nfqueue-bindings (0.4-3) unstable; urgency=low
 
   * Add missing CPPFLAGS hardening flags (Closes: #670238).
diff -Nru nfqueue-bindings-0.4/debian/patches/FindPerlLib.patch nfqueue-bindings-0.4/debian/patches/FindPerlLib.patch
--- nfqueue-bindings-0.4/debian/patches/FindPerlLib.patch	1970-01-01 01:00:00.000000000 +0100
+++ nfqueue-bindings-0.4/debian/patches/FindPerlLib.patch	2013-05-08 21:32:57.000000000 +0200
@@ -0,0 +1,20 @@
+Description: use cmake's own PerlLibs instead of the shipped one,
+ which hardcodes perl paths and fails on newer perl versions
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/676274
+Bug: https://www.wzdftpd.net/redmine/issues/206
+Forwarded: no
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2013-05-08
+
+--- a/perl/CMakeLists.txt
++++ b/perl/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ 
+ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
+ FIND_PACKAGE(Perl)
+-FIND_PACKAGE(PerlLibs2)
++FIND_PACKAGE(PerlLibs)
+ 
+ IF ( PERL_EXECUTABLE )
+ 	EXEC_PROGRAM( ${PERL_EXECUTABLE} ARGS "-e 'use Config; print \$Config{revision},\"\\n\"'" OUTPUT_VARIABLE PERL_VERSION )
diff -Nru nfqueue-bindings-0.4/debian/patches/series nfqueue-bindings-0.4/debian/patches/series
--- nfqueue-bindings-0.4/debian/patches/series	2012-04-16 11:27:15.000000000 +0200
+++ nfqueue-bindings-0.4/debian/patches/series	2013-05-08 21:29:14.000000000 +0200
@@ -0,0 +1 @@
+FindPerlLib.patch

Attachment: signature.asc
Description: Digital signature

Reply via email to