<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes-global, branch nanbield</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=nanbield</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=nanbield'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2024-01-31T14:10:24+00:00</updated>
<entry>
<title>classes-global/sstate: Fix variable typo</title>
<updated>2024-01-31T14:10:24+00:00</updated>
<author>
<name>Joshua Watt</name>
<email>JPEWhacker@gmail.com</email>
</author>
<published>2023-12-22T22:41:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8de5dd79c0d1ebbe3581c564849ef34c4b7470e0'/>
<id>urn:sha1:8de5dd79c0d1ebbe3581c564849ef34c4b7470e0</id>
<content type='text'>
The vardepsexclude was subtly wrong in that it referenced STATE_MANMACH
when the actual variable name is SSTATE_MANMACH.

(From OE-Core rev: a681f90caec27d4076bdae3b5b19df2d7f5978cd)

Signed-off-by: Joshua Watt &lt;JPEWhacker@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit ec5054396f7fafea2a071d2695ae111fc585d6e6)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>sstate: Fix dir ownership issues in SSTATE_DIR</title>
<updated>2024-01-27T18:09:47+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2023-12-10T09:33:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=edc3370b86fabc1d3eb19589a228146dff015471'/>
<id>urn:sha1:edc3370b86fabc1d3eb19589a228146dff015471</id>
<content type='text'>
We currently use mkdir -p to create missing parent directories within SSTATE_DIR.
Reading the man page for mkdir mentions that parent directories are created with
the current umask, *not* the mode passed upon the commandline.

We could fix this by setting and resetting the umask but since we already have
decent python code able to do this, move to using that injecting a python function
into the chain of functions already present.

This should help fix the occasional sstate directory creation with the wrong
permissions.

[YOCTO #14385]

(From OE-Core rev: 90d1e97b7c8bce0fb49714923989c63d243eb2da)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit ae642a4b038c6946e6c8aa9778bf09099d938a31)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>package_ipk: Fix Source: field variable dependency</title>
<updated>2024-01-04T14:09:43+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2023-11-22T09:35:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=4558219ec8584e05c215057c0c271600fa52d6c2'/>
<id>urn:sha1:4558219ec8584e05c215057c0c271600fa52d6c2</id>
<content type='text'>
The Source: variable is generated from FILE but this is excluded from checksums
normally which results in a reproduciubility issue when the filename changes.

Add in a dependency by reworking the code a little to avoid this.

(From OE-Core rev: 431e6ad7c5b0af3909f5a43599764c529146e6d6)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit 3ea7da76c6930031a0071069027b1d71f737fbc9)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>sstate: Ensure sstate searches update file mtime</title>
<updated>2023-12-15T13:54:00+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2023-11-06T14:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=046b70083f3bc9e25f547e8026400032f5c563d9'/>
<id>urn:sha1:046b70083f3bc9e25f547e8026400032f5c563d9</id>
<content type='text'>
Commands like "bitbake XXX -S printdiff" search for sstate files but don't download
them. This means that local files aren't touched as the download code would do, meaning
the sstate cleanup scripts can delete them. This can then lead to obtuse build failures.

Have the search code touch local files in the same way as the main code paths would to
avoid these files disappearing.

Move the function to a common touch() function in lib/oe instead of duplicating code.

(From OE-Core rev: 427c43d8e3315fa6872feaa71d135de60c810de7)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit a27fc0bd5706ab5b9c68a0271fcf57377a678cdf)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>base: Ensure recipes using mercurial-native have certificates</title>
<updated>2023-11-24T15:01:37+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2023-10-26T10:36:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=2db7c24bd87ec6b685ded8833540b64d4782e8c7'/>
<id>urn:sha1:2db7c24bd87ec6b685ded8833540b64d4782e8c7</id>
<content type='text'>
If you try and fetch using mercurial-native, you see certificate errors since
it is configured to find ones in the sysroot, not the system. Add the missing
dependency so that mercurial recipes using the native tool work.

Found trying to make mirroring for old meta-oe stable branches work.

(From OE-Core rev: c48206dd82a2faab477002b1ac04d835920755d0)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit fc567e35b374f8b08975602609ee71e64357fb3d)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>insane: unimplemented-ptest: ignore source file errors</title>
<updated>2023-10-17T10:41:34+00:00</updated>
<author>
<name>Yoann Congal</name>
<email>yoann.congal@smile.fr</email>
</author>
<published>2023-10-16T15:51:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=07546cc63f5e2a1a74bd7f5cac6ad1c9948264d4'/>
<id>urn:sha1:07546cc63f5e2a1a74bd7f5cac6ad1c9948264d4</id>
<content type='text'>
In some cases, pathlib.Path.glob() might throw FileNotFoundError when
file/directory disappear while it is iterating over them.

