Re: [yocto] Files copied to /usr/local during installation get removed misteriously

2023-11-13 Thread Khem Raj
On Thu, Nov 9, 2023 at 10:02 PM Javier Casas Marín
 wrote:
>
> Hi,
> I have a recipe that creates some directories in /usr/local and copies there 
> some files using do_install:append
>
> inherit qmake5
> OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}"
> DEPENDS += "qtbase qtdeclarative qtmultimedia libgpiod"
>
> RDEPENDS:${PN} += "qtxmlpatterns qtdeclarative-qmlplugins qtbase-plugins 
> ttf-dejavu-sans qtquickcontrols qtquickcontrols2 qtfreevirtualkeyboard 
> libgpiod valgrind
>
> do_install:append () {
> install -d ${D}${bindir}
> install -d ${D}/usr/local/test
> install -m 0775 qt_test ${D}${bindir}
> install -m 0775 ${S}/test.db ${D}/usr/local/test
> cp -r ${WORKDIR}/Resources ${D}/usr/local/test/resources
> cp -r ${WORKDIR}/LocalFiles ${D}/usr/local/test/LocalFiles
> }
> FILES:${PN} += "${bindir}/qt_test"
> FILES:${PN} += "/opt/*"
> FILES:${PN} += "/usr/local/test/*"
>
> When I build the image, I see the folders appear in /usr/local as expected 
> while creating the rootfs but at some point they are removed and, by the time 
> the rootfs creation finishes, they are gone.
> If I take the ipk package and install it on the embedded device the folders 
> and files are created correctly so I guess that the recipe is fine but there 
> is some task during the rootfs creation that deletes all the files in 
> /usr/local (my folders are not the only ones that are deleted).
>
> Who could be doing that or how can I debug it to find the culprit?

There could be a rootfs postprocessing task which could be involked
after rootfs generation to do such tweaks. Look for what you have in
ROOTFS_POSTPROCESS_COMMAND variable.

>
>
> Kind regards,
> Javi
>
>
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61674): https://lists.yoctoproject.org/g/yocto/message/61674
Mute This Topic: https://lists.yoctoproject.org/mt/102502363/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] QA notification for completed autobuilder build (yocto-4.2.4.rc3)

2023-11-13 Thread Pokybuild User

A build flagged for QA (yocto-4.2.4.rc3) was completed on the autobuilder 
and is available at:


https://autobuilder.yocto.io/pub/releases/yocto-4.2.4.rc3


Build URL: 
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6188

Build hash information: 

bitbake: c7e094ec3beccef0bbbf67c100147c449d9c6836
meta-agl: bf791cba6a3bc53864bf719dc913cea352146f75
meta-arm: 9bcc166bd5bb717aa86bb0464621a36abc51fa19
meta-aws: b288fb9d29f67af79de07f039429fcf921e2abd3
meta-intel: 0ed9b8ed17878274b80dbf713f50aa253dcd
meta-mingw: d87d4f00b9c6068fff03929a4b0f231a942d3873
meta-openembedded: 39968837196cb48209b71e8852dd04a2f8ccdca8
meta-virtualization: b8db7002764712f2902fe9dea098c171b1128076
oecore: 23b5141400b2c676c806df3308f023f7c04e34e0
poky: 7235399a86b134e57d5eb783d7f1f57ca0439ae5



This is an automated message from the Yocto Project Autobuilder
Git: git://git.yoctoproject.org/yocto-autobuilder2
Email: richard.pur...@linuxfoundation.org


 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61673): https://lists.yoctoproject.org/g/yocto/message/61673
Mute This Topic: https://lists.yoctoproject.org/mt/102579219/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Files copied to /usr/local during installation get removed misteriously

2023-11-13 Thread Javier Casas Marín
Any help on this?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61672): https://lists.yoctoproject.org/g/yocto/message/61672
Mute This Topic: https://lists.yoctoproject.org/mt/102502363/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [ANNOUNCEMENT] Yocto Project 4.3 is Released

