summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorEric Wolf <eric@boese-wolf.eu>2019-08-09 13:43:13 +0200
committerEric Wolf <eric@boese-wolf.eu>2019-08-12 22:35:45 +0200
commitaa696e8a6380901ea3d531da2e9f891438c55f39 (patch)
treec0686e86c53547e1a177c6a7c825a02b86595ac7 /pkgs/tools/backup
parent3ea6859512736debc0f3c9456db6d98ad4134993 (diff)
downloadnixpkgs-aa696e8a6380901ea3d531da2e9f891438c55f39.tar
nixpkgs-aa696e8a6380901ea3d531da2e9f891438c55f39.tar.gz
nixpkgs-aa696e8a6380901ea3d531da2e9f891438c55f39.tar.bz2
nixpkgs-aa696e8a6380901ea3d531da2e9f891438c55f39.tar.lz
nixpkgs-aa696e8a6380901ea3d531da2e9f891438c55f39.tar.xz
nixpkgs-aa696e8a6380901ea3d531da2e9f891438c55f39.tar.zst
nixpkgs-aa696e8a6380901ea3d531da2e9f891438c55f39.zip
bacula: fix cross compiling for armv7l
got this error while cross compiling:

checking whether setpgrp takes no argument... configure: error: cannot
check setpgrp when cross compiling

autoconf manual says:

— Macro: AC_FUNC_SETPGRP

    If setpgrp takes no argument (the Posix version), define SETPGRP_VOID. Otherwise, it is the BSD version, which takes two process IDs as arguments. This macro does not check whether setpgrp exists at all; if you need to work in that situation, first call AC_CHECK_FUNC for setpgrp.

    The result of this macro is cached in the ac_cv_func_setpgrp_void variable.

    This macro is obsolescent, as current systems have a setpgrp whose signature conforms to Posix. New programs need not use this macro.

So override it with caching variable.
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/bacula/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/backup/bacula/default.nix b/pkgs/tools/backup/bacula/default.nix
index 02b37784eaa..e5e26169b74 100644
--- a/pkgs/tools/backup/bacula/default.nix
+++ b/pkgs/tools/backup/bacula/default.nix
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
     "--with-logdir=/var/log/bacula"
     "--with-working-dir=/var/lib/bacula"
     "--mandir=\${out}/share/man"
-  ];
+  ] ++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "ac_cv_func_setpgrp_void=yes";
 
   installFlags = [
     "logdir=\${out}/logdir"