NetBSD Problem Report #55404

From www@netbsd.org  Sat Jun 20 21:57:44 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5B7351A9217
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Jun 2020 21:57:44 +0000 (UTC)
Message-Id: <20200620215743.60D691A921F@mollari.NetBSD.org>
Date: Sat, 20 Jun 2020 21:57:43 +0000 (UTC)
From: adr@sdf.org
Reply-To: adr@sdf.org
To: gnats-bugs@NetBSD.org
Subject: textproc/icu fails to compile on Linux (Gentoo)
X-Send-Pr-Version: www-1.0

>Number:         55404
>Category:       pkg
>Synopsis:       textproc/icu fails to compile on Linux (Gentoo)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linux-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 20 22:00:01 +0000 2020
>Last-Modified:  Wed Jun 24 11:45:54 +0000 2020
>Originator:     adr
>Release:        pkgsrc current
>Organization:
>Environment:
Linux gentoo1 5.7.0-rc4-1-ARCH #1 SMP PREEMPT Tue May 5 01:29:48 UTC 2020 armv7l ARMv7 Processor rev 5 (v7l) Allwinner sun8i Family GNU/Linux
>Description:
Building textproc/icu on gentoo fails at genrb:
   [...]
   c++   ...  uconv.cpp
   cc    ...  uwmsg.c
   LD_LIBRARY_PATH=../../lib:../../stubdata:../../tools/ctestfw:$LD_LIBRARY_PATH  ../../bin/gen
rb -e UTF-8 -s resources -d uconvmsg root.txt
      ../../bin/genrb: error while loading shared libraries: ../../lib/libicudata.so.67: intern
al error
>How-To-Repeat:
bmake
>Fix:
RCS file: /cvsroot/pkgsrc/textproc/icu/Makefile,v
retrieving revision 1.133
diff -u -r1.133 Makefile
--- Makefile    2 Jun 2020 08:34:35 -0000       1.133
+++ Makefile    20 Jun 2020 21:57:08 -0000
@@ -134,5 +134,13 @@
 SUBST_SED.icu-config+= -e '/l$${ICUPREFIX}/ s/$${ICULIBSUFFIX_VERSION}//g'
 .endif

+.if ${OPSYS} == "Linux"
+SUBST_CLASSES+=         mh-linux
+SUBST_MESSAGE.mh-linux+=Fixing icudata linking.
+SUBST_STAGE.mh-linux=   pre-configure
+SUBST_FILES.mh-linux=  config/mh-linux
+SUBST_SED.mh-linux+=    -e 's/LDFLAGSICUDT=-nodefaultlibs -nostdlib/LDFLAGSICUDT=/'
+.endif
+
 .include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 24 Jun 2020 11:45:54 +0000
Responsible-Changed-Why:
Linux and/or Gentoo Linux problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.