Your message dated Wed, 17 Oct 2018 15:52:41 +0000
with message-id <[email protected]>
and subject line Bug#911233: fixed in ossim 2.5.2-2
has caused the Debian Bug report #911233,
regarding ossim FTCBFS: multiple reasons
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
911233: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911233
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: ossim
Version: 2.5.1-1
Tags: patch
User: [email protected]
Usertags: rebootstrap
ossim fails to cross build from source for two distinct reasons.
The immediate failure is a linker error. The format of libdl.so is not
recognized. It turns out that find_library locates the build
architecture libdl.so when building on amd64. The cause is a line in
cmake/CMakeModules/OssimCommonVariables.cmake where it adds
/usr/lib/x86_64-linux-gnu to CMAKE_LIBRARY_PATH. I don't quite
understand why this is being done, but I can tell that doing so breaks
cross compilation. Adding any of these paths is either wrong or
redundant as they should be there by default already. I suggest removing
the offending line, see attached upstream.patch.
The other issue is that ossim decides to install the library to
/usr/lib64 (for 32bit architectures). Subsequently, dh_install complains
about not finding the libraries in /usr/lib. It's not entirely clear why
this happens. The relevant code resides in
cmake/CMakeModules/OssimCommonVariables.cmake again. It checks the value
of FIND_LIBRARY_USE_LIB64_PATHS. Apparently that turns out to be true
for cross building. The documentation says that it is only relevant to
64bit builds, so using it for a 32bit build as ossim does is an error.
In any case, it sets LIBSUFFIX to 64 there (again for cross builds
only). Later INSTALL_LIBRARY_DIR is set to lib${LIBSUFFIX} causing the
failure. Worse, INSTALL_LIBRARY_DIR is a path variable. More precisely,
a relative path variable. Such a thing does not exist in CMake. All
paths are absolute and if not, CMake canonicalizes them. Thus setting
-DINSTALL_LIBRARY_DIR=lib results in the build path being embedded.
That's another fault of OssimCommonVariables.cmake. It can be worked
around by forcing it to be a string variable with
-DINSTALL_LIBRARY_DIR:STRING=lib. My second patch, rules.patch,
implements this, but this approach is only a workaround for multiple
failures in OssimCommonVariables.cmake. I have no clue how to fix that.
Maybe someone with more CMake knowledge can chime in.
In any case, the combination of upstream.patch and rules.patch make
ossim cross buildable. Please do something useful with them.
Helmut
diff --minimal -Nru ossim-2.5.1/debian/rules ossim-2.5.1/debian/rules
--- ossim-2.5.1/debian/rules 2018-05-30 06:57:33.000000000 +0200
+++ ossim-2.5.1/debian/rules 2018-10-17 06:17:48.000000000 +0200
@@ -29,6 +29,7 @@
CMAKE_OPTS = \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DINSTALL_LIBRARY_DIR:STRING=lib \
-DBUILD_OSSIM_APPS=ON \
-DBUILD_OSSIM_FRAMEWORKS=OFF \
-DBUILD_OSSIM_FREETYPE_SUPPORT=ON \
--- ossim-2.5.1.orig/cmake/CMakeModules/OssimCommonVariables.cmake
+++ ossim-2.5.1/cmake/CMakeModules/OssimCommonVariables.cmake
@@ -265,7 +265,6 @@
SET(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};${OSSIM_DEPENDENCIES}/lib${LIBSUFFIX}")
SET(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH};${OSSIM_DEPENDENCIES}/include")
ENDIF()
- SET(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};/usr/lib;/usr/local/lib;/usr/lib64;/usr/lib/x86_64-linux-gnu")
SET(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH};${OSSIM_DEV_HOME}/ossim/include;/usr/include;/usr/local/include")
#################################### ADd some common options for all modules to use ###################################
--- End Message ---
--- Begin Message ---
Source: ossim
Source-Version: 2.5.2-2
We believe that the bug you reported is fixed in the latest version of
ossim, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bas Couwenberg <[email protected]> (supplier of updated ossim package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 17 Oct 2018 17:11:19 +0200
Source: ossim
Binary: libossim1 libossim-dev ossim-core
Architecture: source amd64
Version: 2.5.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Description:
libossim-dev - OSSIM library -- development files
libossim1 - OSSIM library -- shared library
ossim-core - OSSIM core utilities
Closes: 911233
Changes:
ossim (2.5.2-2) unstable; urgency=medium
.
* Team upload.
* Apply patches by Helmut Grohne to fix FTCBFS.
(closes: #911233)
Checksums-Sha1:
0a76e03fa727575d690fdec5c15457dabff5234b 2187 ossim_2.5.2-2.dsc
de1c055eda5b15062301aed97cbda83d90053ffb 42340 ossim_2.5.2-2.debian.tar.xz
c7eb48e426a178e387773e8682e26b1498d36fa8 628868 libossim-dev_2.5.2-2_amd64.deb
8b2a3941dac27af810dad24d3dea05140762a8b5 81930476
libossim1-dbgsym_2.5.2-2_amd64.deb
4425ccb3e60e6a2d3c5ac8d9d82a1ed8a24ba9e3 4425152 libossim1_2.5.2-2_amd64.deb
f6c37bc603da88fdbf9128059616430e9c93302d 6209900
ossim-core-dbgsym_2.5.2-2_amd64.deb
9f32052ead325211e3238a34ebf15b82d612075b 386912 ossim-core_2.5.2-2_amd64.deb
db9c3b1f9b7e42a5cea00e5af653ec8eefabbcc2 8832 ossim_2.5.2-2_amd64.buildinfo
Checksums-Sha256:
2b57c14b64673d9307d5795a2198b4ca7d4542d36fc97f7c3fb8e6265159857a 2187
ossim_2.5.2-2.dsc
d6405475c2019b5659cfa00ff8a8ae058ced43ac8b6f0b7a8822dbbc91793c04 42340
ossim_2.5.2-2.debian.tar.xz
5ebad605e3d7d9dc734f1d36812d582dfd97c14515e29092259f9b6de6aa4f37 628868
libossim-dev_2.5.2-2_amd64.deb
faa697217f8bb68f473a47fc81b3e8edbf03d524650f4c7648d43cd5eb775c4d 81930476
libossim1-dbgsym_2.5.2-2_amd64.deb
c36f76448e4fa170791f8ac8925a304a36e3baaa5ce52e28a18b9bef1ef59f23 4425152
libossim1_2.5.2-2_amd64.deb
1417e393f358667d50905d4a625e438757efc7b30d90b31a37c2256ab952e80d 6209900
ossim-core-dbgsym_2.5.2-2_amd64.deb
1c170f94c9a4ddb35943cec61fa7264279804e5e6c2429ffa0ff816e7fd54d07 386912
ossim-core_2.5.2-2_amd64.deb
a68bef80b1305b486a4d2c11b5a21c2282ac128357e6217014cd590ee4c60dcf 8832
ossim_2.5.2-2_amd64.buildinfo
Files:
1823bf27d6803f26dafbc5294ce2d58b 2187 science optional ossim_2.5.2-2.dsc
93b9cfbefe74f4c840c799e1461f3d9d 42340 science optional
ossim_2.5.2-2.debian.tar.xz
0ea1e04c3fc373587de2a95c5050d819 628868 libdevel optional
libossim-dev_2.5.2-2_amd64.deb
3d6cef93d6d47258e693679d303ca079 81930476 debug optional
libossim1-dbgsym_2.5.2-2_amd64.deb
1945f7021b89e2f93fed18183f3220e4 4425152 libs optional
libossim1_2.5.2-2_amd64.deb
de288e13cbc14ae36bf6e865e3448631 6209900 debug optional
ossim-core-dbgsym_2.5.2-2_amd64.deb
4f0887ae3b6608add67ed824c422ff08 386912 science optional
ossim-core_2.5.2-2_amd64.deb
f294e32a39b07f828b157d08aad32b6c 8832 science optional
ossim_2.5.2-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAlvHVYwACgkQZ1DxCuiN
SvF7Dw//c9GM5+5qd/x6oQyJuN+igP4BkCU5PWxT7tQp+e6nH6BWyCA5V5TTrVNw
ntxsJypTUTNnQpWH1vi8kSHfBIBFgQpZvkWnEkfsH3cnp0QCvXsgrfliWhu+7F0D
K/GzQ2SJ303MegYFC9swBXhNWm83IobhFvnXqU8E+Go7CymZ6QlJN5VuT0xD/X86
higOZzg4bFIx1094y6BV8taxn2wCnwcCVgi1x658f9GafmQ8wj2D8bUeZqmzNZh8
UOrVnshxQwgkF35vzXht5UGlelaRk59vTvK1yVkxPy7oANDZrh5Vu8uH94speqON
XNK0M4nCxiLvZscjzYuPTVJQN1zDM/+P53qRUOiTO7dZEVfw6aBZdKKzr1SwsSMM
QfNqDyAnTIuO8EhoaIHRXHu93wRPuA05/uWQ0CuXJH2/EQXIJKqIiOVF+COtaHyP
bQUznPKpFiLqeci+VO9xAVd9h051+QIhdu8jKWEGM3xX5pjImlD0LrGnhQx999V/
hAka0k8hF11/juSskgwXtnKSP2V4apZCbzXlF9QY5dA7Z98ncIg3ZfvoixG/HDU2
q/aQgpO+/Kzcf5Z0ixxWekNTM4ACUhomOe6G1VeS7kO1OMQySI7SjWipJF1k8/Fe
OUrCSuOzwA5/jNUG1UAwpmx+WzbpYGLsFdd7zDkXuZRqaoiSsf0=
=kMzs
-----END PGP SIGNATURE-----
--- End Message ---