Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-requests: use PyPackage to build #7582

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

cotequeiroz
Copy link
Member

Maintainer: me
Compile tested: brcm47xx & ramips, openwrt master
Run tested: ramips

Description:
Updated Makefile to use PyPackage, added option to build source package.

Signed-off-by: Eneas U de Queiroz [email protected]

Updated Makefile to use PyPackage, added option to build source package.

Signed-off-by: Eneas U de Queiroz <[email protected]>
@cotequeiroz
Copy link
Member Author

buildpr but fails in python-urllib3, before it gets to python-requests:

. /root/build_dir/include/shell.sh; gzip -dc /root/build_dir/dl/urllib3-1.24.1.tar.gz | tar -C /root/build_dir/build_dir/target-mips_24kc_musl/urllib3-1.24.1/.. -xf -
/root/build_dir/staging_dir/host/bin/tar: urllib3-1.24.1/CHANGES.rst: Cannot change ownership to uid 297975, gid 89939: Invalid argument
/root/build_dir/staging_dir/host/bin/tar: urllib3-1.24.1/CONTRIBUTORS.txt: Cannot change ownership to uid 297975, gid 89939: Invalid argument

...

/root/build_dir/staging_dir/host/bin/tar: urllib3-1.24.1: Cannot change ownership to uid 297975, gid 89939: Invalid argument
/root/build_dir/staging_dir/host/bin/tar: Exiting with failure status due to previous errors
Makefile:48: recipe for target '/root/build_dir/build_dir/target-mips_24kc_musl/urllib3-1.24.1/.prepared_45e2112f4f62e502a84a760d826d3b36_18f1e190c5d53547fed41a3eaa76e9e9' failed
make[2]: *** [/root/build_dir/build_dir/target-mips_24kc_musl/urllib3-1.24.1/.prepared_45e2112f4f62e502a84a760d826d3b36_18f1e190c5d53547fed41a3eaa76e9e9] Error 2
make[2]: Leaving directory '/root/openwrt_packages/lang/python/python-urllib3'
time: package/feeds/packages/python-urllib3/compile#0.07#0.03#0.27
package/Makefile:107: recipe for target 'package/feeds/packages/python-urllib3/compile' failed
make[1]: *** [package/feeds/packages/python-urllib3/compile] Error 2

@thess
Copy link
Member

thess commented Dec 5, 2018

CircleCI script needed to run the build as non-root. In Docker container, UID/GID needs to be less than 65535 when root. Default non-root tar will set UID/GID to logged in user. See PR #7588

@hnyman hnyman merged commit 2fafc4f into openwrt:master Dec 6, 2018
@cotequeiroz cotequeiroz deleted the python-requests_PyPackage branch March 11, 2019 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants