On Tue, Jun 25, 2019 at 08:03:07PM +0200, Helmut Grohne wrote:
> Source: ocfs2-tools
> Version: 1.8.5-7
> User: [email protected]
> Usertags: ftcbfs
>
> ocfs2-tools fails to cross build from source, because it uses broken,
> outdated, embedded copies of PKG_PROG_PKG_CONFIG and AM_PATH_GLIB_2_0.
> Please remove these copies. Alternatively, please update and register
> them with the security tracker. This bug report comes without a patch,
> because it is already fixed in pkg-config and glib2.0 respectively.
> ocfs2-tools just happens to have a copy of the bug.
Thanks for the report. Can you perhaps check if the attached patch helps
with the cross build of the package?
--
Valentin
--- a/aclocal.m4
+++ /dev/null
@@ -1,7 +0,0 @@
-m4_include([pkg.m4])
-m4_include([glib-2.0.m4])
-m4_include([runlog.m4])
-m4_include([python.m4])
-m4_include([pythondev.m4])
-m4_include([blkid.m4])
-m4_include([mbvendor.m4])
--- /dev/null
+++ b/acinclude.m4
@@ -0,0 +1,3 @@
+m4_include([pythondev.m4])
+m4_include([blkid.m4])
+m4_include([mbvendor.m4])
--- a/pythondev.m4
+++ b/pythondev.m4
@@ -8,8 +8,8 @@
[AC_REQUIRE([AM_PATH_PYTHON])
AC_MSG_CHECKING(for headers required to compile python extensions)
dnl deduce PYTHON_INCLUDES
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
+py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"