Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880633 - dev-python/aiohttp-3.8.3-r1 fails to build
Summary: dev-python/aiohttp-3.8.3-r1 fails to build
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2022-11-09 16:41 UTC by Cengiz Gunay
Modified: 2022-11-10 17:19 UTC (History)
3 users (show)

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


Attachments
Build environment (environment,139.19 KB, text/plain)
2022-11-09 16:41 UTC, Cengiz Gunay
Details
emerge --info (emerge-info,6.99 KB, text/plain)
2022-11-10 17:01 UTC, Cengiz Gunay
Details
complete build log (build-cant-attach.log,2.36 KB, text/plain)
2022-11-10 17:07 UTC, Cengiz Gunay
Details
Sample minimal Makefile (Makefile,119 bytes, application/x-shellscript)
2022-11-10 17:17 UTC, Cengiz Gunay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cengiz Gunay 2022-11-09 16:41:55 UTC
Created attachment 830167 [details]
Build environment

Getting this during build:

>>> Emerging (1 of 3) dev-python/aiohttp-3.8.3-r1::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * aiohttp-3.8.3.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking aiohttp-3.8.3.tar.gz to /var/tmp/portage/dev-python/aiohttp-3.8.3-r1/work
>>> Source unpacked in /var/tmp/portage/dev-python/aiohttp-3.8.3-r1/work
>>> Preparing source in /var/tmp/portage/dev-python/aiohttp-3.8.3-r1/work/aiohttp-3.8.3 ...
 * Build system packages:
 *   dev-python/gpep517            : 9
 *   dev-python/installer          : 0.5.1-r1
 *   dev-python/setuptools         : 65.5.1
 *   dev-python/setuptools_scm     : 7.0.5
 *   dev-python/wheel              : 0.37.1-r1
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/aiohttp-3.8.3-r1/work/aiohttp-3.8.3 ...
 * Checking whether python3_11 is suitable ...
 *   >=dev-lang/python-3.11.0_beta4:3.11 ...                                                                                                                                                       [ !! ]
 * Checking whether python3_10 is suitable ...
 *   >=dev-lang/python-3.10.4:3.10 ...                                                                                                                                                             [ ok ]
 *   python_check_deps ...                                                                                                                                                                         [ ok ]
 * Using python3.10 in global scope
 * python3_10: running distutils-r1_run_phase python_configure_all
make -j9 requirements/.hash/cython.txt.hash 
make: command: Command not found
/bin/sh: line 1: ./tools/check_sum.py: No such file or directory
make: *** [Makefile:43: requirements/.hash/cython.txt.hash] Error 127
 * ERROR: dev-python/aiohttp-3.8.3-r1::gentoo failed (configure phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-python/aiohttp-3.8.3-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/aiohttp-3.8.3-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/aiohttp-3.8.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/aiohttp-3.8.3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/aiohttp-3.8.3-r1/work/aiohttp-3.8.3'
 * S: '/var/tmp/portage/dev-python/aiohttp-3.8.3-r1/work/aiohttp-3.8.3'


I allready reported the solution to upstream:
https://github.com/aio-libs/aiohttp/issues/7073

but Gentoo workaround is adding:

    # shell in makefile
        sed -i -e "12a\SHELL:=/bin/bash" Makefile || die

in src_prepare()
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-10 05:06:01 UTC
1. Please include emerge --info.
2. Please attach the full build.log (it has additional information).
3. What's your shell? What's /bin/sh too?
Comment 2 Cengiz Gunay 2022-11-10 17:01:30 UTC
Created attachment 830287 [details]
emerge --info
Comment 3 Cengiz Gunay 2022-11-10 17:07:28 UTC
Created attachment 830289 [details]
complete build log
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-11-10 17:10:47 UTC
Please update sys-devel/make to 4.3 or 4.4 and try again.
Comment 5 Cengiz Gunay 2022-11-10 17:13:41 UTC
1. Please include emerge --info.
2. Please attach the full build.log (it has additional information).

Both are attached now - I was looking for what I should attach in the instructions on https://wiki.gentoo.org/wiki/Bugzilla/Guide#doc_chap6 but it doesn't say it. It would be good to find this information over there. 

3. What's your shell? What's /bin/sh too?

My shell is /bin/bash and my environment variable (outside of Make) SHELL also points to /bin/bash. So I'm very confused as to what's happening here (as I explained in the Github Issue linked). I just did a emerge @world and this is the only package that's giving this kind of issue. 

I am able to re-create the error with a simple Makefile (attached). It says my shell is /bin/sh, which is a symlink to /bin/bash. If I uncomment the SHELL line, then it just works (because it's bash).
Comment 6 Cengiz Gunay 2022-11-10 17:17:46 UTC
Created attachment 830291 [details]
Sample minimal Makefile
Comment 7 Cengiz Gunay 2022-11-10 17:19:32 UTC
(In reply to Michał Górny from comment #4)
> Please update sys-devel/make to 4.3 or 4.4 and try again.

Ok, my bad. My make was held at 4.2 because of:

# grep make /etc/portage/package.*
/etc/portage/package.mask:=sys-devel/make-4.3

Upgrading make to 4.3 solved the problem!

Thanks all.
Cengiz