diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2023-05-19 16:30:03 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-05-22 23:26:24 +0200 |
commit | 7cb7e87ef4c1d1498513099d7beceeed0b48bcad (patch) | |
tree | 37f907612f01e56b25382158f0aaa1c41a6ef80c /app-containers/crun | |
parent | net-libs/pjproject: remove unused patches (diff) | |
download | gentoo-7cb7e87ef4c1d1498513099d7beceeed0b48bcad.tar.gz gentoo-7cb7e87ef4c1d1498513099d7beceeed0b48bcad.tar.bz2 gentoo-7cb7e87ef4c1d1498513099d7beceeed0b48bcad.zip |
app-containers/crun: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/31098
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-containers/crun')
-rw-r--r-- | app-containers/crun/files/crun-1.4.5-glibc-2.36.patch | 79 |
1 files changed, 0 insertions, 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); - - |