All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit
@ 2011-11-10 21:37 Otavio Salvador
  2011-11-10 21:37 ` [PATCH 1/3] dhcp: generate initial leases files for server Otavio Salvador
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Otavio Salvador @ 2011-11-10 21:37 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 379c77d1516fe8fdbd1cd7063f709b5266872b03:

  populate_*.bbclass: Correct INSTALL variable name after recent multilib changes (2011-11-10 18:05:06 +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):
  dhcp: generate initial leases files for server
  util-linux: split mcookie onto a package
  xinit: rdepends on util-linux-mcookie to avoid brining whole
    util-linux

 meta/recipes-connectivity/dhcp/dhcp.inc           |    9 ++++++++-
 meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb      |    2 +-
 meta/recipes-core/util-linux/util-linux.inc       |    3 ++-
 meta/recipes-core/util-linux/util-linux_2.19.1.bb |    2 +-
 meta/recipes-graphics/xorg-app/xinit_1.3.0.bb     |    4 ++--
 5 files changed, 14 insertions(+), 6 deletions(-)

-- 
1.7.2.5




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

* [PATCH 1/3] dhcp: generate initial leases files for server
  2011-11-10 21:37 [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Otavio Salvador
@ 2011-11-10 21:37 ` Otavio Salvador
  2011-11-10 21:50   ` Paul Menzel
  2011-11-10 21:37 ` [PATCH 2/3] util-linux: split mcookie onto a package Otavio Salvador
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2011-11-10 21:37 UTC (permalink / raw)
  To: openembedded-core

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

diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index 1cc529d..f9d80e7 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -51,13 +51,15 @@ do_install_append () {
 		mv ${D}${sbindir}/dhclient ${D}${base_sbindir}/
 	fi
 	install -m 0755 ${S}/client/scripts/linux ${D}${base_sbindir}/dhclient-script
+
+	install -d ${D}${localstatedir}/lib/dhcp/
 }
 
 PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"
 
 FILES_${PN} = ""
 
-FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server"
+FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server ${localstatedir}/lib/dhcp/"
 RRECOMMENDS_dhcp-server = "dhcp-server-config"
 
 FILES_dhcp-server-config = "${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp/dhcpd.conf"
@@ -68,3 +70,8 @@ FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${
 RDEPENDS_dhcp-client = "bash"
 
 FILES_dhcp-omshell = "${bindir}/omshell"
+
+pkg_postinst_dhcp-server() {
+    touch $D/${localstatedir}/lib/dhcp/dhcpd.leases
+    touch $D/${localstatedir}/lib/dhcp/dhcpd6.leases
+}
diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb b/meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb
index 8ed7d76..2471d61 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 = "r3"
+PR = "r4"
 
 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] 9+ messages in thread

