* [PATCH 0/1] rootfs_rpm: Fix bug 936
@ 2011-08-10 9:49 Xiaofeng Yan
2011-08-10 9:49 ` [PATCH 1/1] " Xiaofeng Yan
0 siblings, 1 reply; 5+ messages in thread
From: Xiaofeng Yan @ 2011-08-10 9:49 UTC (permalink / raw)
To: openembedded-core
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
"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 for solving this problem.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: xiaofeng/rootfs_rpm
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/rootfs_rpm
Thanks,
Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
Xiaofeng Yan (1):
rootfs_rpm: Fix bug 936
.../recipes-extended/chkconfig/chkconfig_1.3.52.bb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/1] rootfs_rpm: Fix bug 936
2011-08-10 9:49 [PATCH 0/1] rootfs_rpm: Fix bug 936 Xiaofeng Yan
@ 2011-08-10 9:49 ` Xiaofeng Yan
2011-08-10 10:11 ` difference between udev recipes of meta-oe and oe-core Ahsan, Noor
2011-08-11 21:31 ` [PATCH 1/1] rootfs_rpm: Fix bug 936 Saul Wold
0 siblings, 2 replies; 5+ messages in thread
From: Xiaofeng Yan @ 2011-08-10 9:49 UTC (permalink / raw)
To: openembedded-core
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
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* difference between udev recipes of meta-oe and oe-core
2011-08-10 9:49 ` [PATCH 1/1] " Xiaofeng Yan
@ 2011-08-10 10:11 ` Ahsan, Noor
2011-08-10 16:20 ` Ahsan, Noor
2011-08-11 21:31 ` [PATCH 1/1] rootfs_rpm: Fix bug 936 Saul Wold
1 sibling, 1 reply; 5+ messages in thread
From: Ahsan, Noor @ 2011-08-10 10:11 UTC (permalink / raw)
To: openembedded-core
Hello,
I was looking at the udev recipes and noticed that there is minor
difference between oe-core and meta-oe recipes. I went through logs but
could not find the reason. The difference is meta-oe recipe is creating
extra files
touch ${D}${sysconfdir}/udev/saved.uname
touch ${D}${sysconfdir}/udev/saved.cmdline
touch ${D}${sysconfdir}/udev/saved.devices
touch ${D}${sysconfdir}/udev/saved.atags
which is used in init and cache script. But oe-core is not creating such
files and cache script does not exist in oe-core udev and init script is
totally different. Secondly meta-oe udev is copying modprob rules and
touchscreen rules but oe-core udev recipe is not doing that. Can anybody
explain to me that why there is such differences. Thanks.
Regards,
Noor
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: difference between udev recipes of meta-oe and oe-core
2011-08-10 10:11 ` difference between udev recipes of meta-oe and oe-core Ahsan, Noor
@ 2011-08-10 16:20 ` Ahsan, Noor
0 siblings, 0 replies; 5+ messages in thread
From: Ahsan, Noor @ 2011-08-10 16:20 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Hi,
Kindly explain this difference to me. Thanks.
Regards,
Noor
-----Original Message-----
From: openembedded-core-bounces@lists.openembedded.org
[mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
Ahsan, Noor
Sent: Wednesday, August 10, 2011 3:12 PM
To: openembedded-core@lists.openembedded.org
Subject: [OE-core] difference between udev recipes of meta-oe and
oe-core
Hello,
I was looking at the udev recipes and noticed that there is minor
difference between oe-core and meta-oe recipes. I went through logs but
could not find the reason. The difference is meta-oe recipe is creating
extra files
touch ${D}${sysconfdir}/udev/saved.uname
touch ${D}${sysconfdir}/udev/saved.cmdline
touch ${D}${sysconfdir}/udev/saved.devices
touch ${D}${sysconfdir}/udev/saved.atags
which is used in init and cache script. But oe-core is not creating such
files and cache script does not exist in oe-core udev and init script is
totally different. Secondly meta-oe udev is copying modprob rules and
touchscreen rules but oe-core udev recipe is not doing that. Can anybody
explain to me that why there is such differences. Thanks.
Regards,
Noor
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] rootfs_rpm: Fix bug 936
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-11 21:31 ` Saul Wold
1 sibling, 0 replies; 5+ messages in thread
From: Saul Wold @ 2011-08-11 21:31 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-11 21:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 1/1] rootfs_rpm: Fix bug 936 Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox