From 20c0d74db3afcb335aec72d92b590e7a589d746f Mon Sep 17 00:00:00 2001 From: liuxu Date: Wed, 4 Dec 2024 15:17:44 +0800 Subject: [PATCH] Paralell build fix Signed-off-by: liuxu --- 0006-Paralell-build-fix-7.patch | 42 +++++++++++++++++++++++++++++++++ libcgroup.spec | 10 +++++++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 0006-Paralell-build-fix-7.patch diff --git a/0006-Paralell-build-fix-7.patch b/0006-Paralell-build-fix-7.patch new file mode 100644 index 0000000..e3ffd83 --- /dev/null +++ b/0006-Paralell-build-fix-7.patch @@ -0,0 +1,42 @@ +From f3932c268e3fd599866560f4f037df1fab50d581 Mon Sep 17 00:00:00 2001 +From: Koji Builder +Date: Sat, 11 Jul 2020 16:22:48 +0100 +Subject: [PATCH] Paralell build fix #7 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +All source soce files which first needs to be generated needs to be listed in +BUILT_SOURCES. +This patch adds to that automake variable parse.c and parse.h because they are +listed below in libcgroup_la_SOURCES. + +Documentetion of the BUILT_SOURCES is on: +https://www.gnu.org/software/automake/manual/html_node/Sources.html + +Conflict:No +Reference:https://github.com/libcgroup/libcgroup/commit/f3932c268e3fd599866560f4f037df1fab50d581 + +https://github.com/libcgroup/libcgroup/issues/7 + +Reported-by: Tomasz Kłoczko +Signed-off-by: Tomasz Kłoczko +--- + src/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 9fc965b..9de4822 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,5 +1,7 @@ + @CODE_COVERAGE_RULES@ + ++BUILT_SOURCES = parse.c parse.h ++ + if WITH_BINDINGS + BINDINGS_SUBDIR = bindings + endif +-- +2.43.0 + diff --git a/libcgroup.spec b/libcgroup.spec index 7bfd4be..ee80ad3 100644 --- a/libcgroup.spec +++ b/libcgroup.spec @@ -5,7 +5,7 @@ Summary: Libcgroup is a library that abstracts the control group file system in Linux Name: libcgroup Version: 0.42.2 -Release: 4 +Release: 5 License: LGPLv2+ URL: http://libcg.sourceforge.net/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-v%{version}.tar.gz @@ -19,6 +19,7 @@ Patch2: libcgroup-0.40.rc1-coverity.patch Patch3: libcgroup-0.40.rc1-fread.patch Patch4: libcgroup-0.40.rc1-templates-fix.patch Patch5: pam-cgroup-cgflags-no-usecache.patch +Patch6: 0006-Paralell-build-fix-7.patch BuildRequires: autoconf, automake, libtool BuildRequires: gcc,gcc-c++,byacc @@ -52,6 +53,7 @@ It provides helpful information for libcgroup-pam,libcgroup-devel,libcgroup-tool %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build autoreconf -vif @@ -142,6 +144,12 @@ getent group cgred >/dev/null || groupadd -r cgred %attr(0644, root, root) %{_mandir}/man8/* %changelog +* Wed Dec 04 2024 liuxu - 0.42.2-5 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Paralell build fix + * Tue Oct 24 2023 wanfeng - 0.42.2-4 - Type:bugfix - CVE:NA