[Debian-med-packaging] Bug#1042246: gdcm: FTBFS: make[1]: *** [debian/rules:107: override_dh_auto_configure] Error 2

Mathieu Malaterre malat at debian.org
Thu Aug 24 12:38:24 BST 2023


Control: tags -1 patch

On Wed, Jul 26, 2023 at 10:30 PM Lucas Nussbaum <lucas at debian.org> wrote:
 [...]
> > CMake Error at /usr/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
> >   Could NOT find EXPAT (missing: EXPAT_LIBRARY) (found version "2.5.0")
> > Call Stack (most recent call first):

I'll upload a quick hack ASAP (*). But there is something
fundamentally wrong with the find_package + expat mechanism. Possibly
in cmake itself...

2cts

(*)
% git diff
diff --git a/debian/rules b/debian/rules
index 32ab32e..bfb08fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -77,6 +77,7 @@ CMAKE_EXTRA_FLAGS += -DCMAKE_SKIP_RPATH=ON \
                -DGDCM_USE_PVRG:BOOL=ON \
                -DGDCM_USE_SYSTEM_PVRG:BOOL=ON \
                -DGMCS_EXECUTABLE:FILEPATH=/usr/bin/mono-csc \
+
-DEXPAT_LIBRARY:FILEPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/libexpat.so \
                -DGDCM_BUILD_TESTING:BOOL=OFF \
                -DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \
                -DGDCM_USE_SYSTEM_UUID:BOOL=ON \



More information about the Debian-med-packaging mailing list