public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-containers/crun/files/
@ 2023-05-22 21:27 Conrad Kostecki
  0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2023-05-22 21:27 UTC (permalink / raw
  To: gentoo-commits

commit:     7cb7e87ef4c1d1498513099d7beceeed0b48bcad
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Fri May 19 14:30:03 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon May 22 21:26:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb7e87e

app-containers/crun: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/31098
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../crun/files/crun-1.4.5-glibc-2.36.patch         | 79 ----------------------
 1 file changed, 79 deletions(-)

diff --git a/app-containers/crun/files/crun-1.4.5-glibc-2.36.patch b/app-containers/crun/files/crun-1.4.5-glibc-2.36.patch
deleted file mode 100644
index 12990c9dbe65..000000000000
--- a/app-containers/crun/files/crun-1.4.5-glibc-2.36.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-https://bugs.gentoo.org/863437
-https://github.com/containers/crun/commit/3df14584b84414df77b2079c1b8b48d44d0ceb61
-
-From 3df14584b84414df77b2079c1b8b48d44d0ceb61 Mon Sep 17 00:00:00 2001
-From: Giuseppe Scrivano <gscrivan@redhat.com>
-Date: Tue, 26 Jul 2022 15:17:16 +0200
-Subject: [PATCH] linux: fix build with glibc 2.36
-
-glibc 2.36 has the new mount API in the <sys/mount.h> file.  These
-definitions conflict with the definitions in the <linux/mount.h>
-file.
-
-Add a check and include <linux/mount.h> only if it doesn't conflict
-with <sys/mount.h>.
-
-Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2110738
-
-Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
---- a/configure.ac
-+++ b/configure.ac
-@@ -174,11 +174,21 @@ LIBS=""
- AC_MSG_CHECKING([for new mount API (fsconfig)])
- AC_COMPILE_IFELSE(
- 	[AC_LANG_SOURCE([[
-+			#include <sys/mount.h>
-+			int cmd = FSCONFIG_CMD_CREATE;
-+	]])],
-+	[AC_MSG_RESULT(yes)
-+		 AC_DEFINE([HAVE_FSCONFIG_CMD_CREATE_SYS_MOUNT_H], 1, [Define if FSCONFIG_CMD_CREATE is available in sys/mount.h])],
-+	[AC_MSG_RESULT(no)])
-+AC_COMPILE_IFELSE(
-+	[AC_LANG_SOURCE([[
-+			/* also make sure it doesn't conflict with <sys/mount.h> since it is always used.  */
-+			#include <sys/mount.h>
- 			#include <linux/mount.h>
- 			int cmd = FSCONFIG_CMD_CREATE;
- 	]])],
- 	[AC_MSG_RESULT(yes)
--		 AC_DEFINE([HAVE_FSCONFIG_CMD_CREATE], 1, [Define if FSCONFIG_CMD_CREATE is available])],
-+		 AC_DEFINE([HAVE_FSCONFIG_CMD_CREATE_LINUX_MOUNT_H], 1, [Define if FSCONFIG_CMD_CREATE is available in linux/mount.h])],
- 	[AC_MSG_RESULT(no)])
- 
- AC_MSG_CHECKING([for seccomp notify API])
---- a/src/libcrun/linux.c
-+++ b/src/libcrun/linux.c
-@@ -26,9 +26,13 @@
- #include <fcntl.h>
- #include <unistd.h>
- #include <sys/mount.h>
--#ifdef HAVE_FSCONFIG_CMD_CREATE
-+#ifdef HAVE_FSCONFIG_CMD_CREATE_LINUX_MOUNT_H
- #  include <linux/mount.h>
- #endif
-+#if defined HAVE_FSCONFIG_CMD_CREATE_LINUX_MOUNT_H || defined HAVE_FSCONFIG_CMD_CREATE_SYS_MOUNT_H
-+#  define HAVE_NEW_MOUNT_API
-+#endif
-+
- #include <sys/syscall.h>
- #include <sys/prctl.h>
- #ifdef HAVE_CAP
-@@ -990,7 +994,7 @@ open_mount_target (libcrun_container_t *container, const char *target_rel, libcr
- static int
- fsopen_mount (runtime_spec_schema_defs_mount *mount)
- {
--#ifdef HAVE_FSCONFIG_CMD_CREATE
-+#ifdef HAVE_NEW_MOUNT_API
-   cleanup_close int fsfd = -1;
-   int ret;
- 
-@@ -1016,7 +1020,7 @@ fsopen_mount (runtime_spec_schema_defs_mount *mount)
- static int
- fs_move_mount_to (int fd, int dirfd, const char *name)
- {
--#ifdef HAVE_FSCONFIG_CMD_CREATE
-+#ifdef HAVE_NEW_MOUNT_API
-   if (name)
-     return syscall_move_mount (fd, "", dirfd, name, MOVE_MOUNT_F_EMPTY_PATH);
- 
-


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

* [gentoo-commits] repo/gentoo:master commit in: app-containers/crun/files/
@ 2025-01-15 21:41 Zac Medico
  0 siblings, 0 replies; 2+ messages in thread
From: Zac Medico @ 2025-01-15 21:41 UTC (permalink / raw
  To: gentoo-commits

commit:     e13097fab6cfcd97feece06d68f1e96ebac8d7c7
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Wed Jan 15 18:50:53 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Jan 15 21:40:40 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e13097fa

app-containers/crun: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
From: https://github.com/gentoo/gentoo/pull/40151
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-containers/crun/files/crun-1.11.2-caps.patch | 32 ------------------------
 1 file changed, 32 deletions(-)

diff --git a/app-containers/crun/files/crun-1.11.2-caps.patch b/app-containers/crun/files/crun-1.11.2-caps.patch
deleted file mode 100644
index d32a4dd1a8f8..000000000000
--- a/app-containers/crun/files/crun-1.11.2-caps.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 767ba88ef363115e80e077ce312f89f20488da01 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Robert=20G=C3=BCnzler?= <r@gnzler.io>
-Date: Thu, 9 Nov 2023 14:16:08 +0100
-Subject: [PATCH] Fix build without libcap
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-The work to support features introduced another point of dependency on
-libcap that previously wasn't guarded by ifdefs
-
-Refs: https://github.com/containers/crun/pull/1237
-Signed-off-by: Robert Günzler <r@gnzler.io>
----
- src/libcrun/container.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/libcrun/container.c b/src/libcrun/container.c
-index ed0fa29bb..7be1713ab 100644
---- a/src/libcrun/container.c
-+++ b/src/libcrun/container.c
-@@ -3925,8 +3925,10 @@ libcrun_container_get_features (libcrun_context_t *context, struct features_info
-   // Populate namespaces
-   populate_array_field (&((*info)->linux.namespaces), namespaces, num_namspaces);
- 
-+#ifdef HAVE_CAP
-   // Populate capabilities
-   populate_capabilities (*info, &capabilities, &num_capabilities);
-+#endif
- 
-   // Hardcode the values for cgroup
-   (*info)->linux.cgroup.v1 = true;


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

end of thread, other threads:[~2025-01-15 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 21:41 [gentoo-commits] repo/gentoo:master commit in: app-containers/crun/files/ Zac Medico
  -- strict thread matches above, loose matches on Subject: below --
2023-05-22 21:27 Conrad Kostecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox