Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711970 - dev-python/wxpython-4.0.7 takes 3 hours and >10 GB diskspace to compile?
Summary: dev-python/wxpython-4.0.7 takes 3 hours and >10 GB diskspace to compile?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-09 16:28 UTC by Sebastian Pipping
Modified: 2021-02-03 07:44 UTC (History)
3 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 Sebastian Pipping gentoo-dev 2020-03-09 16:28:40 UTC
Hi!

I've been able to compile dev-python/wxpython-3.0.2.0 in under 20 minutes but 4.0.7 takes ages and failed on me twice due to lack of disk space (in a big tmpfs).  Maybe a check for diskscape can be added like some other big packages do.  Also, it would be interesting if it takes that long for you as well or if many we have some weirdness in the build system that is not triggered everywhere?

Thanks and best, Sebastian
Comment 1 Sven Wegener gentoo-dev 2020-11-17 19:24:13 UTC
Regarding the disk usage: The wxpython ebuild does not use python_copy_sources and builds wxpython for all python implementations in the same directory. The build/ directory is separated by implementation by upstream build scripts, but the files get copied to the same wx/ directory afterwards. The install phase then installs wxpython for each implementation from this directory, effectively installing all files for all implementations:

> /usr/lib/python3.9/site-packages/wx/_core.cpython-39-x86_64-linux-gnu.so
> /usr/lib/python3.9/site-packages/wx/_core.cpython-38-x86_64-linux-gnu.so
> /usr/lib/python3.9/site-packages/wx/_core.cpython-37m-x86_64-linux-gnu.so
> /usr/lib/python3.9/site-packages/wx/_core.cpython-36m-x86_64-linux-gnu.so
> /usr/lib/python3.8/site-packages/wx/_core.cpython-39-x86_64-linux-gnu.so
> /usr/lib/python3.8/site-packages/wx/_core.cpython-38-x86_64-linux-gnu.so
> /usr/lib/python3.8/site-packages/wx/_core.cpython-37m-x86_64-linux-gnu.so
> /usr/lib/python3.8/site-packages/wx/_core.cpython-36m-x86_64-linux-gnu.so
> /usr/lib/python3.7/site-packages/wx/_core.cpython-39-x86_64-linux-gnu.so
> /usr/lib/python3.7/site-packages/wx/_core.cpython-38-x86_64-linux-gnu.so
> /usr/lib/python3.7/site-packages/wx/_core.cpython-37m-x86_64-linux-gnu.so
> /usr/lib/python3.7/site-packages/wx/_core.cpython-36m-x86_64-linux-gnu.so
> /usr/lib64/python3.6/site-packages/wx/_core.cpython-39-x86_64-linux-gnu.so
> /usr/lib64/python3.6/site-packages/wx/_core.cpython-38-x86_64-linux-gnu.so
> /usr/lib64/python3.6/site-packages/wx/_core.cpython-37m-x86_64-linux-gnu.so
> /usr/lib64/python3.6/site-packages/wx/_core.cpython-36m-x86_64-linux-gnu.so
Comment 2 Ștefan Talpalaru 2021-01-26 03:43:00 UTC
(In reply to Sven Wegener from comment #1)
> The wxpython ebuild does not use
> python_copy_sources and builds wxpython for all python implementations in
> the same directory.

The simple fix is to add "DISTUTILS_IN_SOURCE_BUILD=1" to the ebuild.
Comment 3 Larry the Git Cow gentoo-dev 2021-02-03 07:44:31 UTC
The bug has been closed via the following commit(s):

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

commit 3de0e0b2f75e915cadd18d9cc943940b09260d4b
Author:     Sven Wegener <swegener@gentoo.org>
AuthorDate: 2021-02-02 21:01:14 +0000
Commit:     Sven Wegener <swegener@gentoo.org>
CommitDate: 2021-02-03 07:44:17 +0000

    dev-python/wxpython: Enable DISTUTILS_IN_SOURCE_BUILD, bug #711970
    
    Closes: https://bugs.gentoo.org/711970
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Sven Wegener <swegener@gentoo.org>

 dev-python/wxpython/wxpython-4.0.7-r1.ebuild | 92 ++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)