On Sat, Nov 18, 2017 at 10:30:49PM +0000, Ken Moffat wrote:
> On Sat, Nov 18, 2017 at 03:08:49PM -0600, Bruce Dubbs wrote:
> >
> > This is what arc does for libxml2:
> >
> > https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/libxml2
> >
> > but theirs is a bit more complicated because they have python==python3 and
> > have to work around those packages that assume otherwise.
> >
>
> Thanks for the link.
>
The following works to build the libxml2 modules for both python2
and python3:
1. Run the sed (we still describe it as if conditional, but we then
invoke Python3). This seems to fix something for current Python3,
i.e. it changes code which is for Python major version 3 or later,
so not harmful for Python2.
2. create a separate subdirectory for python2, build there using
../configure and make [ I tried just make -C python but that failed
because it needed the main lib ], then make install in the python
directory, finally go back to the main directory :
mkdir py2
cd py2
../configure with all desired options including disable-static
EXCEPT omit --with-python
make
make check if desired - the python2 libs link agaisnt libxml2.so.2
but are not directly tested.
make -C python install
cd ..
continue with the current ./configure
That doubles the build time (I started timing using --with-icu and
discovered that my SBU was more than double what is in the book for
just the python2 part, then retried without that and got to 0.4 SBU
for each part.
Space is increased by 20MB.
3. Installed files - I think I've got the enable/disable part of my
scripts sorted now. The follwoing are installed in
/usr/lib/python{2.7,3.6}/site-packages :
drv_libxml2.py
libxml2mod.la which I anyway make unavailable
libxml2mod.so
libxml2.py
So far, gimp-help uses libxml2.py (I assume that is a wrapper for
libxml2mod.so) but when it first uses it a libxml2.pyc version is
created : I assume anything else using that or drv_libxml2.py will
do the same. Not a concern for hte book.
I'll wait for comments from Pierre, but I'm inclined to open a
ticket and start recording what is known to need the python2 module.
We can bike-shed about how best to build it and to explain the
commands. ;-)
ĸen
--
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
- Unseen Academicals
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page