Received: by mail.netbsd.org (Postfix, from userid 605) id E82AC84FB5; Fri, 6 Jul 2018 16:23:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CB3B984EDD for ; Fri, 6 Jul 2018 16:23:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 07CilJW5Y5M5 for ; Fri, 6 Jul 2018 16:23:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id AA87784DDA for ; Fri, 6 Jul 2018 16:23:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9A76DFBEC; Fri, 6 Jul 2018 16:23:55 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1530894235136700" MIME-Version: 1.0 Date: Fri, 6 Jul 2018 16:23:55 +0000 From: "Amitai Schleier" Subject: CVS commit: pkgsrc/textproc/xapian-omega To: pkgsrc-changes@NetBSD.org Reply-To: schmonz@netbsd.org X-Mailer: log_accum Message-Id: <20180706162355.9A76DFBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1530894235136700 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: schmonz Date: Fri Jul 6 16:23:55 UTC 2018 Modified Files: pkgsrc/textproc/xapian-omega: distinfo Log Message: Update to 1.4.6. From the changelog: general: * Fix generate_sample() (used by OmegaScript $truncate and omindex) to return an empty sample instead of throwing an exception when the requested sample size is less than the size of the truncation indicator string. Patch from Addy. Fixes https://trac.xapian.org/ticket/754 reported by Gaurav Arora. indexers: * Check for the HTML5 doctype or legacy doctype declaration and use default charset UTF-8 if either is present. Previously we always used ISO-8859-1, which is correct for older HTML versions, but not for HTML5. * omindex: + When running commands without going through the shell, emulate shell exit codes 127 (for command not found) and 126 (for other cases where we fail to run the command). This means the "missing filter" handling should now work properly for such commands. Noted by Gaurav Arora. + Index POD files despite minor formatting errors. We now pass --errors=stderr to pod2text so that minor formatting errors don't prevent us from indexing a file. (It may seem that --errors=none is a better option, but for podlators < 4.11 that results in an ERRATA section in the generated text version which we then end up indexing; 4.11 fixed that but we can't assume that's in use). Reported by Gaurav Arora. * omindex: + Check file size before calling libmagic to get the mime type, since reading the file size is a much cheaper check and we can skip the libmagic test if the file is empty or larger than the specified maximum size. Patch from caiyulun. * scriptindex: + Avoid some unnecessary copying of Action objects by making use of C++11 features. + Consistently send errors to stderr - some were sent to stdout. Patch from Gaurav Arora. + Add new "hextobin" action. Based on a patch from Gaurav Arora. + Warn about non-integer arg to hash. + Fix hash action without an argument, which was failing with an assertion. Based on a patch by Gaurav Arora: https://github.com/xapian/xapian/pull/189 + Reject 'hash' with argument < 6. The hashing truncates and then adds a 6 character hash of the removed part, so can't produce a result shorter than 6 characters. Patch from Gaurav Arora. + Look for alphanumerics when parsing index actions. None of the current index actions contain digits, but we give more helpful error messages this way. + Deprecate allowing spaces around = in scripts. This was never documented as supported, and leads to a missing argument quietly swallowing the next action rather than using an empty value or giving an error. Reported by Gaurav Arora in https://github.com/xapian/xapian/pull/182 + In boolean and unique actions, add a colon between prefix and term when the term starts with a colon. This means the mapping is reversible, and matches what omega actually does in this case when it tries to reverse the mapping. Thanks to Andy Chilton for pointing out this corner case. + Add parsedate and valuepacked actions. Together these assist adding date values for sorting and date range filtering. Based on a patch from Gaurav Arora. + Use DB_RETRY_LOCK to wait if the database is already in use rather than sleeping for a second and retrying. On most platforms this means we make a blocking request for the lock, and even on platforms where that's not supported, we now sleep and retry inside libxapian, and without having to throw and catch an exception each time. * scriptindex: + Reject index scripts with multiple "unique" actions. We don't handle this case sensibly, and it doesn't seem like it really has a use, so better to give an error for people who do this inadvertently. omega: * $freq: Speed up some cases by avoiding throwing and catching an exception when we know the MSet has no term frequency information. * $sort: New OmegaScript command which does a string sort on an OmegaScript list, with u (unique) and r (reverse) options. * $cond: New OmegaScript conditional multi-way conditional. Inspired by LISP's COND, this provides a neater way to write a cascade of $if checks. * $switch: New OmegaScript multi-way conditional which provides an even neater way to write a cascade of $if{$eq{X,VALUE1},$if{$eq{X,VALUE2},...}}. * $subdb and $subid: New commands which report the subdatabase name and the docid in that subdatabase. + $termprefix and $unprefix: New OmegaScript commands which expose the existing code inside omega for splitting up a term. * Use str() to convert time_t to string, which is simpler code and faster than using snprintf(). * New $seterror command to set the error message. Implemented by Gaurav Arora. * Make $highlight more efficient. Patch from Vivek Pal. templates: * query: Use $prettyurl for the URL shown at the end of each match (previously we only used it on the URL shown as a fallback when the document has no title). Split off from changes by Vivek Pal in https://github.com/xapian/xapian/pull/161 To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 pkgsrc/textproc/xapian-omega/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1530894235136700 Content-Disposition: inline Content-Length: 1315 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/textproc/xapian-omega/distinfo diff -u pkgsrc/textproc/xapian-omega/distinfo:1.22 pkgsrc/textproc/xapian-omega/distinfo:1.23 --- pkgsrc/textproc/xapian-omega/distinfo:1.22 Sun Jul 9 22:31:23 2017 +++ pkgsrc/textproc/xapian-omega/distinfo Fri Jul 6 16:23:55 2018 @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.22 2017/07/09 22:31:23 schmonz Exp $ +$NetBSD: distinfo,v 1.23 2018/07/06 16:23:55 schmonz Exp $ -SHA1 (xapian-omega-1.4.4.tar.xz) = 96f01b801157244945833f3d3e478bc730f3395d -RMD160 (xapian-omega-1.4.4.tar.xz) = 7a143c26353900b3bbb2a12c82a0ef46fcc048bd -SHA512 (xapian-omega-1.4.4.tar.xz) = 927c6afe24f8a13018fcc233e874c71c0912cb6200094f7246c12b4175bc48d752312e57128a314e7674a948a50ef092dd7f2dc8910db7df8f3ccf9c44f38533 -Size (xapian-omega-1.4.4.tar.xz) = 501712 bytes +SHA1 (xapian-omega-1.4.6.tar.xz) = e761db0243c921f25af74ebc77753fee20fb2daa +RMD160 (xapian-omega-1.4.6.tar.xz) = 1d76eb237cb39b1fe400af9a2e5603c75b041d74 +SHA512 (xapian-omega-1.4.6.tar.xz) = 9376145c9c7c728bf444f5891777fe946bc574a4c91ef65779aae4cd2f40c76b33cde1231f654f23de32df8a4eea4aa0c69868d269ec79fba3abad2567ffb80d +Size (xapian-omega-1.4.6.tar.xz) = 510012 bytes SHA1 (patch-Makefile.in) = eea809d9403820e86478d939a2dad4c67358ebf5 SHA1 (patch-omega.conf) = f1e941dac326de7005cad0a5a4a2848e401855c4 --_----------=_1530894235136700--