Application linked with xerces-c library crashes with message Could not open catalog: /usr/share/xerces-c/msg/XercesMessages_en_US.utf8.cat or /usr/share/xerces-c/msg/XercesMessages_en_US.cat Cannot load message domain Reason: The catalog file is installed in /usr/msg/ but the path is set to XERCESC_NLS_HOME="/usr/share/xerces-c/msg" in /etc/env.d/50xerces-c. Workaround: Either change the XERCESC_NLS_HOME or move the catalog file to expected location. Reproducible: Always
The ebuild's files/ directory has a patch to change the install path of XercesMessages_en_US.utf8.cat from /usr/msg to /usr/share/xerces-c/msg/, but the ebuild does not have a PATCHES array. Adding PATCHES=( "${FILESDIR}"/xerces-c-3.2.2-fix-XERCESC-2163.patch ) to the ebuild will fix said issue.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0edc86d99bba70f585b6a1a55ef07e3db5c1635 commit a0edc86d99bba70f585b6a1a55ef07e3db5c1635 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2021-02-15 09:01:32 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2021-02-15 09:03:52 +0000 dev-libs/xerces-c: bring back patch that fixes XERCESC_NLS_HOME Closes: https://bugs.gentoo.org/738140 Signed-off-by: Joonas Niilola <juippis@gentoo.org> .../files/xerces-c-3.2.2-fix-XERCESC-2163.patch | 24 ++++++++++++++++++++++ ...ces-c-3.2.3.ebuild => xerces-c-3.2.3-r1.ebuild} | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b03595edbc4e8b9ddc6588d05ce190cbd82067e0 commit b03595edbc4e8b9ddc6588d05ce190cbd82067e0 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-08-26 13:43:08 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-08-26 13:43:08 +0000 dev-libs/xerces-c: add more metadata to catalog patch I've also no idea why I dropped the patch before, but even more interestingly, it's been dropped in the past as well! Bug: https://bugs.gentoo.org/673548 Bug: https://bugs.gentoo.org/738140 Bug: https://bugs.gentoo.org/913045 Signed-off-by: Sam James <sam@gentoo.org> .../xerces-c/files/xerces-c-3.2.2-fix-XERCESC-2163.patch | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)