Commit graph

127 commits

Author SHA1 Message Date
rin
2377257e91 Work around missing 64bit atomic compiler builtins on IPL32 platforms
other than x86, that is handled manually (mess!).

It should be better to fix autoconf stuff rather than source codes.
However, (1) it requires to regen configure script, and (2) apr 2.0
uses cmake.

Thanks to @est_suzume for analysis.
2020-02-20 06:25:28 +00:00
rillig
508923f461 all: migrate several HOMEPAGEs to https
pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
2020-01-18 23:30:13 +00:00
wiz
bcc567af2e apr: update to 1.7.0.
Changes for APR 1.7.0

  *) apr_dir_read: [Unix] Dropped the preference of the dirread_r() flavor
     for dirread(), because the former is both deprecated and unneeded.
     [Yann Ylavic, William Rowe]

  *) apr_file_info: [Win32 only] Treat only "name surrogate" reparse points
     as symlinks, and not other reparse tag types. bug 47630
     [Oleg Liatte <olegliatte gmail.com>]

  *) Test %ld vs. %lld to avoid compiler emits using APR_OFF_T_FMT, in the
     case of apparently equivilant long and long long types. [William Rowe]

  *) Recognize APPLE predefined macros as equivilant to DARWIN. [Jim Jagielski]

  *) Signals: Allow handling of SIGUSR2 in apr_signal_thread. [Yann Ylavic]

  *) Atomics: Support for 64bit ints. [Jim Jagielski]

  *) Add the apr_encode_* API that implements RFC4648 and RFC7515
     compliant BASE64, BASE64URL, BASE32, BASE32HEX and BASE16
     encode/decode functions. [Graham Leggett]

  *) rand: Use arc4random_buf() on BSD platforms and getrandom() on Linux,
     when available. [Christian Weisgerber <naddy openbsd.org, Yann Ylavic]

  *) Add apr_sockaddr_zone_set, apr_sockaddr_zone_set to set and retrieve
     the zone for link-local IPv6 addresses.  [Joe Orton]

  *) apr_sockaddr_equal: Compare link-local IPv6 addresses with different
     zones as not equal.  [Joe Orton]

  *) apr_sockaddr_ip_getbuf, apr_sockaddr_ip_get: Append "%zone" for
     IPv6 link-local addresses.  [Joe Orton]

  *) Locks: add a --disable-timedlocks config option in case users
     encounter more platforms where it fails [Nick Kew].

  *) apr_allocator, apr_pools: Add apr_allocator_page_size() and
     apr_allocator_min_order_set() to respectively get the (system's) page size
     in use and set the minimum allocation size for an allocator (expressed in
     2^order pages).  [Yann Ylavic]

  *) locks: provide portable implementations of timedlock()s for
     posix-sems, sysv-sems and pthreads for those platforms that
     lack native versions (eg: OSX/macOS). [Jim Jagielski]

  *) locks: Introduce apr_{thread,proc,global}_mutex_timedlock().
     [Yann Ylavic]
2019-04-12 13:02:44 +00:00
wiz
e0b09836bd apr: update to 1.6.5.
Changes for APR 1.6.5

  *) Fix Win32 build breakage in apr_os_exp_time_put() in 1.6.4. [Rainer Jung]

Changes for APR 1.6.4 (not released)

  *) configure: Fix detection of <net/if.h> on OpenBSD.
     PR 61976. [David Carlier <devnexen gmail.com>, Yann Ylavic]

  *) Fix apr_parse_addr_port() regression in scope_id parsing introduced
     in 1.6.3.  [Rainer Jung]

  *) Fix Win32 file buffer locking behavior for single threaded file streams.
     [Evgeny Kotkov, Mladen Turk, Jean-Frederic Clere]

  *) Numerous corrections to APR poll behavior. [Yann Ylavic]
2018-12-02 10:22:39 +00:00
ryoon
8f155b3ba2 Update to 1.6.3
Changelog:
Changes for APR 1.6.3

  *) apr_file_trunc: Truncating a buffered file could add unexpected
     data after the truncate position. 51017.
     [Evgeny Kotkov <evgeny.kotkov visualsvn.com>]

  *) apr_file_trunc: Fix an issue where reading from a buffered file
     after truncate could return stale data from the buffer.
     [Evgeny Kotkov <evgeny.kotkov visualsvn.com>]

  *) apr_ipsubnet_create() now fails for an empty input string.
     [Joe Orton]
2017-10-24 12:24:27 +00:00
wiz
9b3b17b389 Warn about "PR" in changelogs. 2017-06-19 20:52:46 +00:00
wiz
b510b81bf6 Updated apr to 1.6.2.
Changes for APR 1.6.2

  *) Corrected non-Unix builds for APR_LOCK_DEFAULT.

Changes for APR 1.6.1

  *) Defer timed locks API for later 1.7 release [Nick Kew, William Rowe]

  *) Export build files find_apr.m4 and apr_common.m4 [Jacob Champion]

