Re: [OE-core] [PATCH] Install list-records with resolvconf package

2014-08-10 Thread Jate S
I am following up on this patch.

On Mon, Jun 23, 2014 at 11:07 AM, Jate S jate...@gmail.com wrote:
 From: Jate Sujjavanich jate...@gmail.com
 Date: Mon, Jun 23, 2014 at 10:16 AM
 Subject: [PATCH] Install list-records with resolvconf package
 To: openembedded-de...@lists.openembedded.org, s...@linux.intel.com
 Cc: Jate Sujjavanich jate...@gmail.com


 The resolvconf script uses /lib/resolvconf/list-records, but the recipe
 does not install it. This causes an error when /etc/resolvconf/update.d
 runs.

 Signed-off-by: Jate Sujjavanich jate...@gmail.com
 ---
  .../resolvconf/resolvconf_1.75.bb  |6 ++
  1 file changed, 6 insertions(+)

 diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
 b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
 index 7310c83..77eac7a 100644
 --- a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
 +++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
 @@ -40,8 +40,14 @@ do_install () {
 install -m 0755 bin/resolvconf ${D}${base_sbindir}/
 install -m 0644 README ${D}${docdir}/${P}/
 install -m 0644 man/resolvconf.8 ${D}${mandir}/man8/
 +
 +   # resolvconf requires /lib/resolvconf/list-records
 +   install -d ${D}${base_libdir}/${BPN}
 +   install -m 0755 ${S}/bin/list-records ${D}${base_libdir}/${BPN}
  }

 +FILES_${PN} += /lib/resolvconf/
 +
  pkg_postinst_${PN} () {
 if [ -z $D ]; then
 if command -v systemd-tmpfiles /dev/null; then
 --
 1.7.9.5
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] python2: Add PACKAGECONFIG for tkinter to support tk from meta-oe

2014-07-20 Thread Jate S
The presence of the tk library determines whether python's compile
task will build tkinter. Then the presence of python-tkinter in
IMAGE_INSTALL will then determine whether it is installed.

In the absence of tk provided by meta-oe, the python recipe will
install an empty python-tkinter package.

I cannot think of a cleaner way to do this right now. Ideally the
package python-tkinter could trigger a python DEPENDS on tk...


Martin, you originally suggested the PACKAGECONFIG. Do you have any
further thoughts on this?

- Jate S.


On Mon, Jul 14, 2014 at 2:32 PM, Enrico Scholz
enrico.sch...@sigma-chemnitz.de wrote:
 Jate S jate...@gmail.com writes:

 Python 2.7.x does not use an explicit configure option for tk support.
 Instead, it tries to detect the tk and tcl libraries before compiling
 python-tkinter.

 Your patch does not solve the issue of non-deterministic builds.  When
 tk was added by some other way, python will get tkinter support although
 PACKAGECONFIG was not set.

 An idea to make build deterministic might be patching of detect_modules()
 in setup.py to add disabled modules to 'missing'.  E.g.

 | missing.append('_tkinter')
 |
 |+missing.extend(os.environ('OE_HACK_MISSING').split())
 | return missing

 Probably there are better/cleaner ways but I am not familar with python
 distutils.


 Enrico
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] python2: Add PACKAGECONFIG for tkinter to support tk from meta-oe

2014-07-14 Thread Jate S
Python 2.7.x does not use an explicit configure option for tk support.
Instead, it tries to detect the tk and tcl libraries before compiling
python-tkinter.

In PACKAGECONFIG[*], items three and four are the DEPENDS and RDEPENDS,
respectively. They are only added to the python DEPENDS/RDEPENDS when the
user adds tkinter to the PACKAGECONFIG value.

This thread contains more discussion:

https://lists.yoctoproject.org/pipermail/yocto/2014-July/thread.html#20415

- Jate S.



On Mon, Jul 14, 2014 at 11:31 AM, Enrico Scholz 
enrico.sch...@sigma-chemnitz.de wrote:

 Jate Sujjavanich jatedev-re5jqeeqqe8avxtiumw...@public.gmane.org
 writes:

  +PACKAGECONFIG[tkinter] = ,,tk,tk tk-lib

 What do you want to reach with this?  Afais, build is not more
 deterministic
 than before and requiring both 'tk' and 'tk-lib' when 'tkinter' is *not*
 enabled does not look sane to me either.

 You probably want something like

 | PACKAGECONFIG[tkinter]=--with-tkinter, --without-tkinter, tk tk-lib

 although I do not know/checked whether '--with*-tkinter' is supported by
 python's configure script.


 Enrico
 --
 ___
 Openembedded-core mailing list
 Openembedded-core@lists.openembedded.org
 http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Fwd: [PATCH] Install list-records with resolvconf package

