Re: Bug#1121530: libreoffice: Please build with -fPIE on sparc64 to fix FTBFS

John Paul Adrian Glaubitz <[email protected]> Fri, 28 Nov 2025 12:02:31 +0100
Newsgroups gmane.linux.debian.devel.openoffice,gmane.linux.debian.ports.sparc
Message-ID <5143d1bbebad66007c4fcf495db58ec534effb72.camel@physik.fu-berlin.de>
--=-4l9x79RVsVJALzLW3Z31
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,

On Fri, 2025-11-28 at 09:46 +0100, John Paul Adrian Glaubitz wrote:
> On Fri, 2025-11-28 at 09:34 +0100, Rene Engelhard wrote:
> > Upstream patches related to/for lp-solve I mean:
> >=20
> > <https://git.libreoffice.org/core/+/refs/heads/master/external/lpsolve/=
>
>=20
> Yes, I'm aware of this.
>=20
> > In any way you need to teach ccc -fPIE. But then I'd wonder why lp-solv=
e in
> > Debian built... That one has "just" -fPIC.
>=20
> Please see my other mail. I said, I'm going to replace "-fpic" with "-fPI=
C".
>=20
> -fpic/-fPIC is for libraries, -fpie/-fPIE for executables.
>=20
> > See salsa.debian.org/math-team/lp-solve
>=20
> Which confirms my theory ;-).

The attached patch replaces "-fpic" with "-fPIC" in the lp-solve build scri=
pt which
seems to be enough to fix this particular build issue on sparc64.

Thanks,
Adrian

--=20
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

--=-4l9x79RVsVJALzLW3Z31
Content-Disposition: attachment; filename="lp-solve-fPIC.diff"
Content-Transfer-Encoding: base64
Content-Type: text/x-patch; name="lp-solve-fPIC.diff"; charset="UTF-8"

LS0tIC9ob21lL2dsYXViaXR6L2xvZmZpY2UvbGlicmVvZmZpY2UtMjYuMi4wfmFscGhhMS93b3Jr
ZGlyL1VucGFja2VkVGFyYmFsbC9scHNvbHZlL2xwc29sdmU1NS9jY2Mub3JpZwkyMDI1LTExLTI4
IDEwOjEzOjA3LjM0Nzg0MTY2MCArMDEwMAorKysgL2hvbWUvZ2xhdWJpdHovbG9mZmljZS9saWJy
ZW9mZmljZS0yNi4yLjB+YWxwaGExL3dvcmtkaXIvVW5wYWNrZWRUYXJiYWxsL2xwc29sdmUvbHBz
b2x2ZTU1L2NjYwkyMDI1LTExLTI4IDEwOjI5OjI4LjA5MjQ3ODk4MyArMDEwMApAQCAtMjIsNyAr
MjIsNyBAQAogICAgICBhPWEKICAgICAgc29wcmVmaXg9bGliCiAgICAgIGxpYnM9Ii1sbSIKLSAg
ICAgcGljPS1mcGljCisgICAgIHBpYz0tZlBJQwogICAgICBsZGZsYWdzPSItV2wsLUJzeW1ib2xp
YyAtV2wsLXNvbmFtZSxsaWJscHNvbHZlNTUuJHNvIgogZmkKIAo=


--=-4l9x79RVsVJALzLW3Z31--