Changes for APR 1.6.0

  *) apr_allocator: Provide apr_allocator_align() to get the true size that
     would be allocated for the given size (including the header and
     alignment).  [Yann Ylavic]

  *) apr_os_proc_mutex_put_ex: Allow to specify whether the OS native
     mutex should or not be cleaned up (destroyed) with the constructed
     APR mutex (given pool), and default to not for the simple _put()
     function.  [Yann Ylavic]

  *) apr_proc/global_mutex: Fix API regarding the native OS mutexes
     accessors from/to available APR mechanisms, adding the new functions
     apr_os_proc_mutex_get_ex() and apr_os_proc_mutex_set_ex() which give
     control to the user over the selected mechanisms, including the missing
     POSIX semaphores (sem_t) on platforms supporting them.
     [Yann Ylavic]

  *) apr_proc_mutex-pthread: Refcount shared mutexes usage to avoid
     destruction while still is use by some process(es).  PR 49504.
     [Yann Ylavic]

  *) apr_file_io: Add apr_file_pipe_create_pools() allowing a pair of
     pipes to be created, each in a different pool. [Graham Leggett]

  *) Add apr_pollcb_wakeup(), with similar behavior to
     apr_pollset_wakeup(). Add apr_pollcb_method_name(), with similar
     behavior to apr_pollset_method_name().
     [Neil Conway <nrc cs berkeley edu>, Jeff Trawick]

  *) apr_table_overlap: Add APR_OVERLAP_TABLES_ADD to merge and set when
     overlapping tables. [Graham Leggett]

  *) locks: Introduce apr_{thread,proc,global}_mutex_timedlock().
     [Yann Ylavic]

  *) Introduce the apr_cstr_fn() family of functions, derived from
     the svn_cstring_ functions of the Subversion project.

  *) Add APR_SO_FREEBIND option for apr_socket_opt_set.  PR 58725.
     [Ashley GC, Jan Kaluza, Joe Orton]

  *) apr_filepath_merge: Fix truename length calculation on Windows
     in cases where the "short" name variant is actually longer than
     the "long" or "true" name. See: testnames.c:merge_shortname().
     [Bert Huijben <rhuijben a.o>]

  *) apr_atomic: Fix errors when building on Visual Studio 2013 while
     maintaining the ability to build on Visual Studio 6 with Windows
     Server 2003 R2 SDK. PR 57191. [Gregg Smith]

  *) apr_skiplist: Add apr_skiplist_addne*() family to preserve existing
     values (no duplicate), add apr_skiplist_size(), apr_skiplist_height()
     and apr_skiplist_preheight() to get the corresponding current values,
     and apr_skiplist_set_preheight() to modify it. [ Yann Ylavic ]

  *) Add new --enable-allocator-guard-pages which is like allocator-uses-mmap,
     but will also add inaccessible guard pages before and after each memnode.
     This will result in higher ressource usage but allow to find/protect
     against certain buffer overflow/overread bugs. Under Linux, it may be
     necessary to increase /proc/sys/vm/max_map_count . [Stefan Fritsch]

  *) apr_skiplist: Add apr_skiplist_add() to support multiple values.

  *) Add new --enable-pool-concurrency-check configure option to detect
     thread-unsafe concurrent accesses to pools. Runtime costs should be
     relatively low. [Stefan Fritsch]

  *) Add support code to teach valgrind about APR pools and allocators.
     [Stefan Fritsch]

  *) Add apr_sockaddr_info_copy(), for making a deep copy of an
     apr_sockaddr_t into a specified pool.  [Yann Ylavic
     <ylavic.dev gmail.com>]

  *) Added Unix domain socket support.
     [Mladen Turk]

  *) Add apr_shm_delete() to compliment apr_shm_remove().
     [Jim Jagielski]

  *) Intruduce APR_PERMS_SET macros for setting the owner/group on
     objects. Currently only implemented for shm, proc and global
     mutexes on posix platforms.
     [Mladen Turk]

  *) Add apr_escape_ldap() and apr_pescape_ldap(), escaping characters
     as described by RFC4514 and RFC4515 respectively. [Graham Leggett]
2017-06-19 20:40:38 +00:00
agc
d9e4cfe05d Add SHA512 digests for distfiles for devel category
Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 03:27:11 +00:00
wiz
d508f66f46 Update to 1.5.2:
-*- coding: utf-8 -*-
Changes for APR 1.5.2

  *) SECURITY: CVE-2015-1829 (cve.mitre.org)
     APR applications using APR named pipe support on Windows can be
     vulnerable to a pipe squatting attack from a local process; the extent
     of the vulnerability, when present, depends on the application.
     Initial analysis and report was provided by John Hernandez of Casaba
     Security via HP SSRT Security Alert.  [Yann Ylavic]

  *) apr_atomic: Fix errors when building on Visual Studio 2013 while
     maintaining the ability to build on Visual Studio 6 with Windows
     Server 2003 R2 SDK. PR 57191. [Gregg Smith]

  *) Switch to generic atomics for early/unpatched Solaris 10 not exporting
     some atomic functions.  PR 55418.  [Yann Ylavic]

  *) apr_file_mktemp() on HP-UX: Remove limitation of 26 temporary files
     per process.  PR 57677.  [Jeff Trawick]

  *) apr_escape: Correctly calculate the size of the returned string in
     apr_escape_path and set the correct return value in case we actually
     escape the string. [<aduryagin gmail.com>] PR 57230.

  *) pollcb on Windows: Handle calls with no file/socket descriptors.
     Follow up to PR 49882. [Jeff Trawick, Yann Ylavic]

  *) apr_poll(cb): fix error paths returned values and leaks.  [Yann Ylavic]

  *) apr_thread_cond_*wait() on BeOS: Fix broken logic.  PR 45800.
     [Jochen Voss (no e-mail)]

  *) apr_skiplist: Optimize the number of allocations by reusing pooled or
     malloc()ed nodes for the lifetime of the skiplist.  [Yann Ylavic]

  *) apr_skiplist: Fix possible multiple-free() on the same value in
     apr_skiplist_remove_all().  [Yann Ylavic]

  *) apr_pollset: On z/OS, threadsafe apr_pollset_poll() may return
     "EDC8102I Operation would block" under load.
     [Pat Odonnell <patod us.ibm.com>]

  *) On z/OS, apr_sockaddr_info_get() with family == APR_UNSPEC was not
     returning IPv4 addresses if any IPv6 addresses were returned.
     [Eric Covener]

  *) Windows cmake build: Fix an incompatibility with cmake 2.8.12 and
     later.  [Jeff Trawick]

  *) apr_global_mutex/apr_proc_mutex: Resolve failures with the
     POSIX sem implementation in environments which receive signals.
     [Jeff Trawick]

  *) apr_skiplist: Fix potential corruption of skiplists leading to
     results or crashes. [Takashi Sato <takashi tks st>, Eric Covener]
     PR 56654.

  *) Improve platform detection by updating config.guess and config.sub.
     [Rainer Jung]