* [PATCH 2/3] util-linux: split mcookie onto a package
  2011-11-10 21:37 [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Otavio Salvador
  2011-11-10 21:37 ` [PATCH 1/3] dhcp: generate initial leases files for server Otavio Salvador
@ 2011-11-10 21:37 ` Otavio Salvador
  2011-11-10 21:57   ` Paul Menzel
  2011-11-10 21:37 ` [PATCH 3/3] xinit: rdepends on util-linux-mcookie to avoid brining whole util-linux Otavio Salvador
  2011-11-12  0:12 ` [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Saul Wold
  3 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2011-11-10 21:37 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/recipes-core/util-linux/util-linux.inc       |    3 ++-
 meta/recipes-core/util-linux/util-linux_2.19.1.bb |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 4db577c..dcf0ed9 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -30,7 +30,7 @@ PACKAGES =+ "util-linux-agetty util-linux-fdisk util-linux-cfdisk util-linux-sfd
              util-linux-mount util-linux-readprofile util-linux-libblkid \
              util-linux-libblkid-dev util-linux-libuuid util-linux-libuuid-dev \
              util-linux-uuidgen util-linux-lscpu util-linux-fsck util-linux-blkid \
-	     util-linux-chkdupexe util-linux-mkfs"
+	     util-linux-chkdupexe util-linux-mkfs util-linux-mcookie"
 
 EXTRA_OECONF = "--disable-use-tty-group --disable-makeinstall-chown --enable-elvtune --enable-init --enable-kill --enable-last \
  --enable-mesg --enable-partx --enable-raw --enable-rdev --enable-reset \
@@ -45,6 +45,7 @@ FILES_util-linux-sfdisk = "${sbindir}/sfdisk"
 FILES_util-linux-swaponoff = "${base_sbindir}/swapon.${PN} ${sbindir}/swapoff.${PN}"
 FILES_util-linux-losetup = "${base_sbindir}/losetup.${PN}"
 FILES_util-linux-mount = "${base_bindir}/mount.${PN}"
+FILES_util-linux-mcookie = "${bindir}/mcookie"
 FILES_util-linux-umount = "${base_bindir}/umount.${PN}"
 FILES_util-linux-readprofile = "${base_sbindir}/readprofile.${PN}"
 FILES_util-linux-uuidgen = "${bindir}/uuidgen"
diff --git a/meta/recipes-core/util-linux/util-linux_2.19.1.bb b/meta/recipes-core/util-linux/util-linux_2.19.1.bb
index fb5637e..e2fb727 100644
--- a/meta/recipes-core/util-linux/util-linux_2.19.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.19.1.bb
@@ -1,5 +1,5 @@
 MAJOR_VERSION = "2.19"
-PR = "r9"
+PR = "r10"
 require util-linux.inc
 
 # note that `lscpu' is under GPLv3+
-- 
1.7.2.5




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

* [PATCH 3/3] xinit: rdepends on util-linux-mcookie to avoid brining whole util-linux
  2011-11-10 21:37 [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Otavio Salvador
  2011-11-10 21:37 ` [PATCH 1/3] dhcp: generate initial leases files for server Otavio Salvador
  2011-11-10 21:37 ` [PATCH 2/3] util-linux: split mcookie onto a package Otavio Salvador
@ 2011-11-10 21:37 ` Otavio Salvador
  2011-11-10 23:11   ` Paul Menzel
  2011-11-12  0:12 ` [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Saul Wold
  3 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2011-11-10 21:37 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/recipes-graphics/xorg-app/xinit_1.3.0.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/xorg-app/xinit_1.3.0.bb b/meta/recipes-graphics/xorg-app/xinit_1.3.0.bb
index 6953ccc..08dfe12 100644
--- a/meta/recipes-graphics/xorg-app/xinit_1.3.0.bb
+++ b/meta/recipes-graphics/xorg-app/xinit_1.3.0.bb
@@ -10,12 +10,12 @@ then terminate."
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=0d4b5eef75f1584ccbdc5e4a34314407"
 
-PR = "r1"
+PR = "r2"
 PE = "1"
 
 EXTRA_OECONF = "ac_cv_path_MCOOKIE=${bindir}/mcookie"
 
-RDEPENDS_${PN} += "util-linux"
+RDEPENDS_${PN} += "util-linux-mcookie"
 
 FILES_${PN} += "${libdir}X11/xinit"
 
-- 
1.7.2.5




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

* Re: [PATCH 1/3] dhcp: generate initial leases files for server
  2011-11-10 21:37 ` [PATCH 1/3] dhcp: generate initial leases files for server Otavio Salvador
@ 2011-11-10 21:50   ` Paul Menzel
  2011-11-10 22:01     ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Menzel @ 2011-11-10 21:50 UTC (permalink / raw)
  To: openembedded-core

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

Am Donnerstag, den 10.11.2011, 21:37 +0000 schrieb Otavio Salvador:

What is the error message you are getting?

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

[…]


Thanks,

Paul

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [PATCH 2/3] util-linux: split mcookie onto a package
  2011-11-10 21:37 ` [PATCH 2/3] util-linux: split mcookie onto a package Otavio Salvador
@ 2011-11-10 21:57   ` Paul Menzel
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Menzel @ 2011-11-10 21:57 UTC (permalink / raw)
  To: openembedded-core

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

Am Donnerstag, den 10.11.2011, 21:37 +0000 schrieb Otavio Salvador:

Sau!, if you take this patch, please correct *i*nto in the commit
summary and add

`mcookie` is needed by `startx` and according to the manual page also by
`xauth` [1].

[1] http://linux.die.net/man/1/mcookie

as the commit message.

> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

[…]

Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>


Thanks,

Paul

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [PATCH 1/3] dhcp: generate initial leases files for server
  2011-11-10 21:50   ` Paul Menzel
@ 2011-11-10 22:01     ` Otavio Salvador
  0 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2011-11-10 22:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Nov 10, 2011 at 19:50, Paul Menzel
<paulepanter@users.sourceforge.net> wrote:
> Am Donnerstag, den 10.11.2011, 21:37 +0000 schrieb Otavio Salvador:
>
> What is the error message you are getting?
>
>> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>> ---
>>  meta/recipes-connectivity/dhcp/dhcp.inc      |    9 ++++++++-
>>  meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb |    2 +-
>>  2 files changed, 9 insertions(+), 2 deletions(-)
>
> […]

if not using the init script it fails as the leases are created by it.
I am using it using systemd and this fails without the leases thus
this allows it to work out of box.

-- 
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] 9+ messages in thread

* Re: [PATCH 3/3] xinit: rdepends on util-linux-mcookie to avoid brining whole util-linux
  2011-11-10 21:37 ` [PATCH 3/3] xinit: rdepends on util-linux-mcookie to avoid brining whole util-linux Otavio Salvador
@ 2011-11-10 23:11   ` Paul Menzel
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Menzel @ 2011-11-10 23:11 UTC (permalink / raw)
  To: openembedded-core

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

Am Donnerstag, den 10.11.2011, 21:37 +0000 schrieb Otavio Salvador:

s/brining/bringing in/

Commit message body:

With 

        commit 1053a6a8e15851ef139d8aa4683849fc2fc277e1
        Author: Paul Menzel <paulepanter@users.sourceforge.net>
        Date:   Tue Nov 8 13:00:32 2011 +0100
        
            xinit: Fix `startx` looking for `mcookie` in sysroot

`util-linux` was added as a run time dependency because it includes
`/usr/bin/mcookie` needed for `startx`. This dragged in 10 packages to
images using `startx`. Packaging `mcookie` separately in the previous
patch and only run time depending on `util-linux-mcookie` solves this
problem.

> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>

> ---
>  meta/recipes-graphics/xorg-app/xinit_1.3.0.bb |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

[…]


Thanks,

Paul

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit
  2011-11-10 21:37 [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Otavio Salvador
                   ` (2 preceding siblings ...)
  2011-11-10 21:37 ` [PATCH 3/3] xinit: rdepends on util-linux-mcookie to avoid brining whole util-linux Otavio Salvador
@ 2011-11-12  0:12 ` Saul Wold
  3 siblings, 0 replies; 9+ messages in thread
From: Saul Wold @ 2011-11-12  0:12 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 11/10/2011 01:37 PM, Otavio Salvador wrote:
> The following changes since commit 379c77d1516fe8fdbd1cd7063f709b5266872b03:
>
>    populate_*.bbclass: Correct INSTALL variable name after recent multilib changes (2011-11-10 18:05:06 +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):
>    dhcp: generate initial leases files for server
Need a better comment, I will update based on your email.

>    util-linux: split mcookie onto a package
>    xinit: rdepends on util-linux-mcookie to avoid brining whole
>      util-linux
>
Merged into OE-Core

Thanks
	Sau!


>   meta/recipes-connectivity/dhcp/dhcp.inc           |    9 ++++++++-
>   meta/recipes-connectivity/dhcp/dhcp_4.2.0.bb      |    2 +-
>   meta/recipes-core/util-linux/util-linux.inc       |    3 ++-
>   meta/recipes-core/util-linux/util-linux_2.19.1.bb |    2 +-
>   meta/recipes-graphics/xorg-app/xinit_1.3.0.bb     |    4 ++--
>   5 files changed, 14 insertions(+), 6 deletions(-)
>



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

end of thread, other threads:[~2011-11-12  0:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-10 21:37 [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Otavio Salvador
2011-11-10 21:37 ` [PATCH 1/3] dhcp: generate initial leases files for server Otavio Salvador
2011-11-10 21:50   ` Paul Menzel
2011-11-10 22:01     ` Otavio Salvador
2011-11-10 21:37 ` [PATCH 2/3] util-linux: split mcookie onto a package Otavio Salvador
2011-11-10 21:57   ` Paul Menzel
2011-11-10 21:37 ` [PATCH 3/3] xinit: rdepends on util-linux-mcookie to avoid brining whole util-linux Otavio Salvador
2011-11-10 23:11   ` Paul Menzel
2011-11-12  0:12 ` [PATCH 0/3] DHCP and reduction of amount of packages installer by xinit Saul Wold

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.