Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836301 - dev-python/reportlab-3.6.9: hangs in src_compile when net-libs/nodejs is installed
Summary: dev-python/reportlab-3.6.9: hangs in src_compile when net-libs/nodejs is inst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://pairlist2.pair.net/pipermail/...
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2022-03-28 03:41 UTC by Sam James
Modified: 2022-03-28 08:55 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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-28 03:41:11 UTC
dev-python/reportlab-3.6.8 still emerges fine.

Output hangs on: "python3.8 setup.py build -j 16"

I strace'd it and found it was stuck in the /usr/include/node/src symlink which points to /usr/include/node/ (we've seen this before with vim, bug 616680).
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-28 03:48:47 UTC
It's from the ebuild in src_install():
># set up a symlink structure that node-gyp expects..
>dodir /usr/include/node/deps/{v8,uv}
>dosym . /usr/include/node/src
>for var in deps/{uv,v8}/include; do
>    dosym ../.. /usr/include/node/${var}
>done

Do we still need this?
Comment 2 Larry the Git Cow gentoo-dev 2022-03-28 04:00:55 UTC
The bug has been referenced in the following commit(s):

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

commit dbd6fab6da23dc0647ae43031dfeaa7002aa0453
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-28 04:00:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-03-28 04:00:10 +0000

    profiles: mask dev-python/reportlab-3.6.9 (hangs in compile)
    
    Hangs b/c of /usr/include/node/src -> /usr/include/node symlink
    installed by net-libs/nodejs.
    
    Bug: https://bugs.gentoo.org/836301
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 7 +++++++
 1 file changed, 7 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-28 04:01:23 UTC
Masked for now, need to do other things. We need to figure out if we can just drop / adapt this workaround in nodejs, really, as things are going to keep falling over this.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-28 07:57:39 UTC
I can't reproduce this, and I have the newest nodejs installed (and the "src" symlink is definitely there).
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-28 08:36:26 UTC
Ok, I see the problem now.  It's searching /usr/include for freetype2 headers (sic!) with following symlinks, so whether it hits a deadloop depends on whether freetype or nodejs happen first in fs.
Comment 6 Larry the Git Cow gentoo-dev 2022-03-28 08:55:01 UTC
The bug has been closed via the following commit(s):

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

commit 73d7896e2f6ce064b2d20f603484d2b06eab51a1
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-03-28 08:53:58 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-03-28 08:54:57 +0000

    dev-python/reportlab: Disable broken freetype2 finding logic
    
    Closes: https://bugs.gentoo.org/836301
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../reportlab/files/reportlab-3.6.9-paths.patch     | 21 +++++++++++++++++++++
 dev-python/reportlab/reportlab-3.6.9.ebuild         |  4 ++++
 profiles/package.mask                               |  7 -------
 3 files changed, 25 insertions(+), 7 deletions(-)