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' If I remove the local repo dependency such a package builds but without the correct dependency. Any clue what's going on? Anything I have to add to the project config to make it work? Many thanks in advance. Ciao, Michael.
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'
If I remove the local repo dependency such a package builds but without the correct dependency.
Any clue what's going on? Anything I have to add to the project config to make it work?
Many thanks in advance.
Ciao, Michael.
Ciao Michael, I maintain a few packages both in AUR and OBS. I can take a look at them by "forking" them (I do not remember the OBS correct word) and making some experiments. Would that be okay for you? Bests, -- Giovanni Santini Telegram: @ItachiSan Github: https://github.com/ItachiSan LinkedIn: https://www.linkedin.com/in/giovanni-santini/ Facebook: https://fb.me/giovanni.santini
On 2/26/22 11:56, Giovanni Santini wrote:
On 2022-02-23 12:05 AM, Michael Ströder wrote:
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'
If I remove the local repo dependency such a package builds but without the correct dependency.
Any clue what's going on? Anything I have to add to the project config to make it work?
I maintain a few packages both in AUR and OBS.
I can take a look at them by "forking" them (I do not remember the OBS correct word) and making some experiments.
Would that be okay for you?
Giovanni, I'd highly appreciate any help on this. Many thanks in advance! Background: I'm not even using Arch myself. For a colleague I've started supporting to run my https://ae-dir.com/ on Arch Linux, but currently installing all Python stuff in a virtual env. While this works ok I'm trying to use native Arch packages because most of the dependencies are already there with sufficiently recent versions. Ciao, Michael.
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);}
On 2/28/22 10:35, Michael Schroeder wrote:
On Sat, Feb 26, 2022 at 11:56:14AM +0100, Giovanni Santini wrote:
On 2022-02-23 12:05 AM, Michael Ströder wrote:
I'm trying to build mostly Python modules for Arch Linux:
https://build.opensuse.org/project/show/home:stroeder:arch-iam [..] 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:
Ah, many thanks for spotting this! Hmmpf - a typical case for me overlooking something obvious. Thanks again. Ciao, Michael.
participants (3)
-
Giovanni Santini
-
Michael Schroeder
-
Michael Ströder