From 62f459f45a6fe136b3659642a1a0e7a90025e617939b1b11cca5046dadb37537 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 11 Apr 2022 08:46:09 +0000 Subject: [PATCH 1/3] Accepting request 967500 from home:aplanas:branches:Base:System - Enable cryptsetup support This will support mount options for dm-verity. Note, I needed to add this in the project config: Preinstall: libcryptsetup12 Preinstall: libdevmapper1_03 Preinstall: libopenssl1_1 Preinstall: libargon2-1 Preinstall: libjson-c5 Preinstall: libudev1 OBS-URL: https://build.opensuse.org/request/show/967500 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=464 --- python3-libmount.changes | 5 +++++ python3-libmount.spec | 2 ++ util-linux-systemd.changes | 5 +++++ util-linux-systemd.spec | 2 ++ util-linux.changes | 5 +++++ util-linux.spec | 2 ++ 6 files changed, 21 insertions(+) diff --git a/python3-libmount.changes b/python3-libmount.changes index 77e478c..1d87301 100644 --- a/python3-libmount.changes +++ b/python3-libmount.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 7 11:20:30 UTC 2022 - Alberto Planas Dominguez + +- Enable cryptsetup support + ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/python3-libmount.spec b/python3-libmount.spec index 949a7b1..d06af74 100644 --- a/python3-libmount.spec +++ b/python3-libmount.spec @@ -86,6 +86,7 @@ BuildRequires: binutils-devel BuildRequires: fdupes BuildRequires: gettext-devel BuildRequires: libcap-ng-devel +BuildRequires: libcryptsetup-devel # It should be %%if %%{defined no_config}, but OBS cannot handle it: BuildRequires: libeconf-devel BuildRequires: libselinux-devel @@ -556,6 +557,7 @@ AUTOPOINT=true GTKDOCIZE=true autoreconf -vfi --disable-makeinstall-setuid \ --with-audit \ --with-btrfs \ + --with-cryptsetup \ --with-gnu-ld \ --with-ncursesw \ --with-readline \ diff --git a/util-linux-systemd.changes b/util-linux-systemd.changes index 77e478c..1d87301 100644 --- a/util-linux-systemd.changes +++ b/util-linux-systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 7 11:20:30 UTC 2022 - Alberto Planas Dominguez + +- Enable cryptsetup support + ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/util-linux-systemd.spec b/util-linux-systemd.spec index 78bfe0a..0382d7f 100644 --- a/util-linux-systemd.spec +++ b/util-linux-systemd.spec @@ -86,6 +86,7 @@ BuildRequires: binutils-devel BuildRequires: fdupes BuildRequires: gettext-devel BuildRequires: libcap-ng-devel +BuildRequires: libcryptsetup-devel # It should be %%if %%{defined no_config}, but OBS cannot handle it: BuildRequires: libeconf-devel BuildRequires: libselinux-devel @@ -556,6 +557,7 @@ AUTOPOINT=true GTKDOCIZE=true autoreconf -vfi --disable-makeinstall-setuid \ --with-audit \ --with-btrfs \ + --with-cryptsetup \ --with-gnu-ld \ --with-ncursesw \ --with-readline \ diff --git a/util-linux.changes b/util-linux.changes index 77e478c..1d87301 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 7 11:20:30 UTC 2022 - Alberto Planas Dominguez + +- Enable cryptsetup support + ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/util-linux.spec b/util-linux.spec index ce493b4..4e4b065 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -86,6 +86,7 @@ BuildRequires: binutils-devel BuildRequires: fdupes BuildRequires: gettext-devel BuildRequires: libcap-ng-devel +BuildRequires: libcryptsetup-devel # It should be %%if %%{defined no_config}, but OBS cannot handle it: BuildRequires: libeconf-devel BuildRequires: libselinux-devel @@ -556,6 +557,7 @@ AUTOPOINT=true GTKDOCIZE=true autoreconf -vfi --disable-makeinstall-setuid \ --with-audit \ --with-btrfs \ + --with-cryptsetup \ --with-gnu-ld \ --with-ncursesw \ --with-readline \ From 242896bc65b73168c0d1b21c3838f7a96c43a5c4eacc9b292b20f7f4d773601c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 11 Apr 2022 10:58:25 +0000 Subject: [PATCH 2/3] Revert r464. Too many deps for ring0. OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=465 --- python3-libmount.changes | 5 ----- python3-libmount.spec | 2 -- util-linux-systemd.changes | 5 ----- util-linux-systemd.spec | 2 -- util-linux.changes | 5 ----- util-linux.spec | 2 -- 6 files changed, 21 deletions(-) diff --git a/python3-libmount.changes b/python3-libmount.changes index 1d87301..77e478c 100644 --- a/python3-libmount.changes +++ b/python3-libmount.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Thu Apr 7 11:20:30 UTC 2022 - Alberto Planas Dominguez - -- Enable cryptsetup support - ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/python3-libmount.spec b/python3-libmount.spec index d06af74..949a7b1 100644 --- a/python3-libmount.spec +++ b/python3-libmount.spec @@ -86,7 +86,6 @@ BuildRequires: binutils-devel BuildRequires: fdupes BuildRequires: gettext-devel BuildRequires: libcap-ng-devel -BuildRequires: libcryptsetup-devel # It should be %%if %%{defined no_config}, but OBS cannot handle it: BuildRequires: libeconf-devel BuildRequires: libselinux-devel @@ -557,7 +556,6 @@ AUTOPOINT=true GTKDOCIZE=true autoreconf -vfi --disable-makeinstall-setuid \ --with-audit \ --with-btrfs \ - --with-cryptsetup \ --with-gnu-ld \ --with-ncursesw \ --with-readline \ diff --git a/util-linux-systemd.changes b/util-linux-systemd.changes index 1d87301..77e478c 100644 --- a/util-linux-systemd.changes +++ b/util-linux-systemd.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Thu Apr 7 11:20:30 UTC 2022 - Alberto Planas Dominguez - -- Enable cryptsetup support - ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/util-linux-systemd.spec b/util-linux-systemd.spec index 0382d7f..78bfe0a 100644 --- a/util-linux-systemd.spec +++ b/util-linux-systemd.spec @@ -86,7 +86,6 @@ BuildRequires: binutils-devel BuildRequires: fdupes BuildRequires: gettext-devel BuildRequires: libcap-ng-devel -BuildRequires: libcryptsetup-devel # It should be %%if %%{defined no_config}, but OBS cannot handle it: BuildRequires: libeconf-devel BuildRequires: libselinux-devel @@ -557,7 +556,6 @@ AUTOPOINT=true GTKDOCIZE=true autoreconf -vfi --disable-makeinstall-setuid \ --with-audit \ --with-btrfs \ - --with-cryptsetup \ --with-gnu-ld \ --with-ncursesw \ --with-readline \ diff --git a/util-linux.changes b/util-linux.changes index 1d87301..77e478c 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Thu Apr 7 11:20:30 UTC 2022 - Alberto Planas Dominguez - -- Enable cryptsetup support - ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/util-linux.spec b/util-linux.spec index 4e4b065..ce493b4 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -86,7 +86,6 @@ BuildRequires: binutils-devel BuildRequires: fdupes BuildRequires: gettext-devel BuildRequires: libcap-ng-devel -BuildRequires: libcryptsetup-devel # It should be %%if %%{defined no_config}, but OBS cannot handle it: BuildRequires: libeconf-devel BuildRequires: libselinux-devel @@ -557,7 +556,6 @@ AUTOPOINT=true GTKDOCIZE=true autoreconf -vfi --disable-makeinstall-setuid \ --with-audit \ --with-btrfs \ - --with-cryptsetup \ --with-gnu-ld \ --with-ncursesw \ --with-readline \ From 02350c5c986950ef4683d8ef5885ffbc7e48ec25ea7e7223dc2a26414c0ad777 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 21 Jul 2022 17:46:13 +0000 Subject: [PATCH 3/3] Accepting request 990516 from home:Andreas_Schwab:glibc:rebuild - linux-fs.patch: Fix conflict between and OBS-URL: https://build.opensuse.org/request/show/990516 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=466 --- linux-fs.patch | 54 ++++++++++++++++++++++++++++++++++++++ python3-libmount.changes | 5 ++++ python3-libmount.spec | 2 ++ util-linux-systemd.changes | 5 ++++ util-linux-systemd.spec | 2 ++ util-linux.changes | 5 ++++ util-linux.spec | 2 ++ 7 files changed, 75 insertions(+) create mode 100644 linux-fs.patch diff --git a/linux-fs.patch b/linux-fs.patch new file mode 100644 index 0000000..273183d --- /dev/null +++ b/linux-fs.patch @@ -0,0 +1,54 @@ +From 89c7c6ea6ef12722eac31c18b8fa6fbcf429525b Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Wed, 20 Jul 2022 16:55:02 +0200 +Subject: [PATCH] sulogin: fix includes + +* support --enable-sulogin-emergency-mount on Linux only + +* don't include unnecessary linux/magic.h + +* don't include linux/fs.h, sys/mount.h should be enough, otherwise + define a fallback for MS_RELATIME + +Reported-by: Andreas Schwab +Signed-off-by: Karel Zak +--- + configure.ac | 2 ++ + login-utils/sulogin-consoles.c | 7 ++++--- + 2 files changed, 6 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 824e8bbd2..51deeecd4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2615,6 +2615,8 @@ AC_ARG_ENABLE([sulogin-emergency-mount], + ) + + AS_IF([test "x$enable_sulogin_emergency_mount" = xyes], [ ++ AS_IF([test "x$linux_os" = xyes], [ ], ++ [AC_MSG_ERROR([--enable-sulogin-emergency-mount selected for non-linux system])]) + AC_DEFINE([USE_SULOGIN_EMERGENCY_MOUNT], [1], + [Should sulogin use an emergency mount of /dev and /proc?]) + ]) +diff --git a/login-utils/sulogin-consoles.c b/login-utils/sulogin-consoles.c +index 9ae4b2eba..9ae525556 100644 +--- a/login-utils/sulogin-consoles.c ++++ b/login-utils/sulogin-consoles.c +@@ -41,10 +41,11 @@ + #include + #include + +-#ifdef USE_SULOGIN_EMERGENCY_MOUNT ++#if defined(USE_SULOGIN_EMERGENCY_MOUNT) + # include +-# include +-# include ++# ifndef MS_RELATIME ++# define MS_RELATIME (1<<21) ++# endif + # ifndef MNT_DETACH + # define MNT_DETACH 2 + # endif +-- +2.37.1 + diff --git a/python3-libmount.changes b/python3-libmount.changes index 77e478c..f164c07 100644 --- a/python3-libmount.changes +++ b/python3-libmount.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 21 08:00:59 UTC 2022 - Andreas Schwab + +- linux-fs.patch: Fix conflict between and + ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/python3-libmount.spec b/python3-libmount.spec index 949a7b1..d74d16a 100644 --- a/python3-libmount.spec +++ b/python3-libmount.spec @@ -151,6 +151,8 @@ Patch2: Add-documentation-on-blacklisted-modules-to-mount-8-.patch Patch3: util-linux-sulogin4bsc1175514.patch # PATCH-FIX-SUSE util-linux-bash-completion-su-chsh-l.patch bsc1172427 -- Fix "su -s" bash completion. Patch4: util-linux-bash-completion-su-chsh-l.patch +# PATH-FIX-UPSTREAM linux-fs.patch -- sulogin: fix includes +Patch5: linux-fs.patch # %if %build_util_linux Supplements: filesystem(minix) diff --git a/util-linux-systemd.changes b/util-linux-systemd.changes index 77e478c..f164c07 100644 --- a/util-linux-systemd.changes +++ b/util-linux-systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 21 08:00:59 UTC 2022 - Andreas Schwab + +- linux-fs.patch: Fix conflict between and + ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/util-linux-systemd.spec b/util-linux-systemd.spec index 78bfe0a..513c2de 100644 --- a/util-linux-systemd.spec +++ b/util-linux-systemd.spec @@ -151,6 +151,8 @@ Patch2: Add-documentation-on-blacklisted-modules-to-mount-8-.patch Patch3: util-linux-sulogin4bsc1175514.patch # PATCH-FIX-SUSE util-linux-bash-completion-su-chsh-l.patch bsc1172427 -- Fix "su -s" bash completion. Patch4: util-linux-bash-completion-su-chsh-l.patch +# PATH-FIX-UPSTREAM linux-fs.patch -- sulogin: fix includes +Patch5: linux-fs.patch # %if %build_util_linux Supplements: filesystem(minix) diff --git a/util-linux.changes b/util-linux.changes index 77e478c..f164c07 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 21 08:00:59 UTC 2022 - Andreas Schwab + +- linux-fs.patch: Fix conflict between and + ------------------------------------------------------------------- Tue Mar 8 02:00:05 UTC 2022 - Stanislav Brabec diff --git a/util-linux.spec b/util-linux.spec index ce493b4..dc6c4b7 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -151,6 +151,8 @@ Patch2: Add-documentation-on-blacklisted-modules-to-mount-8-.patch Patch3: util-linux-sulogin4bsc1175514.patch # PATCH-FIX-SUSE util-linux-bash-completion-su-chsh-l.patch bsc1172427 -- Fix "su -s" bash completion. Patch4: util-linux-bash-completion-su-chsh-l.patch +# PATH-FIX-UPSTREAM linux-fs.patch -- sulogin: fix includes +Patch5: linux-fs.patch # %if %build_util_linux Supplements: filesystem(minix)