Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] libcgroup: update to 2.0.
@ 2021-07-28 15:54 wibed
  2021-07-28 15:59 ` [PR REVIEW] " paper42
                   ` (62 more replies)
  0 siblings, 63 replies; 69+ messages in thread
From: wibed @ 2021-07-28 15:54 UTC (permalink / raw)
  To: ml

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

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

https://github.com/wibed/void-packages master
https://github.com/void-linux/void-packages/pull/32231

libcgroup: update to 2.0.
update libcgroup to version 2.0

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-musl)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From ff00b759e5c5773eb6239e2e426ae1a545d5f356 Mon Sep 17 00:00:00 2001
From: cc <na@na.com>
Date: Wed, 28 Jul 2021 17:29:47 +0200
Subject: [PATCH] libcgroup: update to 2.0.

update libcgroup to version 2.0
---
 .../libcgroup/patches/CVE-2018-14348.patch    | 12 ------
 .../patches/api.c-fix-infinite-loop.patch     | 38 -------------------
 srcpkgs/libcgroup/patches/musl-decls.patch    |  2 +-
 ...-strerror_r.patch => musl-sterror_r.patch} |  4 +-
 srcpkgs/libcgroup/template                    | 12 +++---
 srcpkgs/libcgroup/update                      |  1 -
 6 files changed, 8 insertions(+), 61 deletions(-)
 delete mode 100644 srcpkgs/libcgroup/patches/CVE-2018-14348.patch
 delete mode 100644 srcpkgs/libcgroup/patches/api.c-fix-infinite-loop.patch
 rename srcpkgs/libcgroup/patches/{musl-strerror_r.patch => musl-sterror_r.patch} (99%)
 delete mode 100644 srcpkgs/libcgroup/update

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
index eacf4e618d93..3fcd6a4ea1b8 100644
--- a/srcpkgs/libcgroup/patches/musl-decls.patch
+++ b/srcpkgs/libcgroup/patches/musl-decls.patch
@@ -18,5 +18,5 @@ include file sys/cdefs.h
 +#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-sterror_r.patch
similarity index 99%
rename from srcpkgs/libcgroup/patches/musl-strerror_r.patch
rename to srcpkgs/libcgroup/patches/musl-sterror_r.patch
index 0f54e12b05d2..0f14d325e965 100644
--- a/srcpkgs/libcgroup/patches/musl-strerror_r.patch
+++ b/srcpkgs/libcgroup/patches/musl-sterror_r.patch
@@ -4,7 +4,7 @@ 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__)
@@ -17,6 +17,6 @@ GNU libc's if _GNU_SOURCE is defined.
 +		return "strerror_r() failed";
 +	}
 +#endif
- 
+
  	return cgroup_strerror_codes[code % ECGROUPNOTCOMPILED];
  }
diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..6089977f8bdc 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -1,18 +1,16 @@
 # Template file for 'libcgroup'
 pkgname=libcgroup
-version=0.41
-revision=8
+version=2.0
+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
-
+homepage="https://github.com/${pkgname}/${pkgname}"
+distfiles="${homepage}/releases/download/v2.0/${pkgname}-${version}.tar.bz2"
+checksum=11a2fbf0e42f46089f406b8b0dca7fef04aec2f21600b70e402c5db3661305d7
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
 		makedepends+=" musl-fts-devel"
diff --git a/srcpkgs/libcgroup/update b/srcpkgs/libcgroup/update
deleted file mode 100644
index d395a5b230c3..000000000000
--- a/srcpkgs/libcgroup/update
+++ /dev/null
@@ -1 +0,0 @@
-pattern="${pkgname}-v?\K[\d.]+(?=\.tar)"

^ permalink raw reply	[flat|nested] 69+ messages in thread
* [PR PATCH] libcgroup upgrade to 2.0
@ 2021-08-22  4:29 wibed
  2021-08-22  9:09 ` [PR PATCH] [Updated] libcgroup: update " wibed
                   ` (4 more replies)
  0 siblings, 5 replies; 69+ messages in thread
From: wibed @ 2021-08-22  4:29 UTC (permalink / raw)
  To: ml

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

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

https://github.com/wibed/void-packages libcgroupUpgrade
https://github.com/void-linux/void-packages/pull/32623

libcgroup upgrade to 2.0
<!-- Mark items with [x] where applicable -->

#### General
- [ x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ x] I built this PR locally for my native architecture, (ARCH-MUSL)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From b428a366d9be122b290e374649eb3916bf9eecca Mon Sep 17 00:00:00 2001
From: wibed <wibe@tutanota.com>
Date: Sun, 22 Aug 2021 06:25:48 +0200
Subject: [PATCH] upgrade to 2.0

---
 srcpkgs/libcgroup/template | 18 +++++++-----------
 srcpkgs/libcgroup/update   |  1 -
 2 files changed, 7 insertions(+), 12 deletions(-)
 delete mode 100644 srcpkgs/libcgroup/update

