Skip to content

Commit 4c82675

Browse files
committed
Tag v1.4.0.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/tags/1.4.0@1210733 13f79535-47bb-0310-9956-ffa450edef68
2 parents d10d5f8 + a27014c commit 4c82675

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+9880
-7233
lines changed

CHANGES

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
-*- coding: utf-8 -*-
22
Changes with APR-util 1.4.0
33

4+
*) apr_ldap_init: Pass secure=1 to ldapssl_init() with Solaris LDAP SDK.
5+
PR: 42682 [Stefan Fritsch]
6+
7+
*) apr_memcache_server_create: Fix possible segfault. PR 51064.
8+
[Michajlo Matijkiw <michajlo_matijkiw comcast com>]
9+
10+
*) apr_thread_pool: Fix thread unsafe pool usage. [Stefan Fritsch]
11+
412
*) Do not include apr.h and apr_errno.h from system search path in
5-
apu_errno.h. PR 46487 [Rainer Jung <rainer.jung kippdata.de>]
13+
apu_errno.h. PR 46487 [Rainer Jung]
614

715
*) Add optional dbm, openssl and nss subpackages to the RPM spec file.
816
[Graham Leggett]
@@ -22,8 +30,9 @@ Changes with APR-util 1.4.0
2230
access to basic crypto using the native crypto libraries present on
2331
each platform. [Graham Leggett]
2432

25-
*) Add DTrace Probes to Hooks, making it easier to inspect APR Hook based
26-
applications with DTrace. [Theo Schlossnagle <jesus omniti.com>]
33+
*) Add trace probes to hooks, making it easier to inspect APR Hook based
34+
applications with DTrace or other such mechanisms.
35+
[Theo Schlossnagle <jesus omniti.com>, generalized by Jeff Trawick]
2736

2837
*) Implement resource list when threads are unavailable. PR 24325
2938
[Bojan Smojver]

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache Portable Runtime Utility Library
2-
Copyright (c) 2009 The Apache Software Foundation.
2+
Copyright (c) 2011 The Apache Software Foundation.
33

