pkg-config file contains untemplated variables
Description:
The pkg-config file contains untemplated variables @AX_PACKAGE_REQUIRES@
and @AX_PACKAGE_REQUIRES_PRIVATE@
:
$ cat /usr/lib/pkgconfig/tsk.pc
prefix=/usr
exec_prefix=/usr
includedir=/usr/include
libdir=/usr/lib
Name: sleuthkit
Description: An open source forensic toolkit
URL: http://www.sleuthkit.org/sleuthkit
Version: 4.12.1
Cflags: -I${includedir}
Libs: -L${libdir} -ltsk
Libs.private: -lsqlite3 -lz -lewf
Requires: @AX_PACKAGE_REQUIRES@
Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
This results in an error when imported with pkg-config in downstream projects.
I believe it should be safe to remove the two last lines of tsk/tsk.pc.in
with the following patch:
diff --unified --recursive --text --new-file sleuthkit-4.12.1.orig/tsk/tsk.pc.in sleuthkit-4.12.1/tsk/tsk.pc.in
--- sleuthkit-4.12.1.orig/tsk/tsk.pc.in 2024-07-28 02:07:01.692040415 +0200
+++ sleuthkit-4.12.1/tsk/tsk.pc.in 2024-07-28 02:07:22.525437354 +0200
@@ -11,5 +11,3 @@
Cflags: -I${includedir}
Libs: -L${libdir} -ltsk
Libs.private: @PACKAGE_LIBS_PRIVATE@
-Requires: @AX_PACKAGE_REQUIRES@
-Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
Additional info:
- package version(s): 4.12.1-2
- config and/or log files: N/A
- link to upstream bug report, if any: N/A