Bug#863747: fpc: Please add mips as CPU_TARGET in debian/rules

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <149618151408.21348.13056908574517407528.reportbug__8264.7553798326$1496181799$gmane$org@stretch64.physik.fu-berlin.de>
Source: fpc
Version: 3.0.0+dfsg-11
Severity: normal
Tags: patch
User: [email protected]
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 - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
fpc-add-mips-as-CPU_TARGET.diff (text/plain, 384 B)
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.