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 )
Created attachment 635072 [details, diff] Patch to upstream cmake files to truly make python optional
Created attachment 635074 [details] Modified ebuild to be able to install without python 2.7
Would you please submit your patch upstream?
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(-)
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.