From 0c81679677d6bc8770e2eb53be2b1ae10210f8d2 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 22 May 2023 08:52:20 +0200 Subject: [PATCH] aportgen/binutils: set pmOS bugurl Alpine recently set the bugurl to the Alpine Linux issue tracker. When rewriting the APKBUILD for cross compiling in postmarketOS, change it to https://postmarketos.org/issues. Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/fe73f3a28c101cfbe0a41e55c8497520a6cfbdca Reviewed-by: Luca Weiss Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230522065220.2841-4-ollieparanoid@postmarketos.org%3E --- pmb/aportgen/binutils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pmb/aportgen/binutils.py b/pmb/aportgen/binutils.py index bdcc8e0d..571fb43a 100644 --- a/pmb/aportgen/binutils.py +++ b/pmb/aportgen/binutils.py @@ -19,10 +19,15 @@ def generate(args, pkgname): "pkgname": pkgname, } + replace_simple = { + "*--with-bugurl=*": "\t\t--with-bugurl=\"https://postmarketos.org/issues\" \\" + } + below_header = """ CTARGET_ARCH=""" + arch + """ CTARGET="$(arch_to_hostspec $CTARGET_ARCH)" """ pmb.aportgen.core.rewrite(args, pkgname, "main/binutils", fields, - "binutils", below_header=below_header) + "binutils", replace_simple=replace_simple, + below_header=below_header)