!43 [sync] PR-42: fix config.patch

From: @openeuler-sync-bot 
Reviewed-by: @xuxuepeng 
Signed-off-by: @xuxuepeng
This commit is contained in:
openeuler-ci-bot 2024-07-15 09:19:46 +00:00 committed by Gitee
commit 25a8455a9a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 22 additions and 1 deletions

13
config.patch Normal file
View File

@ -0,0 +1,13 @@
--- libcgroup-3.1.0/samples/config/cgconfig.sysconfig.orig 2019-12-19 11:25:25.547000000 +0800
+++ libcgroup-3.1.0/samples/config/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

View File

@ -5,13 +5,15 @@
Summary: Libcgroup is a library that abstracts the control group file system in Linux Summary: Libcgroup is a library that abstracts the control group file system in Linux
Name: libcgroup Name: libcgroup
Version: 3.1.0 Version: 3.1.0
Release: 3 Release: 4
License: LGPLv2+ License: LGPLv2+
URL: http://libcg.sourceforge.net/ URL: http://libcg.sourceforge.net/
Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Provides: libcgroup-pam libcgroup-tools Provides: libcgroup-pam libcgroup-tools
Obsoletes: libcgroup-pam libcgroup-tools Obsoletes: libcgroup-pam libcgroup-tools
Patch0: config.patch
BuildRequires: autoconf, automake, libtool BuildRequires: autoconf, automake, libtool
BuildRequires: gcc,gcc-c++,byacc BuildRequires: gcc,gcc-c++,byacc
BuildRequires: systemd-units,pam-devel,flex,coreutils,systemd-devel BuildRequires: systemd-units,pam-devel,flex,coreutils,systemd-devel
@ -110,6 +112,12 @@ getent group cgred >/dev/null || groupadd -r cgred
%attr(0644, root, root) %{_mandir}/man8/* %attr(0644, root, root) %{_mandir}/man8/*
%changelog %changelog
* Fri Jul 12 2024 liuxu <liuxu156@huawei.com> - 3.1.0-4
- Type: bugfix
- Id:NA
- SUG:NA
- DESC:fix config.patch
* Fri Apr 12 2024 liuxu <liuxu156@huawei.com> - 3.1.0-3 * Fri Apr 12 2024 liuxu <liuxu156@huawei.com> - 3.1.0-3
- Type: bugfix - Type: bugfix
- Id:NA - Id:NA