Bug 487917

Summary: kdesrc-build --initial-setup on gentoo linux fails trying to install non-existent package: dev-perl/YAML-XS
Product: [Developer tools] kdesrc-build Reporter: Jérôme Borme <kde.h8bcay>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: ashark
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jérôme Borme 2024-06-02 11:36:14 UTC
I followed the instructions, installed kdesrc-build from KDE git and used --initial-setup. kdesrc-build wants to install dev-perl/YAML-XS, package that does not exist on current gentoo.

STEPS TO REPRODUCE
$> cd /tmp
$> mkdir kde
$> cd kde
$> git clone https://invent.kde.org/sdk/kdesrc-build.git
$> cd kdesrc-build
$> su    # I don't have sudo
Mot de passe :
#> kdesrc-build --initial-setup

OBSERVED RESULT
=== install-distro-packages-perl ===
 - Installing system packages for gentoo...
    Installing packages for gentoo/2.15
    Using installer for gentoo
 * Running 'emerge -v --noreplace dev-lang/perl dev-perl/IO-Socket-SSL dev-perl/YAML-PP dev-perl/YAML-XS'

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.49 s (backtrack: 0/20).


emerge: there are no ebuilds to satisfy "dev-perl/YAML-XS".

emerge: searching for similar names...
emerge: Maybe you meant any of these: dev-perl/YAML, dev-perl/YAML-Syck, dev-perl/YAML-PP?
 * Failed with exit status 1. Ran into an error with the installer!
=== install-distro-packages ===
 * Could not load Application. Ensure you have run --install-distro-packages-perl first.

EXPECTED RESULT

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: gentoo linux kernel 6.9.3 xorg-server 21.1.13-r1, fluxbox 1.3.7-r5
KDE Plasma Version: N/A
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.14
Comment 2 Andrew Shark 2025-11-14 11:40:53 UTC
Afair, kdesrc-build can fallback to other implementations if one is not available.
So, as a workaround, you can just delete that line with "dev-perl/JSON-XS".
This, however, won't go to the repo, as development moved to kde-builder.