Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Fix apxs and config_vars.mk to respect apr15u custom paths
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwgeorge committed Jul 27, 2015
1 parent c193c87 commit c23a520
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
9 changes: 4 additions & 5 deletions SOURCES/httpd-2.4.9-apxs.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
diff --git a/support/apxs.in b/support/apxs.in
index ad1287f..efcfcf6 100644
--- a/support/apxs.in
+++ b/support/apxs.in
diff -Naurp a/support/apxs.in b/support/apxs.in
--- a/support/apxs.in 2013-12-26 12:01:53.000000000 -0600
+++ b/support/apxs.in 2015-07-27 13:57:32.581334998 -0500
@@ -25,7 +25,18 @@ package apxs;

my %config_vars = ();
Expand All @@ -14,7 +13,7 @@ index ad1287f..efcfcf6 100644
+ exit(1);
+}
+
+my $libdir = `pkg-config --variable=libdir apr-1`;
+my $libdir = `pkg-config --variable=libdir apr15u-1`;
+chomp $libdir;
+
+my $installbuilddir = $libdir . "/httpd/build";
Expand Down
18 changes: 14 additions & 4 deletions SPECS/httpd24u.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
%global apr apr15u
%global apu apu15u
%global aprver 1
%define apuver 1
%global apuver 1
%global apr_config %{apr}-%{aprver}-config
%global apu_config %{apu}-%{apuver}-config


%define contentdir %{_datadir}/httpd
%define docroot /var/www
Expand Down Expand Up @@ -45,7 +48,7 @@
Summary: Apache HTTP Server
Name: %{real_name}%{ius_suffix}
Version: 2.4.16
Release: 1.ius%{?dist}
Release: 2.ius%{?dist}
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source2: httpd.logrotate
Expand Down Expand Up @@ -321,6 +324,10 @@ sed -i '/^#define PLATFORM/s/Unix/%{vstring}/' os/unix/os.h
# Prevent use of setcap in "install-suexec-caps" target.
sed -i '/suexec/s,setcap ,echo Skipping setcap for ,' Makefile.in

# Use custom IUS apr/apu configuration tools.
sed -i '/APR_CONFIG=/s,apr-.*-config,%{apr_config},' configure.in
sed -i '/APU_CONFIG=/s,apu-.*-config,%{apu_config},' configure.in

# Safety check: prevent build if defined MMN does not equal upstream MMN.
vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'`
if test "x${vmmn}" != "x%{mmn}"; then
Expand Down Expand Up @@ -359,8 +366,8 @@ export LYNX_PATH=/usr/bin/links
--enable-layout=Fedora \
--with-installbuilddir=%{_libdir}/httpd/build \
--enable-mpms-shared=all \
--with-apr=%{_bindir}/%{apr}-%{aprver}-config \
--with-apr-util=%{_bindir}/%{apu}-%{apuver}-config \
--with-apr=%{_bindir}/%{apr_config} \
--with-apr-util=%{_bindir}/%{apu_config} \
--enable-suexec --with-suexec \
--enable-suexec-capabilities \
--with-suexec-caller=%{suexec_caller} \
Expand Down Expand Up @@ -809,6 +816,9 @@ fi


%changelog
* Mon Jul 27 2015 Carl George <[email protected]> - 2.4.16-2.ius
- Fix apxs and config_vars.mk to respect apr15u custom paths

* Wed Jul 15 2015 Carl George <[email protected]> - 2.4.16-1.ius
- Latest upstream

Expand Down

0 comments on commit c23a520

Please sign in to comment.