diff --git a/config.patch b/config.patch new file mode 100644 index 0000000000000000000000000000000000000000..04a0b1ca7df8a2291b85bf3abdef832d36e8a23b --- /dev/null +++ b/config.patch @@ -0,0 +1,13 @@ +--- libcgroup-2.0.3/samples/cgconfig.sysconfig.orig 2019-12-19 11:25:25.547000000 +0800 ++++ libcgroup-2.0.3/samples/cgconfig.sysconfig 2019-12-19 11:26:01.142000000 +0800 +@@ -5,8 +5,5 @@ + # controller to limit cpu.shares of this default group and allowing some more + # important group take most of the CPU. + # +-# By default, create these groups: +-CREATE_DEFAULT=yes +- +-# Uncomment following line to disable creation of the default group on startup: +-# CREATE_DEFAULT=no ++# By default, do not create these groups: ++CREATE_DEFAULT=no diff --git a/libcgroup.spec b/libcgroup.spec index a4a0eb1eb7455dac7ab589cc5970711663e4dbc8..00d83f3476505dc5eaeccd9b458ba9b47eee62b1 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: 2.0.3 -Release: 3 +Release: 4 License: LGPLv2+ URL: http://libcg.sourceforge.net/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz @@ -13,7 +13,8 @@ Source1: cgconfig.service Provides: libcgroup-pam libcgroup-tools Obsoletes: libcgroup-pam libcgroup-tools -Patch0: Add-support-for-multiple-controllers-on-same-mount-point.patch +Patch0: config.patch +Patch1: Add-support-for-multiple-controllers-on-same-mount-point.patch BuildRequires: autoconf, automake, libtool BuildRequires: gcc,gcc-c++,byacc @@ -42,6 +43,7 @@ It provides helpful information for libcgroup-pam,libcgroup-devel,libcgroup-tool %prep %setup -q -n %{name}-%{version} %patch0 -p1 +%patch1 -p1 %build autoreconf -vif @@ -130,6 +132,12 @@ getent group cgred >/dev/null || groupadd -r cgred %attr(0644, root, root) %{_mandir}/man8/* %changelog +* Mon Dec 09 2024 liuxu - 2.0.3-4 +- Type: bugfix +- Id:NA +- SUG:NA +- DESC:sync patch + * Tue Nov 26 2024 lipengyu - 2.0.3-3 - Type: bugfix - Id:NA