diff --git a/srcpkgs/libcgroup/template b/srcpkgs/libcgroup/template
index c9c19120e597..8fcf111224af 100644
--- a/srcpkgs/libcgroup/template
+++ b/srcpkgs/libcgroup/template
@@ -1,17 +1,16 @@
 # Template file for 'libcgroup'
 pkgname=libcgroup
-version=0.41
-revision=8
+version=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
+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=aecc501a9ea6a97da0673585db5081df912ae607dec36d5f6f7ab14f69d48ab8
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl)	# Add musl-fts implementation
@@ -20,9 +19,6 @@ case "$XBPS_TARGET_MACHINE" in
 		;;
 esac
 
-pre_configure() {
-	autoreconf -if
-}
 post_configure() {
 	# Disable tests
 	sed -i Makefile -e "/SUBDIRS =/ s; tests;;"
diff --git a/srcpkgs/libcgroup/update b/srcpkgs/libcgroup/update
deleted file mode 100644
index d395a5b230c3..000000000000
--- a/srcpkgs/libcgroup/update
+++ /dev/null
@@ -1 +0,0 @@
-pattern="${pkgname}-v?\K[\d.]+(?=\.tar)"

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

end of thread, other threads:[~2021-08-23 18:26 UTC | newest]

Thread overview: 69+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28 15:54 [PR PATCH] libcgroup: update to 2.0 wibed
2021-07-28 15:59 ` [PR REVIEW] " paper42
2021-07-28 15:59 ` paper42
2021-07-28 15:59 ` paper42
2021-07-28 15:59 ` paper42
2021-07-28 16:01 ` paper42
2021-07-28 16:15 ` [PR PATCH] [Updated] " wibed
2021-07-28 16:16 ` [PR REVIEW] " wibed
2021-07-28 16:17 ` wibed
2021-07-28 16:17 ` paper42
2021-07-28 16:17 ` paper42
2021-07-28 16:17 ` wibed
2021-07-28 16:17 ` wibed
2021-07-28 16:33 ` paper42
2021-07-28 16:37 ` wibed
2021-07-28 16:39 ` paper42
2021-07-28 16:40 ` paper42
2021-07-28 16:41 ` paper42
2021-07-28 16:44 ` [PR PATCH] [Updated] " wibed
2021-07-28 16:45 ` [PR REVIEW] " wibed
2021-07-28 16:46 ` [PR PATCH] [Updated] " wibed
2021-07-28 16:47 ` [PR REVIEW] " wibed
2021-07-28 16:47 ` [PR PATCH] [Updated] " wibed
2021-07-28 16:48 ` [PR REVIEW] " wibed
2021-07-28 16:49 ` wibed
2021-07-28 16:59 ` paper42
2021-07-28 17:03 ` wibed
2021-07-28 17:14 ` [PR PATCH] [Updated] " wibed
2021-07-28 20:29 ` paper42
2021-07-28 20:36 ` [PR REVIEW] " paper42
2021-08-04 20:26 ` paper42
2021-08-12 17:11 ` paper42
2021-08-13  7:36 ` wibed
2021-08-18  3:22 ` [PR PATCH] [Updated] " wibed
2021-08-18  3:31 ` wibed
2021-08-18  3:40 ` wibed
2021-08-18  8:45 ` wibed
2021-08-18 16:11 ` [PR REVIEW] " paper42
2021-08-18 16:11 ` paper42
2021-08-18 16:12 ` paper42
2021-08-18 16:13 ` paper42
2021-08-19 12:56 ` [PR PATCH] [Updated] " wibed
2021-08-19 21:18 ` [PR REVIEW] " paper42
2021-08-20  0:13 ` [PR PATCH] [Updated] " wibed
2021-08-20  0:56 ` wibed
2021-08-20  1:05 ` wibed
2021-08-20  1:07 ` wibed
2021-08-20  1:09 ` wibed
2021-08-20  1:09 ` wibed
2021-08-20  1:46 ` [PR PATCH] [Updated] " wibed
2021-08-20  1:57 ` wibed
2021-08-20 15:56 ` ericonr
2021-08-21  0:50 ` [PR PATCH] [Updated] " wibed
2021-08-21  1:11 ` wibed
2021-08-21  1:17 ` wibed
2021-08-21  1:18 ` wibed
2021-08-21  1:21 ` wibed
2021-08-21  1:33 ` wibed
2021-08-21  2:55 ` [PR PATCH] [Updated] " wibed
2021-08-21  2:57 ` wibed
2021-08-21  3:07 ` wibed
2021-08-22  4:03 ` [PR PATCH] [Updated] " wibed
2021-08-22  4:07 ` wibed
2021-08-22  4:07 ` [PR PATCH] [Closed]: " wibed
2021-08-22  4:29 [PR PATCH] libcgroup upgrade " wibed
2021-08-22  9:09 ` [PR PATCH] [Updated] libcgroup: update " wibed
2021-08-22  9:11 ` wibed
2021-08-22  9:23 ` wibed
2021-08-23  9:01 ` wibed
2021-08-23 18:26 ` wibed

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).