···5656 sed 's/^\(s[ug]idperms\) = [0-9]755/\1 = 0755/' -i src/Makefile.am
5757 '';
58585959- # Assume System V `setpgrp (void)', which is the default on GNU variants
6060- # (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
5959+ # `AC_FUNC_SETPGRP' is not cross-compilation capable.
6160 preConfigure = ''
6262- export ac_cv_func_setpgrp_void=yes
6161+ export ac_cv_func_setpgrp_void=${if stdenv.hostPlatform.isBSD then "no" else "yes"}
6362 export shadow_cv_logdir=/var/log
6463 '';
6564
···3838 lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
3939 # For cross builds, provide answers to the configure time tests.
4040 # These answers are valid on x86_64-linux and aarch64-linux.
4141+ # TODO: provide all valid answers for BSD.
4142 "ac_cv_file__dev_zero=yes"
4242- "ac_cv_func_setpgrp_void=yes"
4343+ "ac_cv_func_setpgrp_void=${if stdenv.hostPlatform.isBSD then "no" else "yes"}"
4344 "apr_cv_tcp_nodelay_with_cork=yes"
4445 "ac_cv_define_PTHREAD_PROCESS_SHARED=yes"
4546 "apr_cv_process_shared_works=yes"
+3-1
pkgs/tools/backup/bacula/default.nix
···5656 "--with-working-dir=/var/lib/bacula"
5757 "--mandir=\${out}/share/man"
5858 ]
5959- ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "ac_cv_func_setpgrp_void=yes"
5959+ ++
6060+ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform)
6161+ "ac_cv_func_setpgrp_void=${if stdenv.hostPlatform.isBSD then "no" else "yes"}"
6062 ++ lib.optionals stdenv.hostPlatform.isDarwin [
6163 # bacula’s `configure` script fails to detect CoreFoundation correctly,
6264 # but these symbols are available in the nixpkgs CoreFoundation framework.