GNU bug report logs -
#62432
[PATCH] gnu: libicns: fix riscv64 cross-build.
Previous Next
Reported by: Z572 <873216071 <at> qq.com>
Date: Sat, 25 Mar 2023 04:52:02 UTC
Severity: normal
Tags: patch
Done: Efraim Flashner <efraim <at> flashner.co.il>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 62432 <at> debbugs.gnu.org (full text, mbox):
Z572 <873216071 <at> qq.com> writes:
> * gnu/packages/image.scm (libicns): fix riscv64 cross-build.
Hello, this message is already in the commit message title, So I think
there is no need to repeat it here. Also look in the guix commit log,
I think it should be 'gnu: libicns: Fix cross-compilation for riscv64'.
> + (arguments (if (target-riscv64?)
> + (list #:phases
> + #~(modify-phases %standard-phases
> + (add-after 'unpack 'update-config-scripts
> + (lambda* (#:key native-inputs inputs #:allow-other-keys)
> + (for-each (lambda (file)
> + (install-file
> + (search-input-file
> + (or native-inputs inputs)
> + (string-append "/bin/" file)) "."))
> + '("config.guess" "config.sub"))))) )
> + '()))
> + (native-inputs
> + (if (target-riscv64?)
> + (list config)
> + '()))
This updates 'config.guess' and 'config.sub' in a package to fix
cross-compilation for riscv64 seems like a common practice (eg: also in
your patches #62433, #62544). How about make a procedure for it to
save some typing? It could be:
```
(define (autotools-config-updated-package p)
"Return package P with @command{config.guess} and
@command{config.sub} updated by the @code{config} package"
(package (inherit p)
...))
```
Which could go into (guix transformations).
This bug report was last modified 1 year and 356 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.