Package: libipmimonitoring-dev
Version: 1.6.6-1
Tags: patch
User: [email protected]
Usertags: ftcbfs
Control: affects -1 + src:netdata

netdata fails to cross build from source, because it cannot find
libipmimonitoring.pc. During cross compilation, pkg-config searches
/usr/share/pkgconfig and /usr/lib/<triplet>/pkgconfig. Notably, it does
not search /usr/lib/pkgconfig, which is where the file is presently
located. Please move it to the multiarch path to make it discoverable.
I'm attaching a minimal patch that does not fully multiarch freeipmi in
order to avoid regressions. Please consider applying it or passing a
multiarch --libdir.

Helmut
diff --minimal -Nru freeipmi-1.6.6/debian/changelog 
freeipmi-1.6.6/debian/changelog
--- freeipmi-1.6.6/debian/changelog     2021-01-29 21:27:29.000000000 +0100
+++ freeipmi-1.6.6/debian/changelog     2021-01-30 14:00:00.000000000 +0100
@@ -1,3 +1,10 @@
+freeipmi (1.6.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Multiarchify .pc files. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 30 Jan 2021 14:00:00 +0100
+
 freeipmi (1.6.6-1) unstable; urgency=medium
 
   [ Fabio Fantoni ]
diff --minimal -Nru freeipmi-1.6.6/debian/rules freeipmi-1.6.6/debian/rules
--- freeipmi-1.6.6/debian/rules 2021-01-29 21:27:29.000000000 +0100
+++ freeipmi-1.6.6/debian/rules 2021-01-30 14:00:00.000000000 +0100
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+include /usr/share/dpkg/architecture.mk
+
 export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
 
 %:
@@ -58,6 +60,10 @@
 
 override_dh_missing:
        dh_missing --fail-missing
+       set -e; for d in $(CURDIR)/debian/*/usr/lib/pkgconfig; do \
+               mkdir $${d%pkgconfig}${DEB_HOST_MULTIARCH}; \
+               mv $$d $${d%pkgconfig}${DEB_HOST_MULTIARCH}/pkgconfig; \
+       done
 
 override_dh_installsystemd:
        dh_installsystemd --no-enable --no-start

Reply via email to