44
This product includes software developed by
55
The Apache Software Foundation (http://www.apache.org/).

NWGNUmakefile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif
2424
# paths to tools
2525
#
2626

27-
include $(APR_WORK)\build\NWGNUhead.inc
27+
include $(APR_WORK)/build/NWGNUhead.inc
2828

2929
#
3030
# Make sure all needed macro's are defined
@@ -37,11 +37,11 @@ include $(APR_WORK)\build\NWGNUhead.inc
3737
XINCDIRS += \
3838
$(APR)/include \
3939
$(APR)/include/arch/NetWare \
40-
$(APRUTIL)/include \
41-
$(APRUTIL)/uri \
42-
$(APRUTIL)/dbm/sdbm \
43-
$(APRUTIL)/include/private \
44-
$(APRUTIL)/xml/expat/lib \
40+
$(APU)/include \
41+
$(APU)/uri \
42+
$(APU)/dbm/sdbm \
43+
$(APU)/include/private \
44+
$(APUXML)/expat/lib \
4545
$(LDAPSDK)/inc \
4646
$(EOLIST)
4747

@@ -129,7 +129,7 @@ NLM_DESCRIPTION =
129129
NLM_THREAD_NAME =
130130
#
131131
# If this is specified, it will override VERSION value in
132-
# $(APR_WORK)\build\NWGNUenvironment.inc
132+
# $(APR_WORK)/build/NWGNUenvironment.inc
133133
#
134134
NLM_VERSION =
135135

@@ -179,7 +179,7 @@ TARGET_nlm = \
179179
# If there is an LIB target, put it here
180180
#
181181
TARGET_lib = \
182-
$(OBJDIR)/aprutil.lib \
182+
$(OBJDIR)/apulib.lib \
183183
$(EOLIST)
184184

185185
#
@@ -249,6 +249,7 @@ FILES_lib_objs = \
249249
$(OBJDIR)/apr_buckets_refcount.o \
250250
$(OBJDIR)/apr_buckets_simple.o \
251251
$(OBJDIR)/apr_buckets_socket.o \
252+
$(OBJDIR)/apr_crypto.o \
252253
$(OBJDIR)/apr_date.o \
253254
$(OBJDIR)/apr_dbm.o \
254255
$(OBJDIR)/apr_dbd.o \
@@ -285,7 +286,7 @@ nlms :: libs $(TARGET_nlm)
285286

286287
#
287288
# Updated this target to create necessary directories and copy files to the
288-
# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples)
289+
# correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples)
289290
#
290291
install :: nlms FORCE
291292

@@ -300,6 +301,6 @@ vpath %.c buckets:crypto:dbd:dbm:dbm/sdbm:encoding:hooks:ldap:memcache:misc:strm
300301
# in this makefile
301302
#
302303

303-
include $(APR_WORK)\build\NWGNUtail.inc
304+
include $(APRBUILD)/NWGNUtail.inc
304305

305306

README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ code and source code.
9898
The following provides more details on the included cryptographic
9999
software:
100100

101+
APR-Util provides an abstract interface for symmetrical cryptographic
102+
functions that make use of a general-purpose encryption library,
103+
such as OpenSSL, NSS, or the operating system's platform-specific
104+
facilities. This interface is known as the apr_crypto interface,
105+
with implementation beneath the /crypto directory.
106+
101107
APR-Util provides an abstract interface for SSL encrypted LDAP (ldaps
102108
and STARTTLS style) connections, which can be powered by OpenLDAP,
103109
Netscape LDAP SDK, Mozilla LDAP SDK, or other platform specific ldap

STATUS

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@ APACHE PORTABLE RUNTIME APR-UTIL LIBRARY STATUS: -*- coding: utf-8 -*-
22
Last modified at [$Date$]
33

44
Releases:
5-
2.0.0 : in development on trunk/
6-
1.4.0 : in development on branches/1.4.x/
7-
1.3.1 : in maintenance on branches/1.3.x/
5+
2.0.0 : None/EOL - merged into apr/trunk/
6+
1.5.0 : in development on branches/1.5.x/
7+
1.4.0 : tagged December 6, 2011
8+
1.3.9 : released August 5, 2009
9+
1.3.8 : released July 6, 2009
10+
1.3.7 : released June 5, 2009
11+
1.3.6 : not released
12+
1.3.5 : not released
13+
1.3.4 : released August 15, 2008
14+
1.3.3 : not released
15+
1.3.2 : released June 23, 2008
16+
1.3.1 : not released
817
1.3.0 : released June 3, 2008
918
1.2.12 : released November 25, 2007
1019
1.2.11 : not released

apu-config.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fi
8686
if test "$location" = "installed"; then
8787
LA_FILE="$libdir/lib${APRUTIL_LIBNAME}.la"
8888

89-
LIBS=`echo "$LIBS" | sed -e "s $APU_BUILD_DIR/xml/expat $prefix g" -e "s $prefix/lib/libexpat.la -lexpat g"`
89+
LIBS=`echo "$LIBS" | sed -e "s $APU_BUILD_DIR/xml/expat $prefix g" -e "s $prefix/libexpat.la -lexpat g"`
9090
LDFLAGS=`echo "$LDFLAGS" | sed -e "s $APU_BUILD_DIR/xml/expat $prefix g"`
9191
INCLUDES=`echo "$INCLUDES" | sed -e "s $APU_BUILD_DIR/xml/expat $prefix g" -e "s -I$prefix/lib g"`
9292
else

buckets/apr_brigade.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,18 @@ APU_DECLARE(apr_status_t) apr_brigade_split_line(apr_bucket_brigade *bbOut,
331331
return APR_SUCCESS;
332332
}
333333
APR_BUCKET_REMOVE(e);
334-
APR_BRIGADE_INSERT_TAIL(bbOut, e);
334+
if (APR_BUCKET_IS_METADATA(e) || len > APR_BUCKET_BUFF_SIZE/4) {
335+
APR_BRIGADE_INSERT_TAIL(bbOut, e);
336+
}
337+
else {
338+
if (len > 0) {
339+
rv = apr_brigade_write(bbOut, NULL, NULL, str, len);
340+
if (rv != APR_SUCCESS) {
341+
return rv;
342+
}
343+
}
344+
apr_bucket_destroy(e);
345+
}
335346
readbytes += len;
336347
/* We didn't find an APR_ASCII_LF within the maximum line length. */
337348
if (readbytes >= maxbytes) {

buckets/apr_buckets_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ static apr_status_t file_bucket_read(apr_bucket *e, const char **str,
9393
#endif
9494

9595
#if APR_HAS_THREADS && !APR_HAS_XTHREAD_FILES
96-
if ((flags = apr_file_flags_get(f)) & APR_XTHREAD) {
96+
if ((flags = apr_file_flags_get(f)) & APR_FOPEN_XTHREAD) {
9797
/* this file descriptor is shared across multiple threads and
9898
* this OS doesn't support that natively, so as a workaround
9999
* we must reopen the file into a->readpool */
100100
const char *fname;
101101
apr_file_name_get(&fname, f);
102102

103-
rv = apr_file_open(&f, fname, (flags & ~APR_XTHREAD), 0, a->readpool);
103+
rv = apr_file_open(&f, fname, (flags & ~APR_FOPEN_XTHREAD), 0, a->readpool);
104104
if (rv != APR_SUCCESS)
105105
return rv;
106106

build.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ paths = dbm/apr_dbm_ndbm.c
9393
target = dbm/apr_dbm_ndbm.la
9494

9595
[ldap]
96-
paths = ldap/apr_ldap_init.c \
97-
ldap/apr_ldap_option.c \
96+
paths = ldap/apr_ldap_init.c
97+
ldap/apr_ldap_option.c
9898
ldap/apr_ldap_rebind.c
9999
target = ldap/apr_ldap.la
100100

build/apu-conf.m4

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ if test "${apu_has_expat}${apu_try_builtin_expat}" = "01"; then
164164
dnl we are working with the bundled version of the software.
165165
bundled_subdir="xml/expat"
166166
APR_SUBDIR_CONFIG($bundled_subdir, [--prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir])
167-
APR_ADDTO(APRUTIL_INCLUDES, [-I$top_builddir/$bundled_subdir/lib])
167+
APR_ADDTO(APRUTIL_INCLUDES, [-I$abs_srcdir/$bundled_subdir/lib])
168168
APR_ADDTO(LDFLAGS, [-L$top_builddir/$bundled_subdir/lib])
169-
apu_expat_libs="$top_builddir/$bundled_subdir/lib/libexpat.la"
169+
apu_expat_libs="$top_builddir/$bundled_subdir/libexpat.la"
170170
fi
171171
172172
APR_ADDTO(APRUTIL_EXPORT_LIBS, [$apu_expat_libs])
@@ -391,9 +391,7 @@ if test "$apu_has_ldap_openldap" = "1"; then
391391
#include <ldap.h>
392392
#endif
393393
], [
394-
int tmp = ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0);
395-
/* use tmp to suppress the warning */
396-
tmp=0;
394+
ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0);
397395
], ac_cv_ldap_set_rebind_proc_style=three, ac_cv_ldap_set_rebind_proc_style=two))
398396
399397
if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then

0 commit comments

Comments
 (0)