Skip to content

Commit

Permalink
Fix python-idna egg-info permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
Maxime Borges authored and kraj committed Nov 26, 2018
1 parent f352612 commit 79bb019
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meta-python/recipes-devtools/python/python-idna.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ do_compile_prepend() {
}

BBCLASSEXTEND = "native nativesdk"

do_install_append() {
chmod 664 -R ${D}${PYTHON_SITEPACKAGES_DIR}/*.egg-info/
}

3 comments on commit 79bb019

@hugueskamba
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to explain why this was necessary?
I can no longer build.
This commit causes an error indicating that chmod does not have permission to modify the files.

@kraj
Copy link
Contributor

@kraj kraj commented on 79bb019 Nov 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you post full error logs ?

@hugueskamba
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you post full error logs ?

Sure. Thanks for having a look.

DEBUG: Executing shell function do_install
running install
running build
running build_py
running install_lib
creating /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/uts46data.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/compat.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/idnadata.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/codec.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/package_data.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/core.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/intranges.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
copying build/lib/idna/__init__.py -> /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/uts46data.py to uts46data.pyc
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/compat.py to compat.pyc
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/idnadata.py to idnadata.pyc
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/codec.py to codec.pyc
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/package_data.py to package_data.pyc
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/core.py to core.pyc
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/intranges.py to intranges.pyc
byte-compiling /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna/__init__.py to __init__.pyc
running install_egg_info
running egg_info
creating idna.egg-info
writing idna.egg-info/PKG-INFO
writing top-level names to idna.egg-info/top_level.txt
writing dependency_links to idna.egg-info/dependency_links.txt
writing manifest file 'idna.egg-info/SOURCES.txt'
reading manifest file 'idna.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tools'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
writing manifest file 'idna.egg-info/SOURCES.txt'
Copying idna.egg-info to /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna-2.7-py2.7.egg-info
running install_scripts
chmod: cannot access '/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna-2.7-py2.7.egg-info/dependency_links.txt': Permission denied
chmod: cannot access '/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna-2.7-py2.7.egg-info/SOURCES.txt': Permission denied
chmod: cannot access '/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna-2.7-py2.7.egg-info/PKG-INFO': Permission denied
chmod: cannot access '/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/image/path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/recipe-sysroot-native/usr/lib/python2.7/site-packages/idna-2.7-py2.7.egg-info/top_level.txt': Permission denied
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_install (log file is located at /path/to/tmp/work/x86_64-linux/python-idna-native/2.7-r0/temp/log.do_install.13616)

Please sign in to comment.