[yocto] Bitbake Recipe Failing

2018-11-26 Thread nick
Greetings All,

I am wondering how to forget about package QA in the best way possible just to 
get this basic hello world test package to build in a
new layer I created:
SUMMARY = "Simple Hello World Application"
DESCRIPTION = "A test application to demonstrate how to create a recipe \
   by directly compiling C files with BitBake."

SECTION = "examples"
PRIORITY = "optional"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
   file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://hello-1.0.tgz"

S = "${WORKDIR}"

do_compile() {
${CC} -c helloprint.c
${CC} -c hello.c
${CC} -o hello hello.o helloprint.o
}

do_install() {
install -d ${D}${bindir}
install -m 0755 hello ${D}${bindir}
}

This the errors when I run it with bitbake -b recipe name in the layer's folder:

ERROR: hello-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: 
'/home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/packages-split/hello/usr/bin/hello'
 [ldflags]
WARNING: hello-1.0-r0 do_package_qa: QA Issue: hello rdepends on glibc, but it 
isn't a build dependency, missing glibc in DEPENDS or PACKAGECONFIG? 
[build-deps]
ERROR: hello-1.0-r0 do_package_qa: QA run found fatal errors. Please consider 
fixing them.
ERROR: hello-1.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: 
/home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/temp/log.do_package_qa.29042
ERROR: Task (/home/nick/poky/build/layer/hello_1.0.bb:do_package_qa) failed 
with exit code '1'
NOTE: Tasks Summary: Attempted 13 tasks of which 7 didn't need to be rerun and 
1 failed.


Huge Thanks,

Nick
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Mercurial fetcher doesn't work for me (patch included)

2018-11-26 Thread Aaron Cohen
Also, what is it that is supposed to create the
$(BUILDDIR)/tmp/hosttools/hg symlink?

For some reason, this link is not created for me automatically. It works
fine if I create it manually.

--Aaron


On Mon, Nov 26, 2018 at 3:34 PM Aaron Cohen  wrote:

> I'm trying to write a recipe for a local repo that is kept in mercurial,
> and encountering the following problem:
>
>
>> Traceback (most recent call last):
>>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
>> line 808, in DataSmart.getVarFlag(var='PV', flag='_content', expand=True,
>> noweakdefault=False, parsing=False, retparser=False):
>>  if expand or retparser:
>> >parser = self.expandWithRefs(value, cachename)
>>  if expand:
>>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
>> line 416, in DataSmart.expandWithRefs(s='0.0.4+git${SRCPV}', varname='PV'):
>>  try:
>> >s = __expand_var_regexp__.sub(varparse.var_sub, s)
>>  try:
>>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
>> line 108, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(9,
>> 17), match='${SRCPV}'>):
>>  raise Exception("variable %s references itself!"
>> % self.varname)
>> >var = self.d.getVarFlag(key, "_content")
>>  self.references.add(key)
>>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
>> line 808, in DataSmart.getVarFlag(var='SRCPV', flag='_content',
>> expand=True, noweakdefault=False, parsing=False, retparser=False):
>>  if expand or retparser:
>> >parser = self.expandWithRefs(value, cachename)
>>  if expand:
>>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
>> line 430, in DataSmart.expandWithRefs(s='${@bb.fetch2.get_srcrev(d)}',
>> varname='SRCPV'):
>>  except Exception as exc:
>> >raise ExpansionError(varname, s, exc) from exc
>>
>> bb.data_smart.ExpansionError: Failure expanding variable SRCPV,
>> expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception
>> AttributeError: 'FetchData' object has no attribute 'moddir'
>
>
> I've fixed this with the following patch, which moves some code in the Hg
> fetcher to later in the urldata_init method, after some necessary variables
> have been initialized. I'm not sure if I'm alone in seeing this problem or
> not?
>
> Thanks for any help,
> Aaron
>
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Mercurial fetcher doesn't work for me (patch included)

2018-11-26 Thread Aaron Cohen
I'm trying to write a recipe for a local repo that is kept in mercurial,
and encountering the following problem:


> Traceback (most recent call last):
>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
> line 808, in DataSmart.getVarFlag(var='PV', flag='_content', expand=True,
> noweakdefault=False, parsing=False, retparser=False):
>  if expand or retparser:
> >parser = self.expandWithRefs(value, cachename)
>  if expand:
>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
> line 416, in DataSmart.expandWithRefs(s='0.0.4+git${SRCPV}', varname='PV'):
>  try:
> >s = __expand_var_regexp__.sub(varparse.var_sub, s)
>  try:
>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
> line 108, in VariableParse.var_sub(match=<_sre.SRE_Match object; span=(9,
> 17), match='${SRCPV}'>):
>  raise Exception("variable %s references itself!"
> % self.varname)
> >var = self.d.getVarFlag(key, "_content")
>  self.references.add(key)
>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
> line 808, in DataSmart.getVarFlag(var='SRCPV', flag='_content',
> expand=True, noweakdefault=False, parsing=False, retparser=False):
>  if expand or retparser:
> >parser = self.expandWithRefs(value, cachename)
>  if expand:
>   File "/home/joel-cohen/code/waveos2/poky/bitbake/lib/bb/data_smart.py",
> line 430, in DataSmart.expandWithRefs(s='${@bb.fetch2.get_srcrev(d)}',
> varname='SRCPV'):
>  except Exception as exc:
> >raise ExpansionError(varname, s, exc) from exc
>
> bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression
> was ${@bb.fetch2.get_srcrev(d)} which triggered exception AttributeError:
> 'FetchData' object has no attribute 'moddir'


