Skip to content
Browse files

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:


    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.
  • Loading branch information...
typetetris committed Aug 9, 2019
1 parent bae6ce3 commit 7f50e9254cf1ac0cb8cd0059dd89a87e0f334b41
Showing with 3 additions and 1 deletion.
  1. +3 −1 pkgs/tools/backup/bacula/default.nix
@@ -18,7 +18,9 @@ stdenv.mkDerivation rec {
] ++ (if stdenv.buildPlatform != stdenv.hostPlatform then [
] else []);

installFlags = [

0 comments on commit 7f50e92

Please sign in to comment.
You can’t perform that action at this time.