[Pkg-pascal-devel] Bug#963553: fpc: Please enable build on sparc64

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Tue Jun 23 18:43:49 BST 2020


Source: fpc
Version: 3.2.0~rc1+dfsg-1
Severity: normal
User: debian-sparc at lists.debian.org
Usertags: sparc64

Hi!

With version 3.2.0, FreePascal gained support for sparc64.

Can you enable the platform in debian/rules?

See the attached patch.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-------------- next part --------------
>From 8b791d2c87098322c5d2718ab0df933061243d30 Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>
Date: Tue, 23 Jun 2020 19:42:06 +0200
Subject: [PATCH] Enable building on sparc64

---
 debian/fp-units-gfx.install.in  | 4 ++--
 debian/fp-units-misc.install.in | 2 +-
 debian/fp-utils.install         | 0
 debian/rules                    | 5 ++++-
 4 files changed, 7 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 debian/fp-utils.install

diff --git a/debian/fp-units-gfx.install.in b/debian/fp-units-gfx.install.in
index 77b0ece0..e255cdae 100644
--- a/debian/fp-units-gfx.install.in
+++ b/debian/fp-units-gfx.install.in
@@ -1,12 +1,12 @@
 #! /usr/bin/dh-exec
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/ggi*
-usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/graph*        [!linux-arm64 !linux-armel !linux-armhf !linux-m68k !linux-mips !linux-mipsel !linux-ppc64]
+usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/graph*        [!linux-arm64 !linux-armel !linux-armhf !linux-m68k !linux-mips !linux-mipsel !linux-ppc64 !linux-sparc64]
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/hermes*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/imagemagick*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libfontconfig*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libgd*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libpng*
-usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/opencl*       [!freebsd-any !linux-arm64 !linux-armel !linux-armhf !linux-m68k !linux-mips !linux-mipsel !linux-powerpc !linux-ppc64]
+usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/opencl*       [!freebsd-any !linux-arm64 !linux-armel !linux-armhf !linux-m68k !linux-mips !linux-mipsel !linux-powerpc !linux-ppc64 !linux-sparc64]
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/opengl*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/opengles*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/ptc*          [!freebsd-any]
diff --git a/debian/fp-units-misc.install.in b/debian/fp-units-misc.install.in
index f625d61e..a58e1e5d 100644
--- a/debian/fp-units-misc.install.in
+++ b/debian/fp-units-misc.install.in
@@ -10,7 +10,7 @@ usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/fppkg*        [!freebsd-any]
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/gdbint*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/iconvenc*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/jni*
-usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libffi*
+usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libffi*       [!linux-sparc64]
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libgc*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libmagic*
 usr/lib/${DEB_HOST_MULTIARCH}/fpc/*/*/*/libsee*       [!freebsd-any]
diff --git a/debian/fp-utils.install b/debian/fp-utils.install
old mode 100644
new mode 100755
diff --git a/debian/rules b/debian/rules
index d40635e8..16bcbffa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -59,6 +59,9 @@ endif
 ifeq ($(CPU_TARGET),sparc)
 PPSUF=sparc
 endif
+ifeq ($(CPU_TARGET),sparc64)
+PPSUF=sparc64
+endif
 ifeq ($(CPU_TARGET),mips)
 PPSUF=mips
 endif
@@ -399,7 +402,7 @@ install-man: install-man-stamp
 install-man-stamp:
 	# Generate man pages for newly supported arches
 	cd install/man/man1 ; \
-		for arch in 68k a64 mips mipsel ppc64 ; do \
+		for arch in 68k a64 mips mipsel ppc64 sparc64; do \
 			cp -p ppcx64.1 ppc$${arch}.1 ; \
 			sed --in-place s/x64/$${arch}/ ppc$${arch}.1 ; \
 		done
-- 
2.27.0.rc0



More information about the Pkg-pascal-devel mailing list