https://bugs.kde.org/show_bug.cgi?id=475699

--- Comment #2 from tomblackwh...@outlook.com ---
I think I find the reason, I install appimagelauncher rpm package which is from
github release. 
The package include some files are installed in the /usr/lib/x86_64-linux-gnu .
But other opensuse package's .so files are installed  in the
/usr/lib64.
So kdesrc-build install appstream .so files  in ~/kde6/build/kde6/usr/lib64
When click the applauncher ,it find libAppStreamQt.so in lib64. 
But libAppStreamQt.so can't find libappstream.so.5. Because libAppStreamQt uses
the wrong RUNPATH.
I just uninstall appimagelauncher. And Rebuild and install appstream. The
problem disappears.

The debug information from build appstream.

Substituting ${kdedir} with /home/tomblack/kde6/usr
Substituting ${kdedir} with /home/tomblack/kde6/usr
Substituting ${kdedir} with /home/tomblack/kde6/usr
Substituting ${kdedir} with /home/tomblack/kde6/usr
Substituting ${libname} with lib/x86_64-linux-gnu
Substituting ${num-cores} with auto
 -- Reading dependencies from
/home/tomblack/kde6/src/sysadmin/repo-metadata/dependencies/dependency-data-kf6-qt6
        Using path: 'third-party/appstream' for item: appstream
Resolving dependencies for module: appstream
        Copying up dependencies and transitive dependencies for item: appstream
No command-line filter seems to be present.
Adding appstream to module list
Holding performance profile
Using no IPC mechanism


 <<<  Update Process  >>>

 <<<  Build Process  >>>

Building appstream (build system meson) (1/1)
        Queueing PKG_CONFIG_PATH to be set to
/home/tomblack/kde6/usr/lib/x86_64-linux-gnu/pkgconfig:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib/pkgconfig
        Queueing LD_LIBRARY_PATH to be set to
/home/tomblack/kde6/usr/lib/x86_64-linux-gnu:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib
        Queueing PATH to be set to
/home/tomblack/kde6/usr/bin:/home/tomblack/.gvm/pkgsets/go1.19.4/global/bin:/home/tomblack/.gvm/gos/go1.19.4/bin:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/bin:/home/tomblack/.gvm/bin:/home/tomblack/.bin:/home/tomblack/.emacs.d/bin:/home/tomblack/.local/bin:/home/tomblack/bin:/usr/local/bin:/usr/bin:/bin:/opt/gradle/gradle-8.3/bin
        Queueing LDFLAGS to be set to
-Wl,-rpath=/home/tomblack/kde6/usr/lib/x86_64-linux-gnu
        Source update complete for appstream: Skipped
        cd /home/tomblack/kde6/build

        Preparing build system for appstream.
        Removing files in build directory for appstream
        Old build system cleaned, starting new build system.
        cd /home/tomblack/kde6/build/appstream

        cd /home/tomblack/kde6/src/appstream

run_logged_command(): Module appstream, Command: meson setup
/home/tomblack/kde6/build/appstream --prefix /home/tomblack/kde6/usr -Dqt=true
        Setting environment variable LDFLAGS to
-Wl,-rpath=/home/tomblack/kde6/usr/lib/x86_64-linux-gnu
        Setting environment variable PATH to
/home/tomblack/kde6/usr/bin:/home/tomblack/.gvm/pkgsets/go1.19.4/global/bin:/home/tomblack/.gvm/gos/go1.19.4/bin:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/bin:/home/tomblack/.gvm/bin:/home/tomblack/.bin:/home/tomblack/.emacs.d/bin:/home/tomblack/.local/bin:/home/tomblack/bin:/usr/local/bin:/usr/bin:/bin:/opt/gradle/gradle-8.3/bin
        Setting environment variable LD_LIBRARY_PATH to
/home/tomblack/kde6/usr/lib/x86_64-linux-gnu:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib
        Setting environment variable PKG_CONFIG_PATH to
/home/tomblack/kde6/usr/lib/x86_64-linux-gnu/pkgconfig:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib/pkgconfig
# kdesrc-build running: 'meson' 'setup' '/home/tomblack/kde6/build/appstream'
'--prefix' '/home/tomblack/kde6/usr' '-Dqt=true'
# from directory: /home/tomblack/kde6/src/appstream
The Meson build system
Version: 1.2.2
Source dir: /home/tomblack/kde6/src/appstream
Build dir: /home/tomblack/kde6/build/appstream
Build type: native build
Project name: AppStream
Project version: 1.0.0
C compiler for the host machine: cc (gcc 13.2.1 "cc (SUSE Linux) 13.2.1
20230912 [revision b96e66fd4ef3e36983969fb8cdd1956f551a074b]")
C linker for the host machine: cc ld.bfd 2.40.0.20230412-5
Host machine cpu family: x86_64



LD_DEBUG=libs ldd libAppStreamQt.so | less

find library=libappstream.so.5 [0]; searching
     20638:      search
path=/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib/glibc-hwcaps/x86-64-v3:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib/glibc-hwcaps/x86-64-v2:/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib
             (LD_LIBRARY_PATH)
     20638:       trying
file=/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib/glibc-hwcaps/x86-64-v3/libappstream.so.5
     20638:       trying
file=/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib/glibc-hwcaps/x86-64-v2/libappstream.so.5
     20638:       trying
file=/home/tomblack/.gvm/pkgsets/go1.19.4/global/overlay/lib/libappstream.so.5
     20638:      search
path=/home/tomblack/kde6/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3:/home/tomblack/kde6/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2:/home/tomblack/kde6/usr/lib/x86_64-linux-gnu
              (RUNPATH from file ./libAppStreamQt.so)
     20638:       trying
file=/home/tomblack/kde6/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v3/libappstream.so.5
     20638:       trying
file=/home/tomblack/kde6/usr/lib/x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/libappstream.so.5
     20638:       trying
file=/home/tomblack/kde6/usr/lib/x86_64-linux-gnu/libappstream.so.5
     20638:      search cache=/etc/ld.so.cache
     20638:      search
path=/lib64/glibc-hwcaps/x86-64-v3:/lib64/glibc-hwcaps/x86-64-v2:/lib64:/usr/lib64/glibc-hwcaps/x86-64-v3:/usr/lib64/glibc-hwcaps/x86-64-v2:/usr/lib64
         (system search path)
     20638:       trying file=/lib64/glibc-hwcaps/x86-64-v3/libappstream.so.5
     20638:       trying file=/lib64/glibc-hwcaps/x86-64-v2/libappstream.so.5
     20638:       trying file=/lib64/libappstream.so.5
     20638:       trying
file=/usr/lib64/glibc-hwcaps/x86-64-v3/libappstream.so.5
     20638:       trying
file=/usr/lib64/glibc-hwcaps/x86-64-v2/libappstream.so.5
     20638:       trying file=/usr/lib64/libappstream.so.5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to