SHA256
3
0
forked from pool/shadow

- 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
This commit is contained in:
Michael Vetter 2023-08-17 10:17:53 +00:00 committed by Git OBS Bridge
parent 1108d9a8b3
commit 2745f98eaf
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Aug 17 10:14:14 UTC 2023 - Michael Vetter <mvetter@suse.com>
- 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 <mvetter@suse.com> Thu Aug 17 06:43:38 UTC 2023 - Michael Vetter <mvetter@suse.com>

View File

@ -53,8 +53,6 @@ BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: libacl-devel BuildRequires: libacl-devel
BuildRequires: libattr-devel BuildRequires: libattr-devel
# we need libbsd or glibc >= 2.38
BuildRequires: libbsd-devel
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: libsemanage-devel BuildRequires: libsemanage-devel
BuildRequires: libtool BuildRequires: libtool
@ -136,6 +134,7 @@ autoreconf -fvi
--with-nscd \ --with-nscd \
--with-selinux \ --with-selinux \
--without-libcrack \ --without-libcrack \
--without-libbsd \
--with-group-name-max-length=32 \ --with-group-name-max-length=32 \
--enable-vendordir=%{_distconfdir} --enable-vendordir=%{_distconfdir}
%make_build %make_build