ti-rpc: patch to fix w/musl
This commit is contained in:
parent
6c2e8b36cf
commit
4a5aa55d73
@ -1,4 +1,4 @@
|
||||
{ fetchurl, stdenv, autoreconfHook, libkrb5 }:
|
||||
{ fetchurl, fetchpatch, stdenv, autoreconfHook, libkrb5 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libtirpc-1.0.2";
|
||||
@ -8,6 +8,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1xchbxy0xql7yl7z4n1icj8r7dmly46i22fvm00vdjq64zlmqg3j";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl
|
||||
(fetchpatch {
|
||||
url = "https://raw.githubusercontent.com/openembedded/openembedded-core/2be873301420ec6ca2c70d899b7c49a7e2b0954d/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch";
|
||||
sha256 = "1jmbn0j2bnjp0j9z5vzz5xiwyv3kd28w5pixbqsy2lz6q8nii7cf";
|
||||
});
|
||||
|
||||
postPatch = ''
|
||||
sed '1i#include <stdint.h>' -i src/xdr_sizeof.c
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user