2015-05-28 06:39:32 +00:00
joerg
adc0f9f5ab Unconditionally use the !ARM, !CRAY version of APR_OFFSET. 2014-11-25 14:55:46 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
tron
d7b5f25fe4 Update "apr" package to version 1.5.1. Changes since 1.5.0:
- apr_os_proc_mutex_get() on Unix:  Avoid segfault for cross-
  process pthread mutexes.  [Yann Ylavic <ylavic.dev gmail.com>]
- When using shmget-based shared memory, the ID used for ftok is
  now an APR hash of the filename instead of the constant '1'.
  We do this to help avoid collisions. Bug 53996 [Jim Jagielski]
- apr_socket_atreadeof(): Fix breakage on OS X. [Jim Jagielski]
- Fix POSIX shared memory (shm_open) use for named shared memory.
  Includes adding '--enable-posix-shm' to force POSIX shm if
  available, and OS X compatibility. Bug 55928.
  [Jozef Hatala <jh-asf skrt org>, Jim Jagielski]
- Fix apr_escape.c compilation errors on EBCDIC platforms.
  [Eric Covener]
- FreeBSD 10: Correct a regression in 1.5.0 which affected non-
  blocking sockets in some applications, including httpd.  [Jeff
  Trawick]
- apr_skiplist: Add compatibility with C++ applications.
  [Jeff Trawick]
- Correct a regression in 1.5.0 which affected out-of-tree
  builds on Unix.  [Rainer Jung]
- Improve platform detection for bundled expat by updating
  config.guess and config.sub. [Rainer Jung]
2014-04-23 06:56:04 +00:00
ryoon
b3838003e9 Update to 1.5.0
* BUILDLINK_{API,ABI}_DEPENDS.apr are bumped

Changelog:
Changes for APR 1.5.0

  *) Fix Linux kernel version check to recognize more versions,
     including versions 3.10 and later.  Bug 55690.  [Joe Orton,
     Arfrever Frehtes Taifersar Arahesis <arfrever.fta gmail.com>]

  *) Add apr_sockaddr_is_wildcard() to check if a socket address
     refers to the wildcard address for the protocol family (e.g.,
     0.0.0.0/INADDR_ANY for IPv4).  [Jeff Trawick]

  *) apr_file_dup2() on Windows: Fix debug RTL assertion in when
     attempting to _commit(stdout) or _commit(stderr).  [Mike Rumph
     <mike.rumph oracle.com>]

  *) apr_socket_connect() on Windows: Handle WSAEISCONN. Bug 48736.
     [<inoue ariel-networks.com>, Jeff Trawick]

  *) z/OS: threadsafe apr_pollset_poll support for sockets [Greg Ames]

  *) Windows:  Don't obtain a mutex for buffered file I/O unless the
     file was opened with the APR_FOPEN_XTHREAD flag.  [Ivan Zhakov
     <ivan visualsvn.com>]

  *) Windows:  Create named shared memory segments under the "Local"
     namespace if the caller is unprivileged, fixing an inability of
     unprivileged callers to use apr_shm_create() with named shared
     memory segments under recent Windows.  As before, shared memory
     segments are created under the "Global" namespace for privileged
     callers.  Add apr_shm_create_ex() and apr_shm_attach_ex(), which
     provide the ability to override the normal namespace selection.
     [Jeff Trawick]

  *) Update compile settings for MINT OS. Bug 47181. [Alan Hourihane
     <alanh fairlite.co.uk>]

  *) Files and pipes on Windows:  Don't create an unused pollset when
     files and pipes are opened.  [Mladen Turk]

  *) apr_socket_timeout_set() on Windows: If the socket was in a non-
     blocking state before, disable that setting so that timeouts work.
     [Jeff Trawick]

  *) File info APIs: Fix calculation of atime and mtime on AIX. Bug 51146.
     [Ruediger Pluem]

  *) Add the apr_escape interface. [Graham Leggett]

  *) Cygwin build fixes.  Bugs 51016 and 55586.  [Carlo Bramini
     <carlo.bramix libero.it>]

  *) Add apr_skiplist family. [Jim Jagielski]

  *) Add experimental cmake-based build system for Windows.  Refer to
     README.cmake for more information.  [Jeff Trawick, Tom Donovan]

  *) Add the apr_table_getm() call, which transparently handles the
     merging of keys with multiple values. [Graham Leggett]

  *) Add apr_hash_this_key(), apr_hash_this_key_len(), and
     apr_hash_this_val() for easier access to those attributes from
     a hash iterator.  [Hyrum K. Wright <hyrum_wright mail.utexas.edu>]

  *) MinGW/MSYS:  Support shared builds of APR, other general improvements
     to support of this toolchain.  Bug 46175.  [Carlo Bramini
     <carlo.bramix libero.it>]

  *) Improve platform detection by updating config.guess and config.sub.
     [Rainer Jung]

  *) apr_socket_opt_set: Add support for APR_SO_BROADCAST. PR 46389.
     [Armin Müller <mueller itestra com>]

  *) Enable platform specific support for the opening of a file or
     pipe in non-blocking mode through the APR_FOPEN_NONBLOCK flag.
     [Graham Leggett]
2013-12-01 09:45:49 +00:00
wiz
af483d54c2 Update to 1.4.8:
Changes for APR 1.4.8

  *) Fix compiltation with FreeBSD on ARM.  [Olli Hauer <ohauer gmx.de>]

  *) Fix 1.4.7 regression in apr_mcast_hops() and apr_mcast_loopback()
     for AF_INET (IPv4) sockets on most Unix platforms.  [Joe Orton]

  *) Fix the return value of apr_threadattr_detach_get() on some
     platforms like OS X and Solaris. [Rainer Jung, <dusanv gmail com>]

