Index: head/textproc/libxml2/Makefile =================================================================== --- head/textproc/libxml2/Makefile (revision 489054) +++ head/textproc/libxml2/Makefile (revision 489055) @@ -1,72 +1,76 @@ # Created by: Yukihiro Nakai # $FreeBSD$ PORTNAME= libxml2 -PORTVERSION= 2.9.7 +PORTVERSION= 2.9.8 PORTREVISION?= 0 CATEGORIES?= textproc gnome MASTER_SITES= http://xmlsoft.org/sources/ DIST_SUBDIR= gnome2 MAINTAINER?= gnome@FreeBSD.org COMMENT?= XML parser library for GNOME .if !defined(REFERENCE_PORT) -LICENSE= MIT -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE= MIT TRIO +LICENSE_COMB= multi +LICENSE_NAME_TRIO= Trio License +LICENSE_FILE_MIT= ${WRKSRC}/COPYING +LICENSE_FILE_TRIO= ${FILESDIR}/LICENSE.TRIO +LICENSE_PERMS_TRIO= ${_LICENSE_PERMS_DEFAULT} GNU_CONFIGURE= yes USES+= cpe gmake iconv libtool pathfix pkgconfig shebangfix CPE_VENDOR= xmlsoft USE_LDCONFIG= yes CONFIGURE_ARGS?=--with-iconv=${ICONV_PREFIX} \ --with-html-dir=${PREFIX}/share/doc \ --with-html-subdir=${PORTNAME} \ --without-icu \ --with-lzma=/usr \ --without-python INSTALL_TARGET= install-strip SHEBANG_FILES= *.py */*.py */*/*.py PLIST_SUB+= LIBVERSION=${PORTVERSION} .if !defined(MASTERDIR) -OPTIONS_DEFINE= SCHEMA VALID THREADS MEM_DEBUG XMLLINT_HIST THREAD_ALLOC +OPTIONS_DEFINE= SCHEMA VALID THREADS MEM_DEBUG XMLLINT_HIST THREAD_ALLOC OPTIONS_DEFAULT=SCHEMA VALID THREADS SCHEMA_DESC= XML schema support SCHEMA_CONFIGURE_WITH= schemas VALID_DESC= Validation support VALID_CONFIGURE_OFF= --without-valid THREADS_DESC= Threads support THREADS_CONFIGURE_WITH= threads -MEM_DEBUG_DESC= Memory debugging (DEVELOPERS ONLY!) +MEM_DEBUG_DESC= Memory debugging (DEVELOPERS ONLY!) MEM_DEBUG_CONFIGURE_WITH= mem-debug -XMLLINT_HIST_DESC= History for xmllint +XMLLINT_HIST_DESC= History for xmllint XMLLINT_HIST_CONFIGURE_WITH= history -THREAD_ALLOC_DESC= Per-thread memory (DEVELOPERS ONLY!) +THREAD_ALLOC_DESC= Per-thread memory (DEVELOPERS ONLY!) THREAD_ALLOC_CONFIGURE_WITH= thread-alloc .endif # !defined(MASTERDIR) post-patch: .for d in . doc doc/devhelp doc/examples @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ ${WRKSRC}/${d}/Makefile.in .endfor .for f in catalog.c xmlcatalog.c xmllint.c doc/xmllint.1 @${REINPLACE_CMD} -e \ 's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \ s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' \ ${WRKSRC}/${f} .endfor .if !defined(MASTERDIR) post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/gtk-doc .endif .include .endif Index: head/textproc/libxml2/distinfo =================================================================== --- head/textproc/libxml2/distinfo (revision 489054) +++ head/textproc/libxml2/distinfo (revision 489055) @@ -1,3 +1,3 @@ -TIMESTAMP = 1512750289 -SHA256 (gnome2/libxml2-2.9.7.tar.gz) = f63c5e7d30362ed28b38bfa1ac6313f9a80230720b7fb6c80575eeab3ff5900c -SIZE (gnome2/libxml2-2.9.7.tar.gz) = 5467389 +TIMESTAMP = 1544024677 +SHA256 (gnome2/libxml2-2.9.8.tar.gz) = 0b74e51595654f958148759cfef0993114ddccccbb6f31aee018f3558e8e2732 +SIZE (gnome2/libxml2-2.9.8.tar.gz) = 5469097 Index: head/textproc/libxml2/files/patch-python_types.c =================================================================== --- head/textproc/libxml2/files/patch-python_types.c (revision 489054) +++ head/textproc/libxml2/files/patch-python_types.c (nonexistent) @@ -1,30 +0,0 @@ -From d910e99c322a0895955038c700471e9b1fd91fa6 Mon Sep 17 00:00:00 2001 -From: Patrick Welche -Date: Mon, 6 Nov 2017 16:20:25 +0000 -Subject: [PATCH] python: remove single use of _PyVerify_fd - -_PyVerify_fd disappeared from python with: - - https://hg.python.org/cpython/rev/e88e2049b793 - -https://bugzilla.gnome.org/show_bug.cgi?id=776815 ---- - python/types.c | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/python/types.c b/python/types.c -index f2376776..124af565 100644 ---- python/types.c -+++ python/types.c -@@ -31,8 +31,6 @@ libxml_PyFileGet(PyObject *f) { - const char *mode; - - fd = PyObject_AsFileDescriptor(f); -- if (!_PyVerify_fd(fd)) -- return(NULL); - /* - * Get the flags on the fd to understand how it was opened - */ --- -2.18.1 - Property changes on: head/textproc/libxml2/files/patch-python_types.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/textproc/libxml2/files/LICENSE.TRIO =================================================================== --- head/textproc/libxml2/files/LICENSE.TRIO (nonexistent) +++ head/textproc/libxml2/files/LICENSE.TRIO (revision 489055) @@ -0,0 +1,12 @@ +(Following sentences are from trio.c of libxml2-2.9.4.tar.gz.) + +Copyright (C) 1998 Bjorn Reese and Daniel Stenberg. + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND +CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER. Property changes on: head/textproc/libxml2/files/LICENSE.TRIO ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/textproc/libxml2/files/patch-Makefile.in =================================================================== --- head/textproc/libxml2/files/patch-Makefile.in (revision 489054) +++ head/textproc/libxml2/files/patch-Makefile.in (revision 489055) @@ -1,29 +1,29 @@ ---- Makefile.in.orig 2014-10-17 20:26:52.547793054 +0200 -+++ Makefile.in 2014-10-17 20:27:34.868791352 +0200 -@@ -1234,7 +1234,7 @@ - @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` +--- Makefile.in.orig 2017-09-20 18:23:56 UTC ++++ Makefile.in +@@ -1245,7 +1245,7 @@ distclean-compile: + @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -fPIC -DPIC -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@@ -1712,7 +1712,7 @@ +@@ -1730,7 +1730,7 @@ distcleancheck: distclean check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \ +all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) \ config.h install-binPROGRAMS: install-libLTLIBRARIES -@@ -1780,7 +1780,7 @@ +@@ -1798,7 +1798,7 @@ info: info-recursive info-am: -install-data-am: install-cmakeDATA install-data-local \ +install-data-am: install-cmakeDATA \ install-m4dataDATA install-man install-pkgconfigDATA install-dvi: install-dvi-recursive Property changes on: head/textproc/libxml2/files/patch-Makefile.in ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -1 \ No newline at end of property +yes \ No newline at end of property Index: head/textproc/libxml2/files/patch-config.h.in =================================================================== --- head/textproc/libxml2/files/patch-config.h.in (revision 489054) +++ head/textproc/libxml2/files/patch-config.h.in (revision 489055) @@ -1,11 +1,11 @@ ---- config.h.in.orig 2012-05-23 10:56:31.000000000 +0200 -+++ config.h.in 2012-07-23 09:34:22.000000000 +0200 +--- config.h.in.orig 2018-03-05 15:54:17 UTC ++++ config.h.in @@ -1,5 +1,8 @@ - /* config.h.in. Generated from configure.in by autoheader. */ + /* config.h.in. Generated from configure.ac by autoheader. */ +/* XXX */ +#define HAVE_VFSCANF + - /* Define to 1 if you have the header file. */ - #undef HAVE_ANSIDECL_H + /* Type cast for the gethostbyname() argument */ + #undef GETHOSTBYNAME_ARG_CAST Index: head/textproc/libxml2/files/patch-configure =================================================================== --- head/textproc/libxml2/files/patch-configure (revision 489054) +++ head/textproc/libxml2/files/patch-configure (revision 489055) @@ -1,11 +1,11 @@ ---- configure.orig 2013-11-24 09:41:13.000000000 +0100 -+++ configure 2013-11-24 09:41:55.000000000 +0100 -@@ -14499,6 +14499,8 @@ +--- configure.orig 2016-05-23 08:00:35 UTC ++++ configure +@@ -15639,6 +15639,8 @@ fi fi fi ;; + *freebsd*) THREAD_LIBS="" + ;; esac if test "$WITH_THREADS" = "1" ; then THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" Index: head/textproc/libxml2/files/patch-libxml-2.0-uninstalled.pc.in =================================================================== --- head/textproc/libxml2/files/patch-libxml-2.0-uninstalled.pc.in (revision 489054) +++ head/textproc/libxml2/files/patch-libxml-2.0-uninstalled.pc.in (revision 489055) @@ -1,9 +1,9 @@ ---- libxml-2.0-uninstalled.pc.in.orig 2014-10-03 11:00:53.000000000 +0200 -+++ libxml-2.0-uninstalled.pc.in 2015-07-31 13:26:13.641069000 +0200 -@@ -8,5 +8,5 @@ +--- libxml-2.0-uninstalled.pc.in.orig 2016-02-09 10:17:32 UTC ++++ libxml-2.0-uninstalled.pc.in +@@ -8,5 +8,5 @@ Name: libXML Version: @VERSION@ Description: libXML library version2. Requires: -Libs: -L${libdir} -lxml2 @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@ +Libs: -L${libdir} -lxml2 @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@ Cflags: -I${includedir} @XML_INCLUDEDIR@ @XML_CFLAGS@ Index: head/textproc/libxml2/files/patch-libxml-2.0.pc.in =================================================================== --- head/textproc/libxml2/files/patch-libxml-2.0.pc.in (revision 489054) +++ head/textproc/libxml2/files/patch-libxml-2.0.pc.in (revision 489055) @@ -1,9 +1,9 @@ ---- libxml-2.0.pc.in.orig 2014-10-03 11:00:53.000000000 +0200 -+++ libxml-2.0.pc.in 2015-07-31 13:26:13.647320000 +0200 -@@ -9,5 +9,5 @@ +--- libxml-2.0.pc.in.orig 2016-02-09 10:17:32 UTC ++++ libxml-2.0.pc.in +@@ -9,5 +9,5 @@ Version: @VERSION@ Description: libXML library version2. Requires: Libs: -L${libdir} -lxml2 -Libs.private: @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@ +Libs.private: @THREAD_LIBS@ @Z_LIBS@ @LZMA_LIBS@ @ICONV_LIBS@ @M_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@ Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@ Index: head/textproc/libxml2/files/patch-python_Makefile.in =================================================================== --- head/textproc/libxml2/files/patch-python_Makefile.in (revision 489054) +++ head/textproc/libxml2/files/patch-python_Makefile.in (revision 489055) @@ -1,20 +1,20 @@ ---- python/Makefile.in.orig 2013-11-24 08:47:04.000000000 +0100 -+++ python/Makefile.in 2013-11-24 08:51:02.000000000 +0100 -@@ -415,7 +415,7 @@ +--- python/Makefile.in.orig 2017-09-20 18:23:56 UTC ++++ python/Makefile.in +@@ -489,7 +489,7 @@ top_srcdir = @top_srcdir@ # Makefile for libxml2 python library AUTOMAKE_OPTIONS = 1.4 foreign -SUBDIRS = . tests +SUBDIRS = . docsdir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION) dist_docs_DATA = TODO EXTRA_DIST = \ -@@ -435,7 +435,7 @@ +@@ -509,7 +509,7 @@ EXTRA_DIST = \ @WITH_PYTHON_TRUE@python_LTLIBRARIES = libxml2mod.la @WITH_PYTHON_TRUE@libxml2mod_la_SOURCES = libxml.c libxml_wrap.h libxml2-py.h libxml2-py.c types.c @WITH_PYTHON_TRUE@libxml2mod_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) -module -avoid-version \ -@WITH_PYTHON_TRUE@ $(top_builddir)/libxml2.la $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS) +@WITH_PYTHON_TRUE@ -lxml2 $(CYGWIN_EXTRA_PYTHON_LIBADD) $(WIN32_EXTRA_PYTHON_LIBADD) $(PYTHON_LIBS) @WITH_PYTHON_TRUE@BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c @WITH_PYTHON_TRUE@dist_python_DATA = \ Index: head/textproc/libxml2/files/patch-python_tests_Makefile.in =================================================================== --- head/textproc/libxml2/files/patch-python_tests_Makefile.in (revision 489054) +++ head/textproc/libxml2/files/patch-python_tests_Makefile.in (revision 489055) @@ -1,11 +1,11 @@ ---- python/tests/Makefile.in.orig 2008-05-23 22:41:49.000000000 -0500 -+++ python/tests/Makefile.in 2008-05-23 22:42:12.000000000 -0500 -@@ -270,7 +270,7 @@ - target_alias = @target_alias@ +--- python/tests/Makefile.in.orig 2017-09-20 18:23:56 UTC ++++ python/tests/Makefile.in +@@ -385,7 +385,7 @@ target_alias = @target_alias@ + top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -exampledir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples +exampledir = $(datadir)/examples/py-libxml2 dist_example_DATA = $(PYTESTS) $(XMLS) PYTESTS = \ build.py \ Index: head/textproc/libxml2/files/patch-uri.c =================================================================== --- head/textproc/libxml2/files/patch-uri.c (revision 489054) +++ head/textproc/libxml2/files/patch-uri.c (revision 489055) @@ -1,25 +1,25 @@ Revert the following commit, it makes the freebsd doc chain fail. From 8eb55d782a2b9afacc7938694891cc6fad7b42a5 Mon Sep 17 00:00:00 2001 From: Dennis Filder Date: Fri, 13 Jun 2014 14:56:14 +0800 Subject: xmlSaveUri() incorrectly recomposes URIs with rootless paths For https://bugzilla.gnome.org/show_bug.cgi?id=731063 xmlSaveUri() of libxml2 (snapshot 2014-05-31 and earlier) returns bogus values when called with URIs that have rootless paths (e.g. "urx:b:b" becomes "urx://b%3Ab" where "urx:b%3Ab" would be correct) ---- uri.c.orig 2014-10-03 13:28:06.000000000 +0200 -+++ uri.c 2014-10-20 14:22:57.677231158 +0200 -@@ -1198,6 +1198,8 @@ +--- uri.c.orig 2016-05-22 01:49:02 UTC ++++ uri.c +@@ -1199,6 +1199,8 @@ xmlSaveUri(xmlURIPtr uri) { if (temp == NULL) goto mem_error; ret = temp; } + ret[len++] = '/'; + ret[len++] = '/'; } if (uri->path != NULL) { p = uri->path; Index: head/textproc/libxml2/files/patch-xml2Conf.sh.in =================================================================== --- head/textproc/libxml2/files/patch-xml2Conf.sh.in (revision 489054) +++ head/textproc/libxml2/files/patch-xml2Conf.sh.in (revision 489055) @@ -1,15 +1,15 @@ ---- xml2Conf.sh.in 2001/05/19 19:57:43 1.1 -+++ xml2Conf.sh.in 2001/05/19 19:59:40 +--- xml2Conf.sh.in.orig 2009-07-30 15:24:35 UTC ++++ xml2Conf.sh.in @@ -1,6 +1,12 @@ # # Configuration file for using the XML library in GNOME applications # + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ + XML2_LIBDIR="@XML_LIBDIR@" XML2_LIBS="@XML_LIBS@" XML2_INCLUDEDIR="@XML_INCLUDEDIR@"