Merge pull request #42568 from dtzWill/fix/udisks2-musl-2.7.6-extend-glibc-fix-to-musl-too

udisks2: revive musl patching
This commit is contained in:
Will Dietz 2018-06-25 10:26:00 -05:00 committed by GitHub
commit a1fce4db96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,12 @@ in stdenv.mkDerivation rec {
gtk-doc libxslt docbook_xml_dtd_412 docbook_xml_dtd_43 docbook_xsl gtk-doc libxslt docbook_xml_dtd_412 docbook_xml_dtd_43 docbook_xsl
]; ];
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace udisks/udisksclient.c \
--replace 'defined( __GNUC_PREREQ)' 1 \
--replace '__GNUC_PREREQ(4,6)' 1
'';
buildInputs = [ buildInputs = [
expat libgudev libblockdev acl systemd glib libatasmart polkit expat libgudev libblockdev acl systemd glib libatasmart polkit
]; ];