From 2745f98eaf410450a67d76347e0e634380b73422894c4eec83f42c8b9b3a6676 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 17 Aug 2023 10:17:53 +0000 Subject: [PATCH] - Remove dependency on libbsd: On Tumbleweed we have glibc 2.38 already thus string functions like strlcpy will be present and won't be needed from libbsd. `readpassphrase()` is then the only function from libbsd not present. Upstream shadow has an in tree copy of it, that is used when the `--without-libbsd` flag is passed along. By relying on glibc 2.38 we don't need to add libbsd and libmd to our ring0 but can't easily upgrade on SLE. OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=153 --- shadow.changes | 12 ++++++++++++ shadow.spec | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/shadow.changes b/shadow.changes index 1805cde..8091866 100644 --- a/shadow.changes +++ b/shadow.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Aug 17 10:14:14 UTC 2023 - Michael Vetter + +- Remove dependency on libbsd: + On Tumbleweed we have glibc 2.38 already thus string functions + like strlcpy will be present and won't be needed from libbsd. + `readpassphrase()` is then the only function from libbsd not present. + Upstream shadow has an in tree copy of it, that is used when the + `--without-libbsd` flag is passed along. + By relying on glibc 2.38 we don't need to add libbsd and libmd + to our ring0 but can't easily upgrade on SLE. + ------------------------------------------------------------------- Thu Aug 17 06:43:38 UTC 2023 - Michael Vetter diff --git a/shadow.spec b/shadow.spec index fede1a6..3562d06 100644 --- a/shadow.spec +++ b/shadow.spec @@ -53,8 +53,6 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libacl-devel BuildRequires: libattr-devel -# we need libbsd or glibc >= 2.38 -BuildRequires: libbsd-devel BuildRequires: libselinux-devel BuildRequires: libsemanage-devel BuildRequires: libtool @@ -136,6 +134,7 @@ autoreconf -fvi --with-nscd \ --with-selinux \ --without-libcrack \ + --without-libbsd \ --with-group-name-max-length=32 \ --enable-vendordir=%{_distconfdir} %make_build