2023-11-13 Thread Lee Chee Yang
> -Original Message-
> From: Richard Purdie 
> Sent: Saturday, November 11, 2023 12:27 AM
> To: michael.opdenac...@bootlin.com; Lee, Chee Yang
> 
> Cc: yocto@lists.yoctoproject.org
> Subject: Re: [yocto] [ANNOUNCEMENT] Yocto Project 4.3 is Released
> 
> On Fri, 2023-11-10 at 15:57 +0100, Michael Opdenacker via 
> lists.yoctoproject.org
> wrote:
> > Hi Lee
> >
> > On 09.11.23 at 16:29, Lee Chee Yang wrote:
> > >
> > > Hi
> > >
> > > We are pleased to announce the Yocto Project 4.3 Release is now
> > > available for download.
> > >
> > >
> > > https://downloads.yoctoproject.org/releases/yocto/yocto-4.3/poky-15b
> > > 576c4101231d248fda7ae0824e1780e1a8901.tar.bz2
> > >
> > > http://mirrors.kernel.org/yocto/yocto/yocto-4.3/poky-15b576c4101231d
> > > 248fda7ae0824e1780e1a8901.tar.bz2
> > >
> > > A gpg signed version of these release notes is available at:
> > >
> > > http://downloads.yoctoproject.org/releases/yocto/yocto-4.3/RELEASENO
> > > TES
> > >
> >
> > Many thanks for the release. Maybe fore the next major release you
> > could mention the HTML version of the release notes, as well as the
> > migration notes, as they were available when the release was made:
> > https://docs.yoctoproject.org/dev/migration-guides/release-4.3.html
> >
> > That's a little better than the raw rst sources :)
> >
> > For release updates, I'm not sure that's possible, as the release
> > notes are usually available in HTML after the release is made.
> 
> There is always the option of tweaking the process to change that?
> 
 
I can send the draft release notes whenever it is ready, so it can be 
reviewed/merge/build ( while the release under QA or TSC review ) , and update 
it later if required to. 

Is the raw text release notes still required for next major release ( and any 
of the dot release for that serie )? 
( will still prepare the raw text release notes for current active series dot 
release )

Chee Yang

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61671): https://lists.yoctoproject.org/g/yocto/message/61671
Mute This Topic: https://lists.yoctoproject.org/mt/102487580/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [yocto-autobuilder-helper] Add toaster test builder

2023-11-13 Thread Richard Purdie
On Mon, 2023-11-13 at 13:21 -0500,
alexander.lussier-cul...@savoirfairelinux.com wrote:
> From: Alexander Lussier-Cullen 
> 
> Add a toaster test builder that runs the tox test suite using a new
> run-toaster-tests script.
> 
> Signed-off-by: Alexander Lussier-Cullen 
> 
> CC: richard.pur...@linuxfoundation.org
> ---
>  config.json   |  3 +++
>  scripts/run-toaster-tests | 22 ++
>  2 files changed, 25 insertions(+)
>  create mode 100644 scripts/run-toaster-tests
> 
> diff --git a/config.json b/config.json
> index d10a3a8..0c581d1 100644
> --- a/config.json
> +++ b/config.json
> @@ -1675,6 +1675,9 @@
>  "step1" : {
>  "BBTARGETS" : "core-image-patchtest"
>  }
> +},
> +"toaster" : {
> +"EXTRACMDS" : ["${SCRIPTSDIR}/run-toaster-tests 
> ${HELPERBUILDDIR} ${HELPERBUILDDIR}/.."]
>  }
>  },
>  "repo-defaults" : {
> diff --git a/scripts/run-toaster-tests b/scripts/run-toaster-tests
> new file mode 100644
> index 000..a785c36
> --- /dev/null
> +++ b/scripts/run-toaster-tests
> @@ -0,0 +1,22 @@
> +#!/bin/bash
> +#
> +# SPDX-License-Identifier: GPL-2.0-only
> +#
> +# Called with $1 as the build directory
> +# $2 as the path to poky
> +
> +set -e
> +set -u
> +set -o pipefail
> +set -x
> +
> +builddir=$(realpath "$1")
> +pokydir=$(realpath "$2")
> +
> +cd $builddir
> +mkdir -p toaster_logs
> +python3 -m venv venv --without-pip --system-site-packages
> +source venv/bin/activate
> +python3 -m pip install tox
> +
> +tox -c $pokydir/bitbake/lib/toaster/tox.ini

Thanks! I tested this and the first issue was:

https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/1

so I added a chmod a+x onto the commit which is on master-next of
yocto-autobuilder-helper.

This lead to:

https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/2
and
https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/3

which were because a worker with python 3.8/3.9/3.10 wasn't available
at the time of testing and I'm not restricting the worker set the
target is using.

I put a commit onto bitbake/poky master-next to add 3.11 and 3.12 to
tox.ini which leads to:

https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/4

which does appear to be running some testing with some errors.

So we're making progress :)

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61670): https://lists.yoctoproject.org/g/yocto/message/61670
Mute This Topic: https://lists.yoctoproject.org/mt/102567727/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [yocto-autobuilder-helper] Add toaster test builder

