--- Begin Message ---
Subject: |
[PATCH]: gnu: vpnc: Fix cross-compilation. |
Date: |
Mon, 27 Jun 2022 10:52:53 +0000 |
Fix cross-compilation for `vpnc'.
The error was because the `Makefile' tried to execute the resulting binary and
failed as a result. This is done to generate the manpage.
The solution I found was to compile twice the binary, one for the host and the
other for the target, this way the manpage is generated and installed first and
the binary for the target is built later. When not cross-compiling this is not
done.
The error can be seen by executing:
guix build vpnc \
--target=aarch64-linux-gnu
I'm not entirely sure that I've made a correct git message, so feel free to
modify it if doesn't match the standards.
—
Jean-Pierre De Jesus DIAZ
0001-gnu-vpnc-Fix-cross-compilation.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#56253: [PATCH]: gnu: vpnc: Fix cross-compilation. |
Date: |
Mon, 04 Jul 2022 12:28:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hi,
Jean Pierre De Jesus DIAZ <me@jeandudey.tech> skribis:
> From 3d3cb006c249a303c59300f8760e7f7b103b1037 Mon Sep 17 00:00:00 2001
> Message-Id:
> <3d3cb006c249a303c59300f8760e7f7b103b1037.1656501265.git.me@jeandudey.tech>
> From: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
> Date: Wed, 29 Jun 2022 12:51:55 +0200
> Subject: [PATCH 1/2] gnu: vpnc: Fix cross-compilation.
>
> * gnu/packages/vpn.scm (vpnc): Fix cross-compilation.
> [native-inputs]: Add conditional input of `this-package' (vpnc)
> to reuse the man page and add `pkg-config'.
> [arguments]: Use G-Expressions.
> [arguments]: Make use of `make-flags' instead of using substitutions.
> [arguments]: Remove unneeded deletion of `configure'.
> [arguments]: Use `pkg-config' to search for libgcrypt.
[...]
> From d94babd41579d19d9cbbb2cca2285e0f3c8c1e77 Mon Sep 17 00:00:00 2001
> Message-Id:
> <d94babd41579d19d9cbbb2cca2285e0f3c8c1e77.1656501265.git.me@jeandudey.tech>
> In-Reply-To:
> <3d3cb006c249a303c59300f8760e7f7b103b1037.1656501265.git.me@jeandudey.tech>
> References:
> <3d3cb006c249a303c59300f8760e7f7b103b1037.1656501265.git.me@jeandudey.tech>
> From: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
> Date: Wed, 29 Jun 2022 12:57:02 +0200
> Subject: [PATCH 2/2] gnu: vpnc: Add bsd-2 license.
>
> * gnu/packages/vpn.scm (vpnc)[license]: Add bsd-2.
Applied, thanks, and thanks Maxime for reviewing!
Ludo’.
--- End Message ---