Date   

[PATCH yocto-autobuilder-helper 2/6] scripts: run-docs-build: allow to pass buildtools script and docbook tarball paths

Quentin Schulz
 

From: Quentin Schulz <quentin.schulz@...>

Currently, the path to buildtools script and docbook tarball are
hardcoded to work on Yocto Project Autobuilder. However, this makes it
harder to contribute to this script because it is very unlikely those
paths exist on a developer PC.

Instead, let's allow to override variables by using the environment and
make the current hardcoded values the default ones.

Cc: Quentin Schulz <foss+yocto@...>
Signed-off-by: Quentin Schulz <quentin.schulz@...>
---
scripts/run-docs-build | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index 6e25549..6569928 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -2,6 +2,12 @@
# Called with $1 as the build directory
# $2 as the path to yocto-docs
# $3 as the path to bitbake
+#
+# Environment variables:
+# - docs_buildtools as the path to buildtools script for the docs.
+# Can be found here: https://autobuilder.yocto.io/pub/buildtools/
+# - docbookarchive as the path to old (pre 3.1.5 and Sphinx migration) docs tarball
+# Can be found here: https://downloads.yoctoproject.org/mirror/docbook-mirror/docbook-archives-20201105.tar.xz

set -e
set -u
@@ -11,7 +17,7 @@ set -x
builddir=$(realpath "$1")
ypdocs=$(realpath "$2/documentation/")
bbdocs=$(realpath "$3/doc/")
-docs_buildtools=/srv/autobuilder/autobuilder.yocto.io/pub/buildtools/x86_64-buildtools-docs-nativesdk-standalone-3.2+snapshot-20201105.sh
+docs_buildtools=${docs_buildtools:-/srv/autobuilder/autobuilder.yocto.io/pub/buildtools/x86_64-buildtools-docs-nativesdk-standalone-3.2+snapshot-20201105.sh}
outputdir=$builddir/output
scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"

@@ -23,7 +29,7 @@ $docs_buildtools -y -d $builddir/buildtools

# Getting the old docbook built docs from an archive. Not rebuilding them.
#wget https://downloads.yoctoproject.org/mirror/docbook-mirror/docbook-archives-20201105.tar.xz
-docbookarchive=/srv/autobuilder/autobuilder.yocto.io/pub/docbook-mirror/docbook-archives-20201105.tar.xz
+docbookarchive=${docbookarchive:-/srv/autobuilder/autobuilder.yocto.io/pub/docbook-mirror/docbook-archives-20201105.tar.xz}
mkdir $outputdir
cd $outputdir
echo Extracing old content from archive
--
2.35.1


[PATCH yocto-autobuilder-helper 1/6] scripts: run-docs-build: transform argument paths into absolute paths

Quentin Schulz
 

From: Quentin Schulz <quentin.schulz@...>

The script is written in such a way that absolute paths are expected.
Instead of failing weirdly at some point in the script, let's just make
all paths passed to this script absolute by calling realpath on them.

Cc: Quentin Schulz <foss+yocto@...>
Signed-off-by: Quentin Schulz <quentin.schulz@...>
---
scripts/run-docs-build | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index c501feb..6e25549 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -8,9 +8,9 @@ set -u
set -o pipefail
set -x

-builddir=$1
-ypdocs=$2/documentation/
-bbdocs=$3/doc/
+builddir=$(realpath "$1")
+ypdocs=$(realpath "$2/documentation/")
+bbdocs=$(realpath "$3/doc/")
docs_buildtools=/srv/autobuilder/autobuilder.yocto.io/pub/buildtools/x86_64-buildtools-docs-nativesdk-standalone-3.2+snapshot-20201105.sh
outputdir=$builddir/output
scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
--
2.35.1


[RFC PATCH] docs: update Bitbake objects.inv location for master branch

Quentin Schulz
 

From: Quentin Schulz <quentin.schulz@...>

master branch of Bitbake is now located at docs.yoctoproject.org/dev
instead of docs.yoctoproject.org so let's update the switchers and
set_versions.py to reflect that change.

