Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] Pending patches in O.S. Systems tree
@ 2012-02-01 20:27 Otavio Salvador
  2012-02-01 20:27 ` [PATCH 1/3] udev: improve udev-cache robustness Otavio Salvador
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Otavio Salvador @ 2012-02-01 20:27 UTC (permalink / raw)
  To: openembedded-core

We changed the udev patch taking in account the suggestions done by
Richard and also made a cuple of more fixes in meanwhile. The
gitpkgv.bbclass patch has been dropped for now as it is in discussion
on mailing list.

The following changes since commit d7b13cd42ab8d5f44f97e119b73ec2e363677d26:

  useradd.bbclass: Fix missing quote (2012-01-27 23:57:33 +0000)

are available in the git repository at:
  git://github.com/OSSystems/oe-core master
  https://github.com/OSSystems/oe-core/tree/HEAD

Otavio Salvador (3):
  udev: improve udev-cache robustness
  dhcp: move dhcp leases files handling to postinst/postrm
  rootfs_ipk.bbclass: fix detection of script runtime requirement

 meta/classes/rootfs_ipk.bbclass                |   10 ++++++-
 meta/recipes-connectivity/dhcp/dhcp.inc        |   19 +++++++++++++-
 meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb   |    2 +-
 meta/recipes-core/udev/udev.inc                |    8 +++++-
 meta/recipes-core/udev/udev/init               |   33 +++++++++++++++++++++--
 meta/recipes-core/udev/udev/udev-cache         |   14 ++++++++--
 meta/recipes-core/udev/udev/udev-cache.default |    4 +++
 7 files changed, 79 insertions(+), 11 deletions(-)
 create mode 100644 meta/recipes-core/udev/udev/udev-cache.default

-- 
1.7.2.5




^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 1/3] udev: improve udev-cache robustness
  2012-02-01 20:27 [PATCH 0/3] Pending patches in O.S. Systems tree Otavio Salvador
@ 2012-02-01 20:27 ` Otavio Salvador
  2012-02-01 20:52   ` Otavio Salvador
  2012-02-01 20:27 ` [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm Otavio Salvador
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 15+ messages in thread
From: Otavio Salvador @ 2012-02-01 20:27 UTC (permalink / raw)
  To: openembedded-core

 * allow udev-cache to be disabled at runtime (using
   /etc/default/udev-cache);

 * make cache invalidated if kernel, bootparams or device list
   changes;

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/recipes-core/udev/udev.inc                |    8 +++++-
 meta/recipes-core/udev/udev/init               |   33 +++++++++++++++++++++--
 meta/recipes-core/udev/udev/udev-cache         |   14 ++++++++--
 meta/recipes-core/udev/udev/udev-cache.default |    4 +++
 4 files changed, 52 insertions(+), 7 deletions(-)
 create mode 100644 meta/recipes-core/udev/udev/udev-cache.default

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index 0e571d6..e5fbe40 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -25,6 +25,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
            file://network.sh \
            file://local.rules \
            file://udev-cache \
+           file://udev-cache.default \
            file://init"
 
 inherit autotools pkgconfig update-rc.d
@@ -58,7 +59,7 @@ FILES_libgudev = "${base_libdir}/libgudev*.so.* ${libdir}/libgudev*.so.*"
 FILES_libgudev-dbg = "${base_libdir}/.debug/libgudev*.so.* ${libdir}/.debug/libgudev*.so.*"
 FILES_libgudev-dev = "${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libgudev*.la \
                      ${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc"
-FILES_udev-cache = "${sysconfdir}/init.d/udev-cache"
+FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"
 
 FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules"
 
@@ -72,6 +73,11 @@ do_install_append () {
 	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
 	install -m 0755 ${WORKDIR}/udev-cache ${D}${sysconfdir}/init.d/udev-cache
 
+	install -d ${D}${sysconfdir}/default
+	install -m 0755 ${WORKDIR}/udev-cache.default ${D}${sysconfdir}/default/udev-cache
+
+	touch ${D}${sysconfdir}/udev/cache.data
+
 	install -d ${D}${sysconfdir}/udev/rules.d/
 
 	install -m 0644 ${WORKDIR}/local.rules         ${D}${sysconfdir}/udev/rules.d/local.rules
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 6a4464c..78b5b1c 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -14,8 +14,19 @@ export TZ=/etc/localtime
 [ -d /sys/class ] || exit 1
 [ -r /proc/mounts ] || exit 1
 [ -x /sbin/udevd ] || exit 1
+[ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
 [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
 
+readfile () {
+   filename=$1
+   READDATA=""
+   if [ -r $filename ]; then
+       while read line; do
+           READDATA="$READDATA$line"
+       done < $filename
+   fi
+}
+
 kill_udevd() {
 	if [ -x /sbin/pidof ]; then
 		pid=`/sbin/pidof -x udevd`
@@ -34,10 +45,26 @@ LANG=C awk '$2 == "/dev" && ($3 == "tmpfs" || $3 == "devtmpfs") { exit 1 }' /pro
 [ -e /dev/pts ] || mkdir -m 0755 /dev/pts
 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm
 
+# cache handling
+if [ "$DEVCACHE" != "" ]; then
+	readfile /proc/version
+	VERSION="$READDATA"
+	readfile /proc/cmdline
+	CMDLINE="$READDATA"
+	readfile /proc/devices
+	DEVICES="$READDATA"
+	readfile /proc/atags
+	ATAGS="$READDATA"
 
-if [ -e /etc/dev.tar ]; then
-	(cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true)
-	not_first_boot=1
+	if [ -e $DEVCACHE ]; then
+		readfile /etc/udev/cache.data
+		if [ "$READDATA" = "$VERSION$CMDLINE$DEVICES$ATAGS" ]; then
+			(cd /; tar xf $DEVCACHE > /dev/null 2>&1)
+			not_first_boot=1
+		fi
+
+		echo "$VERSION$CMDLINE$DEVICES$ATAGS" > /dev/shm/udev.cache
+	fi
 fi
 
 # make_extra_nodes
diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache
index 77bbda6..9c24e76 100644
--- a/meta/recipes-core/udev/udev/udev-cache
+++ b/meta/recipes-core/udev/udev/udev-cache
@@ -9,12 +9,20 @@
 # Short-Description: cache /dev to speedup the udev next boot
 ### END INIT INFO
 
-[ -d /sys/class ] || exit 1
+export TZ=/etc/localtime
+
 [ -r /proc/mounts ] || exit 1
 [ -x /sbin/udevd ] || exit 1
+[ -d /sys/class ] || exit 1
+
+[ -f /etc/default/udev-cache ] && . /etc/default/udev-cache
 
-if [ ! -e /etc/dev.tar ]; then
-	(cd /; tar cf /etc/dev.tar dev)
+if [ "$DEVCACHE" != "" ]; then
+	echo "Populating dev cache"
+	(cd /; tar cf "$DEVCACHE" dev)
+	mv /dev/shm/udev.cache /etc/udev/cache.data
+else
+	rm -f /dev/shm/udev.cache
 fi
 
 exit 0
diff --git a/meta/recipes-core/udev/udev/udev-cache.default b/meta/recipes-core/udev/udev/udev-cache.default
new file mode 100644
index 0000000..5c4937a
--- /dev/null
+++ b/meta/recipes-core/udev/udev/udev-cache.default
@@ -0,0 +1,4 @@
+# Default for /etc/init.d/udev
+
+# Comment this out to disable device cache
+DEVCACHE="/etc/dev.tar"
-- 
1.7.2.5




^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm
  2012-02-01 20:27 [PATCH 0/3] Pending patches in O.S. Systems tree Otavio Salvador
  2012-02-01 20:27 ` [PATCH 1/3] udev: improve udev-cache robustness Otavio Salvador
@ 2012-02-01 20:27 ` Otavio Salvador
  2012-02-01 20:57   ` Phil Blundell
  2012-02-01 20:27 ` [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement Otavio Salvador
  2012-02-02 14:57 ` [PATCH 0/3] Pending patches in O.S. Systems tree Richard Purdie
  3 siblings, 1 reply; 15+ messages in thread
From: Otavio Salvador @ 2012-02-01 20:27 UTC (permalink / raw)
  To: openembedded-core

Both server and client needs access to leases files so its creation
and removal are now handled by postinst/postrm scripts.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/recipes-connectivity/dhcp/dhcp.inc      |   19 ++++++++++++++++++-
 meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb |    2 +-
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index be256ce..9f0c5ea 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -66,12 +66,29 @@ FILES_dhcp-server-config = "${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp
 
 FILES_dhcp-relay = "${sbindir}/dhcrelay ${sysconfdir}/init.d/dhcp-relay ${sysconfdir}/default/dhcp-relay"
 
-FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf ${localstatedir}/lib/dhcp/"
+FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf"
 RDEPENDS_dhcp-client = "bash"
 
 FILES_dhcp-omshell = "${bindir}/omshell"
 
 pkg_postinst_dhcp-server() {
+    install -d $D/${localstatedir}/lib/dhcp
     touch $D/${localstatedir}/lib/dhcp/dhcpd.leases
     touch $D/${localstatedir}/lib/dhcp/dhcpd6.leases
 }
+
+pkg_postinst_dhcp-client() {
+    install -d $D/${localstatedir}/lib/dhcp
+}
+
+pkg_postrm_dhcp-server() {
+    rm -f $D/${localstatedir}/lib/dhcp/dhcpd.leases
+    rm -f $D/${localstatedir}/lib/dhcp/dhcpd6.leases
+    rmdir $D/${localstatedir}/lib/dhcp
+}
+
+pkg_postrm_dhcp-client() {
+    rm -f $D/${localstatedir}/lib/dhcp/dhclient.leases
+    rm -f $D/${localstatedir}/lib/dhcp/dhclient6.leases
+    rmdir $D/${localstatedir}/lib/dhcp
+}
diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb b/meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb
index a3a560b..478fd06 100644
--- a/meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb
+++ b/meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb
@@ -1,6 +1,6 @@
 require dhcp.inc
 
-PR = "r5"
+PR = "r6"
 
 SRC_URI += "file://fixincludes.patch \
             file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \
-- 
1.7.2.5




^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement
  2012-02-01 20:27 [PATCH 0/3] Pending patches in O.S. Systems tree Otavio Salvador
  2012-02-01 20:27 ` [PATCH 1/3] udev: improve udev-cache robustness Otavio Salvador
  2012-02-01 20:27 ` [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm Otavio Salvador
@ 2012-02-01 20:27 ` Otavio Salvador
  2012-02-01 20:59   ` Phil Blundell
  2012-02-02  8:48   ` Martin Jansa
  2012-02-02 14:57 ` [PATCH 0/3] Pending patches in O.S. Systems tree Richard Purdie
  3 siblings, 2 replies; 15+ messages in thread
From: Otavio Salvador @ 2012-02-01 20:27 UTC (permalink / raw)
  To: openembedded-core

The code has been broken by 2feba313c991170747381c7cf821a45c2cd04632
that changed the way this detection has being done.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/classes/rootfs_ipk.bbclass |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 48fb2fb..0881089 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -74,9 +74,15 @@ fakeroot rootfs_ipk_do_rootfs () {
 
 	${OPKG_POSTPROCESS_COMMANDS}
 	${ROOTFS_POSTINSTALL_COMMAND}
-	
+
+	if grep -q Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
+		runtime_script_required=1
+	else
+		runtime_script_required=0
+	fi
+
 	if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then
-		if grep Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
+		if [ $runtime_script_required -eq 1 ]; then
 			echo "Some packages could not be configured offline and rootfs is read-only."
 			exit 1
 		fi
-- 
1.7.2.5




^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] udev: improve udev-cache robustness
  2012-02-01 20:27 ` [PATCH 1/3] udev: improve udev-cache robustness Otavio Salvador
@ 2012-02-01 20:52   ` Otavio Salvador
  0 siblings, 0 replies; 15+ messages in thread
From: Otavio Salvador @ 2012-02-01 20:52 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 578 bytes --]

On Wed, Feb 1, 2012 at 18:27, Otavio Salvador <otavio@ossystems.com.br>wrote:

>  * allow udev-cache to be disabled at runtime (using
>   /etc/default/udev-cache);
>
>  * make cache invalidated if kernel, bootparams or device list
>   changes;
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>

I forgot a PR bump in udev_164.bb. I did it in the branch.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1152 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm
  2012-02-01 20:27 ` [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm Otavio Salvador
@ 2012-02-01 20:57   ` Phil Blundell
  2012-02-01 21:01     ` Otavio Salvador
  0 siblings, 1 reply; 15+ messages in thread
From: Phil Blundell @ 2012-02-01 20:57 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
>  pkg_postinst_dhcp-server() {
> +    install -d $D/${localstatedir}/lib/dhcp

Is "install" guaranteed to be available on the target?  I would have
thought "mkdir -p" would be better.

p.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement
  2012-02-01 20:27 ` [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement Otavio Salvador
@ 2012-02-01 20:59   ` Phil Blundell
  2012-02-01 21:03     ` Otavio Salvador
  2012-02-02  8:48   ` Martin Jansa
  1 sibling, 1 reply; 15+ messages in thread
From: Phil Blundell @ 2012-02-01 20:59 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
> The code has been broken by 2feba313c991170747381c7cf821a45c2cd04632
> that changed the way this detection has being done.

What was the failure?  It isn't immediately obvious to me that this
patch will make any functional difference (except for adding the -q
argument to grep which was indeed missing).

p.




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm
  2012-02-01 20:57   ` Phil Blundell
@ 2012-02-01 21:01     ` Otavio Salvador
  2012-02-02 10:43       ` Phil Blundell
  0 siblings, 1 reply; 15+ messages in thread
From: Otavio Salvador @ 2012-02-01 21:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]

On Wed, Feb 1, 2012 at 18:57, Phil Blundell <philb@gnu.org> wrote:

> On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
> >  pkg_postinst_dhcp-server() {
> > +    install -d $D/${localstatedir}/lib/dhcp
>
> Is "install" guaranteed to be available on the target?  I would have
> thought "mkdir -p" would be better.
>

It worked on all images I tested. I have no strong opinions about it.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1109 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement
  2012-02-01 20:59   ` Phil Blundell
@ 2012-02-01 21:03     ` Otavio Salvador
  2012-02-02 10:42       ` Phil Blundell
  0 siblings, 1 reply; 15+ messages in thread
From: Otavio Salvador @ 2012-02-01 21:03 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

On Wed, Feb 1, 2012 at 18:59, Phil Blundell <philb@gnu.org> wrote:

> On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
> > The code has been broken by 2feba313c991170747381c7cf821a45c2cd04632
> > that changed the way this detection has being done.
>
> What was the failure?  It isn't immediately obvious to me that this
> patch will make any functional difference (except for adding the -q
> argument to grep which was indeed missing).
>

Nothing where setting runtime_script_required as 0 in case it worked. So it
would never in fact remove the info files, even if read-only-fs where being
in use and functional.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1320 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement
  2012-02-01 20:27 ` [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement Otavio Salvador
  2012-02-01 20:59   ` Phil Blundell
@ 2012-02-02  8:48   ` Martin Jansa
  1 sibling, 0 replies; 15+ messages in thread
From: Martin Jansa @ 2012-02-02  8:48 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]

On Wed, Feb 01, 2012 at 08:27:45PM +0000, Otavio Salvador wrote:
> The code has been broken by 2feba313c991170747381c7cf821a45c2cd04632
> that changed the way this detection has being done.

Wasn't this fixed by 
http://git.openembedded.org/openembedded-core/commit/?id=6d3eac57bdba8e2582c210a2f82a3a4546f68581
?

> 
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
>  meta/classes/rootfs_ipk.bbclass |   10 ++++++++--
>  1 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
> index 48fb2fb..0881089 100644
> --- a/meta/classes/rootfs_ipk.bbclass
> +++ b/meta/classes/rootfs_ipk.bbclass
> @@ -74,9 +74,15 @@ fakeroot rootfs_ipk_do_rootfs () {
>  
>  	${OPKG_POSTPROCESS_COMMANDS}
>  	${ROOTFS_POSTINSTALL_COMMAND}
> -	
> +
> +	if grep -q Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
> +		runtime_script_required=1
> +	else
> +		runtime_script_required=0
> +	fi
> +
>  	if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then
> -		if grep Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
> +		if [ $runtime_script_required -eq 1 ]; then
>  			echo "Some packages could not be configured offline and rootfs is read-only."
>  			exit 1
>  		fi
> -- 
> 1.7.2.5
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement
  2012-02-01 21:03     ` Otavio Salvador
@ 2012-02-02 10:42       ` Phil Blundell
  0 siblings, 0 replies; 15+ messages in thread
From: Phil Blundell @ 2012-02-02 10:42 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-01 at 19:03 -0200, Otavio Salvador wrote:
> On Wed, Feb 1, 2012 at 18:59, Phil Blundell <philb@gnu.org> wrote:
>         On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
>         > The code has been broken by
>         2feba313c991170747381c7cf821a45c2cd04632
>         > that changed the way this detection has being done.
>         
>         
>         What was the failure?  It isn't immediately obvious to me that
>         this
>         patch will make any functional difference (except for adding
>         the -q
>         argument to grep which was indeed missing).
> 
> 
> Nothing where setting runtime_script_required as 0 in case it worked.
> So it would never in fact remove the info files, even if read-only-fs
> where being in use and functional.

What else was using runtime_script_required?  I thought the last
references to that were removed by the patch in:

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-January/016773.html

Did that one not get merged?

p.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm
  2012-02-01 21:01     ` Otavio Salvador
@ 2012-02-02 10:43       ` Phil Blundell
  2012-02-02 14:53         ` Richard Purdie
  0 siblings, 1 reply; 15+ messages in thread
From: Phil Blundell @ 2012-02-02 10:43 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-01 at 19:01 -0200, Otavio Salvador wrote:
> On Wed, Feb 1, 2012 at 18:57, Phil Blundell <philb@gnu.org> wrote:
>         On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
>         >  pkg_postinst_dhcp-server() {
>         > +    install -d $D/${localstatedir}/lib/dhcp
>         
>         
>         Is "install" guaranteed to be available on the target?  I
>         would have
>         thought "mkdir -p" would be better.
> 
> 
> It worked on all images I tested. I have no strong opinions about it. 

I just checked a rootfs that I happened to have lying around and there
was indeed no "install" binary in there.  Admittedly I always build with
O_P_M=none so it isn't going to cause me any real problem, but
presumably there might be other folks who have O_P_M on and still lack
"install".  So I think it would be best to change this.

p.






^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm
  2012-02-02 10:43       ` Phil Blundell
@ 2012-02-02 14:53         ` Richard Purdie
  2012-02-02 18:34           ` Otavio Salvador
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Purdie @ 2012-02-02 14:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2012-02-02 at 10:43 +0000, Phil Blundell wrote:
> On Wed, 2012-02-01 at 19:01 -0200, Otavio Salvador wrote:
> > On Wed, Feb 1, 2012 at 18:57, Phil Blundell <philb@gnu.org> wrote:
> >         On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
> >         >  pkg_postinst_dhcp-server() {
> >         > +    install -d $D/${localstatedir}/lib/dhcp
> >         
> >         
> >         Is "install" guaranteed to be available on the target?  I
> >         would have
> >         thought "mkdir -p" would be better.
> > 
> > 
> > It worked on all images I tested. I have no strong opinions about it. 
> 
> I just checked a rootfs that I happened to have lying around and there
> was indeed no "install" binary in there.  Admittedly I always build with
> O_P_M=none so it isn't going to cause me any real problem, but
> presumably there might be other folks who have O_P_M on and still lack
> "install".  So I think it would be best to change this.

Agreed, mkdir is much more likely to be available than install on most
target machines.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 0/3] Pending patches in O.S. Systems tree
  2012-02-01 20:27 [PATCH 0/3] Pending patches in O.S. Systems tree Otavio Salvador
                   ` (2 preceding siblings ...)
  2012-02-01 20:27 ` [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement Otavio Salvador
@ 2012-02-02 14:57 ` Richard Purdie
  3 siblings, 0 replies; 15+ messages in thread
From: Richard Purdie @ 2012-02-02 14:57 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-02-01 at 20:27 +0000, Otavio Salvador wrote:
> We changed the udev patch taking in account the suggestions done by
> Richard and also made a cuple of more fixes in meanwhile. The
> gitpkgv.bbclass patch has been dropped for now as it is in discussion
> on mailing list.
> 
> The following changes since commit d7b13cd42ab8d5f44f97e119b73ec2e363677d26:
> 
>   useradd.bbclass: Fix missing quote (2012-01-27 23:57:33 +0000)
> 
> are available in the git repository at:
>   git://github.com/OSSystems/oe-core master
>   https://github.com/OSSystems/oe-core/tree/HEAD
> 
> Otavio Salvador (3):
>   udev: improve udev-cache robustness

I've taken this. Thanks for working through the details, I think the end
result is worth it!

>   dhcp: move dhcp leases files handling to postinst/postrm

This needs a install vs. mkdir tweak.

>   rootfs_ipk.bbclass: fix detection of script runtime requirement

I don't think this one is required with master now?

Cheers,

Richard




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm
  2012-02-02 14:53         ` Richard Purdie
@ 2012-02-02 18:34           ` Otavio Salvador
  0 siblings, 0 replies; 15+ messages in thread
From: Otavio Salvador @ 2012-02-02 18:34 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

On Thu, Feb 2, 2012 at 12:53, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> Agreed, mkdir is much more likely to be available than install on most
> target machines.
>

I did it and pushed to my tree.

When changing it, I bumped PR again as I had it merged in our local tree to
fix this problem for yestarday build and so I'd like to keep those in sync.

Want me to send it again or you pick it from there?

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1165 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-02-02 18:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-01 20:27 [PATCH 0/3] Pending patches in O.S. Systems tree Otavio Salvador
2012-02-01 20:27 ` [PATCH 1/3] udev: improve udev-cache robustness Otavio Salvador
2012-02-01 20:52   ` Otavio Salvador
2012-02-01 20:27 ` [PATCH 2/3] dhcp: move dhcp leases files handling to postinst/postrm Otavio Salvador
2012-02-01 20:57   ` Phil Blundell
2012-02-01 21:01     ` Otavio Salvador
2012-02-02 10:43       ` Phil Blundell
2012-02-02 14:53         ` Richard Purdie
2012-02-02 18:34           ` Otavio Salvador
2012-02-01 20:27 ` [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement Otavio Salvador
2012-02-01 20:59   ` Phil Blundell
2012-02-01 21:03     ` Otavio Salvador
2012-02-02 10:42       ` Phil Blundell
2012-02-02  8:48   ` Martin Jansa
2012-02-02 14:57 ` [PATCH 0/3] Pending patches in O.S. Systems tree Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox