Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938895 - app-office/libreoffice-bin-7.6.7.2 ebuild depends on Python 3.11 but pre-built binaries were built with Python 3.12
Summary: app-office/libreoffice-bin-7.6.7.2 ebuild depends on Python 3.11 but pre-buil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-01 20:28 UTC by Laszlo Valko
Modified: 2024-09-12 22:04 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,9.19 KB, text/plain)
2024-09-01 20:39 UTC, Laszlo Valko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Valko 2024-09-01 20:28:53 UTC
Ebuild for app-office/libreoffice-bin-7.6.7.2 specifies only Python 3.11 as supported:

# grep PYTHON_COMPAT /usr/portage/app-office/libreoffice-bin/libreoffice-bin-7.6.7.2.ebuild 
PYTHON_COMPAT=( python3_11 )

# emerge -1pv libreoffice-bin | grep libreoffice-bin
[ebuild   R    ] app-office/libreoffice-bin-7.6.7.2::gentoo  USE="java -gnome -kde" CPU_FLAGS_X86="sse2" PYTHON_SINGLE_TARGET="python3_11" 0 KiB

But the current pre-built binaries getting installed were built using Python 3.12 libraries:
# ldd /usr/lib64/libreoffice/program/libpythonloaderlo.so|grep libpython
        libpython3.12.so.1.0 => not found
        libpython3.12.so.1.0 => not found
# revdep-rebuild -pv
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Found a valid cache, skipping collecting phase
 * Scanning files
 * Checking dynamic linking consistency
 * Broken files that require: libpython3.12.so.1.0 (64 bits)
        * /usr/lib64/libreoffice/program/libpythonloaderlo.so
        * /usr/lib64/libreoffice/program/libpyuno.so
 * Assign files to packages
        * /usr/lib64/libreoffice/program/libpythonloaderlo.so -> app-office/libreoffice-bin-7.6.7.2
        * /usr/lib64/libreoffice/program/libpyuno.so -> app-office/libreoffice-bin-7.6.7.2

emerge --pretend --verbose --oneshot --complete-graph=y app-office/libreoffice-bin:0


Reproducible: Always

Steps to Reproduce:
1. install only Python 3.11
2. emerge -1v =app-office/libreoffice-bin-7.6.7.2
3. 
Actual Results:  
revdep-rebuild -pv will complain about missing Python 3.12 libraries

Expected Results:  
ebuild should specify the correct Python dependency (3.12)
Comment 1 Laszlo Valko 2024-09-01 20:39:45 UTC
Created attachment 901879 [details]
emerge --info
Comment 2 Marco 2024-09-02 13:03:12 UTC
Can confirm this, same on my machine here. Pre-built "app-office/libreoffice-bin-7.6.7.2" was built using Python 3.12 while "PYTHON_SINGLE_TARGET" in ebuild only offers Python 3.11.

system / # revdep-rebuild -ipv
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
 * Collecting dynamic linking information
 * Scanning files
 * Checking dynamic linking consistency
 * Broken files that require: libpython3.12.so.1.0 (64 bits)
        * /usr/lib64/libreoffice/program/libpythonloaderlo.so
        * /usr/lib64/libreoffice/program/libpyuno.so
 * Assign files to packages
        * /usr/lib64/libreoffice/program/libpyuno.so -> app-office/libreoffice-bin-7.6.7.2
        * /usr/lib64/libreoffice/program/libpythonloaderlo.so -> app-office/libreoffice-bin-7.6.7.2

Regards,

Marco
Comment 3 Marco 2024-09-02 13:11:04 UTC
Can also confirm this on my old 32-Bit machine as well:

D113240 / # revdep-rebuild -ipv
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
 * Collecting dynamic linking information
 * Scanning files
 * Checking dynamic linking consistency
 * Broken files that require: libpython3.12.so.1.0 (32 bits)
        * /usr/lib/libreoffice/program/libpythonloaderlo.so
        * /usr/lib/libreoffice/program/libpyuno.so
 * Assign files to packages
        * /usr/lib/libreoffice/program/libpythonloaderlo.so -> app-office/libreoffice-bin-7.6.7.2
        * /usr/lib/libreoffice/program/libpyuno.so -> app-office/libreoffice-bin-7.6.7.2
Comment 4 Laszlo Valko 2024-09-11 22:28:58 UTC
Ring, ring!
Comment 5 Mark Brehon 2024-09-12 21:27:47 UTC
(In reply to Laszlo Valko from comment #4)
> Ring, ring!

I'm not sure if this is the correct avenue for this response, but I got it to install and launch by copying the ebuild into my local overlay and changing to:

PYTHON_COMPAT=( python3_12 )
Comment 6 Larry the Git Cow gentoo-dev 2024-09-12 22:04:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29e0ebd1e92cda254d73109d8ac50a81b2c5cf44

commit 29e0ebd1e92cda254d73109d8ac50a81b2c5cf44
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-09-12 22:03:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-12 22:03:58 +0000

    app-office/libreoffice-bin: enable py3.12 and disable py3.11
    
    The binary is built against py3.12.
    
    Closes: https://bugs.gentoo.org/938895
    Signed-off-by: Sam James <sam@gentoo.org>

 app-office/libreoffice-bin/libreoffice-bin-7.6.7.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)