[Pkg-pascal-devel] Bug#863747: fpc: Please add mips as CPU_TARGET in debian/rules

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Tue May 30 21:58:34 UTC 2017


Source: fpc
Version: 3.0.0+dfsg-11
Severity: normal
Tags: patch
User: debian-mips at lists.debian.org
Usertags: mips

Hello!

In order for src:fpc to build on mips, the architecture needs to be added
to the list of CPU targets in debian/rules. This is necessary because the
resulting binary for the portable Pascal compiler is ppc$CPU and without
adding mips to the list, the rules file will search for "ppc" instead of
"ppcmips".

The change itself is trivial:

diff -Nru old/fpc-3.0.2+dfsg/debian/rules new/fpc-3.0.2+dfsg/debian/rules
--- old/fpc-3.0.2+dfsg/debian/rules     2017-04-09 11:44:58.000000000 +0200
+++ new/fpc-3.0.2+dfsg/debian/rules     2017-05-30 23:52:09.875391597 +0200
@@ -57,6 +57,9 @@
 ifeq ($(CPU_TARGET),sparc)
 PPSUF=sparc
 endif
+ifeq ($(CPU_TARGET),mips)
+PPSUF=mips
+endif
 
 ifneq ($(CPU_SOURCE),$(CPU_TARGET))
 PPPRE=ppcross

Could you apply this change for the next upload?

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 --------------
diff -Nru old/fpc-3.0.2+dfsg/debian/rules new/fpc-3.0.2+dfsg/debian/rules
--- old/fpc-3.0.2+dfsg/debian/rules	2017-04-09 11:44:58.000000000 +0200
+++ new/fpc-3.0.2+dfsg/debian/rules	2017-05-30 23:52:09.875391597 +0200
@@ -57,6 +57,9 @@
 ifeq ($(CPU_TARGET),sparc)
 PPSUF=sparc
 endif
+ifeq ($(CPU_TARGET),mips)
+PPSUF=mips
+endif
 
 ifneq ($(CPU_SOURCE),$(CPU_TARGET))
 PPPRE=ppcross


More information about the Pkg-pascal-devel mailing list