- Update to 5.22.0

+ rdf-lookup: Add timeout configuration option YAZ-891
                Add yaz_url_set_timeout
  + rdf-lookup: report error if X-Path cannot be compiled YAZ-890
  + rdf-lookup: avoid double dash in generated XML comments
  + rdf-lookup: fix misleading log on rdf-failures YAZ-884
  + Add documentation for <param> tag in xslt retrieval facility doc
  + comstack: Fix compilation error if getaddrinfo does not exist
  + yaz-url: ignore content-length for HTTP method HEAD YAZ-878
  + retrieval: fix incorrect backend schema YAZ-877
  + record_conv: allow HTTP method to be set for authority lookup
  + record_conv: change error for unsupported backend element
  + New type, rdf-lookup, for record conversion system (retrieval)
  + Fix yaz_url_exec sending same uri for 2nd call
  + cql2pqf: relation modifiers with name and value are converted
    to proximity with unit=element. Left operand is the the primary
    index and term. Right operand is attribute index-name mapping of name
    and value being the relation modifier value. For example,
       dc.title =/dc.language=dk kirke
    could be mapped to
       @prox 0 0 0 0 k 8 @attr 1=4 "kirke" @attr 1=54 dk
  + Add ProximityUnit map to/from string utility
  + New functions z_ProxUnit_to_str and z_str_to_ProxUnit.
  + Allow multi-byte indicators for MARC subsystem
  + JSON: to the spec check of number
  + JSON: strict \uxxxx sequence
  + JSON: fail for nesting more than 1000 levels
  + JSON: distinguish between EOF and error
  + CCL: fix r=o, r=r WRT inherited attributes YAZ-864
  + ZOOM C: tweak when connection failed is returned

OBS-URL: https://build.opensuse.org/package/show/Publishing/yaz?expand=0&rev=100
This commit is contained in:
Lars Vogdt 2017-07-03 16:09:14 +00:00 committed by Git OBS Bridge
parent cab8bbad26
commit 3df19cfb7c
9 changed files with 114 additions and 57 deletions

View File

