Package: libopen-trace-format-dev
Version: 1.12.5+dfsg-7
Tags: patch upstream
User: [email protected]
Usertags: ftcbffs
Control: affects -1 + src:vite

Packages (such as vite) that want to use libopen-trace-format-dev, are
supposed to call otfconfig to discover the relevant compiler flags.
Unfortunatel, otfconfig is a binary, so it does not work during cross
compilation. Please consider adding a pkg-config file such that a way
for discovering these flags during cross compilation is available. I'm
attaching a patch to implement it.

Helmut
diff --minimal -Nru otf-1.12.5+dfsg/debian/changelog 
otf-1.12.5+dfsg/debian/changelog
--- otf-1.12.5+dfsg/debian/changelog    2020-11-01 02:34:07.000000000 +0100
+++ otf-1.12.5+dfsg/debian/changelog    2020-11-08 20:14:15.000000000 +0100
@@ -1,3 +1,10 @@
+otf (1.12.5+dfsg-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add open-trace-format.pc. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 08 Nov 2020 20:14:15 +0100
+
 otf (1.12.5+dfsg-7) unstable; urgency=medium
 
   * control: Really make libopen-trace-format-dev not Multi-Arch: same.
diff --minimal -Nru otf-1.12.5+dfsg/debian/libopen-trace-format-dev.install 
otf-1.12.5+dfsg/debian/libopen-trace-format-dev.install
--- otf-1.12.5+dfsg/debian/libopen-trace-format-dev.install     2014-08-06 
15:55:07.000000000 +0200
+++ otf-1.12.5+dfsg/debian/libopen-trace-format-dev.install     2020-11-08 
20:14:15.000000000 +0100
@@ -4,3 +4,4 @@
 usr/lib/*/libotfaux*.a
 usr/lib/*/libopen*.so
 usr/lib/*/libotfaux*.so
+usr/lib/*/pkgconfig/open-trace-format.pc
diff --minimal -Nru otf-1.12.5+dfsg/debian/patches/pkgconfig.patch 
otf-1.12.5+dfsg/debian/patches/pkgconfig.patch
--- otf-1.12.5+dfsg/debian/patches/pkgconfig.patch      1970-01-01 
01:00:00.000000000 +0100
+++ otf-1.12.5+dfsg/debian/patches/pkgconfig.patch      2020-11-08 
20:14:09.000000000 +0100
@@ -0,0 +1,35 @@
+--- otf-1.12.5+dfsg.orig/Makefile.am
++++ otf-1.12.5+dfsg/Makefile.am
+@@ -17,5 +17,10 @@
+ 
+ EXTRA_DIST = \
+       otf_vc08.sln \
++      open-trace-format.pc \
+       config/otf_get_version.sh \
+       VERSION
++
++pkgconfigdatadir = $(libdir)/pkgconfig
++
++pkgconfigdata_DATA = open-trace-format.pc
+--- otf-1.12.5+dfsg.orig/configure.ac
++++ otf-1.12.5+dfsg/configure.ac
+@@ -154,6 +154,7 @@
+ LIBS="$pre_clock_gettime_LIBS"
+ 
+ AC_CONFIG_FILES([Makefile
++      open-trace-format.pc
+       vendor/jenkins_hash/Makefile
+       otflib/Makefile
+       otflib/OTF_inttypes_unix.h
+--- /dev/null
++++ otf-1.12.5+dfsg/open-trace-format.pc.in
+@@ -0,0 +1,9 @@
++prefix=@prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: open-trace-format
++Description: Open Trace Format support library
++Version: @VERSION@
++Libs: -L${libdir} -lotfaux -lopen-trace-format @ZLIB_LIB_LINE@ 
@ZOIDFS_LIB_LINE@
++Cflags: -I${includedir}
diff --minimal -Nru otf-1.12.5+dfsg/debian/patches/series 
otf-1.12.5+dfsg/debian/patches/series
--- otf-1.12.5+dfsg/debian/patches/series       2020-05-09 16:32:45.000000000 
+0200
+++ otf-1.12.5+dfsg/debian/patches/series       2020-11-08 20:04:02.000000000 
+0100
@@ -1 +1,2 @@
 dfsg
+pkgconfig.patch

Reply via email to