Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738140 - dev-libs/xerces-c-3.2.3 : Could not open catalog because of incorrect XERCESC_NLS_HOME path
Summary: dev-libs/xerces-c-3.2.3 : Could not open catalog because of incorrect XERCESC...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-20 05:26 UTC by Milka
Modified: 2023-08-26 13:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milka 2020-08-20 05:26:04 UTC
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
Comment 1 xprism01 2020-12-09 11:44:33 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2021-02-15 09:04:00 UTC
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(-)
Comment 3 Larry the Git Cow gentoo-dev 2023-08-26 13:43:35 UTC
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(-)