Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] libcgroup: update to 2.0.2.
@ 2022-07-29 19:33 chili-b
  2022-07-30 15:20 ` [PR REVIEW] " paper42
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: chili-b @ 2022-07-29 19:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]

There is a new pull request by chili-b against master on the void-packages repository

https://github.com/chili-b/void-packages libcgroup
https://github.com/void-linux/void-packages/pull/38357

libcgroup: update to 2.0.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl (crossbuild)


A patch file from https://github.com/void-linux/void-packages/pull/38357.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libcgroup-38357.patch --]
[-- Type: text/x-diff, Size: 7986 bytes --]

From 6b43f5ee66c15266e71a8d6643381de14548a7df Mon Sep 17 00:00:00 2001
From: chili-b <dexter.gaonshatford@gmail.com>
Date: Fri, 29 Jul 2022 12:46:03 -0400
Subject: [PATCH] libcgroup: update to 2.0.2.

---
 common/shlibs                                 |  2 +-
 .../patches/0001-Disable-tests.patch          | 49 +++++++++++++++++++
 .../libcgroup/patches/CVE-2018-14348.patch    | 12 -----
 .../patches/api.c-fix-infinite-loop.patch     | 38 --------------
 srcpkgs/libcgroup/patches/musl-decls.patch    | 22 ---------
 .../libcgroup/patches/musl-strerror_r.patch   | 22 ---------
 srcpkgs/libcgroup/template                    | 17 +++----
 7 files changed, 57 insertions(+), 105 deletions(-)
 create mode 100644 srcpkgs/libcgroup/patches/0001-Disable-tests.patch
 delete mode 100644 srcpkgs/libcgroup/patches/CVE-2018-14348.patch
 delete mode 100644 srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-decls.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-strerror_r.patch

diff --git a/common/shlibs b/common/shlibs
index 221b8b705452..dbf29ad54ca2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -963,7 +963,7 @@ libIceDiscovery.so.37 libIce-3.7.5_2
 libIceLocatorDiscovery.so.37 libIce-3.7.5_2
 libvdpau.so.1 libvdpau-0.4.1_1
 libgsm.so.1 libgsm-1.0.13_13
-libcgroup.so.1 libcgroup-0.37.1_1
+libcgroup.so.2 libcgroup-2.0.2_1
 libxdg-basedir.so.1 libxdg-basedir-1.1.1_1
 libev.so.4 libev-4.04_1
 libell.so.0 ell-0.45_1
diff --git a/srcpkgs/libcgroup/patches/0001-Disable-tests.patch b/srcpkgs/libcgroup/patches/0001-Disable-tests.patch
new file mode 100644
index 000000000000..8fc506182621
--- /dev/null
+++ b/srcpkgs/libcgroup/patches/0001-Disable-tests.patch
@@ -0,0 +1,49 @@
+From 95a93c57e43f44e7b45d87c43a201e149bb4c35e Mon Sep 17 00:00:00 2001
+From: Dexter Gaon-Shatford <dexter@gaonshatford.ca>
+Date: Fri, 29 Jul 2022 12:26:49 -0400
+Subject: [PATCH] Disable tests
+
+This is a temporary work-around. A commit which resolves the need for
+this change will be included in the next release.
+
+see: https://github.com/libcgroup/libcgroup/commit/17b3a2d612cc8747dcf916b0cf29775cc88f4a23
+---
+ Makefile.am  | 2 +-
+ configure.ac | 9 ---------
+ 2 files changed, 1 insertion(+), 10 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index e87ec8a..a3e8dcf 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,6 @@
+ AUTOMAKE_OPTIONS = foreign
+ ACLOCAL_AMFLAGS= -I m4
+-SUBDIRS = dist doc include samples scripts src tests
++SUBDIRS = dist doc include samples scripts src
+ 
+ EXTRA_DIST = README_daemon libcgroup.doxyfile README_systemd
+ 
+diff --git a/configure.ac b/configure.ac
+index 1bcf8a0..509f21e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -201,15 +201,6 @@ fi
+ AX_CODE_COVERAGE
+ 
+ AC_CONFIG_FILES([Makefile
+-	tests/Makefile
+-	tests/ftests/Makefile
+-	tests/gunit/Makefile
+-	tests/tools/testenv.sh
+-	tests/tools/Makefile
+-	tests/tools/cgconfigparser/Makefile
+-	tests/tools/cgclassify/Makefile
+-	tests/tools/multimount/Makefile
+-	tests/runlibcgrouptest.sh
+ 	src/Makefile
+ 	src/daemon/Makefile
+ 	src/tools/Makefile
+-- 
+2.37.1
+
diff --git a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch b/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
deleted file mode 100644
index bd083c2aad97..000000000000
--- a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/daemon/cgrulesengd.c
-+++ b/src/daemon/cgrulesengd.c
-@@ -889,9 +889,6 @@
- 		} else if (pid > 0) {
- 			exit(EXIT_SUCCESS);
- 		}
--
--		/* Change the file mode mask. */
--		umask(0);
- 	} else {
- 		flog(LOG_DEBUG, "Not using daemon mode\n");
- 		pid = getpid();<Paste>
diff --git a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch b/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
deleted file mode 100644
index 12ee0eeebc84..000000000000
--- a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Date: Tue, 8 Dec 2015 16:53:41 +0100
-Subject: [PATCH] api.c: fix infinite loop
-
-If getgrnam or getpwuid functions failed, the program entered
-an infinite loop, because the rule pointer was never advanced.
-This is now fixed by updating the pointer before continuing
-to the next iteration.
----
- src/api.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/src/api.c b/src/api.c
-index d6c9d3a..ef796ac 100644
---- a/src/api.c
-+++ b/src/api.c
-@@ -2775,13 +2775,17 @@ static struct cgroup_rule *cgroup_find_matching_rule_uid_gid(uid_t uid,
- 			/* Get the group data. */
- 			sp = &(rule->username[1]);
- 			grp = getgrnam(sp);
--			if (!grp)
-+			if (!grp) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* Get the data for UID. */
- 			usr = getpwuid(uid);
--			if (!usr)
-+			if (!usr) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* If UID is a member of group, we matched. */
- 			for (i = 0; grp->gr_mem[i]; i++) {
--- 
-2.10.2
-
diff --git a/srcpkgs/libcgroup/patches/musl-decls.patch b/srcpkgs/libcgroup/patches/musl-decls.patch
deleted file mode 100644
index eacf4e618d93..000000000000
--- a/srcpkgs/libcgroup/patches/musl-decls.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-In musl libc these macros are defined in the deprecated
-include file sys/cdefs.h
-
---- a/include/libcgroup.h	2014-01-13 15:05:56.000000000 +0100
-+++ b/include/libcgroup.h	2015-10-25 14:03:32.921207668 +0100
-@@ -16,6 +16,16 @@
- #ifndef _LIBCGROUP_H
- #define _LIBCGROUP_H
-
-+#if !defined(__GLIBC__)
-+#ifdef  __cplusplus
-+# define __BEGIN_DECLS	extern "C" {
-+# define __END_DECLS	}
-+#else
-+# define __BEGIN_DECLS
-+# define __END_DECLS
-+#endif
-+#endif /* !defined(__GLIBC__) */
-+
- #define _LIBCGROUP_H_INSIDE
- 
- #include <libcgroup/error.h>
diff --git a/srcpkgs/libcgroup/patches/musl-strerror_r.patch b/srcpkgs/libcgroup/patches/musl-strerror_r.patch
deleted file mode 100644
index 0f54e12b05d2..000000000000
--- a/srcpkgs/libcgroup/patches/musl-strerror_r.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-The musl libc strerror_r(3) semantics are different from
-GNU libc's if _GNU_SOURCE is defined.
-
---- a/src/api.c	2014-01-13 15:05:56.000000000 +0100
-+++ b/src/api.c	2015-10-25 14:09:18.690232596 +0100
-@@ -3332,8 +3332,16 @@
- 
- const char *cgroup_strerror(int code)
- {
-+#if defined(__GLIBC__)
- 	if (code == ECGOTHER)
- 		return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN);
-+#else
-+	if (code == ECGOTHER) {
-+		if (0 == strerror_r(cgroup_get_last_errno(), errtext, MAXLEN))
-+			return errtext;
-+		return "strerror_r() failed";
-+	}
-+#endif
- 
- 	return cgroup_strerror_codes[code % ECGROUPNOTCOMPILED];
- }
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..53168f8bb2fb 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -1,17 +1,18 @@
 # Template file for 'libcgroup'
 pkgname=libcgroup
-version=0.41
-revision=8
+version=2.0.2
+revision=1
 build_style=gnu-configure
 configure_args="--sbindir=/usr/bin --enable-pam-module-dir=/usr/lib/security"
 hostmakedepends="flex automake libtool"
 makedepends="pam-devel"
 short_desc="Library that abstracts the control group file system in Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="LGPL-2.1"
-homepage="http://libcg.sourceforge.net"
-distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
-checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+make_dirs="/etc/cgconfig.d 0755 root root"
+license="LGPL-2.1-only"
+homepage="https://github.com/libcgroup/libcgroup"
+distfiles="https://github.com/libcgroup/${pkgname}/archive/v${version}.tar.gz"
+checksum=ba6e9d1315a43771721c60bd34a7e084723b8e2ac1f4ddf8d7ba6f199b27e815
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
@@ -23,10 +24,6 @@ esac
 pre_configure() {
 	autoreconf -if
 }
-post_configure() {
-	# Disable tests
-	sed -i Makefile -e "/SUBDIRS =/ s; tests;;"
-}
 
 libcgroup-utils_package() {
 	short_desc+=" - utilities"

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
  2022-07-30 15:20 ` [PR REVIEW] " paper42
