NetBSD Problem Report #53530

From silas@nocafe.net  Thu Aug 16 15:31:07 2018
Return-Path: <silas@nocafe.net>
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 78FFA7A154
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 16 Aug 2018 15:31:07 +0000 (UTC)
Date: Thu, 16 Aug 2018 12:31:01 -0300
From: silas@nocafe.net
Reply-To: silas@nocafe.net
To: gnats-bugs@NetBSD.org
Subject: Building misc/libreoffice fails on NetBSD 7.0 when parsing .po files
X-Send-Pr-Version: 3.95

>Number:         53530
>Category:       pkg
>Synopsis:       Building misc/libreoffice fails on NetBSD 7.0 when parsing .po files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 16 15:35:00 +0000 2018
>Last-Modified:  Thu Aug 30 16:34:55 +0000 2018
>Originator:     Silas
>Release:        NetBSD 7.0
>Organization:

>Environment:


System: NetBSD auron 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64
Architecture: x86_64
Machine: amd64
>Description:
	Building misc/libreoffice fails because base /usr/bin/msguniq cannot
	parse .po files:

	[build MO] accaf
	/usr/pkgsrc/misc/libreoffice/work/libreoffice-6.0.5.2/translations/source/af/accessibility/messages.po:17: keyword "msgctxt" unknown

	It only works if the user have previously installed a newer version of
	gettext-tools, like the one in pkgsrc.

	I don't know if it works in NetBSD 8.0, since NetBSD 8.0 have also
	updated gettext to 0.16.1
>How-To-Repeat:
	Make sure the only version of gettext present in the system is the one
	in base (i.e., if the only msguniq is /usr/bin/msguniq) and then, do:

	cd /usr/pkgsrc/misc/libreoffice && make
>Fix:
	Add gettext-tools as TOOL_DEPENDS (copied from finance/gnucash):

	Index: Makefile
	===================================================================
	RCS file: /cvsroot/pkgsrc/misc/libreoffice/Makefile,v
	retrieving revision 1.158
	diff -u -r1.158 Makefile
	--- Makefile	25 Jun 2018 13:34:48 -0000	1.158
	+++ Makefile	16 Aug 2018 15:20:13 -0000
	@@ -120,6 +120,8 @@

	 BUILD_DEPENDS+=		p5-Archive-Zip-[0-9]*:../../archivers/p5-Archive-Zip
	 DEPENDS+=		${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
	+# instead of USE_TOOLS+=msgfmt, since we need a newer version
	+TOOL_DEPENDS+=		gettext-tools>=0.19.6:../../devel/gettext-tools

	 # dmake scripts use relative path with -rpath-link ld arguments, which
	 # is a no-go with normal pkgsrc wrappers.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Thu, 16 Aug 2018 16:15:45 +0000
Responsible-Changed-Why:
Ryo, can you please give it a look?
(over to MAINTAINER)


From: Silas <silas@nocafe.net>
To: gnats-bugs@NetBSD.org
Cc: ryoon@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org,
	gnats-admin@netbsd.org, leot@NetBSD.org
Subject: Re: pkg/53530 (Building misc/libreoffice fails on NetBSD 7.0 when
 parsing .po files)
Date: Thu, 16 Aug 2018 13:59:47 -0300

 BTW, I forgot to mention it is pkgsrc-2018Q2

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53530: Building misc/libreoffice fails on NetBSD 7.0 when
 parsing .po files
Date: Fri, 17 Aug 2018 12:43:13 +0200

 On Thu, Aug 16, 2018 at 03:35:00PM +0000, silas@NetBSD.org wrote:
 > 	[build MO] accaf
 > 	/usr/pkgsrc/misc/libreoffice/work/libreoffice-6.0.5.2/translations/source/af/accessibility/messages.po:17: keyword "msgctxt" unknown

 USE_TOOLS+= msgfmt

 Joerg

From: Silas <silas@nocafe.net>
To: Joerg Sonnenberger <joerg@bec.de>
Cc: gnats-bugs@NetBSD.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53530: Building misc/libreoffice fails on NetBSD 7.0 when
 parsing .po files
Date: Fri, 17 Aug 2018 23:12:32 -0300

 On Fri, Aug 17, 2018 at 12:43:13PM +0200, Joerg Sonnenberger wrote:
 >USE_TOOLS+= msgfmt

 I did a test and it didn't solve the problem. Maybe USE_TOOLS+=msgfmt 
 handles msgfmt usage (by using the wrappers in mk/) but not msguniq?

 -- 
 Silas

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.