On Sat, Feb 26, 2022 at 11:56:14AM +0100, Giovanni Santini wrote:
On 2022-02-23 12:05 AM, Michael Ströder wrote:
HI!
I'm trying to build mostly Python modules for Arch Linux:
https://build.opensuse.org/project/show/home:stroeder:arch-iam
This works as long the packages does not have a dependency on another module built in this local repo. With such a dependency build fails with a message like this:
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.10/site-packages/ldap0-1.4.8-py3.10.egg-info/PKG-INFO'
The ldap0-1.4.8.tar.gz tarball in your python-ldap0 package contains files with weird permissions: -rw------- michael/users 2833 2022-02-21 11:47 ldap0-1.4.8/ldap0.egg-info/PKG-INFO -rw------- michael/users 2390 2022-02-21 11:47 ldap0-1.4.8/ldap0.egg-info/SOURCES.txt -rw------- michael/users 1 2022-02-21 11:47 ldap0-1.4.8/ldap0.egg-info/dependency_links.txt -rw------- michael/users 47 2022-02-21 11:47 ldap0-1.4.8/ldap0.egg-info/requires.txt -rw------- michael/users 16 2022-02-21 11:47 ldap0-1.4.8/ldap0.egg-info/top_level.txt -rw------- michael/users 1 2022-02-21 11:47 ldap0-1.4.8/ldap0.egg-info/zip-safe Those get copied over in the resuling binary package, leading to the following builds not being able to read the files. See also https://github.com/PyTables/PyTables/issues/488 for a discussion about a similar issue. I would "normalize" the permissions in the build() section of your PKGBUILD file, i.e. add something like chmod -R a+r . after the "cd" command. Cheers, Michael. -- Michael Schroeder SUSE Software Solutions Germany GmbH mls@suse.de GF: Felix Imendoerffer HRB 36809, AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}