New package Apache including mod_php
v2 cover New package Apache including mod_php
Hi,
this patchset adds Apache webserver and its PHP module to buildroot.
v2:
- reordered patches (Yann)
- split patch and reordered apr-util dependencies (Yann)
- added support for PHP modules gd, mcrypt, mbstring
- updated patch to support in PHP (Yann, Thomas)
- split patch to support Apache in PHP
- patch PHP configure only to properly detect Apache
- patching PHP configure for thread detection is now done with by sed as a POST_PATCH_HOOK
- added slash after PKGDIR
- updated patch to add Apache as new package
- added upstream SCM urls for the gen_test_char cross-compile patch (Yann)
- added comments for the need to install to staging and autoreconf
- added apr as dependency
- moved --enable-nonportable-atomics to an if-clause
- apr
- added upstream SCM urls for the gen_test_char cross-compile patch (Yann)
- added comment for the need to autoreconf
Regards, Bernd
Bernd Kuhls (16):
package/apr: Fix detection of rlimit and large file support package/apr-util: Add expat hard-dependency package/apr-util: Remove unused dependencies to neon and zlib package/apr-util: make sqlite optional package/apr-util: add optional dependency to berkeleydb package/apr-util: add optional dependency to gdbm package/apr-util: add optional dependency to mysql package/apr-util: add optional dependency to openssl package/php: Add support for GD module
package/php: Add support for mcrypt module package/php: Add support for mbstring module package/apr: Bump version to 1.5.1
package/apr: Fix for Apache when listening to multiple ports package/apr-util: Bump version to 1.5.4
Apache: New package
package/php: Add Apache support
Signature · 1 line
1.7.10.4
PATCH v2 1/16 package/apr: Fix detection of rlimit and large file support
Snippets from configure log:
before:
checking whether to enable -D_LARGEFILE64_SOURCE... no
...
checking struct rlimit... no
after
checking whether to enable -D_LARGEFILE64_SOURCE... (cached) yes
...
checking struct rlimit... (cached) yes
--- package/apr/apr.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/apr/apr.mk +6 -0
@@ -16,6 +16,7 @@ APR_CONF_ENV = \ apr_cv_mutex_robust_shared=no \ apr_cv_tcp_nodelay_with_cork=yes \ ac_cv_sizeof_struct_iovec=8 \ + ac_cv_struct_rlimit=yes \ apr_cv_mutex_recursive=yes APR_CONFIG_SCRIPTS = apr-1-config
@@ -24,6 +25,11 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) APR_CONF_ENV += apr_cv_pthreads_lib="-lpthread" endif +# Fix lfs detection when cross compiling +ifeq ($(BR2_LARGEFILE),y) +APR_CONF_ENV += apr_cv_use_lfs64=yes +endif + define APR_CLEANUP_UNNEEDED_FILES $(RM) -rf $(TARGET_DIR)/usr/build-1/ endef
Signature · 1 line
1.7.10.4
PATCH v2 2/16 package/apr-util: Add expat hard-dependency
In reply to Bernd KuhlsWhen expat is missing, apr-util compiles its own expat
--- package/apr-util/Config.in | 1 + package/apr-util/apr-util.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
package/apr-util/Config.in +1 -0
@@ -5,6 +5,7 @@ config BR2_PACKAGE_APR_UTIL select BR2_PACKAGE_NEON select BR2_PACKAGE_NEON_ZLIB select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_EXPAT # apr really needs shared library support depends on !BR2_PREFER_STATIC_LIB depends on BR2_USE_MMU # apr
package/apr-util/apr-util.mk +1 -1
@@ -9,7 +9,7 @@ APR_UTIL_SITE = http://archive.apache.org/dist/apr APR_UTIL_LICENSE = Apache-2.0 APR_UTIL_LICENSE_FILES = LICENSE APR_UTIL_INSTALL_STAGING = YES -APR_UTIL_DEPENDENCIES = apr sqlite neon zlib +APR_UTIL_DEPENDENCIES = apr expat sqlite neon zlib APR_UTIL_CONF_OPTS = \ --with-apr=$(STAGING_DIR)/usr/bin/apr-1-config APR_UTIL_CONFIG_SCRIPTS = apu-1-config
Signature · 1 line
1.7.10.4
PATCH v2 3/16 package/apr-util: Remove unused dependencies to neon and zlib
In reply to Bernd Kuhls--- package/apr-util/Config.in | 3 --- package/apr-util/apr-util.mk | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-)
package/apr-util/Config.in +0 -3
@@ -2,9 +2,6 @@ config BR2_PACKAGE_APR_UTIL bool "apr-util" select BR2_PACKAGE_APR select BR2_PACKAGE_SQLITE - select BR2_PACKAGE_NEON - select BR2_PACKAGE_NEON_ZLIB - select BR2_PACKAGE_ZLIB select BR2_PACKAGE_EXPAT # apr really needs shared library support depends on !BR2_PREFER_STATIC_LIB
package/apr-util/apr-util.mk +1 -1
@@ -9,7 +9,7 @@ APR_UTIL_SITE = http://archive.apache.org/dist/apr APR_UTIL_LICENSE = Apache-2.0 APR_UTIL_LICENSE_FILES = LICENSE APR_UTIL_INSTALL_STAGING = YES -APR_UTIL_DEPENDENCIES = apr expat sqlite neon zlib +APR_UTIL_DEPENDENCIES = apr expat sqlite APR_UTIL_CONF_OPTS = \ --with-apr=$(STAGING_DIR)/usr/bin/apr-1-config APR_UTIL_CONFIG_SCRIPTS = apu-1-config
Signature · 1 line
1.7.10.4
PATCH v2 4/16 package/apr-util: make sqlite optional
In reply to Bernd Kuhls--- package/apr-util/Config.in | 1 - package/apr-util/apr-util.mk | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-)
package/apr-util/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_APR_UTIL bool "apr-util" select BR2_PACKAGE_APR - select BR2_PACKAGE_SQLITE select BR2_PACKAGE_EXPAT # apr really needs shared library support depends on !BR2_PREFER_STATIC_LIB
package/apr-util/apr-util.mk +8 -1
@@ -9,7 +9,7 @@ APR_UTIL_SITE = http://archive.apache.org/dist/apr APR_UTIL_LICENSE = Apache-2.0 APR_UTIL_LICENSE_FILES = LICENSE APR_UTIL_INSTALL_STAGING = YES -APR_UTIL_DEPENDENCIES = apr expat sqlite +APR_UTIL_DEPENDENCIES = apr expat APR_UTIL_CONF_OPTS = \ --with-apr=$(STAGING_DIR)/usr/bin/apr-1-config APR_UTIL_CONFIG_SCRIPTS = apu-1-config
@@ -18,4 +18,11 @@ APR_UTIL_CONFIG_SCRIPTS = apu-1-config # features. APR_UTIL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) +ifeq ($(BR2_PACKAGE_SQLITE),y) +APR_UTIL_CONF_OPTS += --with-sqlite3="$(STAGING_DIR)/usr" +APR_UTIL_DEPENDENCIES += sqlite +else +APR_UTIL_CONF_OPTS += --without-sqlite3 +endif + $(eval $(autotools-package))
Signature · 1 line
1.7.10.4
PATCH v2 5/16 package/apr-util: add optional dependency to berkeleydb
In reply to Bernd Kuhls--- package/apr-util/apr-util.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/apr-util/apr-util.mk +7 -0
@@ -18,6 +18,13 @@ APR_UTIL_CONFIG_SCRIPTS = apu-1-config # features. APR_UTIL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) +ifeq ($(BR2_PACKAGE_BERKELEYDB),y) +APR_UTIL_CONF_OPTS += --with-dbm=db53 --with-berkeley-db="$(STAGING_DIR)/usr" +APR_UTIL_DEPENDENCIES += berkeleydb +else +APR_UTIL_CONF_OPTS += --without-berkeley-db +endif + ifeq ($(BR2_PACKAGE_SQLITE),y) APR_UTIL_CONF_OPTS += --with-sqlite3="$(STAGING_DIR)/usr" APR_UTIL_DEPENDENCIES += sqlite
Signature · 1 line
1.7.10.4
PATCH v2 6/16 package/apr-util: add optional dependency to gdbm
In reply to Bernd Kuhls--- package/apr-util/apr-util.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/apr-util/apr-util.mk +7 -0
@@ -25,6 +25,13 @@ else APR_UTIL_CONF_OPTS += --without-berkeley-db endif +ifeq ($(BR2_PACKAGE_GDBM),y) +APR_UTIL_CONF_OPTS += --with-gdbm="$(STAGING_DIR)/usr" +APR_UTIL_DEPENDENCIES += gdbm +else +APR_UTIL_CONF_OPTS += --without-gdbm +endif + ifeq ($(BR2_PACKAGE_SQLITE),y) APR_UTIL_CONF_OPTS += --with-sqlite3="$(STAGING_DIR)/usr" APR_UTIL_DEPENDENCIES += sqlite
Signature · 1 line
1.7.10.4
PATCH v2 7/16 package/apr-util: add optional dependency to mysql
In reply to Bernd Kuhls--- package/apr-util/apr-util.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/apr-util/apr-util.mk +7 -0
@@ -32,6 +32,13 @@ else APR_UTIL_CONF_OPTS += --without-gdbm endif +ifeq ($(BR2_PACKAGE_MYSQL),y) +APR_UTIL_CONF_OPTS += --with-mysql="$(STAGING_DIR)/usr" +APR_UTIL_DEPENDENCIES += mysql +else +APR_UTIL_CONF_OPTS += --without-mysql +endif + ifeq ($(BR2_PACKAGE_SQLITE),y) APR_UTIL_CONF_OPTS += --with-sqlite3="$(STAGING_DIR)/usr" APR_UTIL_DEPENDENCIES += sqlite
Signature · 1 line
1.7.10.4
PATCH v2 8/16 package/apr-util: add optional dependency to openssl
In reply to Bernd Kuhls--- package/apr-util/apr-util.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/apr-util/apr-util.mk +7 -0
@@ -46,4 +46,11 @@ else APR_UTIL_CONF_OPTS += --without-sqlite3 endif +ifeq ($(BR2_PACKAGE_OPENSSL),y) +APR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr" +APR_UTIL_DEPENDENCIES += openssl +else +APR_UTIL_CONF_OPTS += --without-ssl +endif + $(eval $(autotools-package))
Signature · 1 line
1.7.10.4
PATCH v2 8/16 package/apr-util: add optional dependency to openssl
Dear Bernd Kuhls,
package/apr-util/apr-util.mk else · line 54
Quoted 6 lines · Bernd Kuhls
package/apr-util/apr-util.mk +6
-0+ifeq ($(BR2_PACKAGE_OPENSSL),y) +APR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr" +APR_UTIL_DEPENDENCIES += openssl +else +APR_UTIL_CONF_OPTS += --without-ssl +endif
This looks weird, because there's no symmetry between --with-openssl --with-crypto and --without-ssl. Isn't there an issue here?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 8/16 package/apr-util: add optional dependency to openssl
Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8 @public.gmane.org> wrote in news:20141005203902.5d8c5dcf at free-electrons.com:
Quoted 5 lines
package/apr-util/apr-util.mk else · line 54
Quoted 2 lines
package/apr-util/apr-util.mk +2
-0+APR_UTIL_CONF_OPTS += --without-ssl +endifThis looks weird, because there's no symmetry between --with-openssl --with-crypto and --without-ssl. Isn't there an issue here?
Hi,
oops, without-ssl should have been without-crypto.
To enable OpenSSL support
a) --with-crypto is needed to enable the crypto stuff as such and
b) --with-openssl to enable the use of the OpenSSL library itself.
I will update this patch in v3, thanks!
Regards, Bernd
PATCH v2 8/16 package/apr-util: add optional dependency to openssl
In reply to Thomas PetazzoniThomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8 @public.gmane.org> wrote in news:20141005203902.5d8c5dcf at free-electrons.com:
Quoted 2 lines
This looks weird, because there's no symmetry between --with-openssl --with-crypto and --without-ssl. Isn't there an issue here?
Hi Thomas,
I sent v3 of this patch: http://patchwork.ozlabs.org/patch/396912/
and superseeded the buggy version in patchworks.
Is it ok to only send a single patch and not the whole series again? This patch does not depend on the other patches of the apache/php series.
Regards, Bernd
PATCH v2 9/16 package/php: Add support for GD module
In reply to Bernd Kuhls--- package/php/Config.ext | 8 ++++++++ package/php/php.mk | 8 ++++++++ 2 files changed, 16 insertions(+)
package/php/Config.ext +8 -0
@@ -194,6 +194,14 @@ config BR2_PACKAGE_PHP_EXT_EXIF help EXIF support +config BR2_PACKAGE_PHP_EXT_GD + bool "GD" + select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG + help + GD support + comment "Mathematical extensions" config BR2_PACKAGE_PHP_EXT_BCMATH
package/php/php.mk +8 -0
@@ -213,6 +213,14 @@ ifeq ($(BR2_PACKAGE_PHP_EXT_SNMP),y) PHP_DEPENDENCIES += netsnmp endif +ifeq ($(BR2_PACKAGE_PHP_EXT_GD),y) + PHP_CONF_OPTS += --with-gd --with-jpeg-dir=$(STAGING_DIR)/usr \ + --with-png-dir=$(STAGING_DIR)/usr \ + --with-zlib-dir=$(STAGING_DIR)/usr \ + --with-freetype-dir=$(STAGING_DIR)/usr + PHP_DEPENDENCIES += jpeg libpng freetype +endif + define PHP_EXTENSIONS_FIXUP $(SED) "/prefix/ s:/usr:$(STAGING_DIR)/usr:" \ $(STAGING_DIR)/usr/bin/phpize
Signature · 1 line
1.7.10.4
PATCH v2 10/16 package/php: Add support for mcrypt module
In reply to Bernd Kuhls--- package/php/Config.ext | 5 +++++ package/php/php.mk | 5 +++++ 2 files changed, 10 insertions(+)
package/php/Config.ext +5 -0
@@ -56,6 +56,11 @@ config BR2_PACKAGE_PHP_EXT_HASH help HASH message digest framework +config BR2_PACKAGE_PHP_EXT_MCRYPT + bool "mcrypt" + help + mcrypt support + config BR2_PACKAGE_PHP_EXT_OPENSSL bool "openssl" select BR2_PACKAGE_OPENSSL
package/php/php.mk +5 -0
@@ -78,6 +78,11 @@ PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_EXT_SOCKETS),--enable-sockets) \ $(if $(BR2_PACKAGE_PHP_EXT_BCMATH),--enable-bcmath) \ $(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar) +ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y) + PHP_CONF_OPTS += --with-mcrypt=$(STAGING_DIR)/usr + PHP_DEPENDENCIES += libmcrypt +endif + ifeq ($(BR2_PACKAGE_PHP_EXT_OPENSSL),y) PHP_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr PHP_DEPENDENCIES += openssl
Signature · 1 line
1.7.10.4
PATCH v2 11/16 package/php: Add support for mbstring module
In reply to Bernd Kuhls--- package/php/Config.ext | 5 +++++ package/php/php.mk | 1 + 2 files changed, 6 insertions(+)
package/php/Config.ext +5 -0
@@ -192,6 +192,11 @@ comment "intl support needs a toolchain w/ C++, wchar, threads" depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS +config BR2_PACKAGE_PHP_EXT_MBSTRING + bool "mbstring" + help + multibyte string support + comment "Image processing" config BR2_PACKAGE_PHP_EXT_EXIF
package/php/php.mk +1 -0
@@ -76,6 +76,7 @@ PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_EXT_SOCKETS),--enable-sockets) \ $(if $(BR2_PACKAGE_PHP_EXT_CALENDAR),--enable-calendar) \ $(if $(BR2_PACKAGE_PHP_EXT_FILEINFO),--enable-fileinfo) \ $(if $(BR2_PACKAGE_PHP_EXT_BCMATH),--enable-bcmath) \ + $(if $(BR2_PACKAGE_PHP_EXT_MBSTRING),--enable-mbstring) \ $(if $(BR2_PACKAGE_PHP_EXT_PHAR),--enable-phar) ifeq ($(BR2_PACKAGE_PHP_EXT_MCRYPT),y)
Signature · 1 line
1.7.10.4
PATCH v2 12/16 package/apr: Bump version to 1.5.1
In reply to Bernd Kuhlsapr-0001-cross-compile.patch: Fix cross compilation Fix top_builddir in usr/build-1/apr_rules.mk
--- package/apr/apr-0001-cross-compile.patch | 58 ++++++++++++++++++++++++++++++ package/apr/apr.mk | 9 ++++- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 package/apr/apr-0001-cross-compile.patch
package/apr/apr-0001-cross-compile.patch new file +58 -0
@@ -0,0 +1,58 @@ +Fix cross-compilation + +Patch was backported from Apache httpd: +http://svn.apache.org/viewvc?view=revision&revision=1327907 +http://svn.apache.org/viewvc?view=revision&revision=1328390 +http://svn.apache.org/viewvc?view=revision&revision=1328714 + +Patch submitted upstream: +https://issues.apache.org/bugzilla/show_bug.cgi?id=57058 + +Signed-off-by: Bernd Kuhls <[email protected]> + +diff -uNr apr-1.5.1.org/configure.in apr-1.5.1/configure.in +--- apr-1.5.1.org/configure.in 2014-01-25 16:17:29.000000000 +0100 ++++ apr-1.5.1/configure.in 2014-10-05 11:20:40.080746760 +0200 +@@ -118,6 +118,16 @@ + echo "Configuring APR library" + echo "Platform: $host" + ++dnl In case of cross compilation we set CC_FOR_BUILD to cc unless ++dnl we got already CC_FOR_BUILD from environment. ++if test "x${build_alias}" != "x${host_alias}"; then ++ if test "x${CC_FOR_BUILD}" = "x"; then ++ CC_FOR_BUILD=cc ++ fi ++fi ++AC_SUBST(CC_FOR_BUILD) ++AC_SUBST(CFLAGS_FOR_BUILD) ++ + dnl Some initial steps for configuration. We setup the default directory + dnl and which files are to be configured. + +diff -uNr apr-1.5.1.org/Makefile.in apr-1.5.1/Makefile.in +--- apr-1.5.1.org/Makefile.in 2014-03-17 16:10:26.000000000 +0100 ++++ apr-1.5.1/Makefile.in 2014-10-05 11:22:53.031070519 +0200 +@@ -8,6 +8,8 @@ + # APR (Apache Portable Runtime) library Makefile. + # + CPP = @CPP@ ++CC_FOR_BUILD = @CC_FOR_BUILD@ ++CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ + + # get substituted into some targets + APR_MAJOR_VERSION=@APR_MAJOR_VERSION@ +@@ -134,8 +136,13 @@ + + OBJECTS_gen_test_char = tools/gen_test_char.lo $(LOCAL_LIBS) + tools/gen_test_char.lo: make_tools_dir ++ifdef CC_FOR_BUILD ++tools/gen_test_char at EXEEXT@: tools/gen_test_char.c $(LOCAL_LIBS) ++ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DCROSS_COMPILE -o $@ $< ++else + tools/gen_test_char at EXEEXT@: $(OBJECTS_gen_test_char) + $(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS) ++endif + + include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@ + $(APR_MKDIR) include/private
package/apr/apr.mk +8 -1
@@ -4,12 +4,17 @@ # ################################################################################ -APR_VERSION = 1.4.8 +APR_VERSION = 1.5.1 APR_SITE = http://archive.apache.org/dist/apr APR_LICENSE = Apache-2.0 APR_LICENSE_FILES = LICENSE APR_INSTALL_STAGING = YES +# We have a patch touching configure.in and Makefile.in, +# so we need to autoreconf: +APR_AUTORECONF = YES APR_CONF_ENV = \ + CC_FOR_BUILD="$(HOSTCC)" \ + CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \ ac_cv_file__dev_zero=yes \ ac_cv_func_setpgrp_void=yes \ apr_cv_process_shared_works=yes \
@@ -41,6 +46,8 @@ define APR_FIXUP_RULES_MK $(STAGING_DIR)/usr/build-1/apr_rules.mk $(SED) 's%apr_builders=%apr_builders=$(STAGING_DIR)%' \ $(STAGING_DIR)/usr/build-1/apr_rules.mk + $(SED) 's%top_builddir=%top_builddir=$(STAGING_DIR)%' \ + $(STAGING_DIR)/usr/build-1/apr_rules.mk endef APR_POST_INSTALL_STAGING_HOOKS += APR_FIXUP_RULES_MK
Signature · 1 line
1.7.10.4
PATCH v2 13/16 package/apr: Fix for Apache when listening to multiple ports
In reply to Bernd KuhlsFor details:
https://issues.apache.org/bugzilla/show_bug.cgi?id=56727#c6
--- package/apr/apr.mk | 1 + 1 file changed, 1 insertion(+)
package/apr/apr.mk +1 -0
@@ -22,6 +22,7 @@ APR_CONF_ENV = \ apr_cv_tcp_nodelay_with_cork=yes \ ac_cv_sizeof_struct_iovec=8 \ ac_cv_struct_rlimit=yes \ + ac_cv_o_nonblock_inherited=no \ apr_cv_mutex_recursive=yes APR_CONFIG_SCRIPTS = apr-1-config
Signature · 1 line
1.7.10.4
PATCH v2 14/16 package/apr-util: Bump version to 1.5.4
In reply to Bernd Kuhls--- package/apr-util/apr-util.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/apr-util/apr-util.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -APR_UTIL_VERSION = 1.5.2 +APR_UTIL_VERSION = 1.5.4 APR_UTIL_SITE = http://archive.apache.org/dist/apr APR_UTIL_LICENSE = Apache-2.0 APR_UTIL_LICENSE_FILES = LICENSE
Signature · 1 line
1.7.10.4
PATCH v2 15/16 Apache: New package
In reply to Bernd Kuhls--- package/Config.in | 1 + package/apache/Config.in | 19 +++++++ package/apache/apache-0001-cross-compile.patch | 63 ++++++++++++++++++++++++ package/apache/apache.mk | 48 ++++++++++++++++++ 4 files changed, 131 insertions(+) create mode 100644 package/apache/Config.in create mode 100644 package/apache/apache-0001-cross-compile.patch create mode 100644 package/apache/apache.mk
package/Config.in +1 -0
@@ -945,6 +945,7 @@ endmenu menu "Networking applications" source "package/aiccu/Config.in" source "package/aircrack-ng/Config.in" + source "package/apache/Config.in" source "package/argus/Config.in" source "package/arptables/Config.in" source "package/atftp/Config.in"
package/apache/Config.in new file +19 -0
@@ -0,0 +1,19 @@ +config BR2_PACKAGE_APACHE + bool "apache" + select BR2_PACKAGE_APR_UTIL + select BR2_PACKAGE_PCRE + depends on !BR2_PREFER_STATIC_LIB + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU # apr + help + The Apache HTTP Server Project is an effort to develop and maintain an + open-source HTTP server for modern operating systems including UNIX + and Windows NT. The goal of this project is to provide a secure, + efficient and extensible server that provides HTTP services in sync + with the current HTTP standards. + + http://httpd.apache.org + +comment "apache needs a toolchain w/ dynamic library, threads" + depends on BR2_USE_MMU + depends on BR2_PREFER_STATIC_LIB || !BR2_TOOLCHAIN_HAS_THREADS
package/apache/apache-0001-cross-compile.patch new file +63 -0
63 lines not on this page · raw message
package/apache/apache.mk new file +48 -0
48 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH v2 16/16 package/php: Add Apache support
In reply to Bernd Kuhls--- package/php/Config.in | 17 +++++++++++ package/php/php-04-apache.patch | 63 +++++++++++++++++++++++++++++++++++++++ package/php/php.mk | 19 ++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 package/php/php-04-apache.patch
package/php/Config.in +17 -0
@@ -11,6 +11,9 @@ if BR2_PACKAGE_PHP source "package/php/Config.ext" +config BR2_PACKAGE_PHP_APACHE + bool + config BR2_PACKAGE_PHP_CLI bool
@@ -26,6 +29,20 @@ choice help Select the PHP interface(s). +config BR2_PACKAGE_PHP_SAPI_APACHE + bool "Apache" + select BR2_PACKAGE_APACHE + select BR2_PACKAGE_PHP_APACHE + depends on !BR2_PREFER_STATIC_LIB # apache + depends on BR2_TOOLCHAIN_HAS_THREADS # apache + depends on BR2_USE_MMU # apr + help + Apache module + +comment "apache module needs a toolchain w/ dynamic library, threads" + depends on BR2_USE_MMU + depends on BR2_PREFER_STATIC_LIB || !BR2_TOOLCHAIN_HAS_THREADS + config BR2_PACKAGE_PHP_SAPI_CGI bool "CGI" # CGI uses fork()
package/php/php-04-apache.patch new file +63 -0
63 lines not on this page · raw message
package/php/php.mk +19 -0
@@ -50,6 +50,25 @@ PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_CLI),,--disable-cli) PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_CGI),,--disable-cgi) PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_FPM),--enable-fpm,--disable-fpm) +ifeq ($(BR2_PACKAGE_PHP_APACHE),y) +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +define PHP_FIX_THREADS_DETECTION + $(SED) 's/pthreads_working\=no/pthreads_working\=yes/' $(@D)/configure +endef +# PHP assumes pthreads are not working when cross-compiling, +# needed for Apache-MPM worker +PHP_POST_PATCH_HOOKS += PHP_FIX_THREADS_DETECTION +endif +PHP_CONF_OPTS += \ + --with-apxs2=$(STAGING_DIR)/usr/bin/apxs \ + --with-config-file-path=/etc/apache2 \ + --with-config-file-scan-dir=/etc/apache2/php \ + --oldincludedir=$(STAGING_DIR)/usr/include \ + --enable-pthreads \ + --localstatedir=/var +PHP_DEPENDENCIES += apache +endif + ### Extensions PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_EXT_SOCKETS),--enable-sockets) \ $(if $(BR2_PACKAGE_PHP_EXT_POSIX),--enable-posix) \
Signature · 1 line
1.7.10.4
v2 cover New package Apache including mod_php
In reply to Bernd KuhlsDear Bernd Kuhls,
Quoted 8 lines · Bernd Kuhls
Bernd Kuhls (16):
package/apr: Fix detection of rlimit and large file support package/apr-util: Add expat hard-dependency package/apr-util: Remove unused dependencies to neon and zlib package/apr-util: make sqlite optional package/apr-util: add optional dependency to berkeleydb package/apr-util: add optional dependency to gdbm package/apr-util: add optional dependency to mysql
All applied.
Quoted 1 line
package/apr-util: add optional dependency to openssl
I've applied this one, but the v3 you've sent.
Quoted 6 lines
package/php: Add support for GD module package/php: Add support for mcrypt module package/php: Add support for mbstring module package/apr: Bump version to 1.5.1
package/apr: Fix for Apache when listening to multiple ports package/apr-util: Bump version to 1.5.4
All applied.
Quoted 2 lines
Apache: New package
package/php: Add Apache support
I haven't applied those patches, not enough time to review/test them yet.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com