opensmtpd: support cross compile (#170379)

* opensmtpd: support cross compile

* add comment to remember the linked PR

Co-authored-by: Léo Gaspard <leo@gaspard.io>
This commit is contained in:
squalus 2022-04-26 17:47:52 +00:00 committed by GitHub
parent 964f418d19
commit 1fbd921649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,13 @@
diff --git a/configure.ac b/configure.ac
index c215f3bf..f5aa25d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,7 +67,7 @@ AC_C_BIGENDIAN
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LIBTOOL
-AC_PATH_PROG([AR], [ar])
+AC_PATH_TOOL([AR], [ar])
AC_PATH_PROG([CAT], [cat])
AC_PATH_PROG([CHMOD], [chmod])
AC_PATH_PROG([CHOWN], [chown])

View file

@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
patches = [ patches = [
./proc_path.diff # TODO: upstream to OpenSMTPD, see https://github.com/NixOS/nixpkgs/issues/54045 ./proc_path.diff # TODO: upstream to OpenSMTPD, see https://github.com/NixOS/nixpkgs/issues/54045
./cross_fix.diff # TODO: remove when https://github.com/OpenSMTPD/OpenSMTPD/pull/1177 will have made it into a release
]; ];
# See https://github.com/OpenSMTPD/OpenSMTPD/issues/885 for the `sh bootstrap` # See https://github.com/OpenSMTPD/OpenSMTPD/issues/885 for the `sh bootstrap`