Package: libassimp-dev
Version: 3.2~dfsg-2
Severity: normal

Dear Maintainer,

I would like to tell you one bug I have found. I'm a bit shamed because 
it has been my fault, because I think that I introduce it with the last bug 
(#806317)

As the cmake files are installed, the some software that uses Assimp try to
use then searching the assimp-config file (CMake based). The problem is that in
that file there are these two lines:

....
set( ASSIMP_LIBRARIES assimp${ASSIMP_LIBRARY_SUFFIX})
set( ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES})
....

upstream by default has:

set( ASSIMP_LIBRARIES assimp${ASSIMP_LIBRARY_SUFFIX})
set( ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES}@CMAKE_DEBUG_POSTFIX@)

so, the cmake files return to the assimp users (developers) that to link
with assimp thery must link against -lassimpd, and that library doesn't exist 
in 
debian.

So, one simple way to solve it is to add in the rules file:

DEB_CMAKE_EXTRA_FLAGS=-DASSIMP_BUILD_ARCHITECTURE=$(DEB_HOST_ARCH) \
        -DASSIMP_LIB_INSTALL_DIR=lib/$(DEB_HOST_MULTIARCH) \
        -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" \
        -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \   
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_ASSIMP_SAMPLES=OFF \ 
        -DASSIMP_BUILD_TESTS=OFF \   
        -DCMAKE_DEBUG_POSTFIX='' \   
        -DASSIMP_ENABLE_BOOST_WORKAROUND=OFF

the   -DCMAKE_DEBUG_POSTFIX='' 

Sorry for the noise produced. I hope that not too much package had the FTBFS 
label.

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages libassimp-dev depends on:
ii  libassimp3  3.2~dfsg-1~drp8+3

libassimp-dev recommends no packages.

libassimp-dev suggests no packages.

-- no debconf information

Reply via email to