Changes for APR 1.4.7

  *) Fix apr_sockaddr_info_get() not returning an error in some cases.
     PR 54779. [Jan Kaluža <jkaluza redhat com>]

  *) Fix amd64 assembler version of apr_atomic_xchgptr(). PR 51851. [Mattias
     Engdegård <mattiase acm org>]

  *) Fix PPC atomics to work with gcc 4.0. PR 54840. [Mattias Engdegård
     <mattiase acm org>]

  *) configure: Fix detection of O_NONBLOCK inheritance on busy
     systems.  [Rainer Jung]

  *) Remove unused code, fix strict C compliance bug in SHA-256
     implementation.  [Jan Kaluza <jkaluza redhat.com>]

  *) Fix apr_ipsubnet_test() false positives when comparing IPv4
     subnet representation against an IPv6 address.  PR 54047.  [Joe Orton]

  *) apr_socket_accept_filter: Return success when trying to again set
     the filter to the same value as before, avoiding an unhelpful
     APR_EINVAL.  PR 37863.  [Jeff Trawick]

  *) configure: Fix Linux 3.x detection. PR 54001. [Gilles Espinasse
     <g esp free fr>]

  *) apr_time_exp_*() on Windows: Fix error in the tm_yday field of
     apr_time_exp_t for times within leap years.  PR 53175.
     [Jeff Trawick]

  *) Improve platform detection by updating config.guess and config.sub.
     [Rainer Jung]

  *) Add support for OSX Mountain Lion (10.8) [Jim Jagielski]

  *) Add various gcc function attributes. [Stefan Fritsch]

  *) Fix some problems in apr_sockaddr_info_get() when trying to resolve
     the loopback addresses of a protocol family that is not otherwise
     configured on the system. PR 52709. [Nirgal Vourgère
     <jmv_deb nirgal com>, Stefan Fritsch]

  *) Fix file not being unlocked if truncate call on a file fails.
     [Mladen Turk]

  *) apr_mcast_hops: Fix EINVAL for IPv6 sockets caused by using byte
     instead integer for setsockopt. [Mladen Turk]

  *) Windows: Fix compile-time checks for 64-bit builds, resolving a
     crash in httpd's mod_rewrite.  PR 49155.  [<anindyabaruah gmail.com>]
2013-07-04 16:24:02 +00:00
rodent
1a6dc952b9 "For efficiency reasons, please include bsd.fast.prefs.mk instead of
bsd.prefs.mk."
2013-04-06 11:06:52 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
dholland
7e751949e4 Set BUILDLINK_ABI_DEPENDS correctly (with +=, not ?=)
It turns out there were a lot of these.
2012-05-07 01:53:12 +00:00
ryoon
df5c43a30b Remove obsolete patch files.
Thank you, tron@.
2012-03-12 09:40:28 +00:00
ryoon
632e81d414 Update to 1.4.5
Changelog:
Changes for APR 1.4.5

  *) Security: CVE-2011-1928
     apr_fnmatch(): Fix high CPU loop.  [William Rowe]

  *) Fix top_builddir in installed apr_rules.mk.  [Bojan Smojver]

Changes for APR 1.4.4

  *) Windows: Fix command-line builds.  [William Rowe]
2012-03-11 12:17:46 +00:00
spz
336a737166 fix CVE-2012-0840 with patches taken from the Apache svn 2012-02-11 12:44:09 +00:00
sbd
fbd3313d1b devel/libuuid is only needed for uuid support on Linux and SunOS.
Bump PKGREVISION
2011-12-02 07:13:28 +00:00
alnsn
c756c797f4 Add libuuid dependency. Bump PKGREVISION.
Tested on x86_64 Linux with USE_BUILTIN.libuuid=(yes|no).
2011-11-30 19:28:56 +00:00
alnsn
e9c19badd0 Bump PKGREVISION after adding a new patch.
Prompted by Takahiro Kambe, thanks.
2011-11-25 22:25:51 +00:00
alnsn
66c9ac8ef3 Add patches from upstream bug #51851.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51851
2011-11-19 21:16:22 +00:00
tron
1169b0adf0 Update "apr" package to version 1.4.5. Change since version 1.4.4:
- Security: CVE-2011-1928
  apr_fnmatch(): Fix high CPU loop. [William Rowe]
- Fix top_builddir in installed apr_rules.mk. [Bojan Smojver]

Please note the fix for CVE-2011-1928 was previously already integrated
as a patch.
2011-05-22 22:41:00 +00:00
drochner
d18dff9b45 add patch from upstream tp fix a regression in the last release
which could cause hangs
bump PKGREV
2011-05-20 09:23:15 +00:00
tron
727f5f4e8e Update "apr" package to version 1.4.2. Changes since version 1.4.4:
- Reimplement apr_fnmatch() from scratch using a non-recursive
  algorithm; now has improved compliance with the fnmatch() spec.
  [William Rowe]
- Fix environment-related crash using some non-standard builds on
  Windows 7/Server 2008.  [Steve Hay <SteveHay planit.com>]
- poll, pollset, pollcb on Windows: Handle calls with no file/socket
  descriptors.  Bug 49882.  [Stefan Ruppert <sr myarm.com>, Jeff Trawick]
- Fix APR_IPV6_V6ONLY issues on Windows related to run-time behavior
  on Windows older than Vista and SDK/MinGW levels without IPV6_V6ONLY.
  Bug 45321.  [Sob <sob hisoftware.cz>]
- Fix address handling when accepting an AF_INET socket from a socket
  bound as AF_INET6.   Bug 49678.  [Joe Orton]
- Fix error return values from apr_sockaddr_info_get() on Windows for
  IPv6 builds.  [Ivan Zhakov <ivan visualsvn.com>]