This "warning" is not important enough to crash build in this case so
just take a bb.note of the problem and move on.

(From OE-Core rev: 85ddbb67f0f6f823cac0966db78e5b74c5a54c4c)

Signed-off-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Reported-by: Mark Hatle &lt;mark.hatle@amd.com&gt;
Closes: https://lists.openembedded.org/g/openembedded-core/message/189254
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: skip unimplemented-ptest on S=WORKDIR recipes</title>
<updated>2023-10-17T10:41:34+00:00</updated>
<author>
<name>Yoann Congal</name>
<email>yoann.congal@smile.fr</email>
</author>
<published>2023-10-16T15:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=11bab63ca8f7f0350e519d62282e4fcdc3a470ce'/>
<id>urn:sha1:11bab63ca8f7f0350e519d62282e4fcdc3a470ce</id>
<content type='text'>
On S=WORKDIR recipes, the unimplemented-ptest check will scan the whole
WORKDIR and "see" disappearing file and directory.

(From OE-Core rev: 9a2d2f7c2b7236667a6d80355f73db4c27e6582e)

Signed-off-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Reported-by: Mark Hatle &lt;mark.hatle@amd.com&gt;
Closes: https://lists.openembedded.org/g/openembedded-core/message/189254
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: Add a naive heuristic to detect test subdirectories</title>
<updated>2023-10-15T08:11:47+00:00</updated>
<author>
<name>Jérémy Rosen</name>
<email>jeremy.rosen@smile.fr</email>
</author>
<published>2023-10-10T13:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b233e2f8c2d756010fd4fae5b8173b1fddf39693'/>
<id>urn:sha1:b233e2f8c2d756010fd4fae5b8173b1fddf39693</id>
<content type='text'>
if there is a "test" or "tests" subdirectory at toplevel, this usually
means we have some unit tests available.

This test is very good at detecting handcrafted tests and I was not able
to find any false positive.

False positive can be dealt with the usual INSANE_SKIP mechanism

(From OE-Core rev: 0c91ad29f7ea313bc25481be9d40f216c0770b98)

Signed-off-by: Jérémy Rosen &lt;jeremy.rosen@smile.fr&gt;
Reviewed-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: Detect build-system test harnesses</title>
<updated>2023-10-15T08:11:47+00:00</updated>
<author>
<name>Jérémy Rosen</name>
<email>jeremy.rosen@smile.fr</email>
</author>
<published>2023-10-10T13:49:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f4b039cae0833634487607a4c6ade441dbe94cbf'/>
<id>urn:sha1:f4b039cae0833634487607a4c6ade441dbe94cbf</id>
<content type='text'>
most build-systems have a way to implement a "make check" or equivalent
command that will run tests in the source directory.

This heuristic will detect the keywords in the build-system configuration
that activates tests.

Note that in the case of autotools, we use Makefile.in as our source
instead of Makefile.am to easily follow includes. Filenaming conventions
for autotools files are not reliable enough to do naive matching.

(From OE-Core rev: bc9013295256443e877f29b7e00605ffa5177efa)

Signed-off-by: Jérémy Rosen &lt;jeremy.rosen@smile.fr&gt;
Reviewed-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>insane: Detect python and perl based tests</title>
<updated>2023-10-15T08:11:47+00:00</updated>
<author>
<name>Jérémy Rosen</name>
<email>jeremy.rosen@smile.fr</email>
</author>
<published>2023-10-10T13:49:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=18bd65d241d2ca2d14541b9c6dd0d9f3f1cdba35'/>
<id>urn:sha1:18bd65d241d2ca2d14541b9c6dd0d9f3f1cdba35</id>
<content type='text'>
match_line_in_files will look for a regex in all files matching a glob.

we use iglob to avoid a complete, recursive scan of all source. iglob is
based on python iterators and will scan as we walk through the directories

pytest are detected by looking for "import pytest" or "from pytest" in any
python file.

perl Test:: is detetected by looking for any t/*.t in the toplevel source
directory.

(From OE-Core rev: 00d64ac38ae4af6193fae3b02375a16b1821f29e)

Signed-off-by: Jérémy Rosen &lt;jeremy.rosen@smile.fr&gt;
Reviewed-by: Yoann Congal &lt;yoann.congal@smile.fr&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
