gnutar: patch out unsafe gettext calls on darwin
This commit is contained in:
parent
6e3642b89e
commit
7205c4fcf9
@ -10,6 +10,14 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
patches = stdenv.lib.optional stdenv.isDarwin ./gnutar-1.28-darwin.patch;
|
patches = stdenv.lib.optional stdenv.isDarwin ./gnutar-1.28-darwin.patch;
|
||||||
|
|
||||||
|
# gnutar tries to call into gettext between `fork` and `exec`,
|
||||||
|
# which is not safe on darwin.
|
||||||
|
# see http://article.gmane.org/gmane.os.macosx.fink.devel/21882
|
||||||
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace src/system.c --replace '_(' 'N_('
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
buildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
||||||
|
|
||||||
# May have some issues with root compilation because the bootstrap tool
|
# May have some issues with root compilation because the bootstrap tool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user