diff --git a/qclib-change-_PATH_MOUNTED.patch b/qclib-change-_PATH_MOUNTED.patch new file mode 100644 index 0000000..9709057 --- /dev/null +++ b/qclib-change-_PATH_MOUNTED.patch @@ -0,0 +1,12 @@ +--- qclib-2.4.1.orig/query_capacity_hypfs.c 2023-12-17 23:06:06.000000000 +0100 ++++ qclib-2.4.1.changed/query_capacity_hypfs.c 2024-04-19 13:35:35.683106609 +0200 +@@ -11,6 +11,9 @@ + + #include "query_capacity_data.h" + ++/* Workaround changing '/etc/mtab' to '/proc/self/mounts' */ ++#define _PATH_MOUNTED "/proc/self/mounts" ++/* */ + + #define QC_HYPFS_LPAR "/s390_hypfs/diag_204" + #define QC_HYPFS_ZVM "/s390_hypfs/diag_2fc" diff --git a/qclib.changes b/qclib.changes index e66c57b..1f61be9 100644 --- a/qclib.changes +++ b/qclib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 19 11:55:09 UTC 2024 - Nikolay Gueorguiev + +- Applied a patch to change the _PATH_MOUNTED (bsc#1222143) + * qclib-change-_PATH_MOUNTED.patch + ------------------------------------------------------------------- Mon Feb 12 16:48:47 UTC 2024 - Nikolay Gueorguiev diff --git a/qclib.spec b/qclib.spec index ced5999..45dadc9 100644 --- a/qclib.spec +++ b/qclib.spec @@ -38,6 +38,7 @@ BuildRequires: glibc-devel # ### Patch001: qclib-sys-kernel-security-lockdown-enabled.patch +Patch001: qclib-change-_PATH_MOUNTED.patch %description qclib provides a C API for extraction of system information for Linux on z