Am Freitag, dem 24.06.2022 um 07:04 +0100 schrieb (:
Toggle quote (82 lines)
> * gnu/packages/c.scm (qbe): Update to 1.0.
> gnu/packages/c.scm | 72 ++++++++++++++++++++++------------------------
> 1 file changed, 35 insertions(+), 37 deletions(-)
> diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
> index 3e49539473..2dc8adb895 100644
> --- a/gnu/packages/c.scm
> +++ b/gnu/packages/c.scm
> @@ -147,44 +147,42 @@ (define-public pcc
> (license (list license:bsd-2 license:bsd-3))))
> - (let ((commit "2caa26e388b1c904d2f12fb09f84df7e761d8331")
> - (version (git-version "0.0" revision commit))
> - (url "git://c9x.me/qbe")
> - (file-name (git-file-name name version))
> "1gv03ym0gqrl4wkbhysa82025xwrkr1fg44z814b6vnggwlqgljc"))))
> - (build-system gnu-build-system)
> - #~(list (string-append "CC=" #$(cc-for-target))
> - (string-append "PREFIX=" #$output))
> - #~(modify-phases %standard-phases
> - (add-after 'unpack 'allow-cross-compilation
> - (substitute* "Makefile"
> - (("`uname -m`") #$(or (%current-target-system)
> - (%current-system))))))
> - (add-after 'allow-cross-compilation 'use-$CC-for-
> - (substitute* "tools/test.sh"
> - (("cc=\"cc -no-pie\"") "cc=\"${CC} -no-
> - (delete 'configure))))
> - (supported-systems (list "x86_64-linux" "aarch64-linux"
> - (synopsis "Simple compiler backend")
> - "QBE is a small compiler backend using an SSA-based
> + (url "git://c9x.me/qbe")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> "0qx4a3fjjrp2m4dsn19rpbjf89k9w7w7l09s96jx8vv15vzsdgis"))))
> + (build-system gnu-build-system)
> + #~(list (string-append "CC=" #$(cc-for-target))
> + (string-append "PREFIX=" #$output))
> + #~(modify-phases %standard-phases
> + (add-after 'unpack 'allow-cross-compilation
> + (substitute* "Makefile"
> + (("`uname -m`") #$(or (%current-target-system)
> + (%current-system))))))
> + (add-after 'allow-cross-compilation 'use-$CC-for-tests
> + (substitute* "tools/test.sh"
> + (("cc=\"cc -no-pie\"") "cc=\"${CC} -no-pie\""))))
I'm pretty sure you can drop this phase as of [1]. Nice to know that
Gentoo folk have our back.