- Add new experimental configure option --enable-allocator-uses-mmap to
  use mmap instead of malloc in apr_allocator_alloc(). This greatly reduces
  memory fragmentation with malloc implementations (e.g. glibc) that
  don't handle allocationss of a page-size-multiples in an efficient way.
  It also makes apr_allocator_max_free_set() actually have some effect
  on such platforms. [Stefan Fritsch]
- configure: Support 64 and 32 bit universal builds for Darwin/
  OS X 10.6+. [Jim Jagielski]
- apr_sockaddr_info_get() on AIX: Fix a problem which could set
  the port field in the native socket address to 1 when 0 was
  specified.  Bug 46964.  [Jeff Trawick]
- configure: Make definition of apr_ino_t independent of
  _FILE_OFFSET_BITS even on platforms where ino_t is 'unsigned int'.
  [Stefan Fritsch]
- apr_ring: Workaround for aliasing problem that causes gcc 4.5 to
  miscompile some brigade related code. Bug 50190. [Stefan Fritsch]
- apr_file_flush_locked(): Handle short writes. [Stefan Fritsch]
- apr_pollset_create_ex(): Trap errors from pollset providers.
  Bug 49094.  [Sami Tolvanen <sami.tolvanen mywot.com>]
- apr_pollset_create*(): Fix memory lifetime problem with the wakeup
  pipe when the pollset was created with APR_POLLSET_NOCOPY.
  [Neil Conway <nrc cs.berkeley.edu>]
- Fix detection of some Linux variants when configure is built with
  recent GNU tools.  [Eric Covener]
- Avoid a redundant fcntl() call in apr_file_open() where O_CLOEXEC
  is supported.  Bug 46297.  [Joe Orton]
- Improve platform detection by updating config.guess and config.sub.
  [Rainer Jung]
2011-05-11 18:07:16 +00:00
adam
56652ca3be Changes 1.4.2:
* Undo a crash-bug introduced in 1.3.9 affecting some applications of
  the apr hash and table structures, reported to affect Subversion

Changes 1.4.1:
* Win32: Properly handle the ERROR_DIRECTORY system error code.

Changes 1.4.0:
* Add apr_global_mutex_lockfile() for retrieving the file, if any,
  associated with the mutex.  Add apr_global_mutex_name() for retrieving
  the name of the lock mechanism used by the underlying proc mutex.

* Add apr_socket_atreadeof to determine whether the receive part of the
  socket has been closed by the peer.

* Make apr_pollset and apr_pollcb implementations using providers.
  Added apr_pollset_create_ex and apr_pollcb_create_ex that allows
  choosing non-default providers.

* apr_temp_dir_get() now checks the TMPDIR environment variable first,
  instead of third.

* Add apr_file_sync() and apr_file_datasync() calls.

* apr_pollset_wakeup() on Windows: Fix core caused by closing the
  file_socket_pipe with standard file_close.

* Introduce apr_hash_do() for iterating over a hash table.

* Make sure WIN32 behaves the same as posix for file-backed shared memory
  by removing the file on cleanup/remove.

* Introduce apr_pollset_wakeup() for interrupting the blocking
  apr_pollset_poll() call.

* Add apr_file_link() function.
2010-11-01 17:20:03 +00:00
fhajny
5239362357 Update to 1.3.9 (security fix).
Changes for APR 1.3.9

  *) SECURITY: CVE-2009-2699 (cve.mitre.org)
     Faulty error handling in the Solaris pollset support
     (Event Port backend) which could trigger hangs in the prefork
     and event MPMs on that platform.  PR 47645.  [Jeff Trawick]
2009-12-02 11:36:27 +00:00
gdt
743071d160 Update to 1.3.8 (security fix).
Changes for APR 1.3.8

  *) SECURITY: CVE-2009-2412 (cve.mitre.org)
     Fix overflow in pools and rmm, where size alignment was taking place.
     [Matt Lewis <mattlewis@google.com>, Sander Striker]

  *) Make sure that "make check" is used in the RPM spec file, consistent
     with apr-util. [Graham Leggett]

  *) Pass default environment to testflock, testoc and testpipe children,
     so that tests run when APR is compiled with Intel C Compiler.
     [Bojan Smojver]
2009-08-07 14:29:44 +00:00
tonnerre
45fa3c3899 Update to apr version 1.3.7, which, other than 1.3.5, is still downloadable.
Changes since 1.3.5:
 - On Linux/hppa flock() returns EAGAIN instead of EWOULDBLOCK. This
   causes proc mutex failures.
 - Set CLOEXEC flags where appropriate. Either use new O_CLOEXEC flag and
   associated functions, such as dup3(), accept4(), epoll_create1() etc.,
   or simply set CLOEXEC flag using fcntl().
 - More elaborate detection for dup3(), accept4() and epoll_create1().
2009-08-04 10:09:35 +00:00
joerg
0268c554bd Remove @dirrm entries from PLISTs 2009-06-14 17:38:38 +00:00
tron
526479e5d2 Update "apr" package to version 1.3.3. Changes since version 1.3.5:
- Dropped kqueue and apr_poll detection from Mac OS/X 10.5/Darwin 9
  due to various reported problems.
- apr_strerror() on OS/2: Fix problem with calculating buffer size.
  Bug 45689.
- Prefer glibtool1/glibtoolize1.
- Fix buildconf with libtool 2.2.
- Fix a bug with the APR_DELONCLOSE flag. Child processes were (also)
  unlinking the file.
- Fix compilation error on systems that do not have IPV6.
  Bug 46601
- apr_socket_sendfile() on Solaris: Fix handling of files truncated
  after the sender determines the length.  (This fixes a busy loop in
  httpd when a file being served is truncated.)
- Fix documentation for apr_temp_dir_get().
  Bug 46303
- Add AC_MSG_RESULT after AC_MSG_CHECKING.
  Bug 46427
- Reset errno to zero in apr_strtoi64 to prevent returning an errno not
  equal zero in cases where the operation worked fine.