2023-11-13 Thread Alexander Lussier-Cullen
From: Alexander Lussier-Cullen 

Add a toaster test builder that runs the tox test suite using a new
run-toaster-tests script.

Signed-off-by: Alexander Lussier-Cullen 

CC: richard.pur...@linuxfoundation.org
---
 config.json   |  3 +++
 scripts/run-toaster-tests | 22 ++
 2 files changed, 25 insertions(+)
 create mode 100644 scripts/run-toaster-tests

diff --git a/config.json b/config.json
index d10a3a8..0c581d1 100644
--- a/config.json
+++ b/config.json
@@ -1675,6 +1675,9 @@
 "step1" : {
 "BBTARGETS" : "core-image-patchtest"
 }
+},
+"toaster" : {
+"EXTRACMDS" : ["${SCRIPTSDIR}/run-toaster-tests ${HELPERBUILDDIR} 
${HELPERBUILDDIR}/.."]
 }
 },
 "repo-defaults" : {
diff --git a/scripts/run-toaster-tests b/scripts/run-toaster-tests
new file mode 100644
index 000..a785c36
--- /dev/null
+++ b/scripts/run-toaster-tests
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Called with $1 as the build directory
+# $2 as the path to poky
+
+set -e
+set -u
+set -o pipefail
+set -x
+
+builddir=$(realpath "$1")
+pokydir=$(realpath "$2")
+
+cd $builddir
+mkdir -p toaster_logs
+python3 -m venv venv --without-pip --system-site-packages
+source venv/bin/activate
+python3 -m pip install tox
+
+tox -c $pokydir/bitbake/lib/toaster/tox.ini
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61669): https://lists.yoctoproject.org/g/yocto/message/61669
Mute This Topic: https://lists.yoctoproject.org/mt/102567727/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] ublox gps

2023-11-13 Thread Dave Hitchman
Hi there
I am trying to connect a ublox zed-f9p gps to a yocto i2c, I am bashing my head 
on this wall. Does anyone know of any starting point recipes that I could grab 
to look at and modify?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61668): https://lists.yoctoproject.org/g/yocto/message/61668
Mute This Topic: https://lists.yoctoproject.org/mt/102566114/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Problem when adding own tasks

2023-11-13 Thread Quentin Schulz via lists.yoctoproject.org

Hi,

On 11/11/23 18:05, Khem Raj via lists.yoctoproject.org wrote:

On Sat, Nov 11, 2023 at 4:04 AM athragared via lists.yoctoproject.org
 wrote:


Hello everyone, this is my first mail here, I hope this is the right "channel" 
for my question.

