From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 7/8] Apache: New package
Date: Sun, 5 Oct 2014 17:23:22 +0200 [thread overview]
Message-ID: <20141005152322.GL4220@free.fr> (raw)
In-Reply-To: <1412516718-12597-7-git-send-email-bernd.kuhls@t-online.de>
Bernd, All,
On 2014-10-05 15:45 +0200, Bernd Kuhls spake thusly:
[--SNIP--]
> diff --git a/package/apache/apache-0001-cross-compile.patch b/package/apache/apache-0001-cross-compile.patch
> new file mode 100644
> index 0000000..05e99dd
> --- /dev/null
> +++ b/package/apache/apache-0001-cross-compile.patch
> @@ -0,0 +1,58 @@
> +Fix cross-compilation
> +
> +Fetched httpd-2.4.x-cross_compile.diff from upstream bugtracker:
> +https://issues.apache.org/bugzilla/show_bug.cgi?id=51257#c6
which is a bundle of upstream revisions:
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
;-)
[--SNIP--]
> diff --git a/package/apache/apache.mk b/package/apache/apache.mk
> new file mode 100644
> index 0000000..d525024
> --- /dev/null
> +++ b/package/apache/apache.mk
> @@ -0,0 +1,42 @@
> +################################################################################
> +#
> +# apache
> +#
> +################################################################################
> +
> +APACHE_VERSION = 2.4.10
> +APACHE_SOURCE = httpd-$(APACHE_VERSION).tar.bz2
> +APACHE_SITE = http://archive.apache.org/dist/httpd
> +APACHE_LICENSE = Apache-2.0
> +APACHE_LICENSE_FILES = LICENSE
> +APACHE_INSTALL_STAGING = YES
Why do you meed to install it in staging?
Answer: I guess that's becasue apache installs headers and libs so that
it is possible to build out-of-apache modules. Right?
Say so, because it is not obvious.
> +APACHE_AUTORECONF = YES
Ditto as for apr: short explanation why autoreconf is needed.
> +APACHE_DEPENDENCIES = apr-util pcre
Apache does not need apr directly, too?
> +APACHE_CONF_ENV= \
> + CC_FOR_BUILD="$(HOSTCC)" \
> + CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
> + ap_cv_void_ptr_lt_long=no \
> + PCRE_CONFIG=$(STAGING_DIR)/usr/bin/pcre-config
> +
> +APACHE_CONF_OPTS = \
> + --sysconfdir=/etc/apache2 \
> + --with-apr=$(STAGING_DIR)/usr \
> + --with-apr-util=$(STAGING_DIR)/usr \
> + --with-pcre=$(STAGING_DIR)/usr/bin/pcre-config \
> + --enable-http \
> + --enable-dbd \
> + --enable-proxy \
> + --enable-mime-magic \
> + --without-suexec-bin \
> + --enable-mods-shared=all \
> + --with-mpm=worker \
This could later be made a choice option.
> + --enable-nonportable-atomics=yes
Can you shade some explanations to this one? How would it work with:
BR2_ARCH_HAS_ATOMICS
Regards,
Yann E. MORIN.
> +define APACHE_FIX_STAGING_APACHE_CONFIG
> + $(SED) 's%/usr/build%$(STAGING_DIR)/usr/build%' $(STAGING_DIR)/usr/bin/apxs
> + $(SED) 's%^prefix =.*%prefix = $(STAGING_DIR)/usr%' $(STAGING_DIR)/usr/build/config_vars.mk
> +endef
> +APACHE_POST_INSTALL_STAGING_HOOKS += APACHE_FIX_STAGING_APACHE_CONFIG
> +
> +$(eval $(autotools-package))
> --
> 1.7.10.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-10-05 15:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-05 13:45 [Buildroot] [PATCH 1/8] package/apr: Bump version to 1.5.1 Bernd Kuhls
2014-10-05 13:45 ` [Buildroot] [PATCH 2/8] package/apr: Fix detection of rlimit and large file support Bernd Kuhls
2014-10-05 14:48 ` Yann E. MORIN
2014-10-05 13:45 ` [Buildroot] [PATCH 3/8] package/apr-util: Add comment to describe toolchain dependencies Bernd Kuhls
2014-10-05 14:45 ` Yann E. MORIN
2014-10-05 16:01 ` Thomas Petazzoni
2014-10-05 13:45 ` [Buildroot] [PATCH 4/8] package/apr-util: Bump version to 1.5.4 Bernd Kuhls
2014-10-05 13:45 ` [Buildroot] [PATCH 5/8] package/apr-util: Rework dependencies Bernd Kuhls
2014-10-05 15:00 ` Yann E. MORIN
2014-10-05 13:45 ` [Buildroot] [PATCH 6/8] package/apr: Fix for Apache when listening to multiple ports Bernd Kuhls
2014-10-05 15:04 ` Yann E. MORIN
2014-10-05 13:45 ` [Buildroot] [PATCH 7/8] Apache: New package Bernd Kuhls
2014-10-05 15:23 ` Yann E. MORIN [this message]
2014-10-05 13:45 ` [Buildroot] [PATCH 8/8] package/php: Add Apache support Bernd Kuhls
2014-10-05 15:56 ` Yann E. MORIN
2014-10-05 16:48 ` Gustavo Zacarias
2014-10-05 14:42 ` [Buildroot] [PATCH 1/8] package/apr: Bump version to 1.5.1 Yann E. MORIN
2014-10-05 16:16 ` Thomas Petazzoni
2014-10-05 16:30 ` Bernd Kuhls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141005152322.GL4220@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.