libxml2: Update to disable python2 modules

Message ID 20210511191605.3673715-1-adolf.belka@ipfire.org
State Accepted
Commit 607754d63d6fab7b9e5535f4576b50a3c2df7d14
Headers
Series libxml2: Update to disable python2 modules |

Commit Message

Adolf Belka May 11, 2021, 7:16 p.m. UTC
  - Added --without-python to configure section to not build the python2
  modules which are not required for libxml2 use in IPFire
- Update rootfile

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/libxml2 | 58 ---------------------------------
 lfs/libxml2                     |  6 +++-
 2 files changed, 5 insertions(+), 59 deletions(-)
  

Patch

diff --git a/config/rootfiles/common/libxml2 b/config/rootfiles/common/libxml2
index 83253eaa1..a1176d7af 100644
--- a/config/rootfiles/common/libxml2
+++ b/config/rootfiles/common/libxml2
@@ -57,10 +57,6 @@ 
 usr/lib/libxml2.so.2
 usr/lib/libxml2.so.2.9.10
 #usr/lib/pkgconfig/libxml-2.0.pc
-usr/lib/python2.7/site-packages/drv_libxml2.py
-usr/lib/python2.7/site-packages/libxml2.py
-#usr/lib/python2.7/site-packages/libxml2mod.la
-usr/lib/python2.7/site-packages/libxml2mod.so
 #usr/lib/xml2Conf.sh
 #usr/share/aclocal/libxml.m4
 #usr/share/doc/libxml2-2.9.10
@@ -222,60 +218,6 @@  usr/lib/python2.7/site-packages/libxml2mod.so
 #usr/share/doc/libxml2-2.9.10/html/xpath1.res
 #usr/share/doc/libxml2-2.9.10/html/xpath2.c
 #usr/share/doc/libxml2-2.9.10/html/xpath2.res
-#usr/share/doc/libxml2-python-2.9.10
-#usr/share/doc/libxml2-python-2.9.10/TODO
-#usr/share/doc/libxml2-python-2.9.10/examples
-#usr/share/doc/libxml2-python-2.9.10/examples/attribs.py
-#usr/share/doc/libxml2-python-2.9.10/examples/build.py
-#usr/share/doc/libxml2-python-2.9.10/examples/compareNodes.py
-#usr/share/doc/libxml2-python-2.9.10/examples/ctxterror.py
-#usr/share/doc/libxml2-python-2.9.10/examples/cutnpaste.py
-#usr/share/doc/libxml2-python-2.9.10/examples/dtdvalid.py
-#usr/share/doc/libxml2-python-2.9.10/examples/error.py
-#usr/share/doc/libxml2-python-2.9.10/examples/inbuf.py
-#usr/share/doc/libxml2-python-2.9.10/examples/indexes.py
-#usr/share/doc/libxml2-python-2.9.10/examples/input_callback.py
-#usr/share/doc/libxml2-python-2.9.10/examples/invalid.xml
-#usr/share/doc/libxml2-python-2.9.10/examples/nsdel.py
-#usr/share/doc/libxml2-python-2.9.10/examples/outbuf.py
-#usr/share/doc/libxml2-python-2.9.10/examples/push.py
-#usr/share/doc/libxml2-python-2.9.10/examples/pushSAX.py
-#usr/share/doc/libxml2-python-2.9.10/examples/pushSAXhtml.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader2.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader3.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader4.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader5.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader6.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader7.py
-#usr/share/doc/libxml2-python-2.9.10/examples/reader8.py
-#usr/share/doc/libxml2-python-2.9.10/examples/readererr.py
-#usr/share/doc/libxml2-python-2.9.10/examples/readernext.py
-#usr/share/doc/libxml2-python-2.9.10/examples/regexp.py
-#usr/share/doc/libxml2-python-2.9.10/examples/relaxng.py
-#usr/share/doc/libxml2-python-2.9.10/examples/resolver.py
-#usr/share/doc/libxml2-python-2.9.10/examples/schema.py
-#usr/share/doc/libxml2-python-2.9.10/examples/serialize.py
-#usr/share/doc/libxml2-python-2.9.10/examples/sync.py
-#usr/share/doc/libxml2-python-2.9.10/examples/test.dtd
-#usr/share/doc/libxml2-python-2.9.10/examples/thread2.py
-#usr/share/doc/libxml2-python-2.9.10/examples/tst.py
-#usr/share/doc/libxml2-python-2.9.10/examples/tst.xml
-#usr/share/doc/libxml2-python-2.9.10/examples/tstLastError.py
-#usr/share/doc/libxml2-python-2.9.10/examples/tstURI.py
-#usr/share/doc/libxml2-python-2.9.10/examples/tstmem.py
-#usr/share/doc/libxml2-python-2.9.10/examples/tstxpath.py
-#usr/share/doc/libxml2-python-2.9.10/examples/valid.xml
-#usr/share/doc/libxml2-python-2.9.10/examples/validDTD.py
-#usr/share/doc/libxml2-python-2.9.10/examples/validRNG.py
-#usr/share/doc/libxml2-python-2.9.10/examples/validSchemas.py
-#usr/share/doc/libxml2-python-2.9.10/examples/validate.py
-#usr/share/doc/libxml2-python-2.9.10/examples/walker.py
-#usr/share/doc/libxml2-python-2.9.10/examples/xpath.py
-#usr/share/doc/libxml2-python-2.9.10/examples/xpathext.py
-#usr/share/doc/libxml2-python-2.9.10/examples/xpathleak.py
-#usr/share/doc/libxml2-python-2.9.10/examples/xpathns.py
-#usr/share/doc/libxml2-python-2.9.10/examples/xpathret.py
 #usr/share/gtk-doc
 #usr/share/gtk-doc/html
 #usr/share/gtk-doc/html/libxml2
diff --git a/lfs/libxml2 b/lfs/libxml2
index e3488f054..fd4b5e577 100644
--- a/lfs/libxml2
+++ b/lfs/libxml2
@@ -73,7 +73,11 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
 	$(UPDATE_AUTOMAKE)
-	cd $(DIR_APP) && ./configure --prefix=/usr --disable-static --with-history
+	cd $(DIR_APP) && ./configure 		\
+			--prefix=/usr 		\
+			--disable-static 	\
+			--with-history		\
+			--without-python
 	cd $(DIR_APP) && make $(MAKETUNING)
 	cd $(DIR_APP) && make install
 	@rm -rf $(DIR_APP)