I've fixed this with the following patch, which moves some code in the Hg
fetcher to later in the urldata_init method, after some necessary variables
have been initialized. I'm not sure if I'm alone in seeing this problem or
not?

Thanks for any help,
Aaron
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index 936d043..9790e1b 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -66,13 +66,6 @@ class Hg(FetchMethod):
 else:
 ud.proto = "hg"
 
-ud.setup_revisions(d)
-
-if 'rev' in ud.parm:
-ud.revision = ud.parm['rev']
-elif not ud.revision:
-ud.revision = self.latest_revision(ud, d)
-
 # Create paths to mercurial checkouts
 hgsrcname = '%s_%s_%s' % (ud.module.replace('/', '.'), \
 ud.host, ud.path.replace('/', '.'))
@@ -86,6 +79,14 @@ class Hg(FetchMethod):
 ud.localfile = ud.moddir
 ud.basecmd = d.getVar("FETCHCMD_hg") or "/usr/bin/env hg"
 
+ud.setup_revisions(d)
+
+if 'rev' in ud.parm:
+ud.revision = ud.parm['rev']
+elif not ud.revision:
+ud.revision = self.latest_revision(ud, d)
+
+
 ud.write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS")
 
 def need_update(self, ud, d):
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto Project Unassigned Bugs - Help Needed

2018-11-26 Thread Jolley, Stephen K
All,



The triage team meets weekly and does its best to handle the bugs reported into 
the bugzilla. The number of people attending that meeting has fallen, as have 
the number of people available to help fix bugs. One of the things we hear 
users report is they don't know how to help. We (the triage team) are therefore 
going to start reporting out the currently 297 unassigned bugs.



We're hoping people may be able to spare some time now and again to help out 
with these.



Bugs are split into two types, "true bugs" where things don't work as they 
should and "enhancements" which are features we'd want to add to the system.



There are also roughly four different "priority" classes right now, "2.7", 
"2.8", "2.99" and "Future", the more pressing/urgent issues being in "2.7" and 
then "2.8".



Please review this link and if a bug is something you would be able to help 
with either take ownership of the bug, or send me 
(stephen.k.jol...@intel.com) an e-mail with 
the bug number you would like and I will assign it to you (please make sure you 
have a bugzilla account).



The list is at: https://wiki.yoctoproject.org/wiki/Bug_Triage#Unassigned_Bugs


Thanks,

Stephen K. Jolley
Yocto Project Program Manager
INTEL, MS JF1-255, 2111 N.E. 25th Avenue, Hillsboro, OR 97124
*Cell:(208) 244-4460
* Email: stephen.k.jol...@intel.com

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] GLIBC_GENERATE_LOCALES setting not generating locales

2018-11-26 Thread Conor Slater
Dear All,

I'm having trouble adding locales to my image.

If I make changes to GLIBC_GENERATE_LOCALES in my local.conf glibc-locales
will rebuild but only the default locales are present:
$ locale -a
C
POSIX
en_US

The locales are listed when I run this before building the image:
$ bitbake -e gmpanel-image | grep -e "^GLIBC_GENERATE_LOCALES="
GLIBC_GENERATE_LOCALES="fr_CH.UTF8 en_GB.UTF-8 en_US.UTF-8"

Are there other settings I have to change or any packages I have to add to
the image for this to work?

You can find information on my configuration below:

Best Regards,

Conor.

Build Configuration:
BB_VERSION   = "1.38.0"
BUILD_SYS= "x86_64-linux"
NATIVELSBSTRING  = "universal"
TARGET_SYS   = "arm-poky-linux-gnueabi"
MACHINE  = "raspberrypi3"
DISTRO   = "gmpanel"
DISTRO_VERSION   = "1.0"
TUNE_FEATURES= "arm armv7ve vfp thumb neon vfpv4
callconvention-hard cortexa7"
TARGET_FPU   = "hard"
meta
meta-poky= "sumo:d240b885f26e9b05c8db0364ab2ace9796709aad"
meta-oe
meta-networking
meta-python
meta-perl
meta-webserver   = "sumo:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966"
meta-rust= "sumo:3efa0f069ffe4dfcb3531ea89834e69cd2257157"
meta-browser = "master:b5fa3f598236a58da6217852340f5f8dd01c9a71"
meta-security= "sumo:1e4b45ca888188b4eb838cb29b501ee004237552"
meta-raspberrypi = "sumo:2d40b21bc8a9ef7f329ed0ad410f8d227b97"
meta-gmpanel = "sumo-dev:2350072a65ce361548be7a23c78358191b9da555"
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Not able to access static port.

2018-11-26 Thread Dheeraj koshti
Hi All,

