libAfterImage: fix binutils-2.36 compatibility (#147617)

Pull patch pending upstream inclusion.
This commit is contained in:
Sergei Trofimovich 2021-11-28 00:35:27 +00:00 committed by GitHub
parent b9d33a0c16
commit 1561c366ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,16 @@ stdenv.mkDerivation {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libafterimage/files/libafterimage-makefile.in.patch?id=4aa4fca00611b0b3a4007870da43cc5fd63f76c4";
sha256 = "1n6fniz6dldms615046yhc4mlg9gb53y4yfia8wfz6szgq5zicj4";
})
# Fix build failure against binutils-2.36:
# https://sourceforge.net/p/afterstep/bugs/5/
(fetchpatch {
name = "binutils-2.36.patch";
url = "https://sourceforge.net/p/afterstep/bugs/5/attachment/libafterimage-binutils-2.36-support.patch";
sha256 = "1cfgm2ffwlsmhvvfmrxlglddaigr99k88d5xqva9pkl3mmzy3jym";
# workaround '-p0' patchflags below.
stripLen = 1;
})
];
patchFlags = [ "-p0" ];