Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717922 - app-misc/gramps-5.1.2-r1: incomplete installation with recent versions of distutils-r1.eclass (--skip-build in install phase)
Summary: app-misc/gramps-5.1.2-r1: incomplete installation with recent versions of dis...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-17 17:29 UTC by Marco Genasci
Modified: 2020-04-21 22:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2020-04-17 17:29:36 UTC
The program stopped working because of the latest change [1] to distutils-r1 eclass with error:

$ gramps
ResourcePath.ERROR: Unable to determine resource path

[1] https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/distutils-r1.eclass?id=180fa85d7d00aea463c399f70348beaad9166eb7

Reproducible: Always
Comment 1 Alexey Vladykin 2020-04-20 21:47:08 UTC
I observe the same error when trying to start gramps.

Also, it does no longer install a .desktop entry, so it's not visible in Gnome menu. Not sure if it's caused by the same change or not.
Comment 2 Marek Szuba archtester gentoo-dev 2020-04-21 12:45:09 UTC
(In reply to Alexey Vladykin from comment #1)
> Also, it does no longer install a .desktop entry, so it's not visible in
> Gnome menu. Not sure if it's caused by the same change or not.

Yes, it's a different symptom of the same underlying cause.

Will try to track down what exactly gets built at install time and how, that said if it turns out to be complex to resolve we might have to revert the eclass change for the time being.

Also, for the record to anyone new who might encounter this ticket: it's not that the eclass change magically makes existing Gramps installations stop working, this only applies to new installations following the eclass change. Updating the title to hopefully reflect this better.
Comment 3 Marek Szuba archtester gentoo-dev 2020-04-21 14:29:00 UTC
Workaround (adjust path in accordance with your architecture and PYTHON_SINGLE_TARGET):

echo -n "/usr/share" >/usr/lib64/python3.6/site-packages/gramps/gen/utils/resource-path
Comment 4 Marek Szuba archtester gentoo-dev 2020-04-21 14:30:34 UTC
(this will allow Gramps to start but you will not have the desktop files, locales, man pages and a bunch of MIME-related files)
Comment 5 Larry the Git Cow gentoo-dev 2020-04-21 22:21:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bb5e99bc9a64e35b64b117049ebf0e75fadb18e

commit 1bb5e99bc9a64e35b64b117049ebf0e75fadb18e
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-04-21 22:14:27 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-04-21 22:20:48 +0000

    app-misc/gramps: work around problems with --skip-build
    
    Required to make new Gramps installations work following one of the
    recent changes to distutils-r1.eclass (commit
    180fa85d7d00aea463c399f70348beaad9166eb7). Has the dubious distinction
    of being possibly the ugliest hack I have ever had to implement.
    
    Bug: https://bugs.gentoo.org/717922
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 app-misc/gramps/gramps-5.1.2-r1.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)