I have one firmware [Reliagate 10-11] which has 'Yocto' running inside it.

It's 'eth0' port was having static IP 172.16.0.1 which was used to open
it's admin portal.

By mistake I made 'eth0' port DHCP and I am not able to open admin portal
since then.

I modified '/etc/network/interfaces' file for 'eth0' a below.
auto eth0
iface eth0 inet static
address 172.16.0.1
netmask 255.255.255.0

Still I am not able to ping the 172.16.0.1 IP.
Please advise me how should I proceed.

Thank you,
Dheeraj Koshti
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Date/Time Update Without NTP

2018-11-26 Thread Belisko Marek
On Mon, Nov 26, 2018 at 12:57 PM Donal Morrissey
 wrote:
>
> Hi There,
>
> I'm using yocto sumo with systemd, and have an issue where I can't identify 
> which service is grabbing time from the ethernet based network.
>
> If I start the unit without a network connection, the time is reported as 
> EPOC. As soon as I connect the network, the date/time is updated. However, 
> there isn't anything in the logs that I can see which tells details of the 
> service which has updated time. Also, the ntpd binary is not installed.
>
> Is there a time service, other than NTP, which would typically be enabled on 
> Yocto builds?
it should be probably systemd-timesyncd service (check if it's running)
>
> Cheers,
> Donal
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

BR,

marek
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Date/Time Update Without NTP

2018-11-26 Thread Donal Morrissey
Hi There,

I'm using yocto sumo with systemd, and have an issue where I can't identify
which service is grabbing time from the ethernet based network.

If I start the unit without a network connection, the time is reported as
EPOC. As soon as I connect the network, the date/time is updated. However,
there isn't anything in the logs that I can see which tells details of the
service which has updated time. Also, the ntpd binary is not installed.

Is there a time service, other than NTP, which would typically be enabled
on Yocto builds?

Cheers,
Donal
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-selinux] Request for 'thud' branch

2018-11-26 Thread Enrico Scholz
Hello,

I would like to provide some content[1] for meta-selinux[2], but all
this is based/tested on 'thud' only.  Would it be possible to create a
'thud' branch and update the corresponding LAYERSERIES_COMPAT_selinux?



Thanks
Enrico

Footnotes: 
[1]  
https://gitlab.com/ensc-groups/bpi-router/de.ensc.bpi-router/blob/master/meta-core/classes/selinux-policy.bbclass
 
https://gitlab.com/ensc-groups/bpi-router/de.ensc.bpi-router/tree/master/meta-core/recipes-selinux

[2]  https://git.yoctoproject.org/cgit/cgit.cgi/meta-selinux/
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] meta/recipes-devtools/python/python3_3.5.5.bb - no venv module

2018-11-26 Thread Conor Slater
Hello Ross,

Thanks for getting back to me.

I'm on sumo.

Here's what I got:

$ oe-pkgdata-util find-path */venv/*.py
python3-misc: /usr/lib/python3.5/venv/__main__.py
python3-misc: /usr/lib/python3.5/venv/__init__.py

I added python-misc to my image and the venv module is installed now.

Thanks again for your help.

Best Regards,

Conor.

On Mon, 26 Nov 2018 at 12:04, Burton, Ross  wrote:

> On Mon, 26 Nov 2018 at 08:11, Conor Slater  wrote:
> > After adding python3 to the install I appear to be missing the standard
> Python module venv. The module should be a standard part of Python 3.5.5.
> >
> > Has this been disabled? If so, how and where?
> >
> > How do I enable it so it is built?
>
> What release are you using?  There was a slight packaging problem so
> it only just got put in the 'proper' place.  You can use
> oe-pkgdata-util to find out what package it is in, so you can add it
> to your image.  For example for me:
>
> $ oe-pkgdata-util find-path */venv/*.py
> python3-venv: /usr/lib/python3.5/venv/__main__.py
> python3-venv: /usr/lib/python3.5/venv/__init__.py
>
> Ross
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] meta/recipes-devtools/python/python3_3.5.5.bb - no venv module

2018-11-26 Thread Burton, Ross
On Mon, 26 Nov 2018 at 08:11, Conor Slater  wrote:
> After adding python3 to the install I appear to be missing the standard 
> Python module venv. The module should be a standard part of Python 3.5.5.
>
> Has this been disabled? If so, how and where?
>
> How do I enable it so it is built?

What release are you using?  There was a slight packaging problem so
it only just got put in the 'proper' place.  You can use
oe-pkgdata-util to find out what package it is in, so you can add it
to your image.  For example for me:

$ oe-pkgdata-util find-path */venv/*.py
python3-venv: /usr/lib/python3.5/venv/__main__.py
python3-venv: /usr/lib/python3.5/venv/__init__.py

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] meta/recipes-devtools/python/python3_3.5.5.bb - no venv module

2018-11-26 Thread Conor Slater
Dear All,

After adding python3 to the install I appear to be missing the standard
Python module venv. The module should be a standard part of Python 3.5.5.

Has this been disabled? If so, how and where?

How do I enable it so it is built?

Best Regards,

Conor.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto