Bug#713360: regina-normal: FTBFS: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. PYTHON_LIBRARY
On Wed, 10 Jul 2013 21:15:10 +, Peter Green wrote: Fixing the failure in this bug report was easy enough and i've attached a patch. Unfortunately at least in raspbian jessie the package then goes on to fail with. make[1]: Leaving directory `/regina-normal-4.93/builds/debbuild' # Split into separate binary packages. dh_install --sourcedir=debian/tmp --list-missing dh_install: regina-normal missing files (usr/bin/reg*), aborting make: *** [install] Error 2 dpkg-buildpackage: error: debian/rules binary gave error exit status 2 root@linaro-ubuntu-desktop:/regina-normal-4.93# All files are installed intp usr/local/FOO ... Let's look why. Took me some time but ... @@ -27,6 +29,7 @@ -DPACKAGE_NAME=regina-normal -DPACKAGING_MODE=1 \ $(DEB_CMAKE_CUSTOM_FLAGS) \ -DPYTHON_EXECUTABLE=/usr/bin/python${pyver} \ + -DPYTHON_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython${pyver}.so -DCMAKE_INSTALL_PREFIX=/usr \ -DDISABLE_RPATH=1 \ -DCMAKE_MODULE_PATH=/usr/share/apps/cmake/modules ... here we are: Missing backslash after the -DPYTHON_LIBRARY line, so the rest is ignored. Cheers, gregor, preparing a complete NMU now -- .''`. 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: JBO: Mir sta'dd'n etz die Feier signature.asc Description: Digital signature
Bug#713360: regina-normal: FTBFS: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. PYTHON_LIBRARY
I took a look at this one because I thought (incorrectly) that we needed to rebuild the package for a transition in raspbian. Fixing the failure in this bug report was easy enough and i've attached a patch. Unfortunately at least in raspbian jessie the package then goes on to fail with. make[1]: Leaving directory `/regina-normal-4.93/builds/debbuild' # Split into separate binary packages. dh_install --sourcedir=debian/tmp --list-missing dh_install: regina-normal missing files (usr/bin/reg*), aborting make: *** [install] Error 2 dpkg-buildpackage: error: debian/rules binary gave error exit status 2 root@linaro-ubuntu-desktop:/regina-normal-4.93# diff -ur regina-normal-4.93/debian/changelog regina-normal-4.93.new/debian/changelog --- regina-normal-4.93/debian/changelog 2013-07-10 21:11:23.0 + +++ regina-normal-4.93.new/debian/changelog 2013-07-10 20:05:02.0 + @@ -1,3 +1,11 @@ +regina-normal (4.93-1+rpi1) jessie-staging; urgency=low + + * Force python library location to new multiarch path. + * Bump python-dev build-depends to 2.7.5 for multiarch +(earlier versions may or may not be safe, I can't easilly tell) + + -- Peter Michael Green plugw...@raspbian.org Wed, 10 Jul 2013 19:58:18 + + regina-normal (4.93-1) unstable; urgency=low * New upstream release. diff -ur regina-normal-4.93/debian/control regina-normal-4.93.new/debian/control --- regina-normal-4.93/debian/control 2013-07-10 21:11:23.0 + +++ regina-normal-4.93.new/debian/control 2013-07-10 20:04:29.0 + @@ -3,7 +3,7 @@ Priority: extra Maintainer: Ben Burton b...@debian.org Homepage: http://regina.sourceforge.net/ -Build-Depends: debhelper (= 7), cmake, doxygen, libboost-python-dev (= 1.39.0), libboost-regex-dev, libcppunit-dev (= 1.10.2-4), libgmp-dev (= 4.1.4-10), libqt4-dev, libpopt-dev, libsource-highlight-dev, libxml2-dev, mpi-default-dev, python-dev (= 2.5.2-1~), python-support (= 0.6), shared-mime-info, xsltproc, zlib1g-dev +Build-Depends: debhelper (= 7), cmake, doxygen, libboost-python-dev (= 1.39.0), libboost-regex-dev, libcppunit-dev (= 1.10.2-4), libgmp-dev (= 4.1.4-10), libqt4-dev, libpopt-dev, libsource-highlight-dev, libxml2-dev, mpi-default-dev, python-dev (= 2.7.5), python-support (= 0.6), shared-mime-info, xsltproc, zlib1g-dev Standards-Version: 3.9.3 Package: regina-normal diff -ur regina-normal-4.93/debian/rules regina-normal-4.93.new/debian/rules --- regina-normal-4.93/debian/rules 2013-07-10 21:11:23.0 + +++ regina-normal-4.93.new/debian/rules 2013-07-10 20:17:16.0 + @@ -5,6 +5,8 @@ tmp = debian/tmp +DEB_HOST_MULTIARCH ?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + INSTALL_DIR = install -p -d -o root -g root -m 755 INSTALL_FILE = install -p -o root -g root -m 644 @@ -27,6 +29,7 @@ -DPACKAGE_NAME=regina-normal -DPACKAGING_MODE=1 \ $(DEB_CMAKE_CUSTOM_FLAGS) \ -DPYTHON_EXECUTABLE=/usr/bin/python${pyver} \ + -DPYTHON_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/libpython${pyver}.so -DCMAKE_INSTALL_PREFIX=/usr \ -DDISABLE_RPATH=1 \ -DCMAKE_MODULE_PATH=/usr/share/apps/cmake/modules
Bug#713360: regina-normal: FTBFS: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. PYTHON_LIBRARY
Source: regina-normal Version: 4.93-1 Severity: serious Tags: jessie sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20130620 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part: debian/rules build dh_testdir mkdir -p builds/debbuild cd builds/debbuild \ cmake /«PKGBUILDDIR» \ -DPACKAGE_NAME=regina-normal -DPACKAGING_MODE=1 \ \ -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DDISABLE_RPATH=1 \ -DCMAKE_MODULE_PATH=/usr/share/apps/cmake/modules -- The C compiler identification is GNU 4.8.1 -- The CXX compiler identification is GNU 4.8.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Regina install type: XDG -- Performing Test LANGINFO_FOUND -- Performing Test LANGINFO_FOUND - Success -- Performing Test LONG_LONG_FOUND -- Performing Test LONG_LONG_FOUND - Success -- Performing Test NUMERIC_64_FOUND -- Performing Test NUMERIC_64_FOUND - Success -- Performing Test NUMERIC_64_LL_FOUND -- Performing Test NUMERIC_64_LL_FOUND - Success -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version 1.2.8) -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version 2.9.1) -- Found GMP: /usr/include -- Found GMPXX: /usr/include -- Looking for iconv -- Looking for iconv - found -- Found iconv: /usr/include -- Performing Test ICONV_CONST -- Performing Test ICONV_CONST - Failed -- Boost version: 1.49.0 -- Found the following Boost libraries: -- python -- regex -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found popt: /usr/lib/x86_64-linux-gnu/libpopt.so -- Looking for C++ include hash_set -- Looking for C++ include hash_set - found -- Performing Test NAMESPACE_std -- Performing Test NAMESPACE_std - Failed -- Performing Test NAMESPACE___gnu_cxx -- Performing Test NAMESPACE___gnu_cxx - Success -- Performing Test ALIAS -- Performing Test ALIAS - Success -- Found MPI_C: /usr/lib/openmpi/lib/libmpi.so;/usr/lib/openmpi/lib/libopen-rte.so;/usr/lib/openmpi/lib/libopen-pal.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so -- Found MPI_CXX: /usr/lib/openmpi/lib/libmpi_cxx.so;/usr/lib/openmpi/lib/libmpi.so;/usr/lib/openmpi/lib/libopen-rte.so;/usr/lib/openmpi/lib/libopen-pal.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so -- Found Doxygen: /usr/bin/doxygen (found version 1.8.1.2) -- Found PythonInterp: /usr/bin/python2.7 (found version 2.7.5) -- Found Python executable: /usr/bin/python2.7 -- Found Python version: 2.7.5+ -- Found Python library: PYTHON_LIBRARY-NOTFOUND -- Python bindings enabled -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/bin/qmake (found version 4.8.4) -- Found source-highlight: /usr/lib/libsource-highlight.so -- Found shared-mime-info version: 1.0 -- Graphical user interface enabled -- Found CppUnit: /usr/lib/x86_64-linux-gnu/libcppunit.so - -- The following external packages were located on your system. -- This installation will have the extra features provided by these packages. - * zlib - Essential: compression support * libxml2 - Essential: XML support * GMP/C - Essential: large integer arithmetic support for C * GMP/C++ - Essential: large integer arithmetic support for C++ * iconv - Essential: internationalisation support * Boost - Essential: C++ components (including Boost.Python and Boost.Regex) * Popt - Essential: command-line option processing * MPI - Build command-line tools for high-performance computing * Doxygen - Generate C++/Python API docs * xsltproc - Generate the user handbook