NetBSD Problem Report #52006

From www@NetBSD.org  Sat Feb 25 14:37:29 2017
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 77DA37A1F7
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Feb 2017 14:37:29 +0000 (UTC)
Message-Id: <20170225143728.35C5D7A291@mollari.NetBSD.org>
Date: Sat, 25 Feb 2017 14:37:28 +0000 (UTC)
From: oshima-ya@yagoto-urayama.jp
Reply-To: oshima-ya@yagoto-urayama.jp
To: gnats-bugs@NetBSD.org
Subject: graphics/inkscape build fails when devel/gettext-tools has been installed
X-Send-Pr-Version: www-1.0

>Number:         52006
>Category:       pkg
>Synopsis:       graphics/inkscape build fails when devel/gettext-tools has been installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 25 14:40:00 +0000 2017
>Closed-Date:    Sat Feb 25 15:32:10 +0000 2017
>Last-Modified:  Sat Feb 25 15:35:01 +0000 2017
>Originator:     Yasushi Oshima
>Release:        pkgsrc-current
>Organization:
>Environment:
NetBSD 7.1_RC2 amd64 x86_64

>Description:
Inkscape 0.92.1(maybe 0.92 or lator) in pkgsrc-current build fails when devel/gettext-tools has been installed as follows:

[ 89%] Built target inkscape_base
Scanning dependencies of target inkview
[ 89%] Building CXX object src/CMakeFiles/inkview.dir/inkview.cpp.o
[ 90%] Linking CXX executable ../bin/inkview
[ 90%] Built target inkview
[ 90%] Generating ../inkscape.desktop
msgfmt: unknown option -- desktop
Try `/usr/bin/msgfmt --help' for more information.
cat: stdout: Broken pipe
*** Error code 1

Stop.
>How-To-Repeat:
On pkgsrc-current,

# cd ${pkgsrc}/devel/gettext-tools
# make install
    :
# cd ${pkgsrc}/graphics/inkscape
# make


>Fix:
Inscape now uses cmake in po(maybe after 0.92), it uses gettext msgfmt
with --desktop if gettext version >=0.19.
And the version checker of gettext in inkscaple uses msgmerge in
CMakeScripts/Modules/FindGettext.cmake.

Only msgfmt is specified in USE_TOOLS at Makefile, so msgfmt is
work/.tools/bin/msgfmt which may be system's /usr/bin/msgfmt,
but msgmerge is /usr/pkg/bin/msgmerge depending on the environment.
It is 0.19.8.1 now.
This conflicts in system's /usr/bin/msgfmt.
It is 0.14.4 when NetBSD 7.1_RC2. 

It needs to set msgmerge to USE_TOOLS as follows:

--- a/graphics/inkscape/Makefile
+++ b/graphics/inkscape/Makefile
@@ -25,7 +25,7 @@ USE_CMAKE=            yes
 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
 USE_PKGLOCALEDIR=      yes
-USE_TOOLS+=            intltool msgfmt perl:run pkg-config
+USE_TOOLS+=            intltool msgfmt msgmerge perl:run pkg-config

 REPLACE_PERL+=         fix-roff-punct
 REPLACE_PERL+=         share/extensions/*.p[lm]

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 25 Feb 2017 15:32:10 +0000
State-Changed-Why:
Committed, thanks!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52006 CVS commit: pkgsrc/graphics/inkscape
Date: Sat, 25 Feb 2017 15:31:53 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sat Feb 25 15:31:53 UTC 2017

 Modified Files:
 	pkgsrc/graphics/inkscape: Makefile

 Log Message:
 Add msgmerge to tools. From Yasushi Oshima in PR 52006.


 To generate a diff of this commit:
 cvs rdiff -u -r1.142 -r1.143 pkgsrc/graphics/inkscape/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.