pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gettext-tools gettext-tools: Work around optimiz...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dda138ac9216
branches:  trunk
changeset: 452241:dda138ac9216
user:      rin <rin%pkgsrc.org@localhost>
date:      Fri May 07 13:01:58 2021 +0000

description:
gettext-tools: Work around optimization bug for GCC/alpha. Bump revision.

Compile this package with -O0 for GCC 10 and 9 on alpha. Otherwise,
``env LANG=en_US.UTF-8 /usr/pkg/bin/xgettext --version'' receives SIGSEGV.

XXX
Unfortunately, this package is not fully supported by buildlink, and
BUILDLINK_TRANSFORM does not work...

diffstat:

 devel/gettext-tools/Makefile |   4 ++--
 devel/gettext-tools/hacks.mk |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r fc0c28e17985 -r dda138ac9216 devel/gettext-tools/Makefile
--- a/devel/gettext-tools/Makefile      Fri May 07 12:31:22 2021 +0000
+++ b/devel/gettext-tools/Makefile      Fri May 07 13:01:58 2021 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.41 2020/08/12 23:31:10 joerg Exp $
+# $NetBSD: Makefile,v 1.42 2021/05/07 13:01:58 rin Exp $
 
 .include "../../devel/gettext/Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/-/-tools-/}
 COMMENT=       Tools for providing messages in different languages
-PKGREVISION=   1
+PKGREVISION=   2
 
 DISTINFO_FILE= ${.CURDIR}/../../devel/gettext/distinfo
 PATCHDIR=      ${.CURDIR}/../../devel/gettext/patches
diff -r fc0c28e17985 -r dda138ac9216 devel/gettext-tools/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gettext-tools/hacks.mk      Fri May 07 13:01:58 2021 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: hacks.mk,v 1.1 2021/05/07 13:01:58 rin Exp $
+
+.if !defined(GETTEXT_TOOLS_HACKS_MK)
+GETTEXT_TOOLS_HACKS_MK=        defined
+
+.include "../../mk/compiler.mk"
+
+# GCC 10 and 9 miscompile this for alpha, which results in SIGSEGV for
+# ``env LANG=en_US.UTF-8 /usr/pkg/bin/xgettext --version''.
+.if ${MACHINE_ARCH} == "alpha" && \
+    (!empty(CC_VERSION:Mgcc-10.*) || !empty(CC_VERSION:Mgcc-9.*))
+PKG_HACKS+=    optimisation
+CFLAGS+=       -O0
+CXXFLAGS+=     -O0
+.endif
+
+.endif



Home | Main Index | Thread Index | Old Index