All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: Gwenhael Goavec-Merou <gwenj@trabucayre.com>
Cc: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v3] package/gnuradio: fix gnuradio python libraries for cross-compile
Date: Tue, 29 Aug 2023 18:52:05 +0200	[thread overview]
Message-ID: <87fs414wqy.fsf@48ers.dk> (raw)
In-Reply-To: <1689767858-17206-1-git-send-email-gwenj@trabucayre.com> (Gwenhael Goavec-Merou's message of "Wed, 19 Jul 2023 13:57:38 +0200")

>>>>> "Gwenhael" == Gwenhael Goavec-Merou <gwenj@trabucayre.com> writes:

 > From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
 > By default, module libraries have a suffix based on cpython version + host
 > architecture: this is fine for a native compile when these libraries are used on
 > the same computer (or similar computers). But when target architecture is not
 > the same python is unable to find libraries due to the wrong suffix and produces
 > unclear errors messages:

 > # python3
 > Python 3.11.3 (main, Jun 19 2023, 14:15:44) [GCC 11.4.0] on linux
 > Type "help", "copyright", "credits" or "license" for more information.
 >>>> from gnuradio import blocks  
 > Traceback (most recent call last):
 >   File "/home/xxx/buildroot/output/build/gnuradio-3.10.4.0/gr-blocks/python/blocks/__init__.py", line 18, in <module>
 > ModuleNotFoundError: No module named 'gnuradio.blocks.blocks_python'

 > During handling of the above exception, another exception occurred:

 > Traceback (most recent call last):
 >   File "<stdin>", line 1, in <module>
 >   File "/home/xxx/buildroot/output/build/gnuradio-3.10.4.0/gr-blocks/python/blocks/__init__.py", line 22, in <module>
 > ModuleNotFoundError: No module named 'gnuradio.blocks.blocks_python'
 >>>> 

 > By adding _PYTHON_SYSCONFIGDATA_NAME="$(PKG_PYTHON_SYSCONFIGDATA_NAME)" at configure time, sysconfig will
 > return correct informations (target architecture) instead of host architecture.

 > Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
 > ---
 > Changes v2 -> v3:
 > - replaces PYTHON_MODULE_EXTENSION by _PYTHON_SYSCONFIGDATA_NAME env (arnout)
 > Changes v1 -> v2:
 > - replaces patch by PYTHON_MODULE_EXTENSION option (result is the same
 >   but less "noisy")

Committed to 2023.02.x and 2023.05.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2023-08-29 16:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-19 11:57 [Buildroot] [PATCH v3] package/gnuradio: fix gnuradio python libraries for cross-compile Gwenhael Goavec-Merou
2023-07-21 21:12 ` Thomas Petazzoni via buildroot
2023-07-22 10:28   ` Julien Olivain
2023-07-22 21:15 ` Thomas Petazzoni via buildroot
2023-08-29 16:52 ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fs414wqy.fsf@48ers.dk \
    --to=peter@korsgaard.com \
    --cc=buildroot@buildroot.org \
    --cc=gwenhael.goavec-merou@trabucayre.com \
    --cc=gwenj@trabucayre.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.