Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/shadow/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ let make = import "../make/build.ncl" in
let acl = import "../acl/build.ncl" in
let attr = import "../attr/build.ncl" in
let libxcrypt = import "../libxcrypt/build.ncl" in
let pkgconf = import "../pkgconf/build.ncl" in
let toolchain = import "../toolchain/build.ncl" in

let version = "4.18.0" in
let version = "4.19.4" in
{
name = "shadow",
build_deps = [
{ file = "build.sh" } | Local,
{
url = "gs://minimal-staging-archives/shadow-%{version}.tar.xz",
sha256 = "add4604d3bc410344433122a819ee4154b79dd8316a56298c60417e637c07608",
sha256 = "ce57a313e315a0a7cb04a8f50cc20753e994e487bbe9b78a2a824ca75cb486c0",
} | Source,
base,
make,
pkgconf,
toolchain,
],
runtime_deps = [
Expand Down
4 changes: 4 additions & 0 deletions packages/shadow/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ export CFLAGS="$MARCH -O2 -pipe -gno-record-gcc-switches -ffile-prefix-map=$(pwd
export LDFLAGS="-Wl,--build-id=none"
export CXXFLAGS="${CFLAGS}"

# shadow 4.19.x enables logind integration by default and hard-fails configure
# when libsystemd is absent. minimal ships no systemd, so turn it off explicitly
# (4.18.0 had no such probe -- it arrived with the 4.19 bump).
./configure --sysconfdir=/etc \
--disable-static \
--disable-logind \
--with-{b,yes}crypt \
--without-libbsd \
--with-group-name-max-length=32
Expand Down