I am currently using the 'Kirkstone' branch of yocto and I have encountered a 
problem. I have written a .bbappend file for systemd in my own layer. Here I 
have written my own python function as follows:

python do_my_own_function(){
 # do something
}
addtask my_own_function before do_install

This seems to work most of the time. However, I would like to execute my own 
function AFTER the do_install. However, this does not seem to work.


Code says _before_ but you say you wanted it _after_ do_install is
run, so maybe change the directive to before, moreover, add anchors on
both sides
to ensure its run in certain order so maybe say before do_package
after do_install.



To add to Khem's answer, a task is only run if it is required.

A task is required because some other task requires it or if the user 
does (e.g. via bitbake -c  ).


When one adds a task **after** another one (taskB after taskA), the 
latter won't be run unless explicitly. This is why Khem was suggesting 
to add "before do_package" because do_package is a task that is very 
commonly executed during a normal package build. It is not necessarily 
where in the build process you want it to be, so think a bit before 
inserting a task between two other tasks, since both extremities matter.


Cheers,
Quentin


you can also look into postfuncs/prefuncs

do_install[postfuncs] += "do_my_own_function"


If I delete the build folder before building the image and then look in the 
log.task_order file I see that my own function is NOT executed. Other people on 
stackoverflow seem to have observed this problem as well.



So I wanted to ask how to solve the problem or debug it further?


Regards







-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61667): https://lists.yoctoproject.org/g/yocto/message/61667
Mute This Topic: https://lists.yoctoproject.org/mt/102524578/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] M+ & H bugs with Milestone Movements WW45

2023-11-13 Thread Stephen Jolley
All,

YP M+ or high bugs which moved to a new milestone in WW45 are listed below:
Priority Bug ID Short Description Changer Owner Was Became
Medium+ 12723  mysql
requires unicode and char length filtering david.re...@windriver.com
david.re...@windriver.com 4.3 M4 5.0 M2
13103  [Bug][QA
2.7 M1 rc1][Toaster] "Recipes" table  and  "machines" table are not
getting populated after clicking on imported layer as well as after
clicking Machines Tab on project page david.re...@windriver.com
david.re...@windriver.com 4.3 M4 5.0 M2
14311  valgrind
drd/tests ptest intermittent failure randy.macl...@windriver.com
randy.macl...@windriver.com 4.3 M4 5.0 M1
14430  valgrind
memcheck/tests/linux/stack_changes failure randy.macl...@windriver.com
randy.macl...@windriver.com 4.3 M4 5.0 M1
14905  Error in
compiling rustfmt does not cause do_compile to fail
randy.macl...@windriver.com yash.shi...@windriver.com 4.3 M4 5.0 M2
15180  AB-INT:
mips rust.RustSelfTestSystemEmulated.test_rust failure
randy.macl...@windriver.com sundeep.kokko...@windriver.com 4.3 M4 5.0 M2
15273  multiconfig
race in sstate/SDE with combined tmp/work-shared randy.macl...@windriver.com
richard.pur...@linuxfoundation.org 0.0.0 5.0 M1
15274  qemuarmv5
fails to boot with qemu lsi hw error randy.macl...@windriver.com
st...@sakoman.com 0.0.0 3.1.30
15276  perf:
setting PACKAGECONFIG in .bbappend does not work as expected
randy.macl...@windriver.com richard.pur...@linuxfoundation.org 0.0.0 5.0 M1
15277  Target DNF
doesn't work on qemuarmv5 randy.macl...@windriver.com
richard.pur...@linuxfoundation.org 0.0.0 5.0 M1

Thanks,



*Stephen K. Jolley*

*Yocto Project Program Manager*

(*Cell*:(208) 244-4460

* *Email*: *s
jolley.yp...@gmail.com *

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61666): https://lists.yoctoproject.org/g/yocto/message/61666
Mute This Topic: https://lists.yoctoproject.org/mt/102559437/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Enhancements/Bugs closed WW45!

