Building a python module only for x86_64?
Good <insert-time-of-day> everyone, I am trying to package pynitrokey for openSUSE, which requires https://github.com/nxp-mcuxpresso/pypemicro I packaged it and it builds successfully, but only on x86_64. All other architectures fail, as apparently the module does not support it. I am in clarification with upstream. If x86_64 is really the only architecture, how would I prevent builds for other architectures? Simply disable the build targets in my branched project, submit to dlp (and disable them there too) and submit to Factory asking to only build for x86_64? Or is there something I should add inside the spec? ExclusiveArch or ExcludeArch sound like they could do the job, not sure if they are being used for openSUSE? Thanks in advance. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Mon, May 15, 2023 at 9:28 AM Johannes Kastl <kastl@b1-systems.de> wrote:
Good <insert-time-of-day> everyone,
I am trying to package pynitrokey for openSUSE, which requires https://github.com/nxp-mcuxpresso/pypemicro
I packaged it and it builds successfully, but only on x86_64. All other architectures fail, as apparently the module does not support it. I am in clarification with upstream.
If x86_64 is really the only architecture, how would I prevent builds for other architectures? Simply disable the build targets in my branched project, submit to dlp (and disable them there too) and submit to Factory asking to only build for x86_64?
Or is there something I should add inside the spec? ExclusiveArch or ExcludeArch sound like they could do the job, not sure if they are being used for openSUSE?
Yes, they are used. If you want to submit to the Factory this is most certainly the correct way to do it.
Hi Andrei, On 15.05.23 at 08:35 Andrei Borzenkov wrote:
On Mon, May 15, 2023 at 9:28 AM Johannes Kastl <kastl@b1-systems.de> wrote:
Or is there something I should add inside the spec? ExclusiveArch or ExcludeArch sound like they could do the job, not sure if they are being used for openSUSE?
Yes, they are used. If you want to submit to the Factory this is most certainly the correct way to do it.
Thanks for the fast confirmation. I'll give it a try. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Montag, 15. Mai 2023 08:28:32 CEST Johannes Kastl wrote:
Good <insert-time-of-day> everyone,
I am trying to package pynitrokey for openSUSE, which requires https://github.com/nxp-mcuxpresso/pypemicro
I packaged it and it builds successfully, but only on x86_64. All other architectures fail, as apparently the module does not support it. I am in clarification with upstream.
It contains and requires a pre-built, binary only, proprietary library. This is not distributable on OBS. https://github.com/nxp-mcuxpresso/pypemicro/tree/master/pypemicro/libs/Linux Regards, Stefan
On 15.05.23 at 08:45 Stefan Brüns wrote:
On Montag, 15. Mai 2023 08:28:32 CEST Johannes Kastl wrote:
Good <insert-time-of-day> everyone,
I am trying to package pynitrokey for openSUSE, which requires https://github.com/nxp-mcuxpresso/pypemicro
I packaged it and it builds successfully, but only on x86_64. All other architectures fail, as apparently the module does not support it. I am in clarification with upstream.
It contains and requires a pre-built, binary only, proprietary library. This is not distributable on OBS.
https://github.com/nxp-mcuxpresso/pypemicro/tree/master/pypemicro/libs/Linux
Thanks for checking, Stefan. I checked the license in the repository, but did not dig deeper. Damn. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Montag, 15. Mai 2023 09:11:16 CEST Johannes Kastl wrote:
On 15.05.23 at 08:45 Stefan Brüns wrote:
On Montag, 15. Mai 2023 08:28:32 CEST Johannes Kastl wrote:
Good <insert-time-of-day> everyone,
I am trying to package pynitrokey for openSUSE, which requires https://github.com/nxp-mcuxpresso/pypemicro
I packaged it and it builds successfully, but only on x86_64. All other architectures fail, as apparently the module does not support it. I am in clarification with upstream.
It contains and requires a pre-built, binary only, proprietary library. This is not distributable on OBS.
https://github.com/nxp-mcuxpresso/pypemicro/tree/master/pypemicro/libs/Lin ux
Thanks for checking, Stefan. I checked the license in the repository, but did not dig deeper. Damn.
As the usage of the PEMicro debug probe is fairly optional (one other supported debug probe is OpenOCD), the dependency can be patched out of the SPSK, see e.g. https://github.com/nxp-mcuxpresso/spsdk/issues/30 Regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen phone: +49 241 53809034 mobile: +49 151 50412019
Hi Stefan, On 15.05.23 at 09:59 Stefan Brüns wrote:
As the usage of the PEMicro debug probe is fairly optional (one other supported debug probe is OpenOCD), the dependency can be patched out of the SPSK, see e.g. https://github.com/nxp-mcuxpresso/spsdk/issues/30
Thanks, I'll give it a try. Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (3)
-
Andrei Borzenkov
-
Johannes Kastl
-
Stefan Brüns