@ 2022-07-30 15:20 ` paper42
  2022-07-30 15:22 ` chili-b
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2022-07-30 15:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/38357#discussion_r933830110

Comment:
```suggestion
hostmakedepends="flex"
```

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
@ 2022-07-30 15:20 ` paper42
  2022-07-30 15:20 ` paper42
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2022-07-30 15:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/38357#discussion_r933828904

Comment:
this shouldn't be necessary

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
  2022-07-30 15:20 ` [PR REVIEW] " paper42
  2022-07-30 15:20 ` paper42
@ 2022-07-30 15:22 ` chili-b
  2022-07-30 15:23 ` [PR PATCH] [Updated] " chili-b
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: chili-b @ 2022-07-30 15:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

New review comment by chili-b on void-packages repository

https://github.com/void-linux/void-packages/pull/38357#discussion_r933831438

Comment:
I didn't introduce this step and removing it causes the build to fail.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
                   ` (2 preceding siblings ...)
  2022-07-30 15:22 ` chili-b
@ 2022-07-30 15:23 ` chili-b
  2022-07-30 15:23 ` [PR REVIEW] " chili-b
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: chili-b @ 2022-07-30 15:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

There is an updated pull request by chili-b against master on the void-packages repository

https://github.com/chili-b/void-packages libcgroup
https://github.com/void-linux/void-packages/pull/38357

