[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51067] [PATCH] gnu: Add traditional vi (ex-vi)
From: |
Maxime Devos |
Subject: |
[bug#51067] [PATCH] gnu: Add traditional vi (ex-vi) |
Date: |
Thu, 07 Oct 2021 10:37:24 +0200 |
User-agent: |
Evolution 3.34.2 |
Foo Chuan Wei schreef op do 07-10-2021 om 05:46 [+0000]:
> * gnu/packages/text-editors.scm (ex-vi): New public variable.
> ---
> gnu/packages/patches/ex-vi-makefile.patch | 53 +++++++++++++++++++++++
> gnu/packages/text-editors.scm | 30 +++++++++++++
> 2 files changed, 83 insertions(+)
> create mode 100644 gnu/packages/patches/ex-vi-makefile.patch
>
> diff --git a/gnu/packages/patches/ex-vi-makefile.patch
> b/gnu/packages/patches/ex-vi-makefile.patch
> new file mode 100644
> index 0000000000..d835eb981d
> --- /dev/null
> +++ b/gnu/packages/patches/ex-vi-makefile.patch
> @@ -0,0 +1,53 @@
> +diff -ur ex-050325-orig/Makefile ex-050325/Makefile
> +--- ex-050325-orig/Makefile
> ++++ ex-050325/Makefile
> +@@ -75,11 +75,13 @@
> + # @(#)Makefile 1.50 (gritter) 2/20/05
> + #
> +
> ++CC = gcc
That won't work when cross-compiling. When cross-compiling, it
should be set to something like ARCHITECTURE-linux-gnu-gcc instead.
I'd suggest setting ,(string-append "CC=" (cc-for-target)) in #:make-flags
instead.
To test cross-compilation, you can try
‘make && ./pre-inst-env guix build ex-vi --target=aarch64-linux-gnu’.
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part