- Win32: Do not error out on apr_pollset_poll() when there are no sockets.
- Fix apr_tokenize_to_argv parsing. Bug 46128
2009-06-08 14:23:10 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
wiz
3d45c43a75 Update to 1.3.3:
Changes for APR 1.3.3

  *) Rename apr_pool_create_core to apr_pool_create_unmanaged and
     deprecate the old API name. It better reflects the scope and usage
     of this function. [Mladen Turk]

  *) Use proper return code for fcntl-based apr_proc_mutex_trylock()
     on platforms that return EACCES instead of EAGAIN when the lock
     is already held (AIX, HP-UX).
     [Eric Covener]

  *) Fix APR_PID_T_FMT detection on Solaris.  PR 45513
     [Rainer Jung <rainer.jung kippdata.de>]

Changes for APR 1.3.2

  *) Fix getservbyname_r() detection.  [Ruediger Pluem]

Changes for APR 1.3.1

  *) Fix win32 apr.hw to pick up XP/2003 TCP/IP multicast constants and
     revert to IPV6 disabled-by-default (a change present only in 1.3.0).
     [William Rowe]

  *) Fix autoconf cached detection of atomic builtins.  [Jim Jagielski]

  *) Use thread safe versions of getservbyname().  [Bojan Smojver]

  *) Use thread safe getpass_r on Netware.  [Guenter Knauf]

Changes for APR 1.3.0

  *) Fix Solaris poll failure.  PR 43000
     [Henry Jen <henryjen ztune.net>]

  *) apr_getservbyname(): Use proper method for converting port
     to host byte order.  PR 44903.
     [Chris Taylor <ctaylor wadeford.plus.com>]

  *) Use /dev/urandom in preference to /dev/random as entropy source
     for apr_generate_random_bytes.  PR 44881.  [Bojan Smojver]

  *) Implement apr_proc_wait_all_procs for windows.
     The implementation uses tool help library present
     on Windows 2000 and later. APR_ENOTIMPL is returned
     on platforms missing tool help from kernel32.dll.
     [Mladen Turk]

  *) Introduce apr_pool_pre_cleanup_register() for registering
     a cleanup that is called before any subpool is destroyed
     within apr_pool_clear or apr_pool_destroy.
     This allows to register a cleanup that will notify subpools
     about its inevitable destruction.
     [Mladen Turk]

  *) Introduce apr_pool_create_core_ex() for creation of standalone
     pools without parent. This function should be used for short
     living pools, usually ones that are created and destroyed
     either in a loop or inside function call. Since the pools
     created with this function doesn't have a parent they must
     be explicitly destroyed when done.
     [Mladen Turk]

  *) Fix return value when apr_pollset_poll interrupted.
     PR 42580 [Basant Kumar Kukreja <basant.kukreja sun.com>]

  *) Add missing semi-colon in Win9x code path of apr_file_open that breaks
     Win9X Debug builds. PR 44329. [Curt Arnold]

  *) z/OS: return standard apr_status_t codes from apr_dso_load()
     and apr_dso_sym().  [David Jones <oscaremma gmail.com>]

  *) Fix the make test target in the spec file. [Graham Leggett]

  *) Fix DSO-related crash on z/OS caused by incorrect memory
     allocation.  [David Jones <oscaremma gmail.com>]

  *) Implement Darwin-semantic (9.0.0 and later) sendfile support.
     Use writev in lieu of hdtr vecs since how Darwin counts the
     data is undocumented. [Geoff Greer <angryparsley mipsisrisc.com>,
     William Rowe, Jim Jagielski]

  *) Implemented the APR_FOPEN_SPARSE flag, permits win32 to create
     sparse data files.  Also bestow apr_fileinfo_t csize field for
     Windows versions 2000 and later, which helps in the detection
     that a sparse file is truly in use (see test/testlfs.c for an
     example, because different filesystems can vary in behavior
     even on an OS supporting sparse files).  [William Rowe]

  *) Corrected for Darwin and others to toggle APR_HAS_LARGE_FILES
     where large off_t's are enabled without any extra defines, hints
     or additional functions.  This is binary compatible, but apps
     may need to be recompiled to take full advantage depending on how
     they detect this feature.  [William Rowe]

  *) Implement apr_atomic_casptr() and apr_atomic_xchgptr() for z/OS.
     [David Jones <oscaremma gmail.com>]

  *) Introduce apr_file_pipe_create_ex() to portably permit one pipe
     end or another to be entirely blocking for non-APR applications
     (e.g. stdio streams) and the other (or both ends) non blocking,
     with a timeout of 0 by default.
     [William Rowe]

  *) apr_procattr_io_set() on Windows: Set non-blocking pipe handles
     to a default timeout of 0, following the Unix default.  No effect
     on pipe handles configured to block.  PR 43522.
     [Eric Covener <covener gmail.com>]

  *) apr_file_write() on Windows: Fix return code when writing to a non-
     blocking pipe would have blocked.  PR 43563.
     [Eric Covener <covener gmail.com>]

  *) Introduce APR_NO_FILE as an option to apr_procattr_io_set() for any
     of the three stdio streams to cause the corresponding streams to be
     closed to the child process.  This becomes effective in 1.3.0 across
     platforms (equivilant to APR_NO_PIPE in 1.2.x except on Win32.)
     [William Rowe]

  *) Solve WinNT inherited pipe leaks by mutexing apr_proc_create calls,
     on WinNT (not WinCE, nor 9x) so that we toggle the inherited state
     of the stdin/out/err pipes.  All other file handles are treated as
     not-inherited until apr_file_dup2'ed a std handle of this process,
     or while they are used by apr_proc_create.  [William Rowe]

  *) Define the Mac OS/X filesystem_encoding as utf-8 (in previous
     releases the interpretation would vary).  [Branko Čibej]

  *) Add table cloning (deep copy) convenience function.
     [Davi Arnaut]

  *) Rework the WIN32 CV code to signal the condition only if one or
     more threads are blocked on the condition variable. If no threads
     are waiting on the condition variable, nothing happens. The change
     also eliminates the thundering-herd problem of the manual-reset
     event, which (theoretically) wakes up all threads waiting on. Now
     the behavior of the CV's should be the same on Unix and win32
     platforms. PR 42305.  [Davi Arnaut]

  *) Define SEM_FAILED if it isn't already defined, as the proc mutex
     code already does it. Also search for the sem_open function in
     the realtime library. (This fixes HP-UX sem_open detection).
     [Davi Arnaut]

  *) Define the _HPUX_SOURCE feature test macro to obtain maximum
     functionality.
     PR 42261.  [Davi Arnaut]

  *) Stop invoking the testshm* helpers upon 'make test' invocation.
     [Kurt Miller <kurt intricatesoftware.com>]

  *) Register a cleanup only if APR_FILE_NOCLEANUP was not flagged in
     apr_file_mktemp. [Brian J. France <list firehawksystems.com>]

  *) Numerous build fixes for non-GCC builds and GCC builds on Win32,
     as well as WinCE builds.  [Davi Arnaut <davi haxent.com.br>,
     Curt Arnold <carnold apache.org>, John Mark Vandenberg,
     Kouhei Sutou <kou cozmixng.org>, William Rowe]

  *) Discard file buffers when running cleanups for exec.
     PR 41119.  [Davi Arnaut <davi haxent.com.br>, Bojan Smojver]

  *) Improve thread safety of assorted file_io functions.
     PR 42400.  [Davi Arnaut <davi haxent.com.br>]

  *) Add the apr_pollcb API as an alternative more efficient method
     of polling sockets, compared to apr_pollset. [Paul Querna]

  *) Fix possible crash in apr_pool_initialize() when built with
     verbose pool debugging.  PR 41063.
     [Peter Steiner <peter.steiner+apache hugwi.ch>]

  *) Fix --disable-ipv6 build on platforms with getifaddrs().
     PR 39199.  [Joe Orton]

  *) Correctly retrieve 'empty' environment values with apr_env_get
     on Win32 (e.g. "VAR="), and added validation to testall suite.
     PR 40764.  [Issac Goldstand <margol beamartyr.net>]

  *) Portably check for EEXIST in mktemp code.  PR 40818
     [Kenneth Golomb <KGolomb TradeCard.com>]

  *) Fix apr_socket_recvfrom() to ensure the peer's address is returned
     through the "from" parameter.  [Joe Orton]

  *) Fix error checking in kqueue, epoll and event port versions of
     apr_pollset_create.  PR 40660, 40661, 40662
     [Larry Cipriani <lvc lucent.com>]

  *) Add some documentation on the format matched by apr_fnmatch.
     [David Glasser <glasser mit.edu>]

  *) Add apr_hash_clear.  [Daniel L. Rall <dlr apache.org>]

  *) Don't try to build apr_app.c on MinGW.
     [Matthias Miller <Blog outofhanwell.com>]

  *) Fix the timeout converstion in apr_pollset with the KQueue
     backend. [Marco Molteni <mmolteni cisco.com>]

  *) Support MinGW.  [John Vandenberg, Justin Erenkrantz]

  *) Implement apr_thread_yield on Unix in terms of pthread_yield or
     sched_yield. [Keisuke Nishida <keisuke.nishida gmail.com>]

  *) Provide folding in autogenerated .manifest files for Win32 builders
     using VisualStudio 2005  [William Rowe]

  *) Utilise Solaris' native atomic_* functions for apr_atomics
     where appropriate. [Colm MacCárthaigh]

  *) Make apr_socket_recvfrom initialize the port field in the from
     sockaddr.  PR 39325 [Anthony Minessale <anthmct yahoo.com>]

  *) NetBSD: Avoid leaving zombie process when using apr_signal()
     to ignore SIGCHLD.  PR 36750.  [Todd Vierling <tv pobox.com>]

  *) Implement support for apr_proc_mutex_trylock() on Unix platforms.
     PR 38785.  [Chris Darroch <chrisd pearsoncmg.com>]

  *) APR_FIND_APR macro now supports customisable detailed checks on
     each installed apr. [Justin Erenkrantz, Colm MacCárthaigh]

  *) APR_FIND_APR macro no longer checks /usr/local/apache2/
     [Colm MacCárthaigh]

  *) Add APR_POLLSET_NOCOPY option to apr_pollset API to eliminate
     O(n)-time lookup in apr_pollset_remove() (currently implemented
     only for epoll).  [Brian Pane]

  *) Add apr_file_buffer_set() and apr_file_buffer_size_get() functions
     to support variable buffer sizes with APR file handles.
     [Colm MacCárthaigh]

  *) Add apr_file_open_flags_std[err|out|in]() functions.
     [Colm MacCárthaigh]

  *) stdio: apr_file_open_std[err|out|in]() functions now set the APR_WRITE
     or APR_READ flag as appropriate. [Colm MacCárthaigh]

  *) multicast: apr_mcast_*() no longer return APR_ENOTIMPL when invoked
     for non-UDP/RAW sockets. The caller is expected to ensure that the
     socket-type is suitable for multicast. [Colm MacCárthaigh]

  *) Add apr_sockaddr_ip_getbuf() function.  [Joe Orton]

  *) Fix handling of %pI in apr_psprintf.  [Joe Orton]

  *) Provide APR_VERSION_AT_LEAST() macro for applications which
     want to enable features based on a required level of APR.
     [Jeff Trawick]

  *) jlibtool: Teach to use static libraries with -static.
     [Justin Erenkrantz]

  *) Fix checks for alloca() support in configure.  PR 13037.
     [Noah Misch <noah cs.caltech.edu>]

  *) Add %pm support to apr_snprintf() for printing the error string
     corresponding to an apr_status_t value.  [Joe Orton]

  *) Add APR_ARRAY_IDX() and APR_ARRAY_PUSH() convenience macros to
     apr_tables.h.  [Garrett Rooney]
