Commit Graph

25 Commits

Author SHA1 Message Date
Michael Heimpold 84ac0263b5 apr/subversion: fix subversion build and apache-mod-php8 build regression (fixes #23460)
The recent upgrade of apr included a change with should fix the subversion build.

Unfortunately, this fix resulted in a build regression of apache-mod-php8.

The new approach is to pass the locations of the apr config helpers
to configure via parameter.

Fixes: 68dd7b7cf6 ("apr: update to 1.7.4")

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2024-02-17 00:28:46 +01:00
krant 68dd7b7cf6 apr: update to 1.7.4
- Remove upstreamed patches
- Fix bindir in apr-1-config to fix subversion build

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-02-07 13:53:31 -08:00
Fabrice Fontaine a9ddc8e373 libs/apr: fix PKG_CPE_ID
There is not a single CVE under cpe:/a:apache:apr
so use cpe:/a:apache:portable_runtime:
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Aapache%3Aportable_runtime

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-01-24 14:55:30 -08:00
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
Rosen Penev 367eab02d9
apr: install apr-1-config to host
Helps old packages that don't use pkgconfig.

Fix some extra paths.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-07 21:21:49 -08:00
Sebastian Kemper 7582f7fca6 apache/apr/apr-util: remove maintainer
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-07-08 18:28:35 +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 430ab5f9b3 apr: don't install la files to staging
They're deleted by OpenWrt build system anyway.

No rev bump as meaningless for apr package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-30 21:50:32 +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
Sebastian Kemper 12037b3f29 apr: clean up the Makefile
- sort configure variables
- clean up installation defines (use macros, improve sed scripts,
  remove gratuitous slashes & whitespaces)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-26 18:22:21 +01:00
Sebastian Kemper 893a804c95 apr: add PKG_LICENSE_FILES and PKG_CPE_ID
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-26 18:07:53 +01:00
Sebastian Kemper 40c7e95210 apr/apr-util: add myself as maintainer
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-01-12 22:30:32 +01:00
Sebastian Kemper 40a29bf055 apr: clean up the package
- removes '$(FPIC)' and '--without-pic', there is no good reason for
  them being used (also @minfrin mentioned memory footprint implications
  when '--without-pic' is used)
- stops removing aclocal.m4 and build/ltmain.sh (reason of removal of
  these files is not apparent anymore)
- adds PKG_BUILD_PARALLEL:=1

Resolves #10884

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-12-30 18:52:56 +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
Rosen Penev 5abd420c65
apr: Update to 1.6.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-09-18 19:45:49 -07:00
Rosen Penev 82cc7c4e6c
apr: Update to 1.6.3
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-06-07 18:22:12 -07:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Thomas Heil 79db9749ee apr: bump to version 1.6.2
Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2017-08-17 01:17:44 +02:00
Heinrich Schuchardt 7b3346b25c libs/apr: use @APACHE download facility
Instead of explicitly specyfing an Apache mirror use the
@APACHE download facility.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-01-17 19:21:04 +01:00
Alexander Ryzhov ca8eecc665 apr: respect IPv6 settings
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2015-05-21 06:15:08 +00: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