2023-11-13 Thread Stephen Jolley
All,

The below were the owners of enhancements or bugs closed during the last
week!
Who Count
david.re...@windriver.com 3
richard.pur...@linuxfoundation.org 2
jpewhac...@gmail.com 1
Grand Total 6

Thanks,



*Stephen K. Jolley*

*Yocto Project Program Manager*

(*Cell*:(208) 244-4460

* *Email*: *s
jolley.yp...@gmail.com *

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61665): https://lists.yoctoproject.org/g/yocto/message/61665
Mute This Topic: https://lists.yoctoproject.org/mt/102559419/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Current high bug count owners for Yocto Project 5.0

2023-11-13 Thread Stephen Jolley
All,

Below is the list of top 30 bug owners as of the end of WW45 who have open
medium or higher bugs and enhancements against YP 5.0. There are 115
possible work days left until the final release candidates for YP 5.0 needs
to be released.
Who Count
michael.opdenac...@bootlin.com 36
ross.bur...@arm.com 33
richard.pur...@linuxfoundation.org 26
bruce.ashfi...@gmail.com 25
randy.macl...@windriver.com 23
david.re...@windriver.com 16
jpewhac...@gmail.com 10
pi...@pidge.org 9
pa...@zhukoff.net 8
tim.orl...@konsulko.com 7
yoann.con...@smile.fr 5
yash.shi...@windriver.com 4
sakib.sa...@windriver.com 3
kexin@windriver.com 2
jon.ma...@arm.com 2
alexis.loth...@bootlin.com 2
alexandre.bell...@bootlin.com 2
tvgamb...@gmail.com 1
thr...@amazon.de 1
thomas.per...@bootlin.com 1
sundeep.kokko...@windriver.com 1
rybczyn...@gmail.com 1
rpj...@crashcourse.ca 1
p.lob...@welotec.com 1
mark.asselst...@windriver.com 1
louis.ran...@syslinbit.com 1
jens.ge...@desy.de 1
fathi.bou...@linaro.org 1
alex.kana...@gmail.com 1
alejan...@enedino.org 1
Grand Total 226

Thanks,



*Stephen K. Jolley*

*Yocto Project Program Manager*

(*Cell*:(208) 244-4460

* *Email*: *s
jolley.yp...@gmail.com *

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61664): https://lists.yoctoproject.org/g/yocto/message/61664
Mute This Topic: https://lists.yoctoproject.org/mt/102559354/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Yocto Project Newcomer & Unassigned Bugs - Help Needed

2023-11-13 Thread Stephen Jolley
All,

The triage team is starting to try and collect up and classify bugs which a
newcomer to the project would be able to work on in a way which means
people can find them. They're being listed on the triage page under the
appropriate heading:
https://wiki.yoctoproject.org/wiki/Bug_Triage#Newcomer_Bugs Also please
review:
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded and
how to create a bugzilla account at:
https://bugzilla.yoctoproject.org/createaccount.cgi

The idea is these bugs should be straight forward for a person to help work
on who doesn't have deep experience with the project. If anyone can help,
please take ownership of the bug and send patches! If anyone needs
help/advice there are people on irc who can likely do so, or some of the
more experienced contributors will likely be happy to help too.

Also, 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 416
unassigned or newcomer 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, “4.3”, “4.4”, "4.99" and "Future", the more
pressing/urgent issues being in "4.3" and then “4.4”.

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 (sjolley.yp...@gmail.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_Archive#Unassigned_or_Newcomer_Bugs

Thanks,



*Stephen K. Jolley*

*Yocto Project Program Manager*

(*Cell*:(208) 244-4460

* *Email*: *s
jolley.yp...@gmail.com *

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61663): https://lists.yoctoproject.org/g/yocto/message/61663
Mute This Topic: https://lists.yoctoproject.org/mt/102559256/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-