yaz-moved-to-github.git
6 years agoin-source yaz-config prints HIREDIS_LIBS
Adam Dickmeiss [Thu, 12 Jun 2014 09:06:21 +0000 (11:06 +0200)]
in-source yaz-config prints HIREDIS_LIBS

6 years agoMerge branch 'yaz-770' of ssh://git.indexdata.com/home/git/pub/yaz into yaz-770
Adam Dickmeiss [Wed, 11 Jun 2014 12:36:47 +0000 (14:36 +0200)]
Merge branch 'yaz-770' of ssh://git.indexdata.com/home/git/pub/yaz into yaz-770

6 years agoconfigure: cope with hiredis without pkg-config
Adam Dickmeiss [Wed, 11 Jun 2014 12:37:41 +0000 (14:37 +0200)]
configure: cope with hiredis without pkg-config

6 years agoMerge branch 'yaz-770' of ssh://git.indexdata.com/home/git/pub/yaz into yaz-770
Adam Dickmeiss [Wed, 11 Jun 2014 12:19:20 +0000 (14:19 +0200)]
Merge branch 'yaz-770' of ssh://git.indexdata.com/home/git/pub/yaz into yaz-770

6 years ago4.redis
Adam Dickmeiss [Wed, 11 Jun 2014 12:18:32 +0000 (14:18 +0200)]
4.redis

6 years agoHonor memcached options= --server=localhost as redis conf
Adam Dickmeiss [Wed, 11 Jun 2014 12:18:12 +0000 (14:18 +0200)]
Honor memcached options= --server=localhost as redis conf

This is only done where YAZ is without libmemcached support.

6 years agoUpd RPM for hiredis
Adam Dickmeiss [Wed, 11 Jun 2014 12:01:21 +0000 (14:01 +0200)]
Upd RPM for hiredis

6 years agoRedis functional including configure + code
Adam Dickmeiss [Wed, 11 Jun 2014 12:00:19 +0000 (14:00 +0200)]
Redis functional including configure + code

No RPM/Deb work - yet.

6 years agoDo not bundle libmemcached. Linking does not work for C
Adam Dickmeiss [Wed, 11 Jun 2014 08:46:22 +0000 (10:46 +0200)]
Do not bundle libmemcached. Linking does not work for C

Everybody using YAZ would have to switch to g++. And that doesn't
fly.

6 years agoDefine HAVE_LIBMEMCACHED_MEMCACHED_H again
Adam Dickmeiss [Tue, 10 Jun 2014 12:13:45 +0000 (14:13 +0200)]
Define HAVE_LIBMEMCACHED_MEMCACHED_H again

6 years agoRPM: no depend on libmemcached (static now)
Adam Dickmeiss [Tue, 10 Jun 2014 11:51:17 +0000 (13:51 +0200)]
RPM: no depend on libmemcached (static now)

6 years agoBundle libmemcached with YAZ on CentOS 5/6 YAZ-769
Adam Dickmeiss [Tue, 10 Jun 2014 11:49:55 +0000 (11:49 +0000)]
Bundle libmemcached with YAZ on CentOS 5/6 YAZ-769

6 years agoUse pkg-config for getting libmemcached CFLAGS/LIBS
Adam Dickmeiss [Tue, 10 Jun 2014 11:43:03 +0000 (11:43 +0000)]
Use pkg-config for getting libmemcached CFLAGS/LIBS

Also, require version 1.0 or later of libmemcached.
This is because older versions of libmemcached have
a different API and because we have stability issues
with version 0.31 on CentOS 6.5.

6 years agoVersion 5.1.3 v5.1.3
Adam Dickmeiss [Wed, 4 Jun 2014 13:25:21 +0000 (15:25 +0200)]
Version 5.1.3

6 years agoFix dup ZOOM_EVENT_RECV_RECORD events for SRU/Solr YAZ-768
Adam Dickmeiss [Wed, 4 Jun 2014 13:08:10 +0000 (15:08 +0200)]
Fix dup ZOOM_EVENT_RECV_RECORD events for SRU/Solr YAZ-768

6 years agofix zoom+memcahced: present request out of range YAZ-767
Adam Dickmeiss [Wed, 4 Jun 2014 09:15:18 +0000 (11:15 +0200)]
fix zoom+memcahced: present request out of range YAZ-767

