Bug#803566: kmidimon: FTBFS: add_custom_target cannot create target "uninstall"

2016-06-14 Thread Radovan Birdic
Hello,

Similar issue is already noticed for package klatexformula
and resolved by removing uninstall target from CMakeLists.txt

klatexformula (3.3.0~beta-1) unstable; urgency=medium

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803761

I have created and attached a patch resolving this issue.

Patch is tested on mipsel, mips64el, i386 and amd64.
With this patch package was build successfully.

Thank you!

Regards,
Radovan
--- kmidimon-0.7.5.orig/CMakeLists.txt
+++ kmidimon-0.7.5/CMakeLists.txt
@@ -128,13 +128,6 @@ CONFIGURE_FILE(
 "${CMAKE_SOURCE_DIR}/kmidimon.spec"
 IMMEDIATE @ONLY)
 
-CONFIGURE_FILE(
-"${CMAKE_SOURCE_DIR}/cmake_admin/cmake_uninstall.cmake.in"
-"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
-IMMEDIATE @ONLY)
-ADD_CUSTOM_TARGET(uninstall
-"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
-
 ADD_CUSTOM_TARGET ( tarball
 COMMAND mkdir -p kmidimon-${VERSION}
 COMMAND cp -r cmake_admin kmidimon-${VERSION}


Bug#803566: kmidimon: FTBFS: add_custom_target cannot create target "uninstall"

2015-10-31 Thread Chris Lamb
Source: kmidimon
Version: 0.7.5-1
Severity: serious
Justification: fails to build from source
User: reproducible-bui...@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Dear Maintainer,

kmidimon fails to build from source in unstable/amd64:

  [..]

  -- checking for module 'drumstick-alsa>=0.5'
  --   found drumstick-alsa, version 0.5.0
  -- kmidimon 0.7.5 install prefix: /usr
  CMake Warning (dev) at /usr/lib/automoc4/Automoc4Config.cmake:179
  (get_directory_property):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in
directory
property.  Run "cmake --help-policy CMP0059" for policy details. 
Use the
cmake_policy command to set the policy and suppress this warning.
  Call Stack (most recent call first):
/usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
/usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:1026
(_automoc4_kde4_pre_target_handling)
src/CMakeLists.txt:68 (KDE4_ADD_EXECUTABLE)
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  CMake Error at CMakeLists.txt:135 (ADD_CUSTOM_TARGET):
add_custom_target cannot create target "uninstall" because another
target
with the same name already exists.  The existing target is a custom
target
created in source directory
"/home/lamby/temp/cdt.20151031125942.DIQJT2tM3F/kmidimon-0.7.5". 
See
documentation for policy CMP0002 for more details.
  
  
  -- Configuring incomplete, errors occurred!
  See also
  
"/home/lamby/temp/cdt.20151031125942.DIQJT2tM3F/kmidimon-0.7.5/obj-x86_64-linux-gnu/CMakeFiles/CMakeOutput.log".
  See also
  
"/home/lamby/temp/cdt.20151031125942.DIQJT2tM3F/kmidimon-0.7.5/obj-x86_64-linux-gnu/CMakeFiles/CMakeError.log".
  /usr/share/cdbs/1/class/cmake.mk:55: recipe for target
  'obj-x86_64-linux-gnu/CMakeCache.txt' failed
  make: *** [obj-x86_64-linux-gnu/CMakeCache.txt] Error 1

  [..]

The full build log is attached.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-


kmidimon.0.7.5-1.unstable.amd64.log.txt.gz
Description: application/gzip