Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802717 - >=dev-lang/fpc-3.2.0: please keyword for arm64 (was: dev-lang/fpc support arm64 since v3.2.0)
Summary: >=dev-lang/fpc-3.2.0: please keyword for arm64 (was: dev-lang/fpc support arm...
Status: RESOLVED DUPLICATE of bug 817899
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal enhancement (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-18 08:02 UTC by Cănărău Constantin
Modified: 2021-10-17 01:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cănărău Constantin 2021-07-18 08:02:40 UTC
Free Pascal support arm64 architecture since version 3.2.0
The patch is trivial:

--- gentoo/dev-lang/fpc/fpc-3.2.2.ebuild	2021-07-01 01:09:39.000000000 +0300
+++ pi/dev-lang/fpc/fpc-3.2.2.ebuild	2021-07-18 10:59:09.368572368 +0300
@@ -11,12 +11,13 @@
 	mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz
 	amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar )
 	x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar )
+	arm64? ( mirror://sourceforge/freepascal/${P}.aarch64-linux.tar )
 	doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz )"
 S="${WORKDIR}/fpcbuild-${PV}/fpcsrc"
 
 LICENSE="GPL-2 LGPL-2.1-with-linking-exception"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~arm64"
 IUSE="doc source"
 RESTRICT="strip" #269221
 
@@ -47,6 +48,10 @@
 			FPC_ARCH="i386"
 			PV_BIN="${PV}"
 			;;
+		arm64)
+			FPC_ARCH="aarch64"
+			PV_BIN="${PV}"
+			;;
 		*)
 			die "This ebuild doesn't support ${ARCH}" ;;
 	esac
@@ -79,6 +84,10 @@
 			FPC_ARCH="386"
 			FPC_PARCH="i386"
 			;;
+		arm64)
+			FPC_ARCH="a64"
+			FPC_PARCH="aarch64"
+			;;
 		*)
 			die "This ebuild doesn't support ${ARCH}" ;;
 	esac

Most likely support for arm 32 bits is very simple, too, but I do not have a Gentoo 32 bits to test.
It is tested on Raspberry Pi 4B, tests on others arm platforms are welcome.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-17 01:04:34 UTC
Thanks!

*** This bug has been marked as a duplicate of bug 817899 ***