git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitaa696e8a6380901ea3d531da2e9f891438c55f39 authorEric Wolf <eric@boese-wolf.eu> dateFri 9 Aug 2019, 13:43 (7 years ago) parent3ea6859
1 file changed+1−1
pkgs/tools/backup/bacula/default.nix+1−1
pkgs/tools/backup/bacula/default.nix+1−1
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
1818 "--with-logdir=/var/log/bacula"
1919 "--with-working-dir=/var/lib/bacula"
2020 "--mandir=\${out}/share/man"
21− ];
21+ ] ++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "ac_cv_func_setpgrp_void=yes";
2222
2323 installFlags = [
2424 "logdir=\${out}/logdir"