Bug 420630 - Unable to pass initial setup on OpenSUSE Leap 15.5
Summary: Unable to pass initial setup on OpenSUSE Leap 15.5
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-26 17:10 UTC by ederag
Modified: 2024-03-03 10:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ederag 2020-04-26 17:10:20 UTC
When building from sources,
okular just shows an error window.

STEPS TO REPRODUCE

./kdesrc-build --initial-setup
# change the following lines in ~/.kdesrc-buildrc :
# (sources in my home, the rest on another drive)
kdedir /usr/local/build/kde/install # Where to install KF5-based software
qtdir /usr/local/build/kde/qt5 # Where to find Qt5
source-dir ~/share/prog/kde/dev # Where sources are downloaded
build-dir /usr/local/build/kde/build # Where the source build is run

./kdesrc-build okular
./kdesrc-build --run okular

fails with a small message window with
"Unable to find the okular component: The shared library was not found",
instead of opening a main window.

SOFTWARE/OS VERSIONS
openSUSE-15.1
KDE Frameworks 5.70.0
Qt 5.13.2 (built against 5.13.2)
kdesrc-build 19.12 (v19.12)


ADDITIONAL INFORMATION

The build executable
/usr/local/build/kde/build/okular/bin/okular
works.

workaround:
cd /usr/local/build/kde/install/lib64
ln -s plugins/okularpart.so .
Comment 1 David Faure 2020-04-26 17:24:11 UTC
Does it help if you do

    export QT_PLUGIN_PATH=/usr/local/build/kde/install/lib64/plugins

?

Obviously kdesrc-build --run is supposed to do this, but this is to help debug if the problem is indeed with QT_PLUGIN_PATH.
I've been trying to pass --verbose --debug to kdesrc-build but that didn't help. Michael? ;-)
Comment 2 ederag 2020-04-26 18:59:13 UTC
# Indeed, removed the link, fails, then
export QT_PLUGIN_PATH=/usr/local/build/kde/install/lib64/plugins
./kdesrc-build --run okular
works
Comment 3 ederag 2020-06-09 20:40:28 UTC
Additional information:
For okular, it was important to set QT_PLUGIN_PATH before the build, not after;
otherwise the tests failed,
because ctest is exclusively using a QT_PLUGIN_PATH defined during build.
Comment 4 Andrew Shark 2023-09-01 11:12:14 UTC
Currently, if following wiki, all variables are set automatically.
Comment 5 ederag 2023-09-02 16:33:07 UTC
The first steps fail here (openSUSE Leap 15.5), on kdesrc-build master

4324ceb ("Revert "Don't build all of extragear and playground by default"", 2023-08-29)
./kdesrc-build --initial-setup
...
No provider of 'cmake(packagekitqt6)' found.
'libdisplay-info-devel' not found in package names. Trying capabilities.
No provider of 'libdisplay-info-devel' found.
'pkgconfig(libattr)' not found in package names. Trying capabilities.
No provider of 'pkgconfig(libattr)' found.
'pkgconfig(pam)' not found in package names. Trying capabilities.
No provider of 'pkgconfig(pam)' found.
 * Failed with exit status 104. Ran into an error with the installer!
 * Creating sample configuration file: "~/.config/kdesrc-buildrc"...
 * Update your ~/.bashrc? (y/N) y

     - Added kdesrc-build directory into PATH
     - Added kdesrc-run shell function
 * Shell rc-file is successfully setup.

As an additional feed back, I find that it adds too much clutter to .bashrc.
I'm giving up.
Comment 6 Andrew Shark 2023-09-02 16:47:48 UTC
Have you followed this article carefully? https://community.kde.org/Get_Involved/development/Set_up_a_development_environment
I did not tested on OpenSuse, but on Arch Linux.
Have you tried to use suggested paths instead of `/usr/local`? If the issue still persist, please specify it in more details and reopen.
Comment 7 ederag 2023-09-02 21:23:37 UTC
(In reply to Andrew Shark from comment #6)
> Have you followed this article carefully?
> https://community.kde.org/Get_Involved/development/Set_up_a_development_environment

Yes, this is the one I followed, with care.

> I did not tested on OpenSuse, but on Arch Linux.
> Have you tried to use suggested paths instead of `/usr/local`? If the issue
> still persist, please specify it in more details and reopen.

I do not understand.
As said in comment #5, it fails at the ./kdesrc-build --initial-setup
so well before any paths are mentioned ?

Another thing that is unclear: my desktop is KDE Framework Version 5.103.0;
yet kdesrc-build insist in getting qt6-related packages ?
(I do not see any option to restrict to kf5,
and there is no packagekitqt6 in base Leap-15.5, maybe it would just need an additional repo)

Are you really interested in getting to the bottom of this ?
(I'd rather spend time on this only if the developers find it helpful)
Comment 8 Andrew Shark 2023-09-03 14:03:48 UTC
Your original message was about building okular. This is another thing.

> so well before any paths are mentioned.
Yes, I see. I can reproduce on the virtual machine with openSUSE Leap 15.5.

> yet kdesrc-build insist in getting qt6-related packages?
I do not know if this is intentional. Looks like this is a bug.
Comment 9 David Faure 2023-09-03 21:19:15 UTC
For kdesrc-build to stay on kf5/qt5 stuff, add the line

branch-group stable-kf5-qt5
or
branch-group kf5-qt5

to the "global" section.
The first one will pick stable branches, the second will pick development branches.
(For KF5 itself there's no difference, it'll be the kf5 branch)
Comment 10 Andrew Shark 2024-03-03 06:59:52 UTC
OpenSUSE Leap is currently not supported. The package list opensuse.ini in repo-metadata is assumed for open suse TumbleWeed, not for OpenSuse Leap.

If you want to add support for the OpenSuse Leap, please provide a list of packages and make MR here:
 https://invent.kde.org/sysadmin/repo-metadata/-/blob/master/distro-dependencies/opensuse.ini?ref_type=heads

Also, because of the bug 481272 you would need to use kde-builder.