Skip to content

Commit

Permalink
gnused: Fix cross build after upgrade to 4.3.0
Browse files Browse the repository at this point in the history
Fixes:
````
  GEN      doc/sed.1
help2man: can't get `--help' info from sed/sed
make[2]: *** [Makefile:5775: doc/sed.1] Error 126
make[2]: Leaving directory '/tmp/nix-build-gnused-4.3-arm-linux-gnueabihf.drv-0/sed-4.3'
make[1]: *** [Makefile:3024: all-recursive] Error 1
make[1]: Leaving directory '/tmp/nix-build-gnused-4.3-arm-linux-gnueabihf.drv-0/sed-4.3'
make: *** [Makefile:2156: all] Error 2
````

http://hydra.nixos.org/build/46051086/nixlog/11/raw
  • Loading branch information
dezgeg committed Jan 14, 2017
1 parent 4008370 commit e00c61f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/tools/text/gnused/default.nix
Expand Up @@ -14,6 +14,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ perl ];
preConfigure = "patchShebangs ./build-aux/help2man";

crossAttrs = {
# The tarball ships with a fine prebuilt manpage, but the make rules try to rebuild it,
# which won't work when cross compiling as help2man needs to execute the binaries.
postConfigure = ''
sed -i Makefile -e 's|doc/sed\.1:|dummy:|'
'';
};

meta = {
homepage = http://www.gnu.org/software/sed/;
description = "GNU sed, a batch stream editor";
Expand Down

0 comments on commit e00c61f

Please sign in to comment.