* [Buildroot] [PATCH 1/1] package/cracklib: python needs autoreconf
@ 2024-02-11 17:07 Fabrice Fontaine
2024-02-11 21:33 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-02-11 17:07 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine, Stefan Sørensen
Set CRACKLIB_AUTORECONF when building python to regenerate
python/test/Makefile and avoid the following build failure with python
3.12 (which removed imp mpodule) raised since commit
36e635d2d5c0166476858aa239ccbe78e8f2af14:
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'imp'
make[3]: *** [Makefile:485: install-pythonPYTHON] Error 1
Fixes:
- http://autobuild.buildroot.org/results/aec4c19fdf8087c76c1d5f472e855e0f84fcf7fd
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/cracklib/cracklib.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/cracklib/cracklib.mk b/package/cracklib/cracklib.mk
index c5226b3326..dce1fe9c9f 100644
--- a/package/cracklib/cracklib.mk
+++ b/package/cracklib/cracklib.mk
@@ -22,6 +22,8 @@ CRACKLIB_CONF_OPTS += --without-zlib
endif
ifeq ($(BR2_PACKAGE_PYTHON3),y)
+# Needed because python 3.12 removed imp module
+CRACKLIB_AUTORECONF = YES
CRACKLIB_CONF_OPTS += --with-python
CRACKLIB_CONF_ENV += \
ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3 \
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/cracklib: python needs autoreconf
2024-02-11 17:07 [Buildroot] [PATCH 1/1] package/cracklib: python needs autoreconf Fabrice Fontaine
@ 2024-02-11 21:33 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-02-11 21:33 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Stefan Sørensen, buildroot
On Sun, 11 Feb 2024 18:07:07 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Set CRACKLIB_AUTORECONF when building python to regenerate
> python/test/Makefile and avoid the following build failure with python
> 3.12 (which removed imp mpodule) raised since commit
> 36e635d2d5c0166476858aa239ccbe78e8f2af14:
>
> Traceback (most recent call last):
> File "<string>", line 2, in <module>
> ModuleNotFoundError: No module named 'imp'
> make[3]: *** [Makefile:485: install-pythonPYTHON] Error 1
>
> Fixes:
> - http://autobuild.buildroot.org/results/aec4c19fdf8087c76c1d5f472e855e0f84fcf7fd
Thanks for the fix. Could you describe a bit how an autoreconf helps in
resolving this? Is it because the new Python comes with a newer set of
.m4 macros?
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-11 21:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-11 17:07 [Buildroot] [PATCH 1/1] package/cracklib: python needs autoreconf Fabrice Fontaine
2024-02-11 21:33 ` Thomas Petazzoni via buildroot
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.