tags 482245 +patch
thanks

The current version of cmake seems to generate a broken makefile.

I have managed to get the package to build by adding a copy of a version of the makefile in question generated with lennys cmake and doing some hackery in debian/rules.

A file to drop in root of source tree and new debian/rules file are attatched.
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.4

#=============================================================================
# Special targets provided by cmake.

# Disable implicit rules so canoncical targets will work.
.SUFFIXES:

.SUFFIXES: .hpux_make_needs_suffix_list

# Suppress display of executed commands.
$(VERBOSE).SILENT:

# A target that is always out of date.
cmake_force:

#=============================================================================
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake

# The command to remove a file.
RM = /usr/bin/cmake -E remove -f

# The program to use to edit the cache.
CMAKE_EDIT_COMMAND = /usr/bin/ccmake

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /gtk-qt-engine-0.8

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /gtk-qt-engine-0.8/builddir

# Utility rule file for pofiles.

po/CMakeFiles/pofiles: ../po/bg.gmo
po/CMakeFiles/pofiles: ../po/ru.gmo
po/CMakeFiles/pofiles: ../po/fr.gmo
po/CMakeFiles/pofiles: ../po/it.gmo
po/CMakeFiles/pofiles: ../po/nn.gmo
po/CMakeFiles/pofiles: ../po/de.gmo
po/CMakeFiles/pofiles: ../po/tr.gmo
po/CMakeFiles/pofiles: ../po/es.gmo
po/CMakeFiles/pofiles: ../po/sv.gmo

../po/bg.gmo: ../po/bg.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_1)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/bg.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/bg.gmo //gtk-qt-engine-0.8/po/bg.po

../po/ru.gmo: ../po/ru.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_2)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/ru.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/ru.gmo //gtk-qt-engine-0.8/po/ru.po

../po/fr.gmo: ../po/fr.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_3)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/fr.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/fr.gmo //gtk-qt-engine-0.8/po/fr.po

../po/it.gmo: ../po/it.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_4)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/it.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/it.gmo //gtk-qt-engine-0.8/po/it.po

../po/nn.gmo: ../po/nn.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_5)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/nn.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/nn.gmo //gtk-qt-engine-0.8/po/nn.po

../po/de.gmo: ../po/de.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_6)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/de.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/de.gmo //gtk-qt-engine-0.8/po/de.po

../po/tr.gmo: ../po/tr.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_7)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/tr.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/tr.gmo //gtk-qt-engine-0.8/po/tr.po

../po/es.gmo: ../po/es.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_8)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/es.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/es.gmo //gtk-qt-engine-0.8/po/es.po

../po/sv.gmo: ../po/sv.po
        $(CMAKE_COMMAND) -E cmake_progress_report 
/gtk-qt-engine-0.8/builddir/CMakeFiles $(CMAKE_PROGRESS_9)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold 
"Generating ../../po/sv.gmo"
        cd /gtk-qt-engine-0.8/builddir/po && /usr/bin/msgfmt -o 
//gtk-qt-engine-0.8/builddir/po/sv.gmo //gtk-qt-engine-0.8/po/sv.po

pofiles: po/CMakeFiles/pofiles.dir/build.make

# Rule to build all files generated by this target.
po/CMakeFiles/pofiles.dir/build: pofiles
po/CMakeFiles/pofiles.dir/build: po/CMakeFiles/pofiles
po/CMakeFiles/pofiles.dir/build: ../po/bg.gmo
po/CMakeFiles/pofiles.dir/build: ../po/ru.gmo
po/CMakeFiles/pofiles.dir/build: ../po/fr.gmo
po/CMakeFiles/pofiles.dir/build: ../po/it.gmo
po/CMakeFiles/pofiles.dir/build: ../po/nn.gmo
po/CMakeFiles/pofiles.dir/build: ../po/de.gmo
po/CMakeFiles/pofiles.dir/build: ../po/tr.gmo
po/CMakeFiles/pofiles.dir/build: ../po/es.gmo
po/CMakeFiles/pofiles.dir/build: ../po/sv.gmo

po/CMakeFiles/pofiles.dir/clean:
        cd /gtk-qt-engine-0.8/builddir/po && $(CMAKE_COMMAND) -P 
CMakeFiles/pofiles.dir/cmake_clean.cmake

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)


CFLAGS = -Wall -g 

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif

builddir/CMakeCache.txt: 
        dh_testdir
        # Add here commands to configure the package.
#       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) 
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info 
CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
        mkdir builddir
        cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX="/usr" 
-DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CFLAGS)" 
-DBUILD_SHARED_LIBS=ON \
                -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined 
-Wl,--as-needed" \
                -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined 
-Wl,--as-needed" \
                -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed"

        

build: build-stamp

build-stamp:  builddir/CMakeCache.txt
        dh_testdir

        # Add here commands to compile the package.
        cp build.make.good builddir/po/CMakeFiles/pofiles.dir/build.make
        mkdir -p builddir/po/CMakeFiles/pofiles.dir
        touch builddir/po/CMakeFiles/pofiles.dir/depend
        cd builddir && $(MAKE)
        
        #docbook-to-man debian/gtk-qt-engine.sgml > gtk-qt-engine.1

        touch $@

clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp 

        # Add here commands to clean up after the build process.
        rm -rf builddir


        dh_clean 

install: build-stamp
        dh_testdir
        dh_testroot
        dh_clean -k 
        dh_installdirs

        # Add here commands to install the package into debian/gtk-qt-engine.
        cd builddir && $(MAKE) install DESTDIR=$(CURDIR)/debian/gtk-qt-engine
        #
        # Dirty hack to work around #417044
        #
        [ -d $(CURDIR)/debian/gtk-qt-engine/usr/lib64 ] && \
            cp -r $(CURDIR)/debian/gtk-qt-engine/usr/lib64/. 
$(CURDIR)/debian/gtk-qt-engine/usr/lib; \
            rm -rf $(CURDIR)/debian/gtk-qt-engine/usr/lib64

# Build architecture-independent files here.
binary-indep: build-stamp install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build-stamp install
        dh_testdir
        dh_testroot
        dh_installchangelogs ChangeLog
        dh_installdocs
        dh_installexamples
#       dh_install
#       dh_installmenu
#       dh_installdebconf       
#       dh_installlogrotate
#       dh_installemacsen
#       dh_installpam
#       dh_installmime
#       dh_python
#       dh_installinit
#       dh_installcron
#       dh_installinfo
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
#       dh_perl
#       dh_makeshlibs
        dh_gtkmodules
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install 

Reply via email to