summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-05-24 16:13:24 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-05-24 22:47:44 +0000
commit8a4a2c925f92fae1fffdb815b3e7591656668369 (patch)
tree3a805c4bb87a7cb920d60d594164bdf57d5ba129
parentMerge pull request #174313 from NixOS/backport-174249-to-release-21.11 (diff)
downloadnixpkgs-8a4a2c925f92fae1fffdb815b3e7591656668369.tar.gz
e2fsprogs: apply patch unconditionally
Commit 49d0a5afd mistakenly inverted when to apply the patch. Maybe it's not needed anymore, as pkgsMusl.e2fsprogs succeeded for me even without it, but it looks harmless and better not have it inversed. This way we also don't cause a mass rebuild :-) (cherry picked from commit f0089877040aa2d97814b9a3f261737115769dd4)
-rw-r--r--pkgs/tools/filesystems/e2fsprogs/default.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/tools/filesystems/e2fsprogs/default.nix b/pkgs/tools/filesystems/e2fsprogs/default.nix
index 18ffda0af5d2..1edaea4d4442 100644
--- a/pkgs/tools/filesystems/e2fsprogs/default.nix
+++ b/pkgs/tools/filesystems/e2fsprogs/default.nix
@@ -17,15 +17,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config texinfo ];
buildInputs = [ libuuid gettext ];
- # Only use glibc's __GNUC_PREREQ(X,Y) (checks if compiler is gcc version >= X.Y) when using glibc
patches = [
(fetchpatch {
name = "CVE-2022-1304.patch";
url = "https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/patch/?id=ab51d587bb9b229b1fade1afd02e1574c1ba5c76";
sha256 = "sha256-YEEow34/81NBOc6F6FS6i505FCQ7GHeIz0a0qWNs7Fg=";
})
- ] ++ lib.optionals (stdenv.hostPlatform.libc == "glibc") [
- (fetchpatch {
+ (fetchpatch { # avoid using missing __GNUC_PREREQ(X,Y)
url = "https://raw.githubusercontent.com/void-linux/void-packages/9583597eb3e6e6b33f61dbc615d511ce030bc443/srcpkgs/e2fsprogs/patches/fix-glibcism.patch";
sha256 = "1gfcsr0i3q8q2f0lqza8na0iy4l4p3cbii51ds6zmj0y4hz2dwhb";
excludes = [ "lib/ext2fs/hashmap.h" ];