2008-09-06 16:39:25 +00:00
jklos
5bf0fa3d90 Updated to 1.2.12. This includes apr_socket_sendfile for OS X 10.5. 2007-12-09 22:08:32 +00:00
tron
f30a0b6c99 Update "apr" package to version 1.2.11. Changes since version 1.2.9:
- Win32 apr_file_read; Correctly handle completion-based read-to-EOF.
- Fixed Win32 regression of stdout inheritance in apr_proc_create.
- Solve winNT inherited pipe leaks by mutexing apr_proc_create calls,
  on WinNT (not WinCE, nor 9x) so that we toggle the inherited state
  of the stdin/out/err pipes.  All other file handles are treated as
  not-inherited until apr_file_dup2'ed a std handle of this process,
  or while they are used by apr_proc_create.
- Define the Mac OS/X filesystem_encoding as utf-8 (in previous
  releases the interpretation would vary).
- Fix day of year (tm_day) calculation for July. The bug only affects
  Windows builds.  Apache Bug #42953.
- Fix LFS detection when building over NFS. The mode must be
  specified when O_CREAT is in the flags to open().
  Apache Bug #42821.
- Avoid overwriting the hash_mutex table for applications that
  incorrectly calls apr_atomic_init().  Apache Bug #42760.
- Allow IPv6 connectivity test to fail, avoiding a potentially fatal
  error.
- The MinGW Windows headers effectively redefines WINADVAPI from
  __stdcall to empty which results in a link failure when wincrypt.h
  is placed after an include to apr_private.h.
  Apache Bug #42293.
- Define SEM_FAILED if it isn't already defined, as the proc mutex
  code already does it. Also search for the sem_open function in
  the realtime library. (This fixes HP-UX sem_open detection).
- Define the _HPUX_SOURCE feature test macro to obtain maximum
  functionality. Fixes broken sendfile with LFS support on HP-UX.
  Apache Bug #42261.
2007-10-11 09:12:08 +00:00
xtraeme
71750535e6 Update to 1.2.9:
*) Stop invoking the testshm* helpers upon 'make test' invocation.
       [Kurt Miller <kurt intricatesoftware.com>]
*) Register a cleanup only if APR_FILE_NOCLEANUP was not flagged in
    apr_file_mktemp. [Brian J. France <list firehawksystems.com>]
*) Numerous build fixes for non-GCC builds and GCC builds on Win32,
   as well as WinCE builds.
*) Discard file buffers when running cleanups for exec.
*) If apr_proc_create() fails to exec in the fork()ed child, call
   _exit() not exit() to avoid running atexit()-registered functions
   in the child. [Joe Orton]
*) Improve thread safety of assorted file_io functions.
   [Davi Arnaut <davi haxent.com.br>]
*) Fix file pointer position calculation in apr_file_writev() on
   buffered file. [Davi Arnaut <davi haxent.com.br>]
*) Fix formatting of unsigned integers larger than 2^63 in the
   vformatter/apr_*printf.
   [Wynn Wilkes <wynn bungeelabs.com>]
*) Fix possible EFAULT failures in apr_socket_sendfile() on 32-bit
   Solaris with LFS enabled.
*) Fix deadlock in apr_file_gets() for a file opened with both the
   APR_BUFFERED and APR_XTHREAD flags.
2007-09-05 13:47:36 +00:00
joerg
0826bb4cf5 Make live easier for Apache 2.2 modules and provide apr-config and
apu-config in .buildlink/bin.
2007-06-30 15:04:55 +00:00
schmonz
c4c6bb5878 Add "include/apr-1" to BUILDLINK_INCDIRS.apr, as programs using
this library apparently expect to find it in their include path.
2007-05-29 22:39:17 +00:00
xtraeme
9ac67a4418 I don't have time to maintain packages that might be affected by
security vulnerabilities.
2007-05-22 10:53:20 +00:00
epg
76ab9ed2ab Set PKGNAME=apr-1.2.8.2.2.4 and PKGREVISION=1 so as to appear newer than
devel/apr1 installations in the wild.  Suggested by Todd Vierling.
2007-01-25 17:05:35 +00:00
epg
e4f20d343c devel/apr:
Update to 1.2.8 (formerly in devel/apr1), no longer build from the
    httpd distfile.

devel/rapidsvn:
devel/subversion-base:
parallel/ganglia-monitor-core:
security/hydra:
www/apache2:
    Use devel/apr0.

www/apache22:
    Use devel/apr and devel/apr-util.
2007-01-24 19:46:45 +00:00
joerg
5e43280b23 Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes.
The redundant parsing of bsd.prefs.mk is mostly avoided now and
parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
2006-12-12 21:52:34 +00:00
xtraeme
66d5334084 There's no need to CONFLICT between apr and apr1, cube said so. 2006-12-09 00:52:23 +00:00
xtraeme
4b4c1f4db7 This package cannot co-exist with apr1, update CONFLICTS
properly.

Bump PKGREVISION.
2006-12-08 23:50:47 +00:00
joerg
b63c1df7c4 Include iconv's b3.mk for systems without native iconv to allow
proper linking.
2006-10-23 09:55:22 +00:00
joerg
f75176b39c Flag a number of packages I use as supporting (user-)destdir.
apg is a bit special as it has some hardcoded ownership, so
mark that as "destdir".
2006-10-09 12:52:34 +00:00
tron
c9f2d2ffff Include "libiconv" buildlink3 glue code to make sure that the
apr_xlate_*() functions support non-ASCII characters properly.

This should allow the "ap2-subversion" package to deal with filenames
including non-ASCII characters and therefore fix PR pkg/26056.
2006-10-05 17:05:59 +00:00
rillig
d24590a24e Added a patch to make the tests runnable on NetBSD. Sadly, they seem to
reach an endless loop.
2006-10-04 21:51:31 +00:00