The Apache Portable Runtime is a library of C data structures and routines,
forming a system portability layer that covers as many operating systems as
possible, including Unices, Win32, BeOS, and OS/2.
This port also includes the APR-Util package, which contains some useful
utilities built on top of APR.
===> The following configuration options are available for apr-1.7.6.1.6.3:
IPV6=on: IPv6 protocol support
====> Database support
GDBM=on: GNU dbm library support
LDAP=off: LDAP protocol support
MYSQL=off: MySQL database support
NDBM=off: NDBM support
ODBC=off: ODBC database backend
PGSQL=off: PostgreSQL database support
SQLITE=off: SQLite database support
====> Berkeley DB provider: you can only select none or one of them
BDB1=on: Berkeley DB 1.85 support (BSD 3-clause)
BDB5=off: Berkeley DB v5 support (deprecated)
BDB18=off: Berkeley DB 18.x support (AGPLv3)
====> Cryptography provider: you can only select none or one of them
SSL=on: OpenSSL crypto driver
NSS=off: NSS crypto driver
===> Use 'make config' to modify these settings
The Apache Portable Runtime project removed support for FreeTDS with
version 1.6. Users requiring MS-SQL connectivity must migrate
configurations to use the added ODBC driver and FreeTDS' ODBC features.
If upgrading
The default BerkeleyDB implementation switched from deprecated
version 5 from ports to BerkeleyDB 1 from base libc. Any BerkeleyDB
databases created with apr-util MUST be rebuilt. Verify your database
files using
$ file file.dbm
and check they report
Berkeley DB 1.85 (Hash, version 2, native byte-order)
other database formats (GDBM etc.) are not affected.
Reason:
BREAKING CHANGE: In postgres_exporter 0.16.0 and later, the log message format
has changed. From the upstream release notes:
The logging system has been replaced with log/slog from the stdlib. This
change is being made across the prometheus ecosystem. The logging output has
changed, but the messages and levels remain the same. The ts label for the
timestamp has been replaced with time, the accuracy is less, and the timezone
is not forced to UTC. The caller field has been replaced by the source field,
which now includes the full path to the source file. The level field now
exposes the log level in capital letters.
20241110
The default BerkeleyDB provider for apr-util was changed from BerkeleyDB
5 (deprecated) to BerkeleyDB 1 from base libc. The change of version
results in a non-compatible database format.
After upgrading, you must rebuild all BerkeleyDB databases used by
apr-util (example: Apache databases created with `httxt2dbm -F db`
devel/apr1: Unbreak with MySQL > 8.0.2 < 10.0.0
my_init() was removed from mysql 8.0.2, but dbd/apr_dbd_mysql.c calls
my_init() if MYSQL_VERSION_ID < 100000. This patch fixes this problem,
allowing Apache mod_authn_dbd.so to work properly on mysql >= 8.0.2.
There is an open bug upstream, but it has not been patched yet.
Upstream PR: https://bz.apache.org/bugzilla/show_bug.cgi?id=62631
PR: 274134
Approved by: brnrd (with apache hat)
devel/apr1: unbreak the port's build against enforced ccache
Without setting CC_FOR_BUILD the configure script will try to
search for suitable compiler, and if `devel/ccache` is packaged
with compiler symlinks, its `gcc' would be detected first thus
breaking the port's build. This only applies to APR_CONF_ENV,
not APU_CONF_ENV.
Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
Convert the USE_LDAP=yes to USES=ldap and adds the following features:
- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features
Reviewed by: delphij
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D38233
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
devel/apr1: Fix output of `apu-1-config --libs` when default version of berkeley
db is 18
When default version of berkeley db is 18, `apu-1-config --libs` returns
following output.
yasu@eastasia[2137]% apu-1-config --libs
-ldb -lgdbm -lexpat
yasu@eastasia[2146]%
However, it is not libdb.so but libdb-18.1.so that is installed under
${PREFIX}/lib when you install database/db18. And it results in build failure of
some ports that depend on devel/apr1 and use the output of `apu-1-config --libs`
to get the options necessary for linking libraries properly. So fix the output
by adding patch that makes configure script detects library name correctly.
PR: 262137
Submitted by: yasu
Approved by: apache (with hat)
Sponsored by: Netzkommune GmbH
devel/apr1: Fix tomcat-native build
* Remove modification to build/apr_rules.mk introduced
in r322367. No further documentation on change found.
With hat: apache
PR: 244695
Submitted by: Michael Osipov <michael osipov siemens com>
Update to 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. PR47630
[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]
(Only the first 15 lines of the commit message are shown above )
Update `databases/gdbm' to version 1.18.1, an important bugfix release
which restores compatibility with old databases (version 1.8) and some
later versions which were built without mmap(2) support. Due to shlib
version change, bump port revisions of the consumer ports.
PR: 233059
Exp-run by: antoine
Approved by: maintainer (johans, numerous timeouts)
devel/apr1: Fix runtime issues of dependent port
- iconv is in base in all supported FreeBSD versions
- Fix build with MariaDB 10.2 [2]
- Bump portrevision in dependencies
PR: 226705 [1], 226026 [2]
With hat: apache
Approved by: joneum (apache)
devel/nspr, security/nss: drop version from SONAME
No other downstream appends synthetic library version, and doing so
causes underlinking due to fragile build system (see below). Not to
mention being unable to swap out bundled libs from upstream builds.
$ cc -lplds4 -L/usr/local/lib
/usr/lib/crt1.o: In function `_start1':
crt1_c.c:(.text+0xa6): undefined reference to `main'
/usr/local/lib/libplds4.so: undefined reference to `pthread_set_name_np'
/usr/local/lib/libplds4.so: undefined reference to `pthread_create'
/usr/local/lib/libplds4.so: undefined reference to `pthread_condattr_init'
/usr/local/lib/libplds4.so: undefined reference to `pthread_setschedparam'
/usr/local/lib/libplds4.so: undefined reference to `pthread_getschedparam'
PR: 213144
Exp-run by: antoine
- add patch to modify apr1 poll() emulation to match behavior expected by serf
serf depends on the poll emulation in apr returning a POLLERR event if a
non-blocking connect() attempt fails in order to trigger an IPv6 -> IPv4
fallback, or a fallback to another address for a multi-homed host. On
FreeBSD, the poll emulation is done using kqueue, and the result returned by
the poll() emulation is POLLIN + POLLHUP.
- upstream apache PR:
https://bz.apache.org/bugzilla/show_bug.cgi?id=59914
PR: 211430
Submitted by: Don Lewis (truckman@)
MFH: 2016Q3
When there is a do-install target, do not use a post-install target, do
everything at once. Sometime, rename post-install into a options helper
target.
I did not fix ports that were such a mess that I could not figure out
what they really wanted to do. I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.
With hat: portmgr
Sponsored by: Absolight
Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR: 204056
Submitted by: mat
Reviewed by: bapt
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D2735
- update apr to 1.5.2
Changes for APR 1.5.2
*) 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.
*) apr_poll(cb): fix error paths returned values and leaks. [Yann Ylavic]
*) 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_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.
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
- update to apr-util-1.5.4
- add LICENSE
- add CPE support (reflect only apr-util)
- s/libtool:keepla/libtool/ [1]
- USE_BDB= s/48+/5+/ (db5 is already the default version in the ports tree)
- build always with THREADS and remove the THREAD OPTION
- use dedicated CONFIGURE_ENV for apr/apr-util [2]
- always install lib/apr-util-1 directory
- display apr/apr-util build steps with an ECHO_MSG for better
buildlog analyzing
Changes with APR-util 1.5.4 [3]
*) MySQL driver: Fix incorrect handling of bad parameter in the
driver support for apr_dbd_transaction_end(). PR 56330.
*) apr_crypto_get_driver(): Fix invalid storage reference on error path.
(Only the first 15 lines of the commit message are shown above )
- adopt new ${opt}_ARGS for USE and DEPENDS
- small cleanup and restructure
- add LICENSE
- no version bump [1]
[1] A new apr-util release is in the pipe and with
this commit the next changes are more transparent.
with hat apache@
Berkeley DB cleanup, remove versions 4.0 ... 4.7.
- Mk/bsd.database.mk rewrite, new default to db5.
- db6 is eligible by default only if installed on the system.
- Bump PORTREVISION of all ports that directly depend on BerkeleyDB or
where USE_BDB is found in the port's directory
- Patch a few ports such that they will pick up or work with newer
versions.
- Add UPDATING entry
- Drive-by format fix for pks
- Drop BerkeleyDB option from mail/popular for now, requires more work.
- Exp-run logs linked from the PR below.
- Ports that do not build (IGNORE, BROKEN, etc.) have pro-forma changes
for new Berkeley DB, but are untested.
NOTE: please read UPDATING and the Wiki page before proceeding!
Announcement: http://lists.freebsd.org/pipermail/freebsd-ports-announce/2014-August/000090.html
Wiki reference: https://wiki.freebsd.org/Ports/BerkeleyDBCleanup
PR: 192690
Approved by: portmgr (implicit, PORTREVISION bump on unstaged ports)
net/openldap24-*:
- Convert to USES=libtool and bump dependent ports
- Avoid USE_AUTOTOOLS
- Don't use PTHREAD_LIBS
- Use MAKE_CMD
databases/glom:
- Drop :keepla
- Add INSTALL_TARGET=install-strip
databases/libgda4* databases/libgda5*:
- Convert to USES=libtool and bump dependent ports
- USES=tar:xz
- Use INSTALL_TARGET=install-strip
- Use @sample
(Only the first 15 lines of the commit message are shown above )
Bump PORTREVISION on all ports with USE_SQLITE=yes or USE_SQLITE=3 that
have not been bumped yet after the latest libsqlite3.so library version
change.
Approved by: portmgr (implicit)
Support LIBS like LDFLAGS.
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV.
- Add an option helper for LIBS.
- Adjust all ports that already use LIBS. Also remove references to
PTHREAD_CFLAGS and PTHREAD_LIBS while here.
- Some ports did not support having a LIBS environment variable and
required additional patches.
Somewhat simplified a linker command line looks like:
${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS}
where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and
LIBS can be controlled by us. If possible -L and -l flags need to be
(Only the first 15 lines of the commit message are shown above )
- USES libtool:keepla
- bump PORTREVISION
Originally I planned to keep this change on hold,
but a couple of minutes before gdbm was changed
so this is a good time to annoy users only once.
- update apr to 1.5.1
- use OPTIONS_SUB instead PLIST_SUB
- remove back ported patch
- use POSIX instead SysV SHM
- remove LDFLAGS from CONFIGURE_ENV (unbreak auto. testing)
Changes for APR 1.5.1
*) 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. PR 53996 [Jim Jagielski]
*) apr_socket_atreadeof(): Fix breakage on OS X. [Jim Jagielski]
(Only the first 15 lines of the commit message are shown above )
- update to apr-1.5.0
- add fix for FreeBSD 10 obtained from
http://svn.apache.org/viewvc?view=revision&revision=1551672
- bump USE_BDB=42+ -> USE_BDB=48+ [1]
- add entry to UPDATING
Changes for APR 1.5.0 (shortened)
http://www.apache.org/dist/apr/CHANGES-APR-1.5
*) 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]
*) Add the apr_escape interface. [Graham Leggett]
(Only the first 15 lines of the commit message are shown above )
According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.
This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.
Approved by: portmgr (bapt)
- update apr-util to 1.5.3
- *no update* to apr-1.5.0 [1]
Changes with APR-util 1.5.3
*) Fix warnings in odbc driver on 64bit systems.
PR 55197 [Tom Donovan]
*) Add support to apr_memcache for unix domain sockets.
PR 54573 [Remi Gacogne <rgacogne+asf aquaray.com>]
*) Add support for Berkeley DB 6.0. [Rainer Jung]
[1] apache24 is broken if build against apr-1.5.0 and
enable-v4-mapped is set to ON (the default)
Introduce variable ICONV_PREFIX at Mk/Uses/iconv.mk. The default for
pre 100043 is ${LOCALBASE} and /usr otherwise. Convert all ports to
new variable usage.
Approved by: portmgr (bapt, implicit)
- add and enable Crypto framework [1]
(only OpenSSL, there are some build issues with NSS)
- remove unused PERL build dependency [2]
- use OPTIONS_GROUP instead OPTIONS_DEFINE
- bump PORTREVISION
[1] requested by many on the apache@ list
[2] thanks to andre@ (noted on the apache@ list)
devel/apr1 [1]
- update APR to 1.4.6
- update APR-util to 1.4.1
- remove PKGNAMESUFFIX'es
www/apache-(event|itk|peruser|worker)-mpm
- adopt new Makefile header, adjust
PKGNAMESUFFIX in apache22 masterport
PKGNAME match now LATEST_LINK
www/apache22 [2]-[6]
- rewrite for options NG
- PORTNAME s|apache|apache22|
- remove APR APR-util specific otions,
will be checked now with help of apr/u-1-config
(Only the first 15 lines of the commit message are shown above )
- update to apr-1.4.5
- update to apr-util-1.3.12
- add new make target "test:"
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 with APR-util 1.3.12
*) apr_ldap: Fix crash because of NULL cleanup registered by
apr_ldap_rebind_init(). [Rainer Jung]
commit with hat apache@
- update apr1 to version 1.4.4 (security update CVE-2011-0419)
Changes: (trimmed non FreeBSD related to keep the list shorter)
http://www.apache.org/dist/apr/CHANGES-APR-1.4
Changes for APR 1.4.4
Changes for APR 1.4.3
*) Security: CVE-2011-0419
Reimplement apr_fnmatch() from scratch using a non-recursive
algorithm; now has improved compliance with the fnmatch() spec.
[William Rowe]
*) poll, pollset, pollcb on Windows: Handle calls with no file/socket
descriptors. PR 49882. [Stefan Ruppert <sr myarm.com>, Jeff Trawick]
(Only the first 15 lines of the commit message are shown above )
- make sure the system own sed is choosen even when
textproc/gsed is installed during build time.
This preserves issues in case textproc/gsed is removed
from the system after build time.
Issue described by Ryusuke SUZUKI <ryusuke _at_ FreeBSD.org>
With Hat: apache@
- Update apr-util to 1.3.10
Security:
http://www.vuxml.org/freebsd/dd943fbb-d0fe-11df-95a8-00219b0fc4d8.html
With Hat: apache@
<ChangeLog>
*) SECURITY: CVE-2010-1623 (cve.mitre.org)
Fix a denial of service attack against apr_brigade_split_line().
[Stefan Fritsch]
*) SECURITY: CVE-2009-3560, CVE-2009-3720 (cve.mitre.org)
Fix two buffer over-read flaws in the bundled copy of expat which
could cause applications to crash while parsing specially-crafted
XML documents. [Joe Orton]
(Only the first 15 lines of the commit message are shown above )
- bsd.port.mk adds CFLAGS to CONFIGURE_ENV but not if you reference it directly
in the Makefile. Even if you use bsd.port.(pre|post).mk.
- This re-fixes WITH_MYSQL=yes WITH_MYSQL_VER=55 after ale@ really fixed
database/mysql55-client, databases/mysql55-server include/mysql layout.
This is a very non default config, so no PORTREVISION bump
PR: ports/146276
- Define python version explicitly
${APR_WRKDIR}/build/gen-build.py does not work with Python 3.1
- No PORTREVISION bump (build only)
PR: ports/146621
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
With Hat: apache@
- Force commit to note repo copy from devel/apr to devel/apr1
PR: ports/146553
Repo copy by: marcus
Submitted by: myself (pgollucci@)
With Hat: apache@