libcgroup: update to 2.0.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl (crossbuild)


A patch file from https://github.com/void-linux/void-packages/pull/38357.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libcgroup-38357.patch --]
[-- Type: text/x-diff, Size: 8010 bytes --]

From b42b40eff6ec3f8d18fce23050f674097b99b065 Mon Sep 17 00:00:00 2001
From: chili-b <dexter.gaonshatford@gmail.com>
Date: Fri, 29 Jul 2022 12:46:03 -0400
Subject: [PATCH] libcgroup: update to 2.0.2.

---
 common/shlibs                                 |  2 +-
 .../patches/0001-Disable-tests.patch          | 49 +++++++++++++++++++
 .../libcgroup/patches/CVE-2018-14348.patch    | 12 -----
 .../patches/api.c-fix-infinite-loop.patch     | 38 --------------
 srcpkgs/libcgroup/patches/musl-decls.patch    | 22 ---------
 .../libcgroup/patches/musl-strerror_r.patch   | 22 ---------
 srcpkgs/libcgroup/template                    | 19 +++----
 7 files changed, 58 insertions(+), 106 deletions(-)
 create mode 100644 srcpkgs/libcgroup/patches/0001-Disable-tests.patch
 delete mode 100644 srcpkgs/libcgroup/patches/CVE-2018-14348.patch
 delete mode 100644 srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-decls.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-strerror_r.patch

diff --git a/common/shlibs b/common/shlibs
index 221b8b705452..dbf29ad54ca2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -963,7 +963,7 @@ libIceDiscovery.so.37 libIce-3.7.5_2
 libIceLocatorDiscovery.so.37 libIce-3.7.5_2
 libvdpau.so.1 libvdpau-0.4.1_1
 libgsm.so.1 libgsm-1.0.13_13
-libcgroup.so.1 libcgroup-0.37.1_1
+libcgroup.so.2 libcgroup-2.0.2_1
 libxdg-basedir.so.1 libxdg-basedir-1.1.1_1
 libev.so.4 libev-4.04_1
 libell.so.0 ell-0.45_1
