Commit graph

9 commits

Author SHA1 Message Date
Michael Pratt
980707ac10 apr: add autotools compatibility backports
Backport a bunch of patches that fixes build
when using new Autoconf and Automake.

The patches removed are replaced by upstream backports
which are more complete.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2022-09-09 15:20:58 -07:00
Michal Vasilek
0777e40b74
apr: patch CVE-2021-35940
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2021-08-23 15:38:23 +02:00
Sebastian Kemper
86396c6a49 apr: add configure vars and caches
apr's configure script uses lots of AC_TRY_RUNs and when cross-compiling
needs a leg-up. This commit adds more configure variables (and removes
one, too).

Notable changes:

 - apr_cv_use_lfs64=yes is removed (again) after having a discussion
   about it with the musl developers. The conclusion was that
   _LARGEFILE64_SOURCE is a horrible thing that we don't want and should
   avoid (hence the removal of the variable, because defining
   _LARGEFILE64_SOURCE is all it does).
 - ap_cv_atomic_builtins is set to "yes" for 64-bit platforms. If
   anybody is interested in enabling this for other targets feel free to
   send a patch after testing it.
 - configure doesn't add -lpthread to LIBS when cross-compiling. This is
   not a problem for musl but might be for other libcs. This commit adds
   to related variable.
 - configure caches are added (via patches) for strerror and /dev/zero
   mmap tests. The former fixes a warning on musl (where strerror
   returns int instead of a pointer) and the latter is required for
   pthread pshared mutex apr_lock implementation and cannot be detected
   during cross-compile either.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-02-04 21:50:30 +01:00
Sebastian Kemper
0c6d461cc9 apr: bump to 1.7.0
Version bump + patches refresh.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-02-04 21:33:56 +01:00
Sebastian Kemper
193c3913b6 apr: clean up the patches + enable LFS
- removes 001-autoconf-compat.patch:
  Looks like this was meant as a workaround for a libtool issue. But it
  doesn't appear to be needed anymore.
- removes 101-fix_apr_time_now.patch:
  Mentioned in https://dev.openwrt.org/ticket/9287, meant as a fix, but
  issue was fixed differently in the end (by activating LFS).
- removes 201-upgrade-and-fix-1.5.1.patch:
  This is a cross-compile fix. This patch gets replaced by
  001-cross-compile.patch from buildroot project. The latter was sent
  upstream by buildroot and is in line with the patch used by OpenWrt
  for the apache package.
- adds 002-sys-param-h.patch:
  Fix PATH_MAX detection by including sys/param.h if available. Also
  from buildroot.

Additionally configure variables found in buildroot package are added.
These also enable LFS support. This was previously done (in OpenWrt) by
defining _LARGEFILE64_SOURCE in TARGET_CPPFLAGS. But the configure
variable is cleaner (and easier to follow).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-26 18:50:06 +01:00
Rosen Penev
165f72234d
apr: Enable DSO and add several configure vars
Users have reported errors with Apache. Enable DSO to try to fix.

Most of these vars default to no since we're cross-compiling. Change them
to on since all the libc's that OpenWrt supports supports these. epoll for
example should have better stability.

Changed PKG_LICENSE to SPDX.

Slight cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-05-06 17:03:34 -07:00
Rosen Penev
3ad6e4a259 apr: Fix several format sizes
The configure script assumes that several sizes are 64-bit when cross
compiling. Backport a patch from the Yotco project to fix this.

Fixes apache compilation issue as Apache passes -Werror.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-10-31 09:53:50 -07:00
heil
7c331284e0 apr: upgrade to 1.5.4
Signed-off-by: heil <heil@terminal-consulting.de>
2015-05-04 17:53:27 +02:00
Thomas Heil
94118f9193 apr: import from oldpackages, add myself as maintainer, add license
information, update source-url, update to v1.5.1

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2014-07-12 13:38:04 +02:00