2014-06-23 Thread Jate S
I had sent this to the wrong list.

-- Forwarded message --
From: Jate Sujjavanich jate...@gmail.com
Date: Mon, Jun 23, 2014 at 10:16 AM
Subject: [PATCH] Install list-records with resolvconf package
To: openembedded-de...@lists.openembedded.org, s...@linux.intel.com
Cc: Jate Sujjavanich jate...@gmail.com


The resolvconf script uses /lib/resolvconf/list-records, but the recipe
does not install it. This causes an error when /etc/resolvconf/update.d
runs.

Signed-off-by: Jate Sujjavanich jate...@gmail.com
---
 .../resolvconf/resolvconf_1.75.bb  |6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
index 7310c83..77eac7a 100644
--- a/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
+++ b/meta/recipes-connectivity/resolvconf/resolvconf_1.75.bb
@@ -40,8 +40,14 @@ do_install () {
install -m 0755 bin/resolvconf ${D}${base_sbindir}/
install -m 0644 README ${D}${docdir}/${P}/
install -m 0644 man/resolvconf.8 ${D}${mandir}/man8/
+
+   # resolvconf requires /lib/resolvconf/list-records
+   install -d ${D}${base_libdir}/${BPN}
+   install -m 0755 ${S}/bin/list-records ${D}${base_libdir}/${BPN}
 }

+FILES_${PN} += /lib/resolvconf/
+
 pkg_postinst_${PN} () {
if [ -z $D ]; then
if command -v systemd-tmpfiles /dev/null; then
--
1.7.9.5
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] resolvconf bugs

2014-06-20 Thread Jate S
I have been using the resolvconf recipe, and I have discovered a few
things which keep it from working.

The resolvconf script uses /lib/resolvconf/list-records, but the
recipe does not install it. This causes an error when
/etc/resolvconf/update.d/libc runs. This can be resolved by adding the
list-records script.

I am using system V init. The initscripts recipe generates the
symbolic link to /etc/resolv.conf, but resolvconf checks this and
generates a warning. I have fixed this by adding the correct symbolic
link to this package. This overrides the link created by initscripts
Is this compatible with resolv.conf generated in a systemd based
system?


- Jate S.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] useradd: Add dependency on pseudo for setscene task

2014-04-10 Thread Jate S
useradd: Add dependency on pseudo for setscene task

Recipes inheriting useradd depend on pseudo-native when running
task do_populate_sysroot_setscene. This fix allows
the sstate-cache result to be used and prevents a rebuild.

Signed-off-by: Jate Sujjavanich jate...@gmail.com

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index a850e9d..d40fc71 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -119,6 +119,7 @@ SYSROOTPOSTFUNC_class-native = 
 SYSROOTPOSTFUNC_class-nativesdk = 

 USERADDSETSCENEDEPS = ${MLPREFIX}base-passwd:do_populate_sysroot_setscene shad
+USERADDSETSCENEDEPS += pseudo-native:do_populate_sysroot_setscene
 USERADDSETSCENEDEPS_virtclass-cross = 
 USERADDSETSCENEDEPS_class-native = 
 USERADDSETSCENEDEPS_class-nativesdk = 
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [RFC][PATCH] samba: remove talloc from DEPENDS

2014-04-04 Thread Jate S
I've only tried this out on dora. There are no other changes, so I
think it should work for newer branches.

samba: remove talloc from DEPENDS

Samba has a DEPENDS on talloc, but the recipe runs configure
--without-libtalloc.

The dependency tree causes a rebuild when using a PREMIRROR sstate
cache. Removing talloc from DEPENDS fixes the problem.

Signed-off-by: Jate Sujjavanich jate...@gmail.com

diff --git a/meta-oe/recipes-connectivity/samba/samba.inc b/meta-oe/recipes-conn
index 7391bbf..42979c8 100644
--- a/meta-oe/recipes-connectivity/samba/samba.inc
+++ b/meta-oe/recipes-connectivity/samba/samba.inc
@@ -1,6 +1,6 @@
 SECTION = console/network
 LICENSE = GPL-3.0
-DEPENDS = readline virtual/libiconv talloc zlib popt
+DEPENDS = readline virtual/libiconv zlib popt

 SRC_URI = http://samba.org/samba/ftp/stable/samba-${PV}.tar.gz \
file://volatiles.03_samba \
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core