diff --git a/srcpkgs/libcgroup/patches/0001-Disable-tests.patch b/srcpkgs/libcgroup/patches/0001-Disable-tests.patch
new file mode 100644
index 000000000000..8fc506182621
--- /dev/null
+++ b/srcpkgs/libcgroup/patches/0001-Disable-tests.patch
@@ -0,0 +1,49 @@
+From 95a93c57e43f44e7b45d87c43a201e149bb4c35e Mon Sep 17 00:00:00 2001
+From: Dexter Gaon-Shatford <dexter@gaonshatford.ca>
+Date: Fri, 29 Jul 2022 12:26:49 -0400
+Subject: [PATCH] Disable tests
+
+This is a temporary work-around. A commit which resolves the need for
+this change will be included in the next release.
+
+see: https://github.com/libcgroup/libcgroup/commit/17b3a2d612cc8747dcf916b0cf29775cc88f4a23
+---
+ Makefile.am  | 2 +-
+ configure.ac | 9 ---------
+ 2 files changed, 1 insertion(+), 10 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index e87ec8a..a3e8dcf 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,6 @@
+ AUTOMAKE_OPTIONS = foreign
+ ACLOCAL_AMFLAGS= -I m4
+-SUBDIRS = dist doc include samples scripts src tests
++SUBDIRS = dist doc include samples scripts src
+ 
+ EXTRA_DIST = README_daemon libcgroup.doxyfile README_systemd
+ 
+diff --git a/configure.ac b/configure.ac
+index 1bcf8a0..509f21e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -201,15 +201,6 @@ fi
+ AX_CODE_COVERAGE
+ 
+ AC_CONFIG_FILES([Makefile
+-	tests/Makefile
+-	tests/ftests/Makefile
+-	tests/gunit/Makefile
+-	tests/tools/testenv.sh
+-	tests/tools/Makefile
+-	tests/tools/cgconfigparser/Makefile
+-	tests/tools/cgclassify/Makefile
+-	tests/tools/multimount/Makefile
+-	tests/runlibcgrouptest.sh
+ 	src/Makefile
+ 	src/daemon/Makefile
+ 	src/tools/Makefile
+-- 
+2.37.1
+
diff --git a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch b/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
deleted file mode 100644
index bd083c2aad97..000000000000
--- a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/daemon/cgrulesengd.c
-+++ b/src/daemon/cgrulesengd.c
-@@ -889,9 +889,6 @@
- 		} else if (pid > 0) {
- 			exit(EXIT_SUCCESS);
- 		}
--
--		/* Change the file mode mask. */
--		umask(0);
- 	} else {
- 		flog(LOG_DEBUG, "Not using daemon mode\n");
- 		pid = getpid();<Paste>
diff --git a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch b/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
deleted file mode 100644
index 12ee0eeebc84..000000000000
--- a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Date: Tue, 8 Dec 2015 16:53:41 +0100
-Subject: [PATCH] api.c: fix infinite loop
-
-If getgrnam or getpwuid functions failed, the program entered
-an infinite loop, because the rule pointer was never advanced.
-This is now fixed by updating the pointer before continuing
-to the next iteration.
----
- src/api.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/src/api.c b/src/api.c
-index d6c9d3a..ef796ac 100644
---- a/src/api.c
-+++ b/src/api.c
-@@ -2775,13 +2775,17 @@ static struct cgroup_rule *cgroup_find_matching_rule_uid_gid(uid_t uid,
- 			/* Get the group data. */
- 			sp = &(rule->username[1]);
- 			grp = getgrnam(sp);
--			if (!grp)
-+			if (!grp) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* Get the data for UID. */
- 			usr = getpwuid(uid);
--			if (!usr)
-+			if (!usr) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* If UID is a member of group, we matched. */
- 			for (i = 0; grp->gr_mem[i]; i++) {
--- 
-2.10.2
-
diff --git a/srcpkgs/libcgroup/patches/musl-decls.patch b/srcpkgs/libcgroup/patches/musl-decls.patch
deleted file mode 100644
index eacf4e618d93..000000000000
--- a/srcpkgs/libcgroup/patches/musl-decls.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-In musl libc these macros are defined in the deprecated
-include file sys/cdefs.h
-
---- a/include/libcgroup.h	2014-01-13 15:05:56.000000000 +0100
-+++ b/include/libcgroup.h	2015-10-25 14:03:32.921207668 +0100
-@@ -16,6 +16,16 @@
- #ifndef _LIBCGROUP_H
- #define _LIBCGROUP_H
-
-+#if !defined(__GLIBC__)
-+#ifdef  __cplusplus
-+# define __BEGIN_DECLS	extern "C" {
-+# define __END_DECLS	}
-+#else
-+# define __BEGIN_DECLS
-+# define __END_DECLS
-+#endif
-+#endif /* !defined(__GLIBC__) */
-+
- #define _LIBCGROUP_H_INSIDE
- 
- #include <libcgroup/error.h>
diff --git a/srcpkgs/libcgroup/patches/musl-strerror_r.patch b/srcpkgs/libcgroup/patches/musl-strerror_r.patch
deleted file mode 100644
index 0f54e12b05d2..000000000000
--- a/srcpkgs/libcgroup/patches/musl-strerror_r.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-The musl libc strerror_r(3) semantics are different from
-GNU libc's if _GNU_SOURCE is defined.
-
---- a/src/api.c	2014-01-13 15:05:56.000000000 +0100
-+++ b/src/api.c	2015-10-25 14:09:18.690232596 +0100
-@@ -3332,8 +3332,16 @@
- 
- const char *cgroup_strerror(int code)
- {
-+#if defined(__GLIBC__)
- 	if (code == ECGOTHER)
- 		return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN);
-+#else
-+	if (code == ECGOTHER) {
-+		if (0 == strerror_r(cgroup_get_last_errno(), errtext, MAXLEN))
-+			return errtext;
-+		return "strerror_r() failed";
-+	}
-+#endif
- 
- 	return cgroup_strerror_codes[code % ECGROUPNOTCOMPILED];
- }
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..627edbf8e22a 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -1,17 +1,18 @@
 # Template file for 'libcgroup'
 pkgname=libcgroup
-version=0.41
-revision=8
+version=2.0.2
+revision=1
 build_style=gnu-configure
 configure_args="--sbindir=/usr/bin --enable-pam-module-dir=/usr/lib/security"
-hostmakedepends="flex automake libtool"
+hostmakedepends="flex"
 makedepends="pam-devel"
 short_desc="Library that abstracts the control group file system in Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="LGPL-2.1"
-homepage="http://libcg.sourceforge.net"
-distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
-checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+make_dirs="/etc/cgconfig.d 0755 root root"
+license="LGPL-2.1-only"
+homepage="https://github.com/libcgroup/libcgroup"
+distfiles="https://github.com/libcgroup/${pkgname}/archive/v${version}.tar.gz"
+checksum=ba6e9d1315a43771721c60bd34a7e084723b8e2ac1f4ddf8d7ba6f199b27e815
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
@@ -23,10 +24,6 @@ esac
 pre_configure() {
 	autoreconf -if
 }
-post_configure() {
-	# Disable tests
-	sed -i Makefile -e "/SUBDIRS =/ s; tests;;"
-}
 
 libcgroup-utils_package() {
 	short_desc+=" - utilities"

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
                   ` (3 preceding siblings ...)
  2022-07-30 15:23 ` [PR PATCH] [Updated] " chili-b
@ 2022-07-30 15:23 ` chili-b
  2022-07-30 15:25 ` paper42
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: chili-b @ 2022-07-30 15:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 151 bytes --]

New review comment by chili-b on void-packages repository

https://github.com/void-linux/void-packages/pull/38357#discussion_r933831975

Comment:
done

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
                   ` (4 preceding siblings ...)
  2022-07-30 15:23 ` [PR REVIEW] " chili-b
@ 2022-07-30 15:25 ` paper42
  2022-07-30 15:29 ` [PR PATCH] [Updated] " chili-b
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2022-07-30 15:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/38357#discussion_r933833056

Comment:
If you use a proper release archive, it won't because it includes the configure script:
```
distfiles="https://github.com/libcgroup/libcgroup/releases/download/v${version}/libcgroup-${version}.tar.gz"
```

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
                   ` (5 preceding siblings ...)
  2022-07-30 15:25 ` paper42
@ 2022-07-30 15:29 ` chili-b
  2022-07-30 15:30 ` [PR REVIEW] " chili-b
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: chili-b @ 2022-07-30 15:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

There is an updated pull request by chili-b against master on the void-packages repository

https://github.com/chili-b/void-packages libcgroup
https://github.com/void-linux/void-packages/pull/38357

libcgroup: update to 2.0.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl (crossbuild)


A patch file from https://github.com/void-linux/void-packages/pull/38357.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libcgroup-38357.patch --]
[-- Type: text/x-diff, Size: 6347 bytes --]

From 3b840f4d3dbd4d7e6d8746bc6eced9b33a244367 Mon Sep 17 00:00:00 2001
From: chili-b <dexter.gaonshatford@gmail.com>
Date: Fri, 29 Jul 2022 12:46:03 -0400
Subject: [PATCH] libcgroup: update to 2.0.2.

---
 common/shlibs                                 |  2 +-
 .../libcgroup/patches/CVE-2018-14348.patch    | 12 ------
 .../patches/api.c-fix-infinite-loop.patch     | 38 -------------------
 srcpkgs/libcgroup/patches/musl-decls.patch    | 22 -----------
 .../libcgroup/patches/musl-strerror_r.patch   | 22 -----------
 srcpkgs/libcgroup/template                    | 23 ++++-------
 6 files changed, 9 insertions(+), 110 deletions(-)
 delete mode 100644 srcpkgs/libcgroup/patches/CVE-2018-14348.patch
 delete mode 100644 srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-decls.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-strerror_r.patch

diff --git a/common/shlibs b/common/shlibs
index 221b8b705452..dbf29ad54ca2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -963,7 +963,7 @@ libIceDiscovery.so.37 libIce-3.7.5_2
 libIceLocatorDiscovery.so.37 libIce-3.7.5_2
 libvdpau.so.1 libvdpau-0.4.1_1
 libgsm.so.1 libgsm-1.0.13_13
-libcgroup.so.1 libcgroup-0.37.1_1
+libcgroup.so.2 libcgroup-2.0.2_1
 libxdg-basedir.so.1 libxdg-basedir-1.1.1_1
 libev.so.4 libev-4.04_1
 libell.so.0 ell-0.45_1
diff --git a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch b/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
deleted file mode 100644
index bd083c2aad97..000000000000
--- a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/daemon/cgrulesengd.c
-+++ b/src/daemon/cgrulesengd.c
-@@ -889,9 +889,6 @@
- 		} else if (pid > 0) {
- 			exit(EXIT_SUCCESS);
- 		}
--
--		/* Change the file mode mask. */
--		umask(0);
- 	} else {
- 		flog(LOG_DEBUG, "Not using daemon mode\n");
- 		pid = getpid();<Paste>
diff --git a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch b/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
deleted file mode 100644
index 12ee0eeebc84..000000000000
--- a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Date: Tue, 8 Dec 2015 16:53:41 +0100
-Subject: [PATCH] api.c: fix infinite loop
-
-If getgrnam or getpwuid functions failed, the program entered
-an infinite loop, because the rule pointer was never advanced.
-This is now fixed by updating the pointer before continuing
-to the next iteration.
----
- src/api.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/src/api.c b/src/api.c
-index d6c9d3a..ef796ac 100644
---- a/src/api.c
-+++ b/src/api.c
-@@ -2775,13 +2775,17 @@ static struct cgroup_rule *cgroup_find_matching_rule_uid_gid(uid_t uid,
- 			/* Get the group data. */
- 			sp = &(rule->username[1]);
- 			grp = getgrnam(sp);
--			if (!grp)
-+			if (!grp) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* Get the data for UID. */
- 			usr = getpwuid(uid);
--			if (!usr)
-+			if (!usr) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* If UID is a member of group, we matched. */
- 			for (i = 0; grp->gr_mem[i]; i++) {
--- 
-2.10.2
-
diff --git a/srcpkgs/libcgroup/patches/musl-decls.patch b/srcpkgs/libcgroup/patches/musl-decls.patch
deleted file mode 100644
index eacf4e618d93..000000000000
--- a/srcpkgs/libcgroup/patches/musl-decls.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-In musl libc these macros are defined in the deprecated
-include file sys/cdefs.h
-
---- a/include/libcgroup.h	2014-01-13 15:05:56.000000000 +0100
-+++ b/include/libcgroup.h	2015-10-25 14:03:32.921207668 +0100
-@@ -16,6 +16,16 @@
- #ifndef _LIBCGROUP_H
- #define _LIBCGROUP_H
-
-+#if !defined(__GLIBC__)
-+#ifdef  __cplusplus
-+# define __BEGIN_DECLS	extern "C" {
-+# define __END_DECLS	}
-+#else
-+# define __BEGIN_DECLS
-+# define __END_DECLS
-+#endif
-+#endif /* !defined(__GLIBC__) */
-+
- #define _LIBCGROUP_H_INSIDE
- 
- #include <libcgroup/error.h>
diff --git a/srcpkgs/libcgroup/patches/musl-strerror_r.patch b/srcpkgs/libcgroup/patches/musl-strerror_r.patch
deleted file mode 100644
index 0f54e12b05d2..000000000000
--- a/srcpkgs/libcgroup/patches/musl-strerror_r.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-The musl libc strerror_r(3) semantics are different from
-GNU libc's if _GNU_SOURCE is defined.
-
---- a/src/api.c	2014-01-13 15:05:56.000000000 +0100
-+++ b/src/api.c	2015-10-25 14:09:18.690232596 +0100
-@@ -3332,8 +3332,16 @@
- 
- const char *cgroup_strerror(int code)
- {
-+#if defined(__GLIBC__)
- 	if (code == ECGOTHER)
- 		return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN);
-+#else
-+	if (code == ECGOTHER) {
-+		if (0 == strerror_r(cgroup_get_last_errno(), errtext, MAXLEN))
-+			return errtext;
-+		return "strerror_r() failed";
-+	}
-+#endif
- 
- 	return cgroup_strerror_codes[code % ECGROUPNOTCOMPILED];
- }
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..e920e6fd6c6f 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -1,17 +1,18 @@
 # Template file for 'libcgroup'
 pkgname=libcgroup
-version=0.41
-revision=8
+version=2.0.2
+revision=1
 build_style=gnu-configure
 configure_args="--sbindir=/usr/bin --enable-pam-module-dir=/usr/lib/security"
-hostmakedepends="flex automake libtool"
+hostmakedepends="flex"
 makedepends="pam-devel"
 short_desc="Library that abstracts the control group file system in Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="LGPL-2.1"
-homepage="http://libcg.sourceforge.net"
-distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
-checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+make_dirs="/etc/cgconfig.d 0755 root root"
+license="LGPL-2.1-only"
+homepage="https://github.com/libcgroup/libcgroup"
+distfiles="https://github.com/libcgroup/libcgroup/releases/download/v${version}/libcgroup-${version}.tar.gz"
+checksum=8ef63b32e0aff619547dbb8a25e1f6bab152d7c4864795cf915571a5994d0cf8
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
@@ -20,14 +21,6 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 esac
 
-pre_configure() {
-	autoreconf -if
-}
-post_configure() {
-	# Disable tests
-	sed -i Makefile -e "/SUBDIRS =/ s; tests;;"
-}
-
 libcgroup-utils_package() {
 	short_desc+=" - utilities"
 	conf_files="/etc/cgrules.conf /etc/cgconfig.conf"

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
                   ` (6 preceding siblings ...)
  2022-07-30 15:29 ` [PR PATCH] [Updated] " chili-b
@ 2022-07-30 15:30 ` chili-b
  2022-07-30 16:22 ` [PR PATCH] [Updated] " chili-b
  2022-08-01 16:59 ` [PR PATCH] [Merged]: " classabbyamp
  9 siblings, 0 replies; 11+ messages in thread
From: chili-b @ 2022-07-30 15:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 151 bytes --]

New review comment by chili-b on void-packages repository

https://github.com/void-linux/void-packages/pull/38357#discussion_r933835826

Comment:
done

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
                   ` (7 preceding siblings ...)
  2022-07-30 15:30 ` [PR REVIEW] " chili-b
@ 2022-07-30 16:22 ` chili-b
  2022-08-01 16:59 ` [PR PATCH] [Merged]: " classabbyamp
  9 siblings, 0 replies; 11+ messages in thread
From: chili-b @ 2022-07-30 16:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

There is an updated pull request by chili-b against master on the void-packages repository

https://github.com/chili-b/void-packages libcgroup
https://github.com/void-linux/void-packages/pull/38357

libcgroup: update to 2.0.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl (crossbuild)


A patch file from https://github.com/void-linux/void-packages/pull/38357.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libcgroup-38357.patch --]
[-- Type: text/x-diff, Size: 6229 bytes --]

From 0f5f7f6ab5eec1ee5a899b0d71d7ff0b6b43b3bc Mon Sep 17 00:00:00 2001
From: chili-b <dexter.gaonshatford@gmail.com>
Date: Fri, 29 Jul 2022 12:46:03 -0400
Subject: [PATCH] libcgroup: update to 2.0.2.

---
 common/shlibs                                 |  2 +-
 .../libcgroup/patches/CVE-2018-14348.patch    | 12 ------
 .../patches/api.c-fix-infinite-loop.patch     | 38 -------------------
 srcpkgs/libcgroup/patches/musl-decls.patch    | 22 -----------
 .../libcgroup/patches/musl-strerror_r.patch   | 22 -----------
 srcpkgs/libcgroup/template                    | 18 ++++-----
 6 files changed, 9 insertions(+), 105 deletions(-)
 delete mode 100644 srcpkgs/libcgroup/patches/CVE-2018-14348.patch
 delete mode 100644 srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-decls.patch
 delete mode 100644 srcpkgs/libcgroup/patches/musl-strerror_r.patch

diff --git a/common/shlibs b/common/shlibs
index 221b8b705452..dbf29ad54ca2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -963,7 +963,7 @@ libIceDiscovery.so.37 libIce-3.7.5_2
 libIceLocatorDiscovery.so.37 libIce-3.7.5_2
 libvdpau.so.1 libvdpau-0.4.1_1
 libgsm.so.1 libgsm-1.0.13_13
-libcgroup.so.1 libcgroup-0.37.1_1
+libcgroup.so.2 libcgroup-2.0.2_1
 libxdg-basedir.so.1 libxdg-basedir-1.1.1_1
 libev.so.4 libev-4.04_1
 libell.so.0 ell-0.45_1
diff --git a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch b/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
deleted file mode 100644
index bd083c2aad97..000000000000
--- a/srcpkgs/libcgroup/patches/CVE-2018-14348.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/daemon/cgrulesengd.c
-+++ b/src/daemon/cgrulesengd.c
-@@ -889,9 +889,6 @@
- 		} else if (pid > 0) {
- 			exit(EXIT_SUCCESS);
- 		}
--
--		/* Change the file mode mask. */
--		umask(0);
- 	} else {
- 		flog(LOG_DEBUG, "Not using daemon mode\n");
- 		pid = getpid();<Paste>
diff --git a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch b/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
deleted file mode 100644
index 12ee0eeebc84..000000000000
--- a/srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Date: Tue, 8 Dec 2015 16:53:41 +0100
-Subject: [PATCH] api.c: fix infinite loop
-
-If getgrnam or getpwuid functions failed, the program entered
-an infinite loop, because the rule pointer was never advanced.
-This is now fixed by updating the pointer before continuing
-to the next iteration.
----
- src/api.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/src/api.c b/src/api.c
-index d6c9d3a..ef796ac 100644
---- a/src/api.c
-+++ b/src/api.c
-@@ -2775,13 +2775,17 @@ static struct cgroup_rule *cgroup_find_matching_rule_uid_gid(uid_t uid,
- 			/* Get the group data. */
- 			sp = &(rule->username[1]);
- 			grp = getgrnam(sp);
--			if (!grp)
-+			if (!grp) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* Get the data for UID. */
- 			usr = getpwuid(uid);
--			if (!usr)
-+			if (!usr) {
-+				rule = rule->next;
- 				continue;
-+			}
- 
- 			/* If UID is a member of group, we matched. */
- 			for (i = 0; grp->gr_mem[i]; i++) {
--- 
-2.10.2
-
diff --git a/srcpkgs/libcgroup/patches/musl-decls.patch b/srcpkgs/libcgroup/patches/musl-decls.patch
deleted file mode 100644
index eacf4e618d93..000000000000
--- a/srcpkgs/libcgroup/patches/musl-decls.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-In musl libc these macros are defined in the deprecated
-include file sys/cdefs.h
-
---- a/include/libcgroup.h	2014-01-13 15:05:56.000000000 +0100
-+++ b/include/libcgroup.h	2015-10-25 14:03:32.921207668 +0100
-@@ -16,6 +16,16 @@
- #ifndef _LIBCGROUP_H
- #define _LIBCGROUP_H
-
-+#if !defined(__GLIBC__)
-+#ifdef  __cplusplus
-+# define __BEGIN_DECLS	extern "C" {
-+# define __END_DECLS	}
-+#else
-+# define __BEGIN_DECLS
-+# define __END_DECLS
-+#endif
-+#endif /* !defined(__GLIBC__) */
-+
- #define _LIBCGROUP_H_INSIDE
- 
- #include <libcgroup/error.h>
diff --git a/srcpkgs/libcgroup/patches/musl-strerror_r.patch b/srcpkgs/libcgroup/patches/musl-strerror_r.patch
deleted file mode 100644
index 0f54e12b05d2..000000000000
--- a/srcpkgs/libcgroup/patches/musl-strerror_r.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-The musl libc strerror_r(3) semantics are different from
-GNU libc's if _GNU_SOURCE is defined.
-
---- a/src/api.c	2014-01-13 15:05:56.000000000 +0100
-+++ b/src/api.c	2015-10-25 14:09:18.690232596 +0100
-@@ -3332,8 +3332,16 @@
- 
- const char *cgroup_strerror(int code)
- {
-+#if defined(__GLIBC__)
- 	if (code == ECGOTHER)
- 		return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN);
-+#else
-+	if (code == ECGOTHER) {
-+		if (0 == strerror_r(cgroup_get_last_errno(), errtext, MAXLEN))
-+			return errtext;
-+		return "strerror_r() failed";
-+	}
-+#endif
- 
- 	return cgroup_strerror_codes[code % ECGROUPNOTCOMPILED];
- }
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..986733be835d 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -1,17 +1,18 @@
 # Template file for 'libcgroup'
 pkgname=libcgroup
-version=0.41
-revision=8
+version=2.0.2
+revision=1
 build_style=gnu-configure
 configure_args="--sbindir=/usr/bin --enable-pam-module-dir=/usr/lib/security"
-hostmakedepends="flex automake libtool"
+hostmakedepends="flex"
 makedepends="pam-devel"
 short_desc="Library that abstracts the control group file system in Linux"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="LGPL-2.1"
-homepage="http://libcg.sourceforge.net"
-distfiles="${SOURCEFORGE_SITE}/libcg/${pkgname}-${version}.tar.bz2"
-checksum=e4e38bdc7ef70645ce33740ddcca051248d56b53283c0dc6d404e17706f6fb51
+make_dirs="/etc/cgconfig.d 0755 root root"
+license="LGPL-2.1-only"
+homepage="https://github.com/libcgroup/libcgroup"
+distfiles="https://github.com/libcgroup/libcgroup/releases/download/v${version}/libcgroup-${version}.tar.gz"
+checksum=8ef63b32e0aff619547dbb8a25e1f6bab152d7c4864795cf915571a5994d0cf8
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
@@ -20,9 +21,6 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 esac
 
-pre_configure() {
-	autoreconf -if
-}
 post_configure() {
 	# Disable tests
 	sed -i Makefile -e "/SUBDIRS =/ s; tests;;"

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Merged]: libcgroup: update to 2.0.2.
  2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
                   ` (8 preceding siblings ...)
  2022-07-30 16:22 ` [PR PATCH] [Updated] " chili-b
@ 2022-08-01 16:59 ` classabbyamp
  9 siblings, 0 replies; 11+ messages in thread
From: classabbyamp @ 2022-08-01 16:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]

There's a merged pull request on the void-packages repository

libcgroup: update to 2.0.2.
https://github.com/void-linux/void-packages/pull/38357

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl (crossbuild)


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-08-01 16:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 19:33 [PR PATCH] libcgroup: update to 2.0.2 chili-b
2022-07-30 15:20 ` [PR REVIEW] " paper42
2022-07-30 15:20 ` paper42
2022-07-30 15:22 ` chili-b
2022-07-30 15:23 ` [PR PATCH] [Updated] " chili-b
2022-07-30 15:23 ` [PR REVIEW] " chili-b
2022-07-30 15:25 ` paper42
2022-07-30 15:29 ` [PR PATCH] [Updated] " chili-b
2022-07-30 15:30 ` [PR REVIEW] " chili-b
2022-07-30 16:22 ` [PR PATCH] [Updated] " chili-b
2022-08-01 16:59 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).