pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc PR pkg/47444 diro: py-libxslt is broken. Need...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/423db1b4cbd3
branches:  trunk
changeset: 362464:423db1b4cbd3
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon May 15 18:07:40 2017 +0000

description:
PR pkg/47444 diro: py-libxslt is broken. Needs to link explicitly to
libxml2mod.so, so do that and fix rpath handling.

diffstat:

 textproc/libxslt/distinfo                      |   3 +-
 textproc/libxslt/patches/patch-python_setup.py |  34 ++++++++++++++++++++++++++
 textproc/py-libxslt/Makefile                   |   7 ++++-
 3 files changed, 42 insertions(+), 2 deletions(-)

diffs (90 lines):

diff -r c879919462b9 -r 423db1b4cbd3 textproc/libxslt/distinfo
--- a/textproc/libxslt/distinfo Mon May 15 15:50:29 2017 +0000
+++ b/textproc/libxslt/distinfo Mon May 15 18:07:40 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.57 2016/05/29 21:06:46 wiz Exp $
+$NetBSD: distinfo,v 1.58 2017/05/15 18:07:40 dholland Exp $
 
 SHA1 (libxslt-1.1.29.tar.gz) = edcaeabb3555ae44853bdc406ee9521fb65c620d
 RMD160 (libxslt-1.1.29.tar.gz) = 40a5202b3967db6b01cd6c0e722a9e459cac7960
@@ -6,3 +6,4 @@
 Size (libxslt-1.1.29.tar.gz) = 3428524 bytes
 SHA1 (patch-ae) = 40ce3940a93b6a2dc804f62676909d3313e0ea52
 SHA1 (patch-ah) = f92809ab34e53962ec8b62e50ded7a27c89f10f8
+SHA1 (patch-python_setup.py) = 20b257926a8626bce44ca0448d618619a7d69995
diff -r c879919462b9 -r 423db1b4cbd3 textproc/libxslt/patches/patch-python_setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxslt/patches/patch-python_setup.py    Mon May 15 18:07:40 2017 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-python_setup.py,v 1.1 2017/05/15 18:07:40 dholland Exp $
+
+Fix rpath handling. Needs to link to libxml2mod.so explicitly.
+
+--- python/setup.py.orig       2017-05-15 18:02:13.012917947 +0000
++++ python/setup.py
+@@ -53,7 +53,7 @@ if xml_includes == "":
+ iconv_includes="@LIBICONVDIR@/include"
+ 
+ # those are added in the linker search path for libraries
+-libdirs = ["@LIBXML2DIR@/lib"]
++libdirs = ["@LIBXML2DIR@/lib", "@PYSHLIBDIR@"]
+ 
+ xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
+              "libxml.c", "libxml.py", "libxml_wrap.h", "types.c",
+@@ -132,7 +132,7 @@ descr = "libxml2 package"
+ modules = []
+ c_files = []
+ includes= [xml_includes, iconv_includes]
+-libs    = [] + platformLibs
++libs    = ["xml2mod"] + platformLibs
+ macros  = []
+ if with_threads:
+     macros.append(('_REENTRANT','1'))
+@@ -161,7 +161,8 @@ if with_xslt == 1:
+ extens=[]
+ if with_xslt == 1:
+     extens.append(Extension('libxsltmod', xslt_c_files, include_dirs=includes,
+-                          library_dirs=libdirs, 
++                          library_dirs=libdirs,
++                          runtime_library_dirs=libdirs,
+                             libraries=libs, define_macros=macros))
+ 
+ if missing("MANIFEST"):
diff -r c879919462b9 -r 423db1b4cbd3 textproc/py-libxslt/Makefile
--- a/textproc/py-libxslt/Makefile      Mon May 15 15:50:29 2017 +0000
+++ b/textproc/py-libxslt/Makefile      Mon May 15 18:07:40 2017 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.48 2017/01/01 14:44:01 wiz Exp $
+# $NetBSD: Makefile,v 1.49 2017/05/15 18:07:40 dholland Exp $
 
 .include "../../textproc/libxslt/Makefile.common"
 
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    textproc python
 
 MAINTAINER=    minskim%NetBSD.org@localhost
@@ -18,6 +19,8 @@
 
 MAKE_ENV+=             PYLIBXSLTVERSION=${PKGVERSION}
 
+PYSITEDIR=             ${PREFIX}/lib/python${PYVERSSUFFIX}/site-packages
+
 SUBST_CLASSES+=                setup
 SUBST_MESSAGE.setup=   Fixing hardcoded paths.
 SUBST_STAGE.setup=     pre-build
@@ -25,12 +28,14 @@
 SUBST_SED.setup=       -e "s,@LIBICONVDIR@,${BUILDLINK_PREFIX.iconv},g"
 SUBST_SED.setup+=      -e "s,@LIBXML2DIR@,${BUILDLINK_PREFIX.libxml2},g"
 SUBST_SED.setup+=      -e "s,@LIBXSLTDIR@,${BUILDLINK_PREFIX.libxslt},g"
+SUBST_SED.setup+=      -e "s,@PYSHLIBDIR@,${PYSITEDIR},g"
 
 post-extract: setuppy
 .PHONY: setuppy
 setuppy:
        ${CP} ${FILESDIR}/setup.py ${WRKSRC}/python
 
+.include "../../textproc/py-libxml2/buildlink3.mk"
 BUILDLINK_API_DEPENDS.libxslt+=        libxslt>=${PKGVERSION}
 .include "../../textproc/libxslt/buildlink3.mk"
 .include "../../lang/python/extension.mk"



Home | Main Index | Thread Index | Old Index