Bug 363467 - Portage fails to construct runtime dependencies for packages under kde/applications
Summary: Portage fails to construct runtime dependencies for packages under kde/applic...
Status: RESOLVED FIXED
Alias: None
Product: kde-windows
Classification: Unmaintained
Component: buildsystem (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-24 13:08 UTC by Jasem Mutlaq
Modified: 2016-08-25 08:51 UTC (History)
1 user (show)

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


Attachments
portage.py patch (1016 bytes, patch)
2016-05-24 13:09 UTC, Jasem Mutlaq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jasem Mutlaq 2016-05-24 13:08:02 UTC
While trying to use 'emerge --package kstars', the emerge process never finds the required runtime dependencies for KStars and install them as needed to the archive directory.

After a bit of investigation, the problem turns out to be getDependencies( category, package, runtimeOnly = False ): function in portage.py.

For applications that fall under portage/kde/applications/*, the function returns the subpackage as "applications" but that fails when it tries to call  _getSubinfo("kde", "applications) as it cannot find the applications.py file since it doesn't exist.

Attached is a small patch that fixes this problem. However, a bigger issue is that tree layout itself. There are many applications (kdevelop, ktorrent, k3b) that fall under portage's "extragear" while others fall under "kde/applications". What's the reason for this? It seems inconsistent.

Reproducible: Always

Steps to Reproduce:
1. emerge --package kstars
2. 
3.

Actual Results:  
no runtime dependencies installed

Expected Results:  
runtime dependencies installed
Comment 1 Jasem Mutlaq 2016-05-24 13:09:42 UTC
Created attachment 99154 [details]
portage.py patch

Small patch to fix the problem
Comment 2 Kevin Funk 2016-05-24 13:32:23 UTC
Please submit patches to Phabricator.

See: https://community.kde.org/Get_Involved/development#Submitting_your_first_patch.