Skip to content

Commit fa8ec67

Browse files
committed
util-linux: 2.40.1 -> 2.39.4 (except 64-bit linux for now)
We're running into multiple issues, so let's be conservative. In particular, this commit should fix *-darwin builds. /cc PR #309805 as this is kind-of reverting it (partially for now)
1 parent 4edfd12 commit fa8ec67

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

pkgs/os-specific/linux/util-linux/default.nix

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,17 @@ let
2626
in
2727
stdenv.mkDerivation rec {
2828
pname = "util-linux" + lib.optionalString (!nlsSupport && !ncursesSupport && !systemdSupport) "-minimal";
29-
version = "2.40.1";
29+
version = if avoidRebuild then "2.40.1" else "2.39.4";
3030

3131
src = fetchurl {
3232
url = "mirror://kernel/linux/utils/util-linux/v${lib.versions.majorMinor version}/util-linux-${version}.tar.xz";
33-
hash = "sha256-WeZ2qlPMtEtsOfD/4BqPonSJHJG+8UdHUvrZJGHe8k8=";
33+
hash = if avoidRebuild
34+
then "sha256-WeZ2qlPMtEtsOfD/4BqPonSJHJG+8UdHUvrZJGHe8k8="
35+
else "sha256-bE+HI9r9QcOdk+y/FlCfyIwzzVvTJ3iArlodl6AU/Q4=";
3436
};
3537

3638
patches = [
3739
./rtcwake-search-PATH-for-shutdown.patch
38-
] ++ lib.optionals (!avoidRebuild) [
39-
# Backports of patches that hopefully fix an intermittent parallel
40-
# build failure.
41-
(fetchpatch {
42-
name = "pam_lastlog2:-drop-duplicate-assignment-pam_lastlog2_la_LDFLAGS.patch";
43-
url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/patch/?id=290748729dc3edf9ea1c680c8954441a5e367a44";
44-
hash = "sha256-Hi+SrT8UovZyCWf6Jc7s3dc6YLyfOfgqohOEnc7aJq4=";
45-
})
46-
(fetchpatch {
47-
name = "libuuid:-drop-duplicate-assignment-liuuid_la_LDFLAGS";
48-
url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/patch/?id=597e8b246ae31366514ead6cca240a09fe5e1528";
49-
hash = "sha256-QCx3MD/57x2tV1SlJ79EYyxafhaEH4UC+Dt24DA6P8I=";
50-
})
5140
];
5241

5342
# We separate some of the utilities into their own outputs. This
@@ -98,7 +87,6 @@ stdenv.mkDerivation rec {
9887
];
9988

10089
nativeBuildInputs = [ pkg-config installShellFiles ]
101-
++ lib.optionals (!avoidRebuild) [ autoreconfHook gtk-doc ]
10290
++ lib.optionals translateManpages [ po4a ];
10391

10492
buildInputs = [ zlib libxcrypt sqlite ]

0 commit comments

Comments
 (0)