libieee1284: fix building for musl with GCC 14

The Void patch changes more than is now necssary for musl, and one of
those things is that it stops including <sys/io.h>, causing the ioperm
function to be implicitly declared.  This will be a hard error with
GCC 14.  The Gentoo patch only changes the one thing currently needed
for musl.
This commit is contained in:
Alyssa Ross 2024-09-14 10:00:14 +02:00
parent 0ba494f770
commit 9030f18586
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch
{ lib, stdenv, fetchFromGitHub, fetchurl
, autoconf, automake, libtool, xmlto, docbook_xml_dtd_412, docbook_xsl
}:
@ -14,10 +14,10 @@ stdenv.mkDerivation rec {
};
patches = [
# Fix build on Musl.
(fetchpatch {
url = "https://raw.githubusercontent.com/void-linux/void-packages/861ac185a6b60134292ff93d40e40b5391d0aa8e/srcpkgs/libieee1284/patches/musl.patch";
sha256 = "03xivd6z7m51i5brlmzs60pjrlqyr4561qlnh182wa7rrm01x5y6";
(fetchurl {
name = "musl.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-libs/libieee1284/files/libieee1284-0.2.11-don-t-blindly-assume-outb_p-to-be-available.patch";
hash = "sha256-sNu0OPBMa9GIwSu754noateF4FZC14f+8YRgYUl13KQ=";
})
];