Date: Wed, 20 May 2020 00:16:56 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 246588] graphics/inkscape: fix build "default.es_MX.svg:No such file or directory" Message-ID: <bug-246588-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246588 Bug ID: 246588 Summary: graphics/inkscape: fix build "default.es_MX.svg:No such file or directory" Product: Ports & Packages Version: Latest Hardware: Any URL: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D2436 15 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: gnome@FreeBSD.org Reporter: vvd@unislabs.com Flags: maintainer-feedback?(gnome@FreeBSD.org) Assignee: gnome@FreeBSD.org Attachment #214670 maintainer-approval? Flags: Flags: maintainer-feedback? Created attachment 214670 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D214670&action= =3Dedit fix build "default.es_MX.svg:No such file or directory" Upstream patch: https://gitlab.com/inkscape/inkscape/-/merge_requests/2020/diffs?commit_id= =3Daffcaa7cd39a182e506096bb4f566839065935fd Explanation from: https://gitlab.com/inkscape/inkscape/-/merge_requests/2020 The translation file es_MX.po has a fuzzy attribute for the msgid "Label", = so when evaluating this translation, gettext will fall through to language 'es' for the translation. If po/locale/es/LC_MESSAGES/inkscape.mo does not exist= at the time of the call, the translation will fail, and "Label" will be return= ed, causing the check to fail, preventing writing es_MX.svg. The order in which languages are processed is determined by the results of glob.glob, which may vary with filesystem type. In some build environments, 'es' is processed before 'es_MX', and no problem occurs. This is not guaranteed, however. In other build environments, 'es_MX' occurs first, and lacking 'es', the translation fails, and es_MX.svg is not generated. To remove reliance on a particular ordering of gmofiles, and ensure build reproducibility, process the translations in two complete passes -- one to = copy the gmo files, and when complete, the second to actually use the translatio= ns to generate the svg files. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246588-7788>