[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#993383: qxgedit FTCBFS: strips with the build architecture strip



Source: qxgedit
Version: 0.9.4-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

qxgedit fails to cross build from source, because it strips with the
buidl architecture strip. This issue surfaced as a side effect of
changing the build system from qmake (where a Debian-specific patch
disables stripping) to cmake. As such, generation of -dbgsym packages
and DEB_BUILD_OPTIONS=nostrip are broken as well. The attached patch
provides one way to restore the non-stripping behaviour and fixes the
cross build. Please include it or an improved version.

Helmut
--- qxgedit-0.9.4.orig/skulpture/CMakeLists.txt
+++ qxgedit-0.9.4/skulpture/CMakeLists.txt
@@ -38,11 +38,6 @@
 
 target_link_libraries (${NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
 
-if (UNIX AND NOT APPLE AND NOT CONFIG_DEBUG)
-  add_custom_command(TARGET ${NAME} POST_BUILD
-    COMMAND strip lib${NAME}.so)
-endif ()
-
 if (UNIX AND NOT APPLE)
   install (TARGETS ${NAME} LIBRARY
     DESTINATION ${CMAKE_INSTALL_LIBDIR}/qt${QT_VERSION_MAJOR}/plugins/styles)

Reply to: