[External] Re: [yocto] Yocto- Apache2 build guide

D, Sharmila <sharmila.d@...>

Hi MacLeod,

Thanks for your e-mail.
Yes, without apach2 I am able to build the core-image-minimal successfully. The issue is only when I add apache2 in IMAGE_INSTALL.
I am using TI processor SDK and I have setup the arago based yocto environment based on TI user guide.
version is THUD.
Do you need any further details about the setup?
Please provide me the steps to include apache2 package into my final image.

Looking forward to hearing from you at your earliest convenience.

With Best Regards,
Sharmila D

-----Original Message-----
From: Randy MacLeod <randy.macleod@windriver.com>
Sent: Thursday, February 25, 2021 12:08 AM
To: D, Sharmila <Sharmila.D@Honeywell.com>; yocto@lists.yoctoproject.org
Subject: [External] Re: [yocto] Yocto- Apache2 build guide

On 2021-02-24 5:04 a.m., D, Sharmila via lists.yoctoproject.org wrote:

I am trying to enable httpd package into my yocto build, steps I
followed is as below

1. Added below layer in bblayer.conf file


2. Added below line in local.conf file

IMAGE_INSTALL_append = "apache2"

The yocto build using bitbake core-image-minimal gives below error

WARNING: core-image-minimal-1.0-r0 do_rootfs: busybox.postinst
returned 1, marking as unpacked only, configuration required on target.
ERROR: core-image-minimal-1.0-r0 do_rootfs: Postinstall scriptlets of
['busybox'] have failed. If the intention is to defer them to first
boot, then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in
ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
failed with exit code '1'

Please provide the solution for the same
Hi Sharmila,

This doesn't appear to be related to adding apache.
Are you able to build core-image-minimal without adding apache2?

Can you provide detailed steps wrt what layers and HEAD commits for each layer you are using? Ideally, you'd reproduce on a supported release or on master. That's Dunfell/3.1 or later:


With Best Regards,

Sharmila D

# Randy MacLeod
# Wind River Linux