Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950757 - app-office/libreoffice-l10n wrong installation path when using with app-office/libreoffice-bin
Summary: app-office/libreoffice-l10n wrong installation path when using with app-offic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 950497
  Show dependency tree
 
Reported: 2025-03-07 17:35 UTC by Jan Breuer
Modified: 2025-03-10 07:53 UTC (History)
4 users (show)

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 Jan Breuer 2025-03-07 17:35:28 UTC
When app-office/libreoffice-bin is installed, localization is expected to be in /opt/libreofficeX.Y/ and not in /usr/lib64/libreoffice so libreoffice no longer see localizations. I can see no localization with 
 - app-office/libreoffice-bin-24.8.4-r2 and app-office/libreoffice-l10n-24.8.5.2
 - app-office/libreoffice-bin-25.2.0-r2 and app-office/libreoffice-l10n-25.2.1.2

Reproducible: Always

Steps to Reproduce:
1. install app-office/libreoffice-bin and app-office/libreoffice-l10n with any additional language e.g. L10N="cs en"
2. run libreoffice
3. language is not present and UI is in english, additional languages can't be selected
Actual Results:  
No localization in libreoffice even if the l10n is installed

Expected Results:  
Working localization

e.g. for czech localizacion cs, this workaround helps

ln -s /usr/lib64/libreoffice/share/registry/res/registry_cs.xcd /opt/libreoffice25.2/share/registry/resregistry_cs.xcd
ln -s /usr/lib64/libreoffice/share/registry/res/fcfg_langpack_cs.xcd /opt/libreoffice25.2/share/registry/resfcfg_langpack_cs.xcd
ln -s /usr/lib64/libreoffice/program/resource/cs /opt/libreoffice25.2/program/resource/cs
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 17:45:16 UTC
Thanks. I'm not sure how I'd convinced myself that it wanted them in the /opt path (which I'd even repeated in a conversation with parona the other day).

I think we (as we'd discussed then) need to make libreoffice-l10n only for the source package, and have libreoffice-bin handle its own l10n bits.
Comment 2 Larry the Git Cow gentoo-dev 2025-03-09 17:42:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=805f63847a93856e6287baf0d5777c8e06d59763

commit 805f63847a93856e6287baf0d5777c8e06d59763
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-03-09 12:33:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-09 17:42:21 +0000

    app-office/libreoffice-bin: install langpacks in libreoffice-bin
    
    Bug: https://bugs.gentoo.org/950497
    Bug: https://bugs.gentoo.org/950757
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40976
    Signed-off-by: Sam James <sam@gentoo.org>

 app-office/libreoffice-bin/Manifest                | 183 +++++++++++++++++++++
 .../libreoffice-bin-25.2.0-r3.ebuild               | 162 ++++++++++++++++++
 app-office/libreoffice-bin/metadata.xml            |   3 +
 3 files changed, 348 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-09 17:43:19 UTC
Please confirm if 25.2.0-r3 works. If so, we can backport the changes to 24.x.
Comment 4 Larry the Git Cow gentoo-dev 2025-03-10 05:30:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=513c4d685ae783e421b983e7d09a51898adb6a23

commit 513c4d685ae783e421b983e7d09a51898adb6a23
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-10 05:27:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-10 05:27:38 +0000

    app-office/libreoffice-bin: backport l10n fixes to 24.x
    
    Closes: https://bugs.gentoo.org/950497
    Closes: https://bugs.gentoo.org/950757
    Signed-off-by: Sam James <sam@gentoo.org>

 app-office/libreoffice-bin/Manifest                | 183 +++++++++++++++++++++
 ...-r2.ebuild => libreoffice-bin-24.8.4-r3.ebuild} |  44 ++++-
 2 files changed, 221 insertions(+), 6 deletions(-)
Comment 5 Jan Breuer 2025-03-10 07:51:54 UTC
(In reply to Sam James from comment #3)
> Please confirm if 25.2.0-r3 works. If so, we can backport the changes to
> 24.x.

Thank you, confirming that it works.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-10 07:53:11 UTC
Many thanks.