Comment 9 for bug 10768

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 7 Dec 2004 20:24:31 -0800
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: Re: inkscape: FTBFS on mips(el)

--iRjOs3ViPWHdlw/I
Content-Type: multipart/mixed; boundary="IbA9xpzOQlG26JSn"
Content-Disposition: inline

--IbA9xpzOQlG26JSn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

tags 283476 patch
thanks

Hello,

This bug is because inkscape is hitting a limit on the size of symbol tables
on these archs, and current versions of the toolchain error out such
circumstances (previous toolchain versions would silently truncate the
symbol table).

The attached patch switches inkscape's build from multigot symbol tables
(the default on mips and mipsel) to the more extensible xgot format.

Thanks,
--=20
Steve Langasek
postmodern programmer

--IbA9xpzOQlG26JSn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="inkscape-283476.diff"
Content-Transfer-Encoding: quoted-printable

diff -u inkscape-0.40/debian/changelog inkscape-0.40/debian/changelog
--- inkscape-0.40/debian/changelog
+++ inkscape-0.40/debian/changelog
@@ -1,3 +1,12 @@
+inkscape (0.40-1.1) unstable; urgency=3Dhigh
+
+ * Non-maintainer upload.
+ * High-urgency upload for sarge targetted RC bugfix.
+ * Build inkscape with -Wa,-xgot on mips, mipsel so that the linker can
+ handle the symbol tables correctly. Closes: #283476.
+
+ -- Steve Langasek <email address hidden> Mon, 6 Dec 2004 19:33:41 -0800
+
 inkscape (0.40-1) unstable; urgency=3Dlow
=20
   * New upstream version. changes to v. 0.39 include:
diff -u inkscape-0.40/debian/rules inkscape-0.40/debian/rules
--- inkscape-0.40/debian/rules
+++ inkscape-0.40/debian/rules
@@ -10,7 +10,7 @@
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE ?=3D $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE ?=3D $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
+DEB_HOST_ARCH ?=3D $(shell dpkg-architecture -qDEB_HOST_ARCH)
=20
 CFLAGS =3D -Wall -g
 CXXFLAGS =3D -Wall -g
@@ -25,7 +25,10 @@
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
   INSTALL_PROGRAM +=3D -s
 endif
-
+ifneq (,$(findstring $(DEB_HOST_ARCH),mips mipsel))
+ MIPS_CXXFLAGS=3D-Wa,-xgot
+ MIPS_CFLAGS=3D-Wa,-xgot
+endif
=20
 config.status: configure
  dh_testdir
@@ -40,8 +43,8 @@
  dh_testdir
  =09
  # compile the package...
- $(MAKE)
-=09
+ $(MAKE) -C src extension/plugin/libgimpgrad.la
+ $(MAKE) CXXFLAGS=3D"$(CXXFLAGS) $(MIPS_CXXFLAGS)" CFLAGS=3D"$(CFLAGS) $(M=
IPS_CFLAGS)"
=20
 clean:
  dh_testdir

--IbA9xpzOQlG26JSn--

--iRjOs3ViPWHdlw/I
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBtoH8KN6ufymYLloRAlMYAKDFLPeQvo9wKCzaUb7irhWhxSKItwCfQbAN
bVS3/sIup31qqreZ3yfOJOY=
=i1JW
-----END PGP SIGNATURE-----

--iRjOs3ViPWHdlw/I--