From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH 29/29] make.sh: Build some dependencies for glib earlier Date: Tue, 20 Dec 2022 16:07:18 +0000 Message-ID: In-Reply-To: <3ed0c2c3-3063-c41e-0190-75594a9a4494@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0702703840483525974==" List-Id: --===============0702703840483525974== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, Yes, you will need all the other Python dependencies for all modules to be bu= ilt. ctypes needs libffi. If there is more stuff missing, the root file will tell = you. Best, -Michael > On 20 Dec 2022, at 12:03, Peter M=C3=BCller wr= ote: >=20 > Hello Michael, >=20 > thanks for your reply. >=20 >> Hello, >>=20 >> Errm, it looks like I might have messed up my final clean build. >>=20 >> Obviously Python 3 must be built before python3-setuptools, meson and so o= n. >>=20 >> Could you try that for me, please? >=20 > I did, but it does not make a difference. Even with some things moved before > python3-setuptools, meson, etc. pp. as well for good measure, glib build st= ill > fails with the same error message. >=20 > Current make.sh delta is as follows: >=20 > diff --git a/make.sh b/make.sh > index 88048dbf9..bdbcc50b5 100755 > --- a/make.sh > +++ b/make.sh > @@ -1176,6 +1176,11 @@ buildipfire() { > lfsmake2 xradio KCFG=3D"" > lfsmake2 linux-initrd KCFG=3D"" >=20 > + lfsmake2 expat > + lfsmake2 libconfig > + lfsmake2 json-c > + lfsmake2 tcl > + lfsmake2 python3 > lfsmake2 python3-setuptools > lfsmake2 libffi > lfsmake2 ninja > @@ -1187,10 +1192,7 @@ buildipfire() { > lfsmake2 libassuan > lfsmake2 nettle > lfsmake2 libsodium > - lfsmake2 json-c > - lfsmake2 libconfig > lfsmake2 libevent2 > - lfsmake2 expat > lfsmake2 apr > lfsmake2 aprutil > lfsmake2 unbound > @@ -1206,9 +1208,7 @@ buildipfire() { > lfsmake2 pam > lfsmake2 c-ares > lfsmake2 curl > - lfsmake2 tcl > lfsmake2 sqlite > - lfsmake2 python3 > lfsmake2 rust > lfsmake2 rust-dissimilar > lfsmake2 rust-cfg-if >=20 > Anything else I could try? :-) >=20 > Thanks, and best regards, > Peter M=C3=BCller >=20 >>=20 >> -Michael >>=20 >>> On 17 Dec 2022, at 21:03, Peter M=C3=BCller = wrote: >>>=20 >>> Hello Michael, >>>=20 >>> currently working on Core Update 173, this patch seems to break glib (at = least >>> that's what I am assuming, given that glib itself has not been touched in= a >>> while): >>>=20 >>>> glib (2.71.1) = = [ = 0 ][ FAIL ] >>>>=20 >>>> 'dest/tools_x86_64/bin/meson' -> '/tools_x86_64/bin/meson' >>>> Updating linker cache... >>>> Install done; saving file list to /usr/src/log/meson-0.64.1 ... >>>> Dec 17 19:05:41: Building glib glib-2.71.1.tar.xz checksum OK >>>> + cd /usr/src/lfs >>>> + make -f glib LFS_BASEDIR=3D/usr/src install >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Installing glib-2.71.1 ... >>>> Install started; saving file list to /usr/src/lsalr ... >>>> cd /usr/src/glib-2.71.1 && meson --prefix=3D/usr \ >>>> --sysconfdir=3D/etc \ >>>> builddir/ >>>> Traceback (most recent call last): >>>> File "/tools_x86_64/bin/meson", line 33, in >>>> sys.exit(load_entry_point('meson=3D=3D0.64.1', 'console_scripts', 'mes= on')()) >>>> File "/tools_x86_64/lib/python3.10/site-packages/mesonbuild/mesonmain.= py", line 287, in main >>>> return run(sys.argv[1:], launcher) >>>> File "/tools_x86_64/lib/python3.10/site-packages/mesonbuild/mesonmain.= py", line 277, in run >>>> set_meson_command(mainfile) >>>> File "/tools_x86_64/lib/python3.10/site-packages/mesonbuild/mesonmain.= py", line 235, in set_meson_command >>>> from . import mesonlib >>>> File "/tools_x86_64/lib/python3.10/site-packages/mesonbuild/mesonlib.p= y", line 24, in >>>> from .utils.vsenv import * >>>> File "/tools_x86_64/lib/python3.10/site-packages/mesonbuild/utils/vsen= v.py", line 9, in >>>> from .universal import MesonException, is_windows, windows_detect_nati= ve_arch >>>> File "/tools_x86_64/lib/python3.10/site-packages/mesonbuild/utils/univ= ersal.py", line 20, in >>>> import ctypes >>>> File "/tools_x86_64/lib/python3.10/ctypes/__init__.py", line 8, in >>>> from _ctypes import Union, Structure, Array >>>> ModuleNotFoundError: No module named '_ctypes' >>>> make: *** [glib:74: /usr/src/log/glib-2.71.1] Error 1 >>>=20 >>> Am I missing anything? How did you get this to work? :-) >>>=20 >>> Thanks, and best regards, >>> Peter M=C3=BCller >>>=20 >>>=20 >>>> Signed-off-by: Michael Tremer >>>> --- >>>> make.sh | 8 ++++---- >>>> 1 file changed, 4 insertions(+), 4 deletions(-) >>>>=20 >>>> diff --git a/make.sh b/make.sh >>>> index 0d1457d99..2cf47e6a9 100755 >>>> --- a/make.sh >>>> +++ b/make.sh >>>> @@ -1176,6 +1176,10 @@ buildipfire() { >>>> lfsmake2 xradio KCFG=3D"" >>>> lfsmake2 linux-initrd KCFG=3D"" >>>>=20 >>>> + lfsmake2 python3-setuptools >>>> + lfsmake2 libffi >>>> + lfsmake2 ninja >>>> + lfsmake2 meson >>>> lfsmake2 glib >>>> lfsmake2 libgudev >>>> lfsmake2 libgpg-error >>>> @@ -1204,7 +1208,6 @@ buildipfire() { >>>> lfsmake2 curl >>>> lfsmake2 tcl >>>> lfsmake2 sqlite >>>> - lfsmake2 libffi >>>> lfsmake2 python3 >>>> lfsmake2 rust >>>> lfsmake2 rust-dissimilar >>>> @@ -1324,8 +1327,6 @@ buildipfire() { >>>> lfsmake2 nasm >>>> lfsmake2 libarchive >>>> lfsmake2 cmake >>>> - lfsmake2 ninja >>>> - lfsmake2 meson >>>> lfsmake2 libjpeg >>>> lfsmake2 openjpeg >>>> lfsmake2 libexif >>>> @@ -1420,7 +1421,6 @@ buildipfire() { >>>> lfsmake2 perl-Crypt-PasswdMD5 >>>> lfsmake2 perl-Net-Telnet >>>> lfsmake2 perl-JSON >>>> - lfsmake2 python3-setuptools >>>> lfsmake2 python3-inotify >>>> lfsmake2 python3-docutils >>>> lfsmake2 python3-daemon >>=20 --===============0702703840483525974==--