pkgsrc-Bugs archive

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

pkg/53530: Building misc/libreoffice fails on NetBSD 7.0 when parsing .po files



>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:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 16 15:35:00 +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.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index