Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-oe][PATCH 0/1] Avoid unrequired runtime enforcement for postinst
@ 2011-10-11 19:46 Otavio Salvador
  2011-10-11 19:46 ` [meta-oe][PATCH 1/1] xserver-nodm-init: exit 1 only if systemd is installed Otavio Salvador
  0 siblings, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2011-10-11 19:46 UTC (permalink / raw)
  To: openembedded-devel

The following changes since commit 8fcf92fed89557683a08f67667acc77a8f73dc0a:

  guile: fix licensing and gettext inherit (2011-10-11 16:40:25 +0200)

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

Otavio Salvador (1):
  xserver-nodm-init: exit 1 only if systemd is installed

 .../xserver-nodm-init/xserver-nodm-init_2.0.bb     |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

-- 
1.7.2.5




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

* [meta-oe][PATCH 1/1] xserver-nodm-init: exit 1 only if systemd is installed
  2011-10-11 19:46 [meta-oe][PATCH 0/1] Avoid unrequired runtime enforcement for postinst Otavio Salvador
@ 2011-10-11 19:46 ` Otavio Salvador
  2011-10-11 19:54   ` Koen Kooi
  0 siblings, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2011-10-11 19:46 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 .../xserver-nodm-init/xserver-nodm-init_2.0.bb     |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
index d4a6b97..87079a6 100644
--- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
@@ -3,7 +3,7 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 SECTION = "x11"
 
-PR = "r9"
+PR = "r10"
 
 SRC_URI = "file://xserver-nodm \
            file://xserver-nodm.service \
@@ -31,12 +31,10 @@ INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
 INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."
 
 pkg_postinst_${PN}_append () {
-    # can't do this offline
-    if [ "x$D" != "x" ]; then
-        exit 1
-    fi
-
     if [ -e /bin/systemctl ] ; then
+        # can't do this offline
+        [ "x$D" != "x" ] && exit 1
+
         systemctl enable xserver-nodm.service
     fi
 }
-- 
1.7.2.5




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

* Re: [meta-oe][PATCH 1/1] xserver-nodm-init: exit 1 only if systemd is installed
  2011-10-11 19:46 ` [meta-oe][PATCH 1/1] xserver-nodm-init: exit 1 only if systemd is installed Otavio Salvador
@ 2011-10-11 19:54   ` Koen Kooi
  2011-10-11 20:00     ` Otavio Salvador
  0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2011-10-11 19:54 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 11-10-11 21:46, Otavio Salvador schreef:
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> --- 
> .../xserver-nodm-init/xserver-nodm-init_2.0.bb     |   10 ++++------ 1
> files changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git
> a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
> b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb 
> index d4a6b97..87079a6 100644 ---
> a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb +++
> b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb @@
> -3,7 +3,7 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM =
> "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" SECTION = "x11"
> 
> -PR = "r9" +PR = "r10"
> 
> SRC_URI = "file://xserver-nodm \ file://xserver-nodm.service \ @@ -31,12
> +31,10 @@ INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." 
> INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."
> 
> pkg_postinst_${PN}_append () { -    # can't do this offline -    if [
> "x$D" != "x" ]; then -        exit 1 -    fi - if [ -e /bin/systemctl ] ;
> then +        # can't do this offline +        [ "x$D" != "x" ] && exit
> 1 + systemctl enable xserver-nodm.service fi }

While you're at it, please change it to ${base_bindir}


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFOlJ8EMkyGM64RGpERAjlwAKCryf1VfXEmdAFFj7tcyIc553EragCcDxx5
XG3FrZa5JCfCy8IHpJ6UZ1k=
=dU6H
-----END PGP SIGNATURE-----




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

* Re: [meta-oe][PATCH 1/1] xserver-nodm-init: exit 1 only if systemd is installed
  2011-10-11 19:54   ` Koen Kooi
@ 2011-10-11 20:00     ` Otavio Salvador
  2011-10-11 20:04       ` Otavio Salvador
  0 siblings, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2011-10-11 20:00 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Oct 11, 2011 at 16:54, Koen Kooi <koen@dominion.thruhere.net> wrote:
> While you're at it, please change it to ${base_bindir}

I can do it but don't you want to do that and amend it? If you prefer
I can send a new patch but dunno if it is worth 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



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

* Re: [meta-oe][PATCH 1/1] xserver-nodm-init: exit 1 only if systemd is installed
  2011-10-11 20:00     ` Otavio Salvador
@ 2011-10-11 20:04       ` Otavio Salvador
  0 siblings, 0 replies; 5+ messages in thread
From: Otavio Salvador @ 2011-10-11 20:04 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Oct 11, 2011 at 17:00, Otavio Salvador <otavio@ossystems.com.br> wrote:
> On Tue, Oct 11, 2011 at 16:54, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> While you're at it, please change it to ${base_bindir}
>
> I can do it but don't you want to do that and amend it? If you prefer
> I can send a new patch but dunno if it is worth it.

I fixed it on my github branch, you can pull it from there fixed.

-- 
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



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

end of thread, other threads:[~2011-10-11 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11 19:46 [meta-oe][PATCH 0/1] Avoid unrequired runtime enforcement for postinst Otavio Salvador
2011-10-11 19:46 ` [meta-oe][PATCH 1/1] xserver-nodm-init: exit 1 only if systemd is installed Otavio Salvador
2011-10-11 19:54   ` Koen Kooi
2011-10-11 20:00     ` Otavio Salvador
2011-10-11 20:04       ` Otavio Salvador

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