Cc: Quentin Schulz <foss+yocto@...>
Signed-off-by: Quentin Schulz <quentin.schulz@...>
---
documentation/set_versions.py | 2 +-
documentation/sphinx-static/switchers.js.in | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index 8ae02b11f..0086e9bea 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -128,7 +128,7 @@ else:
if branch == "master":
ourseries = devbranch
docconfver = "dev"
- bitbakeversion = ""
+ bitbakeversion = "dev"
elif branch in release_series:
ourseries = branch
if branch in bitbake_mapping:
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in
index 408e23a71..4966b3033 100644
--- a/documentation/sphinx-static/switchers.js.in
+++ b/documentation/sphinx-static/switchers.js.in
@@ -149,11 +149,9 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
var docroot = get_docroot_url()

var new_versionpath = selected_version + '/';
- if (selected_version == "dev")
- new_versionpath = '';

- // dev versions have no version prefix
- if (current_version == "dev") {
+ // latest tag is also the default page (without version information)
+ if (docroot.endsWith(current_version + '/') == false) {
var new_url = docroot + new_versionpath + url.replace(docroot, "");
var fallback_url = docroot + new_versionpath;
} else {
--
2.35.1


Yocto Project Status WW16`22

Richard Purdie
 

Current Dev Position: YP 4.0 rc3
Next Deadline: 29th April 2022 YP 4.0 final release

Next Team Meetings:

Key Status/Updates:
  • The next release, kirkstone will be 4.0 (previously known as 3.5) and will be bitbake 2.0 based.
  • The third release candidate build for YP 4.0 (3.5) is now in QA.
  • rc1 had several issues such as edgerouter not booting, a uninative gcc 12 issue and broken icons in sato that made it inappropriate for release. rc2 triggered a number of autobuilder intermittent issues, there were tweaks to some of the rc1 fixes needed, several CVEs and a systemd/bluetooth issue that resulted in an rc3.
  • YP 3.3.6, the final hardknott release will build after 4.0.
  • If people see intermittent issues in their own builds, particularly if they’re the same as intermittent issues seen on the autobuilder, please do comment in the bugs mentioning when they happen as the frequency information does help us prioritize fixing the most common issues.
  • Intermittent issues continue to be at high levels and help is very much welcome in trying to resolve them. You can see the list of failures we’re continuing to see by searching for the “AB-INT” tag in bugzilla: https://bugzilla.yoctoproject.org/buglist.cgi?quicksearch=AB-INT

Ways to contribute:

YP 4.0 Milestone Dates:
  • YP 4.0 is in QA
  • YP 4.0 Release date 2022/04/29

YP 4.1 Milestone Dates:
  • YP 4.1 M1 build date 2022/05/30
  • YP 4.1 M1 Release date 2022/06/10
  • YP 4.1 M2 build date 2022/07/11
  • YP 4.1 M2 Release date 2022/07/22
  • YP 4.1 M3 build date 2022/08/22
  • YP 4.1 M3 Release date 2022/09/02
  • YP 4.1 M4 build date 2022/10/03
  • YP 4.1 M4 Release date 2022/10/28

Upcoming dot releases:
  • YP 3.3.6 build date 2022/03/28
  • YP 3.3.6 Release date 2022/04/08
  • YP 3.1.16 build date 2022/04/25
  • YP 3.1.16 Release date 2022/05/06
  • YP 3.4.4 build date 2022/05/02
  • YP 3.4.4 Release date 2022/05/13
  • YP 4.0.1 build date 2022/05/16
  • YP 4.0.1 Release date 2022/05/27
  • YP 3.1.17 build date 2022/06/06
  • YP 3.1.17 Release date 2022/06/17
  • YP 4.0.2 build date 2022/06/27
  • YP 4.0.2 Release date 2022/07/08
  • YP 3.1.18 build date 2022/07/18
  • YP 3.1.18 Release date 2022/07/29
  • YP 4.0.3 build date 2022/08/08
  • YP 4.0.3 Release date 2022/08/19
  • YP 3.1.19 build date 2022/08/29
  • YP 3.1.19 Release date 2022/09/09
  • YP 4.0.4 build date 2022/09/19
  • YP 4.0.4 Release date 2022/09/30
  • YP 3.1.20 build date 2022/10/10
  • YP 3.1.20 Release date 2022/10/21
  • YP 4.0.5 build date 2022/10/31
  • YP 4.0.5 Release date 2022/11/11

Tracking Metrics:

The Yocto Project’s technical governance is through its Technical Steering Committee, more information is available at:

The Status reports are now stored on the wiki at: https://wiki.yoctoproject.org/wiki/Weekly_Status

[If anyone has suggestions for other information you’d like to see on this weekly status update, let us know!]



Archived content:

Tip of the Week:
  • The scripts in ${WORKDIR}/temp/run.XXX for shell tasks can be quickly hacked and used for standalone debugging by replacing the function call at the end with “bash -i” which will then drop you into a shell environment matching the task being debugged (minus the fakeroot context). 
  • Bonus marks for anyone sending a patch to add the fakeroot context as comments at the start of the scripts.
  • (send any tips you’d like to see here to Stephen or Richard)


Re: NPM support on Dunfell

Joel Winarske
 

The takeaways using inherit npm:

1. Does not support 'scoped packages'

2. fetching is not multi-threaded.  A NPM based recipe will run uni-proc with a considerable amount of overhead; each package is pulled and cached independently.  Whereas "npm install" or "npm ci" runs multi-threaded.

For my use case I used base.bbclass, and implemented it all manually.  The downside with this approach is there is no long term support via DL_DIR.

A reference for others that might hit this:

Cheers,
Joel


On Mon, Apr 11, 2022 at 7:18 PM Joel Winarske <joel.winarske@...> wrote:
I'm seeing some gaps and performance issues.

Examples:
1. Setting NPM_INSTALL_DEV = "1" I am rewarded with:

169npm ERR! Could not install from "../../__w/meta-flutter/rpi4-drm-dunfell-latest/raspberrypi4-64/tmp/work/aarch64-poky-linux/webthings-gateway/1.0.0+gitAUTOINC+4c600fc973-r0/git/node_modules/@babel/compat-data" as it does not contain a package.json file.
The upstream build uses equivalent to:
    npm --user root --cache "${NPM_CACHE}" ci
    ./node_modules/.bin/webpack
    npm --cache "${NPM_CACHE}" prune --production

2. Running npm_do_configure is taking 48+ minutes.  Granted it's a large project, but basically the configure task is running uni-proc.

Who is the POC supporting NPM on Dunfell?

Thanks,
Joel


M+ & H bugs with Milestone Movements WW16

Stephen Jolley
 

All,

YP M+ or high bugs which moved to a new milestone in WW16 are listed below:

Priority

Bug ID

Short Description

Changer

Owner

Was

Became

Medium+

12279

enhance manifest not found warning

randy.macleod@...

kai.kang@...

3.5 M4

3.6 M1

 

12368

persistent bitbake server does not re-parse if previous build was ctrl+C'd

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

13123

package.PackageTests.test_gdb_hardlink_debug failed

randy.macleod@...

randy.macleod@...

3.5 M4

3.6 M1

 

13278

If git protocol doesn't work, you get a tar.gz clone from PREMIRROR which has git protocol origin

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

13311

xargs: fdleak.c:396: complain_about_leaky_fds: Assertion `no_leaks' failed.

randy.macleod@...

unassigned@...

3.5 M4

3.6 M2

 

13417

Development manual coverage of devtool

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M1

 

13424

devupstream doesn't work with mutilib

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

13520

many valgrind tests fail for arm64

randy.macleod@...

randy.macleod@...

3.5 M4

3.6 M1

 

13599

Enhancement: Detect variables that shouldn't be defined in image scope, but in global (distro) scope

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

13908

segfault in mb-wm on qemux86-64 intermittently

randy.macleod@...

ross@...

3.5 M4

3.6 M2

 

14118

systemd services not enabled when using package feed

randy.macleod@...

unassigned@...

3.5 M4

3.6 M2

 

14126

resolvconf incompatible with busybox flock

randy.macleod@...

newcomer@...

3.5 M4

3.6 M1

 

14156

fetch/gitsm: submodules are fetched as mirrored and not working as expected

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

14201

Bitbake server intermittent timeout

randy.macleod@...

unassigned@...

3.5 M4

3.6 M1

 

14263

AB-INT PTEST: lttng-tools ptest intermittent failure

randy.macleod@...

unassigned@...

3.5 M4

3.6 M1

 

14316

Write a script to populate swatbot from buildbot

randy.macleod@...

alexandre.belloni@...

3.6

3.6 M1

 

14368

Where can I find how to produce containers?

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M2

 

14385

mode of sstate files created under pseudo

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

14410

[documentation] clarity regarding specifying license of layer/recipes versus layer/recipe results

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M1

 

14486

qemu rootfs copy is taking too much time

randy.macleod@...

randy.macleod@...

3.5 M4

3.6 M1

 

14493

BB_GIT_SHALLOW is not documented

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M1

 

14509

Add security configuration documentation

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M2

 

14523

oe-pkgdata-util list-pkg-files doesn't ignore target-sdk-provides-dummy.bb

randy.macleod@...

randy.macleod@...

3.5 M4

3.6 M1

 

14536

Dev Manual, "Selecting an Initialization Manager", should mention INIT_MANAGER

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M2

 

14553

insane.bbclass: host-user-contaminated QA doesn't skip the home directory

randy.macleod@...

abongwabonalais@...

3.5 M4

3.6 M1

 

14611

qemuarm64 testimage Target didn't reach login banner

randy.macleod@...

randy.macleod@...

3.5 M4

3.6 M1

 

14620

QA error not seen when reusing SSTATE

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

14642

Yocto-check-layer add patch Upstream-Status check

randy.macleod@...

unassigned@...

3.5 M4

3.6 M1

 

14665

AB-INT: prservice.BitbakePrTests.test_import_export_replace_db failure

richard.purdie@...

unassigned@...

3.5 M4

3.6 M1

 

14667

Document variable scope

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M1

 

14670

Promoting a Function to a Task: example is wrong

randy.macleod@...

michael.opdenacker@...

3.6

3.6 M2

 

14677

systemd.SystemdServiceTests.test_systemd_disable_enable intermittent failure: no filesystem space on target

randy.macleod@...

randy.macleod@...

3.5 M4

3.6 M1

 

14694

logrotate.LogrotateTest.test_logrotate_wtmp failure: /var/lib/logrotate.status is already locked

randy.macleod@...

unassigned@...

3.5 M4

3.6 M2

 

14721

Intermittent runqueue issue re-running populate_sysroot_setscene after populate_sysroot

richard.purdie@...

richard.purdie@...

3.5 M4

3.6 M1

 

14783

[QA 4.0.rc1] - Abnormal responsive time for File Manager PCManFM application

randy.macleod@...

jay.shen.teoh@...

Future

3.6 M1

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Enhancements/Bugs closed WW16

Stephen Jolley
 

All,

The below were the owners of enhancements or bugs closed during the last week!

Who

Count

richard.purdie@...

15

randy.macleod@...

8

alexandre.belloni@...

2

tim.orling@...

1

gregorylumen@...

1

matthias.schoepfer@...

1

jay.shen.teoh@...

1

Grand Total

29

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Current high bug count owners for Yocto Project 3.5

Stephen Jolley
 

All,

Below is the list as of top 30 bug owners as of the end of WW16 of who have open medium or higher bugs and enhancements against YP 3.5.   There are 8 possible work days left until the final release candidates for YP 3.5 needs to be released.

Who

Count

ross@...

21

david.reyna@...

11

bluelightning@...

6

randy.macleod@...

5

mhalstead@...

4

chee.yang.lee@...

4

sakib.sajal@...

4

hongxu.jia@...

3

JPEWhacker@...

3

saul.wold@...

2

mshah@...

2

akuster808@...

2

tim.orling@...

1

yi.zhao@...

1

aehs29@...

1

mark.hatle@...

1

pgowda.cve@...

1

abongwabonalais@...

1

pokylinux@...

1

Qi.Chen@...

1

bruce.ashfield@...

1

alejandro@...

1

thomas.perrot@...

1

open.source@...

1

TicoTimo@...

1

raj.khem@...

1

sundeep.kokkonda@...

1

nicolas.dechesne@...

1

jon.mason@...

1

mostthingsweb@...

1

Grand Total

85

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Yocto Project Newcomer & Unassigned Bugs - Help Needed

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 409 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,  “3.5, “3.6”, "3.99" and "Future", the more pressing/urgent issues being in "3.5" and then “3.6”.

 

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.pm@...) 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:              sjolley.yp.pm@...

 


Re: [PATCH yocto-autobuilder-helper v4] Add a banner on the old documentation docs

Abongwa Amahnui Bonalais <abongwabonalais@...>
 

I sent a more recent patch which takes care of the topmost element overlapping with the banner, puting it in a div called body and pushing it down so the banner remains on top.


openjdk-11 failed to find --with-boot-jdk

Bel Hadj Salem Talel <bhstalel@...>
 

Hello Everyone,

I am using meta-java, and I have openjdk-11 recipe.

The recipe has:

EXTRA_OECONF_append_class-native = "\
     --with-boot-jdk=/usr/lib/jvm/openjdk-11-amd64 \
     --enable-headless-only \
     --enable-openjdk-only \
"

It fails with this error:
configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK

I tried to install openjdk-11 on my native build host, but the same error persists.

How can I fix this ?

Thanks,
Talel


Re: [qa-build-notification] QA notification for completed autobuilder build (yocto-4.0.rc3)

Teoh, Jay Shen
 

Hi all,

Intel and WR YP QA is planning for QA execution for YP build yocto-4.0.rc3. We are planning to execute following tests for this cycle:

OEQA-manual tests for following module:
1. OE-Core
2. BSP-hw

Runtime auto test for following platforms:
1. MinnowTurbot 32-bit
2. NUC 7
3. NUC 6
4. Edgerouter
5. Beaglebone

ETA for completion this Thursday, April 21.

Thanks,
Jay

-----Original Message-----
From: qa-build-notification@... <qa-build-
notification@...> On Behalf Of Pokybuild User
Sent: Sunday, 17 April, 2022 3:36 AM
To: yocto@...
Cc: qa-build-notification@...
Subject: [qa-build-notification] QA notification for completed autobuilder
build (yocto-4.0.rc3)


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


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


Build hash information:

bitbake: c212b0f3b542efa19f15782421196b7f4b64b0b9
meta-agl: ca53308f8803fb50709b3f17bb1f9e476366bb62
meta-arm: 3ee7d019898854f776f95ed31f4b7ea8c8a73dfe
meta-aws: da48f9e0fb5444ee8d3112ee00f5937a3fd9f96a
meta-gplv2: d2f8b5cdb285b72a4ed93450f6703ca27aa42e8a
meta-intel: 5e2b4c4ad933556c96722ab0c5f2f3f5eb93b692
meta-mingw: a90614a6498c3345704e9611f2842eb933dc51c1
meta-openembedded: 8e1986e95ad30a31c8eaa3cfe2e045b335ef7555
oecore: 92fcb6570bddd0c5717d8cfdf38ecf3e44942b0f
poky: 00cfdde791a0176c134f31e5a09eff725e75b905



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







[meta-security][dunfell][PATCH] chkrootkit: update SRC_URI

Armin Kuster
 

0.53 no longer hosted from main source. Use Ubuntu archive

Signed-off-by: Armin Kuster <akuster808@...>
---
recipes-scanners/rootkits/chkrootkit_0.53.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-scanners/rootkits/chkrootkit_0.53.bb b/recipes-scanners/rootkits/chkrootkit_0.53.bb
index 4536be3..8d4b3b5 100644
--- a/recipes-scanners/rootkits/chkrootkit_0.53.bb
+++ b/recipes-scanners/rootkits/chkrootkit_0.53.bb
@@ -5,7 +5,7 @@ SECTION = "security"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fdbe53788f7081c63387d8087273f5ff"

-SRC_URI = "ftp://ftp.pangeia.com.br/pub/seg/pac/${BPN}.tar.gz"
+SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/universe/c/${BPN}/${BPN}_${PV}.orig.tar.gz"
SRC_URI[sha256sum] = "7262dae33b338976828b5d156b70d159e0043c0db43ada8dee66c97387cf45b5"


--
2.25.1


Yocto Project Summit 2022.5 reminder

Armin Kuster
 

Hello,

The CFP for the Yocto Project Summit in May, 2022 will be closing in 9 days. If you are interested in submitting any talks include a hands on,  please do so via [1]

The event starts in 30 days. Please register via [2]

For more information please see [3]

Thank you,
Armin
On behalf of the YP Summit Committee.

[1] https://pretalx.com/yocto-project-summit-2022-05/cfp
[2] https://cvent.me/N37dBv?rt=aJnC4AParEWJg_xsQ0A9Tg
[3] https://www.yoctoproject.org/yocto-project-summit-2022-05/


[PATCH yocto-autobuilder-helper v5] Add a banner on the old documentation docs

Abongwa Amahnui Bonalais <abongwabonalais@...>
 

Signed-off-by: Abongwa Bonalais Amahnui <abongwabonalais@...>
---
trial.py | 36 ++++++++++++++++++++++++++++++
trialstyle.py | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 97 insertions(+)
create mode 100644 trial.py
create mode 100644 trialstyle.py

diff --git a/trial.py b/trial.py
new file mode 100644
index 0000000..fdbd109
--- /dev/null
+++ b/trial.py
@@ -0,0 +1,36 @@
+#!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+#Signed-off-by: Abongwa Bonalais Amahnui <abongwabonalais@...>
+#
+#
+# function to append to the content of a html file below the body tag
+#
+#
+import os
+html_content = '''
+<div id="outdated-warning">This document is outdated, you should select the <a href="https://docs.yoctoproject.org/">latest release version</a> in this series.</div>
+<div xml:lang="en" class="body" lang="en">
+'''
+last_div = '''
+</div>
+
+'''
+
+def loop_through_html_directories(dir):
+ for dirpath, dirnames, filenames in os.walk(dir):
+ # loop through all files in the directory
+ for filename in filenames:
+ # check if the file is an html file
+ if filename.endswith('.html'):
+ # open the html file in read mode
+ with open(os.path.join(dirpath, filename), 'r', encoding="ISO-8859-1") as f:
+ # read the content of the html file
+ current_content = f.read()
+ # open the html file in write mode
+ with open(os.path.join(dirpath, filename), 'w') as f:
+ # write the content of the html file
+ f.write(current_content.replace('<body>', '<body>' + html_content))
+ f.write(current_content.replace('</body>', last_div + '</body>'))
+loop_through_html_directories('.')
diff --git a/trialstyle.py b/trialstyle.py
new file mode 100644
index 0000000..2777730
--- /dev/null
+++ b/trialstyle.py
@@ -0,0 +1,61 @@
+#!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+#Signed-off-by: Abongwa Bonalais Amahnui <abongwabonalais@...>
+#
+#
+# function to append to the content of a css file below the body class
+#
+#
+import os
+
+
+content = '''
+
+ font-family: Verdana, Sans, sans-serif;
+
+ /*min-width: 640px;*/
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ color: #333;
+ overflow-x: hidden;
+ }
+
+ /*added books too*/
+.body{
+margin: 0 auto;
+min-width: 640px;
+padding: 0 5em 5em 5em;
+}
+/* added the id below to make the banner show and be fixed*/
+#outdated-warning{
+text-align: center;
+background-color: rgb(255, 186, 186);
+color: rgb(106, 14, 14);
+padding: 0.5em 0;
+width: 100%;
+position: fixed;
+top: 0;
+
+
+'''
+
+
+
+def loop_through_html_directories(dir):
+ for dirpath, dirnames, filenames in os.walk(dir):
+ # loop through all files in the directory
+ for filename in filenames:
+ # check if the file is an html file
+ if filename.endswith('style.css'):
+ # open the html file in read mode
+ with open(os.path.join(dirpath, filename), 'r', encoding="ISO-8859-1") as f:
+ # read the content of the html file
+ css_content = f.read()
+ # open the html file in write mode
+ with open(os.path.join(dirpath, filename), 'w') as f:
+ # write the content of the html file
+ f.write(css_content.replace(css_content[css_content.find('body {'):css_content.find('}'[0])], 'body {' + content ))
+loop_through_html_directories('.')
--
2.25.1


Re: [PATCH yocto-autobuilder-helper v4] Add a banner on the old documentation docs

Abongwa Amahnui Bonalais <abongwabonalais@...>
 

On Sun, Apr 17, 2022 at 04:45 PM, Quentin Schulz wrote:
import glob
glob.glob('**/*.html', recursive=True)
Hi Quentin, thanks for the review.
If I use the glob module here, I will get rid of os.walk which was suggested by Richard, and I have some issues implementing the glob as I am not very familiar with it.


Re: [PATCH yocto-autobuilder-helper v4] Add a banner on the old documentation docs

Quentin Schulz
 

Hi Amahnui,

On April 17, 2022 10:40:13 AM GMT+02:00, Abongwa Amahnui Bonalais <abongwabonalais@...> wrote:
Signed-off-by: Abongwa Bonalais Amahnui <abongwabonalais@...>
---
trial.py | 32 +++++++++++++++++++++++++++
trialstyle.py | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 93 insertions(+)
create mode 100644 trial.py
create mode 100644 trialstyle.py

diff --git a/trial.py b/trial.py
new file mode 100644
index 0000000..c85b16c
--- /dev/null
+++ b/trial.py
@@ -0,0 +1,32 @@
+#!usr/bin/env python3
#!/usr/bin/env python3

+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+#Author: Abongwa Bonalais Amahnui <abongwabonalais@...>
+#
+#
+# function to append to the content of a html file below the body tag
+#
+#
+import os
+html_content = '''
+<div id="outdated-warning">This document is outdated, you should select the <a href="https://docs.yoctoproject.org/">latest release version</a> in this series.</div>
+
+'''
+
+
+def loop_through_html_directories(dir):
+ for dirpath, dirnames, filenames in os.walk(dir):
+ # loop through all files in the directory
+ for filename in filenames:
+ # check if the file is an html file
+ if filename.endswith('.html'):
All of the above cam be replaced with:
import glob
glob.glob('**/*.html', recursive=True)

C.f. https://docs.python.org/3/library/glob.html#glob.glob

+ # open the html file in read mode
+ with open(os.path.join(dirpath, filename), 'r', encoding="ISO-8859-1") as f:
+ # read the content of the html file
+ current_content = f.read()
+ # open the html file in write mode
+ with open(os.path.join(dirpath, filename), 'w') as f:
I assume we want the same encoding that was needed for opening the file for writing the file otherwise we'll have some differences won't we?

In the end I think a recursive "find" for all html files which executes sed could have work just fine too.

E.g.
find -name "*.html" -exec sed -i 's/<body>/<body><the banner>/' {} \;

But potato potato right now ☺️

Also, this script needs to be called somewhere.

I suggest those scripts are added to the scripts/ directory of the git repo and they need to be called in run-docs-build shell script otherwise they are not used.

Cheers,
Quentin

+ # write the content of the html file
+ f.write(current_content.replace('<body>', '<body>' + html_content))
+loop_through_html_directories('.')
diff --git a/trialstyle.py b/trialstyle.py
new file mode 100644
index 0000000..a75721a
--- /dev/null
+++ b/trialstyle.py
@@ -0,0 +1,61 @@
+#!usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+#Author: Abongwa Bonalais Amahnui <abongwabonalais@...>
+#
+#
+# function to append to the content of a css file below the body class
+#
+#
+import os
+
+
+content = '''
+
+ font-family: Verdana, Sans, sans-serif;
+
+ /*min-width: 640px;*/
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ color: #333;
+ overflow-x: hidden;
+ }
+
+ /*added books too*/
+.book{
+margin: 0 auto;
+min-width: 640px;
+padding: 0 5em 5em 5em;
+}
+/* added the id below to make the banner show and be fixed*/
+#outdated-warning{
+text-align: center;
+background-color: rgb(255, 186, 186);
+color: rgb(106, 14, 14);
+padding: 0.5em 0;
+width: 100%;
+position: fixed;
+top: 0;
+
+
+'''
+
+
+
+def loop_through_html_directories(dir):
+ for dirpath, dirnames, filenames in os.walk(dir):
+ # loop through all files in the directory
+ for filename in filenames:
+ # check if the file is an html file
+ if filename.endswith('style.css'):
+ # open the html file in read mode
+ with open(os.path.join(dirpath, filename), 'r', encoding="ISO-8859-1") as f:
+ # read the content of the html file
+ css_content = f.read()
+ # open the html file in write mode
+ with open(os.path.join(dirpath, filename), 'w') as f:
+ # write the content of the html file
+ f.write(css_content.replace(css_content[css_content.find('body {'):css_content.find('}'[0])], 'body {' + content ))
+loop_through_html_directories('.')


[PATCH yocto-autobuilder-helper v4] Add a banner on the old documentation docs

Abongwa Amahnui Bonalais <abongwabonalais@...>
 

Signed-off-by: Abongwa Bonalais Amahnui <abongwabonalais@...>
---
trial.py | 32 +++++++++++++++++++++++++++
trialstyle.py | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 93 insertions(+)
create mode 100644 trial.py
create mode 100644 trialstyle.py

diff --git a/trial.py b/trial.py
new file mode 100644
index 0000000..c85b16c
--- /dev/null
+++ b/trial.py
@@ -0,0 +1,32 @@
+#!usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+#Author: Abongwa Bonalais Amahnui <abongwabonalais@...>
+#
+#
+# function to append to the content of a html file below the body tag
+#
+#
+import os
+html_content = '''
+<div id="outdated-warning">This document is outdated, you should select the <a href="https://docs.yoctoproject.org/">latest release version</a> in this series.</div>
+
+'''
+
+
+def loop_through_html_directories(dir):
+ for dirpath, dirnames, filenames in os.walk(dir):
+ # loop through all files in the directory
+ for filename in filenames:
+ # check if the file is an html file
+ if filename.endswith('.html'):
+ # open the html file in read mode
+ with open(os.path.join(dirpath, filename), 'r', encoding="ISO-8859-1") as f:
+ # read the content of the html file
+ current_content = f.read()
+ # open the html file in write mode
+ with open(os.path.join(dirpath, filename), 'w') as f:
+ # write the content of the html file
+ f.write(current_content.replace('<body>', '<body>' + html_content))
+loop_through_html_directories('.')
diff --git a/trialstyle.py b/trialstyle.py
new file mode 100644
index 0000000..a75721a
--- /dev/null
+++ b/trialstyle.py
@@ -0,0 +1,61 @@
+#!usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+#Author: Abongwa Bonalais Amahnui <abongwabonalais@...>
+#
+#
+# function to append to the content of a css file below the body class
+#
+#
+import os
+
+
+content = '''
+
+ font-family: Verdana, Sans, sans-serif;
+
+ /*min-width: 640px;*/
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ color: #333;
+ overflow-x: hidden;
+ }
+
+ /*added books too*/
+.book{
+margin: 0 auto;
+min-width: 640px;
+padding: 0 5em 5em 5em;
+}
+/* added the id below to make the banner show and be fixed*/
+#outdated-warning{
+text-align: center;
+background-color: rgb(255, 186, 186);
+color: rgb(106, 14, 14);
+padding: 0.5em 0;
+width: 100%;
+position: fixed;
+top: 0;
+
+
+'''
+
+
+
+def loop_through_html_directories(dir):
+ for dirpath, dirnames, filenames in os.walk(dir):
+ # loop through all files in the directory
+ for filename in filenames:
+ # check if the file is an html file
+ if filename.endswith('style.css'):
+ # open the html file in read mode
+ with open(os.path.join(dirpath, filename), 'r', encoding="ISO-8859-1") as f:
+ # read the content of the html file
+ css_content = f.read()
+ # open the html file in write mode
+ with open(os.path.join(dirpath, filename), 'w') as f:
+ # write the content of the html file
+ f.write(css_content.replace(css_content[css_content.find('body {'):css_content.find('}'[0])], 'body {' + content ))
+loop_through_html_directories('.')
--
2.25.1


QA notification for completed autobuilder build (yocto-4.0.rc3)

Pokybuild User <pokybuild@...>
 

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


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


Build hash information:

bitbake: c212b0f3b542efa19f15782421196b7f4b64b0b9
meta-agl: ca53308f8803fb50709b3f17bb1f9e476366bb62
meta-arm: 3ee7d019898854f776f95ed31f4b7ea8c8a73dfe
meta-aws: da48f9e0fb5444ee8d3112ee00f5937a3fd9f96a
meta-gplv2: d2f8b5cdb285b72a4ed93450f6703ca27aa42e8a
meta-intel: 5e2b4c4ad933556c96722ab0c5f2f3f5eb93b692
meta-mingw: a90614a6498c3345704e9611f2842eb933dc51c1
meta-openembedded: 8e1986e95ad30a31c8eaa3cfe2e045b335ef7555
oecore: 92fcb6570bddd0c5717d8cfdf38ecf3e44942b0f
poky: 00cfdde791a0176c134f31e5a09eff725e75b905



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


Re: [PATCH yocto-autobuilder-helper v3] Scripts to automatically add banner to html files in tarball

Abongwa Amahnui Bonalais <abongwabonalais@...>
 

I actually saw this licence on an spdx-tutorial repo on github but I will change it in the next patch to MIT