> On Jan 20, 2020, at 1:18 PM, Pascal <p....@orange.fr> wrote:
> 
> Hello,
> 
> I fall into a recurrent issue which keeps me puzzled.
> My configuration macOS 10.15 / Xcode 11.3 with a fresh GTK-OSX install :
> $ sh gtk-osx-setup.sh # Installing CPython 3.6.10 
> $ jhbuild bootstrap-gtk-osx
> $ jhbuild build python
> $ jhbuild build meta-gtk-osx-bootstrap
> ...
> *** Configuring libxml2 *** [7/11]
> /opt/2020a/src-2020/libxml2-2.9.8/configure --prefix /opt/2020a/xnadalib-2020 
> --libdir="$JHBUILD_LIBDIR" --with-python  
> --with-python-install-dir=/opt/2020a/xnadalib-2020/lib/python3.6/site-packages
>  
> ...
> *** Configuring itstool *** [9/11]
> /opt/2020a/src-2020/itstool-2.0.6/configure --prefix /opt/2020a/xnadalib-2020 
>   
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... 
> /opt/2020a/src-2020/itstool-2.0.6/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking for a Python interpreter with version >= 2.6... python3
> checking for python3... 
> /opt/2020a/src-2020/.new_local/share/venv/etc-teWAGlKT/bin/python3
> checking for python3 version... 3.6
> checking for python3 platform... darwin
> checking for python3 script directory... ${prefix}/lib/python3.6/site-packages
> checking for python3 extension module directory... 
> ${exec_prefix}/lib/python3.6/site-packages
> checking for python module libxml2... not found
> configure: error: Python module libxml2 is needed to run this package
> *** Error during phase configure of itstool: ########## Error running 
> /opt/2020a/src-2020/itstool-2.0.6/configure --prefix /opt/2020a/xnadalib-2020 
>    *** [9/11]
> 
> My previous builds were ok on macOS 10.13:
> *** Configuring libxml2 *** [10/13]
> /usr/local/src-2019/libxml2-2.9.8/configure --prefix /usr/local/xnadalib-2019 
> --libdir="$JHBUILD_LIBDIR" --with-python  
> ...
> *** Configuring itstool *** [11/13]
> /usr/local/src-2019/itstool-2.0.6/configure --prefix /usr/local/xnadalib-2019 
>   
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... 
> /usr/local/src-2019/itstool-2.0.6/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking for a Python interpreter with version >= 2.6... python
> checking for python... /usr/local/xnadalib-2019/bin/python
> checking for python version... 2.7
> checking for python platform... darwin
> checking for python script directory... ${prefix}/lib/python2.7/site-packages
> checking for python extension module directory... 
> ${exec_prefix}/lib/python2.7/site-packages
> checking for python module libxml2... found
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating itstool
> config.status: creating itstool.1
> config.status: creating its/Makefile
> config.status: creating setup.py
> 
> It seems it concerns Python versions but how to make itstools to get the good 
> one?

Pascal,

The code at the end of 
https://gitlab.gnome.org/GNOME/gtk-osx/blob/master/jhbuildrc-gtk-osx is 
supposed to get libxml2 to install to $PREFIX so that itstool's configure can 
find it, but I've had a lot of trouble getting it to work consistently. You can 
try fiddling with it.

Then there's the big hammer approach: Add python3 to your modules and when 
itstool complains drop to a shell, cd $PREFIX/bin; ln -s python3.6 python; ln 
-s python3.6-config python-config Then go back to the libxml2 build dir and 
rerun configure, make, and make install by hand. With all of that done you can 
quit the shell and rerun itstool's configure. It's a little tedious but it's 
known to work.

Regards,
John Ralls


_______________________________________________
gtk-osx-users-list mailing list
gtk-osx-users-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list

Reply via email to