pkgsrc-Bugs archive

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

pkg/52006: graphics/inkscape build fails when devel/gettext-tools has been installed



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 25 14:40:00 +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]


Home | Main Index | Thread Index | Old Index