Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719938 - app-office/scribus-1.5.5-r1: Fix building with USE=-scripts without python (and thereby python 2)
Summary: app-office/scribus-1.5.5-r1: Fix building with USE=-scripts without python (a...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-04-28 14:55 UTC by Jesper Saxtorph
Modified: 2020-08-06 11:19 UTC (History)
4 users (show)

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


Attachments
Patch to upstream cmake files to truly make python optional (scribus-1.5.5-optionalpython.patch,1.05 KB, patch)
2020-04-28 14:56 UTC, Jesper Saxtorph
Details | Diff
Modified ebuild to be able to install without python 2.7 (scribus-1.5.5-r1.ebuild,4.43 KB, text/plain)
2020-04-28 14:57 UTC, Jesper Saxtorph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesper Saxtorph 2020-04-28 14:55:21 UTC
I my quest to get rid of python 2 on my system I came across scribus. It currently needs python 2.7 for scripts.
I tried to emerge it with -scripts and no python targets/single_target, however that fails as it needs python_single_target_python2_7.
After looking further into it, it seems python should not really be needed if no plugin scripts are installed. I have made a modified ebuild + a small patch to scribus own cmake files to truly disable scripts and python.
It compiles and I have tried to open a simple document and export it to pdf and all seemed fine. I have not tested beyond that.

Reproducible: Always

Steps to Reproduce:
1. Run USE="-scripts -tk -python_single_target_python2_7" emerge -v1a scribus
Actual Results:  
Fails because of the constrains:
exactly-one-of ( python_single_target_python2_7 ) tk? ( scripts )
Comment 1 Jesper Saxtorph 2020-04-28 14:56:38 UTC
Created attachment 635072 [details, diff]
Patch to upstream cmake files to truly make python optional
Comment 2 Jesper Saxtorph 2020-04-28 14:57:27 UTC
Created attachment 635074 [details]
Modified ebuild to be able to install without python 2.7
Comment 3 Andreas Sturmlechner gentoo-dev 2020-05-29 10:23:35 UTC
Would you please submit your patch upstream?
Comment 4 Larry the Git Cow gentoo-dev 2020-07-01 14:17:19 UTC
The bug has been referenced in the following commit(s):

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

commit d6eec871cd9da061cd912294d47ba1de231b514c
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-01 13:43:52 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-01 14:16:27 +0000

    app-office/scribus: 1.5.5_p20200626 snapshot bump w/ python3 support
    
    Bug: https://bugs.gentoo.org/719938
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-office/scribus/Manifest                       |   1 +
 app-office/scribus/scribus-1.5.5_p20200626.ebuild | 159 ++++++++++++++++++++++
 app-office/scribus/scribus-9999.ebuild            |   4 +-
 3 files changed, 162 insertions(+), 2 deletions(-)
Comment 5 Miroslav Šulc gentoo-dev 2020-08-06 11:19:49 UTC
could you please update your bug report in the light of the latest scribus? it still depends on python unconditionally but python 2.7 is gone from the ebuild so i'm not sure it's still an issue or not.