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

Commit 7f40a88

Browse files
committed
tweaks to Patch19 and Patch25 for better separation of systemd and selinux to build on el6
1 parent 52c9816 commit 7f40a88

File tree

3 files changed

+32
-29
lines changed

3 files changed

+32
-29
lines changed

SOURCES/httpd-2.4.25-detect-systemd.patch

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ diff -uap httpd-2.4.25/acinclude.m4.detectsystemd httpd-2.4.25/acinclude.m4
3737
diff -uap httpd-2.4.25/configure.in.detectsystemd httpd-2.4.25/configure.in
3838
--- httpd-2.4.25/configure.in.detectsystemd
3939
+++ httpd-2.4.25/configure.in
40-
@@ -234,6 +234,7 @@
41-
AC_MSG_NOTICE([Using external PCRE library from $PCRE_CONFIG])
42-
APR_ADDTO(PCRE_INCLUDES, [`$PCRE_CONFIG --cflags`])
43-
APR_ADDTO(PCRE_LIBS, [`$PCRE_CONFIG --libs`])
44-
+ APR_ADDTO(HTTPD_LIBS, [\$(PCRE_LIBS)])
45-
else
46-
AC_MSG_ERROR([pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/])
47-
fi
4840
@@ -504,6 +510,8 @@
4941
AC_DEFINE(HAVE_GMTOFF, 1, [Define if struct tm has a tm_gmtoff field])
5042
fi
@@ -54,22 +46,3 @@ diff -uap httpd-2.4.25/configure.in.detectsystemd httpd-2.4.25/configure.in
5446
dnl ## Set up any appropriate OS-specific environment variables for apachectl
5547

5648
case $host in
57-
@@ -668,6 +676,7 @@
58-
APACHE_SUBST(BUILTIN_LIBS)
59-
APACHE_SUBST(SHLIBPATH_VAR)
60-
APACHE_SUBST(OS_SPECIFIC_VARS)
61-
+APACHE_SUBST(HTTPD_LIBS)
62-
63-
PRE_SHARED_CMDS='echo ""'
64-
POST_SHARED_CMDS='echo ""'
65-
--- httpd-2.4.25/Makefile.in.detectsystemd
66-
+++ httpd-2.4.25/Makefile.in
67-
@@ -4,7 +4,7 @@
68-
69-
PROGRAM_NAME = $(progname)
70-
PROGRAM_SOURCES = modules.c
71-
-PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(PCRE_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
72-
+PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(HTTPD_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
73-
PROGRAM_PRELINK = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
74-
PROGRAM_DEPENDENCIES = \
75-
server/libmain.la \

SOURCES/httpd-2.4.25-selinux.patch

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Upstream-Status: unlikely to be any interest in this upstream
1111

1212
+AC_CHECK_LIB(selinux, is_selinux_enabled, [
1313
+ AC_DEFINE(HAVE_SELINUX, 1, [Defined if SELinux is supported])
14-
+ APR_ADDTO(HTTPD_LIBS, [-lselinux])
14+
+ APR_ADDTO(AP_LIBS, [-lselinux])
1515
+])
1616
+
1717
AC_CACHE_CHECK([for gettid()], ac_cv_gettid,
@@ -59,3 +59,33 @@ Upstream-Status: unlikely to be any interest in this upstream
5959
return OK;
6060
}
6161

62+
diff -uap httpd-2.4.25/configure.in.detectsystemd httpd-2.4.25/configure.in
63+
--- httpd-2.4.25/configure.in.detectsystemd
64+
+++ httpd-2.4.25/configure.in
65+
@@ -234,6 +234,7 @@
66+
AC_MSG_NOTICE([Using external PCRE library from $PCRE_CONFIG])
67+
APR_ADDTO(PCRE_INCLUDES, [`$PCRE_CONFIG --cflags`])
68+
APR_ADDTO(PCRE_LIBS, [`$PCRE_CONFIG --libs`])
69+
+ APR_ADDTO(HTTPD_LIBS, [\$(PCRE_LIBS)])
70+
else
71+
AC_MSG_ERROR([pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/])
72+
fi
73+
@@ -668,6 +676,7 @@
74+
APACHE_SUBST(BUILTIN_LIBS)
75+
APACHE_SUBST(SHLIBPATH_VAR)
76+
APACHE_SUBST(OS_SPECIFIC_VARS)
77+
+APACHE_SUBST(HTTPD_LIBS)
78+
79+
PRE_SHARED_CMDS='echo ""'
80+
POST_SHARED_CMDS='echo ""'
81+
--- httpd-2.4.25/Makefile.in.detectsystemd
82+
+++ httpd-2.4.25/Makefile.in
83+
@@ -4,7 +4,7 @@
84+
85+
PROGRAM_NAME = $(progname)
86+
PROGRAM_SOURCES = modules.c
87+
-PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(PCRE_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
88+
+PROGRAM_LDADD = buildmark.o $(HTTPD_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(HTTPD_LIBS) $(EXTRA_LIBS) $(AP_LIBS) $(LIBS)
89+
PROGRAM_PRELINK = $(COMPILE) -c $(top_srcdir)/server/buildmark.c
90+
PROGRAM_DEPENDENCIES = \
91+
server/libmain.la \

SPECS/httpd24u.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ exit $rv
833833
%changelog
834834
* Mon Jun 19 2017 Ben Harper <ben.harper@rackspace.com> - 2.4.26-1.ius
835835
- Latest upstream
836-
- update Patch19 and Patch25 from Fedora
836+
- update Patch19 and Patch25 from Fedora along with tweaks for better separation of systemd and selinux to build on el6
837837
http://pkgs.fedoraproject.org/cgit/rpms/httpd.git/commit/?id=59afc1533e764a1108136ae1aab3671632aa3797
838838
- refresh Patch28
839839
- update Patch57 from Fedora

0 commit comments

Comments
 (0)