@ -1,20 +0,0 @@
--- yaz-4.0.12/client/client.c.orig 2010-08-16 13:05:23.000000000 +0200
+++ yaz-4.0.12/client/client.c 2010-08-25 14:02:44.000000000 +0200
@@ -2533,6 +2533,7 @@
int noread = 0;
Odr_oid *oid;
char oid_str[51];
+ union { unsigned char **ucp; char **cp; }pun;
Z_APDU *apdu = zget_APDU(out, Z_APDU_extendedServicesRequest);
Z_ExtendedServicesRequest *req = apdu->u.extendedServicesRequest;
@@ -2552,7 +2553,8 @@
return 0;
}
arg += noread;
- if (parse_cmd_doc(&arg, out, &asn_buf,
+ pun.ucp = &ext->u.single_ASN1_type->buf;
+ if (parse_cmd_doc(&arg, out, pun.ucp,
&ext->u.single_ASN1_type->len) == 0)
return 0;

View File

@ -1,12 +0,0 @@
Index: yaz-4.2.47/src/sortspec.c
===================================================================
--- yaz-4.2.47.orig/src/sortspec.c
+++ yaz-4.2.47/src/sortspec.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <ctype.h>
#include <yaz/matchstr.h>
#include <yaz/z-core.h>

View File

@ -1,14 +0,0 @@
diff -u /ssd180/ke/buildservice/Publishing/yaz/yaz-5.1.2/src/zoom-sru.c\~ /ssd180/ke/buildservice/Publishing/yaz/yaz-5.1.2/src/zoom-sru.c
--- yaz-5.1.2/src/zoom-sru.c~ 2014-02-18 07:52:49.000000000 +0100
+++ yaz-5.1.2/src/zoom-sru.c 2014-06-03 10:48:27.215005465 +0200
@@ -146,7 +146,7 @@
zoom_ret ZOOM_connection_srw_send_search(ZOOM_connection c)
{
int i;
- int *start, *count;
+ int *start=0, *count;
ZOOM_resultset resultset = 0;
Z_SRW_PDU *sr = 0;
const char *option_val = 0;
Diff finished. Tue Jun 3 10:48:31 2014

22
yaz-5.22.0-client.patch Normal file
View File

@ -0,0 +1,22 @@
Index: yaz-5.22.0/client/client.c
===================================================================
--- yaz-5.22.0.orig/client/client.c
+++ yaz-5.22.0/client/client.c
@@ -2549,6 +2549,7 @@ static int cmd_xmles(const char *arg)
int noread = 0;
Odr_oid *oid;
char oid_str[51];
+ union { unsigned char **ucp; char **cp; }pun;
Z_APDU *apdu = zget_APDU(out, Z_APDU_extendedServicesRequest);
Z_ExtendedServicesRequest *req = apdu->u.extendedServicesRequest;
@@ -2568,7 +2569,8 @@ static int cmd_xmles(const char *arg)
return 0;
}
arg += noread;
- if (parse_cmd_doc(&arg, out, &asn_buf,
+ pun.ucp = &ext->u.single_ASN1_type->buf;
+ if (parse_cmd_doc(&arg, out, pun.ucp,
&ext->u.single_ASN1_type->len) == 0)
return 0;

View File

@ -0,0 +1,22 @@
Index: yaz-5.22.0/src/zoom-sru.c
===================================================================
--- yaz-5.22.0.orig/src/zoom-sru.c
+++ yaz-5.22.0/src/zoom-sru.c
@@ -145,7 +145,7 @@ zoom_ret ZOOM_connection_srw_send_scan(Z
zoom_ret ZOOM_connection_srw_send_search(ZOOM_connection c)
{
int i;
- int *start, *count;
+ int *start=0, *count;
ZOOM_resultset resultset = 0;
Z_SRW_PDU *sr = 0;
const char *option_val = 0;
@@ -253,7 +253,7 @@ static zoom_ret handle_srw_response(ZOOM
Z_SRW_searchRetrieveResponse *res)
{
ZOOM_resultset resultset = 0;
- int *start, *count;
+ int *start=0, *count;
int i;
NMEM nmem;
ZOOM_Event event;

3
yaz-5.22.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a96e788f480f2dcee361678fa308ad308a97d3bcc050c306ec92890e7067e016
size 2627849

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6d5c393ff3306b47438926b55606620307c2911a7e192aac6916fcb5fc6d8a7
size 2538071

View File

@ -1,3 +1,61 @@
-------------------------------------------------------------------
Mon Jul 3 15:56:11 UTC 2017 - lars@linux-schulserver.de
- Update to 5.22.0
+ rdf-lookup: Add timeout configuration option YAZ-891
Add yaz_url_set_timeout
+ rdf-lookup: report error if X-Path cannot be compiled YAZ-890
+ rdf-lookup: avoid double dash in generated XML comments
+ rdf-lookup: fix misleading log on rdf-failures YAZ-884
+ Add documentation for <param> tag in xslt retrieval facility doc
+ comstack: Fix compilation error if getaddrinfo does not exist
+ yaz-url: ignore content-length for HTTP method HEAD YAZ-878
+ retrieval: fix incorrect backend schema YAZ-877
+ record_conv: allow HTTP method to be set for authority lookup
+ record_conv: change error for unsupported backend element
+ New type, rdf-lookup, for record conversion system (retrieval)
+ Fix yaz_url_exec sending same uri for 2nd call
+ cql2pqf: relation modifiers with name and value are converted
to proximity with unit=element. Left operand is the the primary
index and term. Right operand is attribute index-name mapping of name
and value being the relation modifier value. For example,
dc.title =/dc.language=dk kirke
could be mapped to
@prox 0 0 0 0 k 8 @attr 1=4 "kirke" @attr 1=54 dk
+ Add ProximityUnit map to/from string utility
+ New functions z_ProxUnit_to_str and z_str_to_ProxUnit.
+ Allow multi-byte indicators for MARC subsystem
+ JSON: to the spec check of number
+ JSON: strict \uxxxx sequence
+ JSON: fail for nesting more than 1000 levels
+ JSON: distinguish between EOF and error
+ CCL: fix r=o, r=r WRT inherited attributes YAZ-864
+ ZOOM C: tweak when connection failed is returned
+ ZOOM C: deal with excess bytes HTTPS case YAZ-833
+ Fix ZOOM: crash extended services diagnostics YAZ-846
+ Make yaz_log_reopen async-signal YAZ-845
+ Add lock/unlock for YAZ log writes YAZ-843
+ Fix yaz-client command args parsing broken YAZ-855
+ yaz-client: deal with excess bytes HTTPS case YAZ-833
+ Allow Content-Type application/sru+xml YAZ-840
+ New yaz_xml_get_prop utility YAZ-839
+ Extend get_org_info (snippets) to return original string YAZ-836
+ Deal with excess bytes in HTTP response for keepalive YAZ-830
+ Refactor ssl_put and tcpip_put to one function YAZ-832
+ Refactor ssl_get and tcpip_get to one function YAZ-831
+ Fix SEGV yaz-client for HTTP decoding error YAZ-829
+ Fix buffer overflow in cmd_elements in yaz-client YAZ-828
+ Use CONNECT for SSL backends and for Z39.50 thru HTTP proxy YAZ-825
+ Fix http proxy fails with yaz-client YAZ-824
+ Fix 0 ptr reference for OPAC records from XML YAZ-822
+ Extend yaz daemon facility to assist int log rotation YAZ-818 YAZ-819
+ Moved YAZ and many other software components to GitHub
- yaz-record-conv now installed and packaged
- Adjust and rename code cleanup patches (yaz-4.1.7-codecleanup.diff
and yaz-4.1.7-client.diff)
- removed yaz-4.2.47-implicit_definitions.patch: somehow fixed
upstream (no compiler warnings any more)
-------------------------------------------------------------------
Thu Jan 15 11:36:33 UTC 2015 - lars@linux-schulserver.de

View File

@ -1,7 +1,7 @@
#
# spec file for package yaz
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%define libname libyaz5
Name: yaz
Version: 5.8.1
Version: 5.22.0
Release: 0
Summary: Z39.50 protocol server and client
License: BSD-3-Clause
@ -27,11 +27,10 @@ Url: http://www.indexdata.dk/yaz/
Source: %{name}-%{version}.tar.gz
Source2: baselibs.conf
# PATCH-FIX-UPSTREAM initialize variables properly
Patch0: yaz-5.1.2-codecleanup.diff
Patch0: yaz-5.22.0-codecleanup.patch
# PATCH-FIX-UPSTREAM initialize variables properly
Patch1: yaz-4.1.7-client.diff
# PATCH-FIX-UPSTREAM add needed ctype header
Patch2: yaz-4.2.47-implicit_definitions.patch
Patch1: yaz-5.22.0-client.patch
BuildRequires: gnutls-devel
BuildRequires: libicu-devel
BuildRequires: libpcap-devel
BuildRequires: libxslt-devel
@ -88,7 +87,6 @@ using the ANSI/NISO Z39.50 protocol for Information Retrieval.
%setup -q
%patch0 -p 1
%patch1 -p 1
%patch2 -p 1
%build
# --with-dsssl=/usr/share/sgml/docbook/dsssl-stylesheets \
@ -97,6 +95,7 @@ using the ANSI/NISO Z39.50 protocol for Information Retrieval.
--enable-tcpd \
--with-xslt \
--with-openssl \
--with-gnutls \
--with-icu \
--disable-static \
--with-pic
@ -112,7 +111,7 @@ cp -a doc/*.html html
# cp doc/*pdf .
ln -sf introduction.html html/index.html
# yaz.pdf
%define DOCFILES README LICENSE NEWS
%define DOCFILES README.md LICENSE NEWS
{
echo "<html><head><title>%{name} documentation directory</title></head>"
echo "<body><ul>"
@ -145,6 +144,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_bindir}/yaz-ztest*
%{_bindir}/zoomsh
%{_bindir}/yaz-json-parse
%{_bindir}/yaz-record-conv
%{_mandir}/*/yaz.*
%{_mandir}/*/yaz-illclient.*
%{_mandir}/*/yaz-client.*
@ -156,6 +156,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_mandir}/*/yaz-ztest.*
%{_mandir}/*/yaz-marcdump.*
%{_mandir}/*/yaz-json-parse.*
%{_mandir}/*/yaz-record-conv.*
%{_mandir}/*/bib1-attr.*
%dir %{_datadir}/yaz
%{_datadir}/yaz/etc