Bug#787746: ball: FTBFS, depends on non existant libqt4-gui

2015-06-13 Thread Dmitry Shachnev
Hi all,

On Fri, 05 Jun 2015 21:40:42 -0300, Lisandro Damián Nicanor Pérez Meyer wrote:
 The attached patch fixes this but... there is yet another problem further on 
 with some python stuff.

The attached patch fixes problems with the python stuff.

--
Dmitry ShachnevDescription: fix sip library detection
 The old algorithm used hard-coded library names and thus could not
 detect our multi-arched name.
 .
 Instead of that, just import sip from Python script and use the
 __file__ property to find the library.
Author: Dmitry Shachnev mity...@debian.org
Forwarded: no
Last-Update: 2015-06-13

--- a/cmake/FindSIP.cmake
+++ b/cmake/FindSIP.cmake
@@ -69,6 +69,7 @@ ELSE(SIP_VERSION)
 			STRING(REGEX REPLACE .*\nsip_bin:([^\n]+).*$ \\1 SIP_EXECUTABLE ${sip_config})
 			STRING(REGEX REPLACE .*\ndefault_sip_dir:([^\n]+).*$ \\1 SIP_DEFAULT_SIP_DIR ${sip_config})
 			STRING(REGEX REPLACE .*\nsip_inc_dir:([^\n]+).*$ \\1 SIP_INCLUDE_DIR ${sip_config})
+			STRING(REGEX REPLACE .*\nsip_library:([^\n]+).*$ \\1 SIP_LIBRARIES ${sip_config})
 			SET(SIP_FOUND TRUE)
 		ENDIF(sip_config)
 
@@ -100,12 +101,6 @@ IF(NOT SIP_VERSION)
 
 	SET(OLD_CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} CACHE INTERNAL )
 	SET(CMAKE_FIND_LIBRARY_PREFIXES )
-  FIND_LIBRARY(SIP_LIBRARIES
-NAMES sip libsip
-PATHS ${SIP_POSSIBLE_LIB_DIRS} ${PYTHON_SITE_PACKAGES}
-PATH_SUFFIXES lib dlls
-DOC SIP module)
-	SET(CMAKE_FIND_LIBRARY_PREFIXES ${OLD_CMAKE_FIND_LIBRARY_PREFIXES})
 
   # (c) Try to find the sip executable:
   
@@ -134,27 +129,6 @@ IF(NOT SIP_VERSION)
   STRING(REGEX REPLACE define SIP_VERSION_STR[ \t]+\([^\]*)\  \\1 SIP_VERSION_STR ${SIP_VERSION_STR})
 ENDIF(NOT SIP_VERSION)
 
-IF(NOT SIP_LIBRARIES)
-  # Try to find the sip library:
-	EXECUTE_PROCESS ( COMMAND ${PYTHON_EXECUTABLE} -c from distutils.sysconfig import get_python_lib; print get_python_lib()
-		OUTPUT_VARIABLE PYTHON_SITE_PACKAGES
-		OUTPUT_STRIP_TRAILING_WHITESPACE
-	)
-
-  # Use the path to the python installation as a hint for finding sip
-  GET_FILENAME_COMPONENT(SIP_POSSIBLE_LIB_DIRS ${PYTHON_LIBRARIES}  PATH)
-	LIST(APPEND SIP_POSSIBLE_LIB_DIRS /usr/lib/pyshared/python${PYTHON_VERSION})
-
-	SET(OLD_CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} CACHE INTERNAL )
-	SET(CMAKE_FIND_LIBRARY_PREFIXES )
-  FIND_LIBRARY(SIP_LIBRARIES
-NAMES sip libsip
-PATHS ${SIP_POSSIBLE_LIB_DIRS} ${PYTHON_SITE_PACKAGES}
-PATH_SUFFIXES lib dlls
-DOC SIP module)
-	SET(CMAKE_FIND_LIBRARY_PREFIXES ${OLD_CMAKE_FIND_LIBRARY_PREFIXES})
-ENDIF()
-
 INCLUDE(FindPackageHandleStandardArgs)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SIP DEFAULT_MSG
 	SIP_EXECUTABLE
--- a/cmake/FindSIP.py
+++ b/cmake/FindSIP.py
@@ -13,3 +13,6 @@ print(sip_version_str:%s % sipcfg.sip_
 print(sip_bin:%s % sipcfg.sip_bin)
 print(default_sip_dir:%s % sipcfg.default_sip_dir)
 print(sip_inc_dir:%s % sipcfg.sip_inc_dir)
+
+import sip
+print(sip_library:%s % sip.__file__)


signature.asc
Description: OpenPGP digital signature


Bug#787746: Aw: Bug#787746: ball: FTBFS, depends on non existant libqt4-gui

2015-06-07 Thread Steffen Möller
 On Friday 05 June 2015 16:33:45 Lisandro Damián Nicanor Pérez Meyer wrote:
  Mm, no, I'm afraid ball keeps FTBFS due to the same error:
  
  Linking CXX executable ../../../bin/BALLView
  /usr/bin/ld: CMakeFiles/BALLView.dir/main.o: undefined reference to symbol
  'XInitThreads'
  //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing
  from command line
  collect2: error: ld returned 1 exit status
  make[4]: *** [bin/BALLView] Error 1
 
 The attached patch fixes this but... there is yet another problem further on 
 with some python stuff.

Thank you, Lisandro. I am about to upload an early version of BALL 1.5
and will incorporate your changes over the next days / one/two weeks.

Best,

Steffen


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#787746: ball: FTBFS, depends on non existant libqt4-gui

2015-06-05 Thread Lisandro Damián Nicanor Pérez Meyer
Mm, no, I'm afraid ball keeps FTBFS due to the same error:

Linking CXX executable ../../../bin/BALLView
/usr/bin/ld: CMakeFiles/BALLView.dir/main.o: undefined reference to symbol 
'XInitThreads'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from 
command line
collect2: error: ld returned 1 exit status
make[4]: *** [bin/BALLView] Error 1

I'll see what I can do.

-- 
Sea estricto cuando envíe y tolerante cuando reciba. En otras palabras, solo
envíe paquetes que cumplan rigurosamente con lo estándares, pero espere
paquetes que tal vez no cumplan del todo y trate de lidiar con ellos.
  Andrew S. Tanenbaum, de su libro Computer Networks

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/


signature.asc
Description: This is a digitally signed message part.


Bug#787746: ball: FTBFS, depends on non existant libqt4-gui

2015-06-04 Thread Lisandro Damián Nicanor Pérez Meyer
On Thu, 04 Jun 2015 13:41:46 -0300 Lisandro lisan...@debian.org wrote:
[snip]
 Now Qt4 has been uploaded and this TBFS will be triggered
 on the next rebuild :-(

Moreover your package is build depending on non dev packages which can be 
safely removed from the list:

  libqt4-gui libqt4-opengl libqt4-sql libqt4-network

Having libqt4-dev is enough to get them as dependencies if they are really 
used in the code.

-- 
Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/


signature.asc
Description: This is a digitally signed message part.


Bug#787746: ball: FTBFS, depends on non existant libqt4-gui

2015-06-04 Thread Lisandro Damián Nicanor Pérez Meyer
Source: ball
Version: 1.4.2+20140406-1
Severity: serious
Justification: FTBFS

Hi! Your package *build* depends on libqt4-gui, which is no longer
available in the archive, and so it FTBFS.

Sadly I missed it when preparing the transition to remove this transitional
packages because I did not expect people depending on a non-dev package
as it is useless. Now Qt4 has been uploaded and this TBFS will be triggered
on the next rebuild :-(

Kinds regards,  Lisandro.

-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org