From: Trevor Woerner <twoerner@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [scarthgap][meta-webserver][PATCH] apache2: use update-alternatives for httpd
Date: Tue, 24 Sep 2024 13:07:24 -0400 [thread overview]
Message-ID: <20240924170724.GA7320@localhost> (raw)
In-Reply-To: <17E37E645367D680.19344@lists.openembedded.org>
Could this please be also added to scarthgap?
On Thu 2024-07-18 @ 11:07:26 PM, Trevor Woerner via lists.openembedded.org wrote:
> Busybox can optionally provide an httpd server, but by default The Yocto
> Project defconfig for busybox does not enable it. If it is enabled,
> busybox puts the resulting /usr/sbin/httpd object under the control of
> update-alternatives.
>
> apache2, on the other hand, does not put /usr/sbin/httpd under the control
> of update-alternatives. Therefore, in the off chance a user enables the
> busybox httpd server, it does not play well with apache2.
>
> Add update-alternatives information to apache2 so that it plays nicely with
> busybox which can optionally provide an httpd server at /usr/sbin/httpd.
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> meta-webserver/recipes-httpd/apache2/apache2_2.4.60.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.60.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.60.bb
> index ab19ff1dc337..0c26a421c786 100644
> --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.60.bb
> +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.60.bb
> @@ -190,6 +190,9 @@ INITSCRIPT_PARAMS = "defaults 91 20"
> SYSTEMD_SERVICE:${PN} = "apache2.service"
> SYSTEMD_AUTO_ENABLE:${PN} = "enable"
>
> +ALTERNATIVE:${PN} = "httpd"
> +ALTERNATIVE_LINK_NAME[httpd] = "${sbindir}/httpd"
> +ALTERNATIVE_PRIORITY[httpd] = "60"
> ALTERNATIVE:${PN}-doc = "htpasswd.1"
> ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1"
>
> --
> 2.44.0.501.g19981daefd7c
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#111410): https://lists.openembedded.org/g/openembedded-devel/message/111410
> Mute This Topic: https://lists.openembedded.org/mt/107429240/900817
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [twoerner@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
parent reply other threads:[~2024-09-24 17:07 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <17E37E645367D680.19344@lists.openembedded.org>]
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=20240924170724.GA7320@localhost \
--to=twoerner@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/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.