All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] rootfs_rpm: Fix bug 936
Date: Thu, 11 Aug 2011 14:31:44 -0700	[thread overview]
Message-ID: <4E444A40.8040206@linux.intel.com> (raw)
In-Reply-To: <83a60eb818d866533f9ac2069eae38b03fcedac6.1312967662.git.xiaofeng.yan@windriver.com>

On 08/10/2011 02:49 AM, Xiaofeng Yan wrote:
> From: Xiaofeng Yan<xiaofeng.yan@windriver.com>
>
> [YOCTO #936]
> "update-alternatives" installed: one in /usr/sbin from chkconfig \
> (symlinked to "alternatives"), and the other in /usr/bin \
> from update-alternatives-cworth.
> It appears for whatever reason that the one from chkconfig is run \
> during postinst processing but if you run the script from the command \
> line it gets the other one.
> this is due to differences in the PATH environment variable.
>
> The following is the sequence to call scripts after kernel booting
> inittab
>    -->rcS
>       -->./S40networking(PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)
>       -->S98configure(call rpm-postinstall)
>          #"/usr/sbin" is found prior to "/usr/bin", so update-alternatives from chkconfig is run in this script
>    -->rc5.d
>    -->profile(profile:4:PATH="/usr/local/bin:/usr/bin:/bin" profile:15: PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin)
>    #"/usr/bin/" is found prior to "/usr/sbin", so update-alternatives from update-alternatives-cworth is run in this script
>
> So I remove the symlink (update-alternatives linked to chkconfig). The one from update-alternatives-cworth is left alone.
>
> Signed-off-by: Xiaofeng Yan<xiaofeng.yan@windriver.com>
> ---
>   .../recipes-extended/chkconfig/chkconfig_1.3.52.bb |    3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb
> index 659f964..6dc8a0e 100644
> --- a/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb
> +++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.52.bb
> @@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
>
>   DEPENDS = "libnewt popt"
>
> -PR = "r0"
> +PR = "r1"
>
>   SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2"
>
> @@ -23,4 +23,5 @@ inherit autotools gettext
>
>   do_install_append() {
>       mkdir -p ${D}/etc/chkconfig.d
> +    rm -f ${D}/usr/sbin/update-alternatives
>   }
Merged into OE-Core

Thanks	
Sau!



      parent reply	other threads:[~2011-08-11 21:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10  9:49 [PATCH 0/1] rootfs_rpm: Fix bug 936 Xiaofeng Yan
2011-08-10  9:49 ` [PATCH 1/1] " Xiaofeng Yan
2011-08-10 10:11   ` difference between udev recipes of meta-oe and oe-core Ahsan, Noor
2011-08-10 16:20     ` Ahsan, Noor
2011-08-11 21:31   ` Saul Wold [this message]

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=4E444A40.8040206@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=openembedded-core@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.