6 years agoVersion 5.1.2 v5.1.2
Adam Dickmeiss [Fri, 30 May 2014 10:05:33 +0000 (12:05 +0200)]
Version 5.1.2

6 years agoDescribe CCL qual r=omiteq
Adam Dickmeiss [Fri, 30 May 2014 10:02:05 +0000 (12:02 +0200)]
Describe CCL qual r=omiteq

6 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
Adam Dickmeiss [Thu, 29 May 2014 15:07:59 +0000 (17:07 +0200)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz

6 years agoAdd omiteq in example
Adam Dickmeiss [Thu, 29 May 2014 15:07:50 +0000 (17:07 +0200)]
Add omiteq in example

6 years agoCCL: include r=omiteq in tests
Adam Dickmeiss [Thu, 29 May 2014 15:07:16 +0000 (17:07 +0200)]
CCL: include r=omiteq in tests

6 years agoAllow r=omiteq to omit 2=3 for generated PQF YAZ-766
Adam Dickmeiss [Thu, 29 May 2014 15:06:37 +0000 (17:06 +0200)]
Allow r=omiteq to omit 2=3 for generated PQF YAZ-766

6 years agoGFS: prevent truncation in retrieval phase YAZ-763
Adam Dickmeiss [Thu, 22 May 2014 11:55:59 +0000 (13:55 +0200)]
GFS: prevent truncation in retrieval phase YAZ-763

6 years agoSolr: simplify yaz_solr_decode_response
Adam Dickmeiss [Mon, 5 May 2014 11:21:33 +0000 (13:21 +0200)]
Solr: simplify yaz_solr_decode_response

6 years agoSolr: use different local var for string manipulation
Adam Dickmeiss [Mon, 5 May 2014 11:18:04 +0000 (13:18 +0200)]
Solr: use different local var for string manipulation

6 years agoSolr: reformat
Adam Dickmeiss [Mon, 5 May 2014 08:58:07 +0000 (10:58 +0200)]
Solr: reformat

6 years agoSolr: Get rid of hardcoded limit of extra_args
Adam Dickmeiss [Mon, 5 May 2014 08:49:39 +0000 (10:49 +0200)]
Solr: Get rid of hardcoded limit of extra_args

6 years agoSolr: encode lucene query type YAZ-736
Adam Dickmeiss [Mon, 5 May 2014 08:36:17 +0000 (10:36 +0200)]
Solr: encode lucene query type YAZ-736

Make sure the queries are treated as traditional "lucene", because that's
what YAZ generates.

6 years agoFix compilation without Libxml2 YAZ-755 revisited
Adam Dickmeiss [Wed, 30 Apr 2014 13:56:44 +0000 (15:56 +0200)]
Fix compilation without Libxml2 YAZ-755 revisited

6 years agoAvoid clang warning: if statement has empty body
Adam Dickmeiss [Wed, 30 Apr 2014 13:56:22 +0000 (15:56 +0200)]
Avoid clang warning: if statement has empty body

6 years agoAvoid clang warning: if statement has empty body
Adam Dickmeiss [Wed, 30 Apr 2014 13:47:35 +0000 (15:47 +0200)]
Avoid clang warning: if statement has empty body

6 years agoFix ZOOM HTTP redirect failing on Windows+Solaris YAZ-755
Adam Dickmeiss [Wed, 30 Apr 2014 12:09:15 +0000 (14:09 +0200)]
Fix ZOOM HTTP redirect failing on Windows+Solaris YAZ-755

6 years agoVersion 5.1.1 v5.1.1
Adam Dickmeiss [Tue, 22 Apr 2014 13:44:44 +0000 (15:44 +0200)]
Version 5.1.1

6 years agoBuild packages for Ubuntu Trusty Tahr 14.04 LTS
Adam Dickmeiss [Tue, 22 Apr 2014 13:37:09 +0000 (15:37 +0200)]
Build packages for Ubuntu Trusty Tahr 14.04 LTS

6 years agoChange local counter to size_t
Adam Dickmeiss [Tue, 22 Apr 2014 07:10:33 +0000 (09:10 +0200)]
Change local counter to size_t

6 years agowrbuf_buf: make it always return non-NULL
Adam Dickmeiss [Sat, 19 Apr 2014 09:17:22 +0000 (11:17 +0200)]
wrbuf_buf: make it always return non-NULL

Also, wrbuf_buf will return same buffer as previous call to wrbuf_cstr.

6 years agoAdd test for YAZ-760
Adam Dickmeiss [Fri, 18 Apr 2014 17:45:11 +0000 (19:45 +0200)]
Add test for YAZ-760

6 years agoFix wrbuf_putc + wrbuf_cstr assert YAZ-760
Adam Dickmeiss [Fri, 18 Apr 2014 17:40:51 +0000 (19:40 +0200)]
Fix wrbuf_putc + wrbuf_cstr assert YAZ-760

Change the meaning of WRBUF size. Just allocate size + 1 instead
of size. This means we can safely store \0 in pos. Simplify xrealloc
use in wrbuf_grow.

6 years agoVersion 5.1.0 v5.1.0
Adam Dickmeiss [Thu, 17 Apr 2014 11:31:00 +0000 (13:31 +0200)]
Version 5.1.0

6 years agoMove main YAZ manual to book.xml; use nxml YAZ-758
Adam Dickmeiss [Thu, 17 Apr 2014 11:11:09 +0000 (13:11 +0200)]
Move main YAZ manual to book.xml; use nxml YAZ-758

6 years agozoomsh: offer option -a apdulog
Adam Dickmeiss [Thu, 17 Apr 2014 06:52:54 +0000 (08:52 +0200)]
zoomsh: offer option -a apdulog

As we're used to from yaz-client and GFS based servers.

6 years agocqltransform: use odr_setprint_noclose
Adam Dickmeiss [Thu, 17 Apr 2014 06:52:31 +0000 (08:52 +0200)]
cqltransform: use odr_setprint_noclose

6 years agoZOOM: new setting apdufile
Adam Dickmeiss [Thu, 17 Apr 2014 06:48:37 +0000 (08:48 +0200)]
ZOOM: new setting apdufile

Sets name of APDU file. If not given, existing setting apdulog
takes effect. Use odr_setprint_noclose for convenience.

6 years agoAdd odr_setprint_noclose
Adam Dickmeiss [Thu, 17 Apr 2014 06:47:03 +0000 (08:47 +0200)]
Add odr_setprint_noclose

Like odr_setprint, but does not fclose.

6 years agozoomsh: only prints ZOOM> lead if a console is use (isatty)
Adam Dickmeiss [Thu, 17 Apr 2014 05:52:42 +0000 (07:52 +0200)]
zoomsh: only prints ZOOM> lead if a console is use (isatty)

6 years agoBib-1 and SRU diagnostics in manual (appendix) YAZ-748
Adam Dickmeiss [Wed, 16 Apr 2014 15:44:14 +0000 (17:44 +0200)]
Bib-1 and SRU diagnostics in manual (appendix) YAZ-748

Tables in manual pages don't work well. So no man entry at this
time.

6 years agoFix assert in ZOOM when http connect fails YAZ-757
Adam Dickmeiss [Sat, 12 Apr 2014 06:06:10 +0000 (08:06 +0200)]
Fix assert in ZOOM when http connect fails YAZ-757

6 years agoAdd wrbuf_cstr_null
Adam Dickmeiss [Fri, 11 Apr 2014 09:03:01 +0000 (11:03 +0200)]
Add wrbuf_cstr_null

6 years agoMerge branch 'yaz-756'
Adam Dickmeiss [Thu, 10 Apr 2014 13:47:13 +0000 (15:47 +0200)]
Merge branch 'yaz-756'

6 years agoUse WRBUF for addinfo member of cql_transform_t
Adam Dickmeiss [Thu, 10 Apr 2014 12:28:35 +0000 (14:28 +0200)]
Use WRBUF for addinfo member of cql_transform_t

6 years agoAdd re-entrant CQL/Solr/RPN functions
Adam Dickmeiss [Thu, 10 Apr 2014 12:19:32 +0000 (14:19 +0200)]
Add re-entrant CQL/Solr/RPN functions

The re-entrant functions are: cql_transform_r,
cql_transform_rpn2cql_stream_r, solr_transform_rpn2solr_stream_r.
These have same functionality as cql_transform,
cql_transform_rpn2cql_stream, solr_transform_rpn2solr_stream. They
return the additional infomration as WRBUF to make them re-entrant.

6 years agocql2pqf allows RPN to Solr conversion
Adam Dickmeiss [Thu, 10 Apr 2014 09:49:33 +0000 (11:49 +0200)]
cql2pqf allows RPN to Solr conversion

6 years agorpn2solr: solr_transform_set_error in main handler
Adam Dickmeiss [Thu, 10 Apr 2014 09:43:37 +0000 (11:43 +0200)]
rpn2solr: solr_transform_set_error in main handler

This is to make it possible to make a thread safe version later.

6 years agocql_transform_rpn2cql_stream back to error in cql_transform_t
Adam Dickmeiss [Thu, 10 Apr 2014 09:42:54 +0000 (11:42 +0200)]
cql_transform_rpn2cql_stream back to error in cql_transform_t

6 years agoRemove some redundant wrbuf_vp_puts alikes
Adam Dickmeiss [Thu, 10 Apr 2014 08:36:37 +0000 (10:36 +0200)]
Remove some redundant wrbuf_vp_puts alikes

6 years agoRemove CQL to Solr conversion and base on cql_transform_t
Adam Dickmeiss [Thu, 10 Apr 2014 08:29:35 +0000 (10:29 +0200)]
Remove CQL to Solr conversion and base on cql_transform_t

The RPN to Solr is indeed in use. It uses exact same data structure
as cql_transform_t.

6 years agoMake cql_transform_rpn2cql_{stream,wrbuf} thread-safe
Adam Dickmeiss [Wed, 9 Apr 2014 19:29:23 +0000 (21:29 +0200)]
Make cql_transform_rpn2cql_{stream,wrbuf} thread-safe

They do not tamper with addinfo and error in cql_transform_t anymore.

6 years agoImplement cql_transform_cql2rpn
Adam Dickmeiss [Wed, 9 Apr 2014 19:28:06 +0000 (21:28 +0200)]
Implement cql_transform_cql2rpn

This is a thread-safe version of cql_transform. It does not write
to the cql_transform_t object.

6 years agoMake object member to temporary member (WRBUF)
Adam Dickmeiss [Wed, 9 Apr 2014 13:57:52 +0000 (15:57 +0200)]
Make object member to temporary member (WRBUF)

6 years agoRemove script no longer in use
Adam Dickmeiss [Wed, 9 Apr 2014 09:32:16 +0000 (11:32 +0200)]
Remove script no longer in use

6 years agoVersion 5.0.22 v5.0.22
Adam Dickmeiss [Wed, 9 Apr 2014 07:54:58 +0000 (09:54 +0200)]
Version 5.0.22

6 years agoCall cs_rcvconnect during redirect YAZ-754
Adam Dickmeiss [Tue, 8 Apr 2014 19:46:13 +0000 (21:46 +0200)]
Call cs_rcvconnect during redirect YAZ-754

This is ensure that non-blocking getaddrinfo completes.

6 years agowrbuf_cstr: ensure wrbuf_grow is never called YAZ-753
Adam Dickmeiss [Tue, 8 Apr 2014 12:18:04 +0000 (14:18 +0200)]
wrbuf_cstr: ensure wrbuf_grow is never called YAZ-753

We just throw an assert instead, but that's never going to happen.

6 years agowrbuf_cstr bit more thread safe YAZ-753
Heikki Levanto [Tue, 8 Apr 2014 11:44:58 +0000 (13:44 +0200)]
wrbuf_cstr bit more thread safe  YAZ-753

Now it does not mess with the pos. Still not 100% safe, can have
a race condition when reallocating the buf, if it needs room for
the terminating null byte.

6 years agoyaz_log_init_file may take fd=<no>
Adam Dickmeiss [Mon, 7 Apr 2014 20:12:11 +0000 (22:12 +0200)]
yaz_log_init_file may take fd=<no>

to open log file at the FD given.

6 years agoExtend comment about start facet parameter
Adam Dickmeiss [Thu, 27 Mar 2014 12:29:22 +0000 (13:29 +0100)]
Extend comment about start facet parameter

6 years agonmake: ICU_VER helper var
Adam Dickmeiss [Wed, 26 Mar 2014 13:29:48 +0000 (14:29 +0100)]
nmake: ICU_VER helper var

6 years agoVersino 5.0.21 v5.0.21
Adam Dickmeiss [Fri, 21 Mar 2014 12:19:51 +0000 (13:19 +0100)]
Versino 5.0.21

6 years agoSupport solrmarc decoding in record_conv/retrieval module
Adam Dickmeiss [Fri, 21 Mar 2014 12:03:26 +0000 (13:03 +0100)]
Support solrmarc decoding in record_conv/retrieval module

6 years agoRename yaz_use_attribute_create to zget_AttributeList_use_string
Adam Dickmeiss [Fri, 21 Mar 2014 10:48:22 +0000 (11:48 +0100)]
Rename yaz_use_attribute_create to zget_AttributeList_use_string

6 years agoyaz_use_attribute_create based on get_attributeList DRY
Adam Dickmeiss [Fri, 21 Mar 2014 10:38:12 +0000 (11:38 +0100)]
yaz_use_attribute_create based on get_attributeList DRY

6 years agoInclude proto.h for prototype of yaz_use_attribute_create
Adam Dickmeiss [Thu, 20 Mar 2014 12:16:27 +0000 (13:16 +0100)]
Include proto.h for prototype of yaz_use_attribute_create

6 years agoFix yaz_use_attribute_create (uninit memory)
Adam Dickmeiss [Thu, 20 Mar 2014 09:38:27 +0000 (10:38 +0100)]
Fix yaz_use_attribute_create (uninit memory)

Bug introduced by recent commit 5350317640042c3507172d28d142795.

6 years agoMake yaz_use_attribute_create a public function
Adam Dickmeiss [Wed, 19 Mar 2014 13:24:30 +0000 (14:24 +0100)]
Make yaz_use_attribute_create a public function

Useful when generating a facet response in a server.

6 years agoVersion 5.0.20 v5.0.20
Adam Dickmeiss [Thu, 13 Mar 2014 14:20:20 +0000 (15:20 +0100)]
Version 5.0.20

6 years agoFix comment
Adam Dickmeiss [Thu, 13 Mar 2014 14:04:07 +0000 (15:04 +0100)]
Fix comment

6 years agoAlways initialize libgcrypt for POSIX threads YAZ-751
Adam Dickmeiss [Thu, 13 Mar 2014 13:37:25 +0000 (13:37 +0000)]
Always initialize libgcrypt for POSIX threads YAZ-751

gnutls_global_init, we now know, in some systems, do not properly
initialize libgcrypt for POSIX threads.

6 years agoExtend test_wrbuf to use gcrypt in threaded mode
Adam Dickmeiss [Thu, 13 Mar 2014 13:06:04 +0000 (14:06 +0100)]
Extend test_wrbuf to use gcrypt in threaded mode

This was primarily extended to check for improper libgcrypt
initialization.

6 years agoInitialize gcrypt for threaded mode YAZ-751
Adam Dickmeiss [Thu, 13 Mar 2014 13:05:36 +0000 (14:05 +0100)]
Initialize gcrypt for threaded mode YAZ-751

6 years agoVersion 5.0.19 v5.0.19
Adam Dickmeiss [Mon, 10 Mar 2014 13:57:41 +0000 (14:57 +0100)]
Version 5.0.19

6 years agoZOOM: generate event Connect rather than None
Adam Dickmeiss [Mon, 10 Mar 2014 13:23:39 +0000 (14:23 +0100)]
ZOOM: generate event Connect rather than None

for partial connect (in fact getaddrinfo resolving).

6 years agoFix ZOOM_connection_Z3950_search: Assertion YAZ-750
Adam Dickmeiss [Mon, 10 Mar 2014 10:23:55 +0000 (11:23 +0100)]
Fix ZOOM_connection_Z3950_search: Assertion YAZ-750

The standalone ZOOM sort was completely broken since 5.0.13.

6 years agoMerge branch 'yaz-749'
Adam Dickmeiss [Wed, 5 Mar 2014 17:31:02 +0000 (18:31 +0100)]
Merge branch 'yaz-749'

6 years agoZOOM: only supply clientIP for InitRequest
Adam Dickmeiss [Wed, 5 Mar 2014 14:44:41 +0000 (15:44 +0100)]
ZOOM: only supply clientIP for InitRequest

Rather than for all APDU types.

6 years agoAdd documentation about facets
Adam Dickmeiss [Wed, 5 Mar 2014 11:00:00 +0000 (12:00 +0100)]
Add documentation about facets

6 years agoGFS: peer_name adds X-Forwarded/Client-IP to value YAZ-749
Adam Dickmeiss [Wed, 5 Mar 2014 09:50:52 +0000 (10:50 +0100)]
GFS: peer_name adds X-Forwarded/Client-IP to value YAZ-749

6 years agoAdd link to memcached(3) man page online
Adam Dickmeiss [Mon, 3 Mar 2014 12:06:06 +0000 (13:06 +0100)]
Add link to memcached(3) man page online

6 years agotcpip: fix comp wo getaddrinfo; refactor tcp_state init
Adam Dickmeiss [Sat, 1 Mar 2014 16:09:33 +0000 (17:09 +0100)]
tcpip: fix comp wo getaddrinfo; refactor tcp_state init

6 years agoInclude stdlib.h due to getenv use
Adam Dickmeiss [Sat, 1 Mar 2014 16:06:44 +0000 (17:06 +0100)]
Include stdlib.h due to getenv use

6 years agoRevert "Move declaration to avoid warning when compiling wo Libxml2"
Adam Dickmeiss [Sat, 1 Mar 2014 14:47:05 +0000 (15:47 +0100)]
Revert "Move declaration to avoid warning when compiling wo Libxml2"

This reverts commit 4df8de77ce5d4d97a9d5588f49a5c8298183776e.

6 years agoMove declaration to avoid warning when compiling wo Libxml2
Adam Dickmeiss [Sat, 1 Mar 2014 13:51:29 +0000 (14:51 +0100)]
Move declaration to avoid warning when compiling wo Libxml2

6 years agoFix-uninit var in new non-blocking getaddrinfo bug
Adam Dickmeiss [Fri, 28 Feb 2014 18:57:40 +0000 (19:57 +0100)]
Fix-uninit var in new non-blocking getaddrinfo bug

This bug was not part of a public release.

6 years agoFix compilation wo libgcrypt
Adam Dickmeiss [Fri, 28 Feb 2014 13:33:27 +0000 (14:33 +0100)]
Fix compilation wo libgcrypt

6 years agoZOOM C uses non-blocking getaddrinfo
Adam Dickmeiss [Fri, 28 Feb 2014 12:48:44 +0000 (13:48 +0100)]
ZOOM C uses non-blocking getaddrinfo

6 years agoCOMSTACK flag CS_FLAGS_DNS_NO_BLOCK
Adam Dickmeiss [Fri, 28 Feb 2014 12:29:53 +0000 (13:29 +0100)]
COMSTACK flag CS_FLAGS_DNS_NO_BLOCK

which will enable non-blocking getaddrinfo . This flag is passed to
macro cs_create and cs_create_host, cs_create_host_proxy functions.

6 years agoMerge branch 'master' into yaz-744
Adam Dickmeiss [Thu, 27 Feb 2014 10:20:49 +0000 (11:20 +0100)]
Merge branch 'master' into yaz-744

6 years agoVersion 5.0.18 v5.0.18
Adam Dickmeiss [Thu, 27 Feb 2014 09:29:07 +0000 (10:29 +0100)]
Version 5.0.18

6 years agoMerge branch 'master' into yaz-744
Adam Dickmeiss [Thu, 27 Feb 2014 09:05:14 +0000 (10:05 +0100)]
Merge branch 'master' into yaz-744

6 years agoAdd note about yaz_log_mask_str_x
Adam Dickmeiss [Thu, 27 Feb 2014 09:03:01 +0000 (10:03 +0100)]
Add note about yaz_log_mask_str_x

6 years agoYAZ_{BEGIN,END}_CDECL yaz_init_globals
Adam Dickmeiss [Thu, 27 Feb 2014 09:02:13 +0000 (10:02 +0100)]
YAZ_{BEGIN,END}_CDECL yaz_init_globals