<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/include/prereq-build.mk, branch v21.02.4</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.4</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.4'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2022-10-05T20:21:18Z</updated>
<entry>
<title>build: add support for python3.11 and higher</title>
<updated>2022-10-05T20:21:18Z</updated>
<author>
<name>Oscar Molnar</name>
</author>
<published>2022-08-06T15:13:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=830b07f08e7dfde0d5c44b6659dfa3d9af44e208'/>
<id>urn:sha1:830b07f08e7dfde0d5c44b6659dfa3d9af44e208</id>
<content type='text'>
python3.11 beta is out but fails to run the makefile currently
this supports python versions from 3.6 to 3.99 with the python3 binary
it also checks specifically for 3.11 as it is the latest version out

Signed-off-by: Oscar Molnar &lt;oscar@tymscar.com&gt;
(cherry picked from commit a9e8eec221874e5840d659aed3f68850ff1d9982)
Signed-off-by: Michal Vasilek &lt;michal.vasilek@nic.cz&gt; [rebase for 21.02]
</content>
</entry>
<entry>
<title>build: provide xxd -i with scripts/xxdi.pl</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-08-30T06:45:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=1c8c84620de64b20921873c998e93f72dbaccd2a'/>
<id>urn:sha1:1c8c84620de64b20921873c998e93f72dbaccd2a</id>
<content type='text'>
Dependency on xxd was added in commit c4dd2441e787 ("tools: add xxd
(from vim)") as U-Boot requires xxd to create the default environment
from an external file.

Later in commit 2b94aac7a128 ("tools: xxd: use more convenient source
tarball"), xxd from another source was used instead, but that source is
currently unavailable, so let's fix it by using simple xxdi.pl Perl
script instead.

Fixes: #10555
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit eae2fb8027cb892e42181e471ba344aa5d26bf7e)
</content>
</entry>
<entry>
<title>build: fix ldconfig executable error in python</title>
<updated>2022-07-04T08:08:08Z</updated>
<author>
<name>Damien Mascord</name>
</author>
<published>2021-11-01T09:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=bd84d517eb95df96d6e9dccac387a135a6cc4065'/>
<id>urn:sha1:bd84d517eb95df96d6e9dccac387a135a6cc4065</id>
<content type='text'>
The empty executable is causing problems with meson builds, due to the
error: OSError: [Errno 8] Exec format error: 'ldconfig'

This patch changes the empty ldconfig stub to symlink to /bin/true to
work around this issue.

Fixes: FS#4117
Fixes: 3bd31cc4d2ff ("tools/meson: update to 0.60.0")

Signed-off-by: Damien Mascord &lt;tusker@tusker.org&gt;
Tested-by: Aleksander Jan Bajkowski &lt;olek2@wp.pl&gt; # Tested on Debian 11
Tested-By: Lucian Cristian &lt;lucian.cristian@gmail.com&gt;
Tested-By: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
Cc: Rosen Penev &lt;rosenp@gmail.com&gt;
(cherry picked from commit 6a5b4228e30244b44a49f523dea66caf3fbe3307)
Signed-off-by: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
[backport to fix prereq check when moving from 22.03 branch to 21.02]
</content>
</entry>
<entry>
<title>build: prereq detect Python 3.10 for `python3` binary</title>
<updated>2021-10-13T05:19:30Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-10T09:09:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f1f304940b72def82dc22cebd78436505f2d6b9f'/>
<id>urn:sha1:f1f304940b72def82dc22cebd78436505f2d6b9f</id>
<content type='text'>
While the binary `python3.10` is correctly detected by the build system
the default `python3` binary is currently not detected if pointing to a
Python 3.10 installation.

Fix this by extending the grep regex.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit 56ea2bf2eec431ccd3c566190a444ad63db39b65)
</content>
</entry>
<entry>
<title>prereq-build: recognize Python 3.10</title>
<updated>2021-10-09T02:34:51Z</updated>
<author>
<name>Marcin Juszkiewicz</name>
</author>
<published>2021-09-28T13:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=9b258f220f1223dc578e1cfe3ff026fb98b9edd2'/>
<id>urn:sha1:9b258f220f1223dc578e1cfe3ff026fb98b9edd2</id>
<content type='text'>
Fedora 35 contains Python 3.10 as default version. Make use of it.

Signed-off-by: Marcin Juszkiewicz &lt;marcin@juszkiewicz.com.pl&gt;
[fix commit subject]
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit e1c03ca18519f9683f6bfce1795e58d99575d895)
</content>
</entry>
<entry>
<title>build: fix `which` detection on Fedora &amp; MacOS</title>
<updated>2021-10-09T02:32:23Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-02T01:56:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=913403b587451abaaf67e8f9640f0dc2cdcec95d'/>
<id>urn:sha1:913403b587451abaaf67e8f9640f0dc2cdcec95d</id>
<content type='text'>
Fix Fedora 34/35 issue where 'which' detection of 'which' wasn't working
because Fedora use alias and proc

Fixup of fca5ad55d2 prereq-build: fix `which` detection on Fedora

Reported-by: Jani Partanen &lt;rtfm@iki.fi&gt;
Suggest-by: Etienne Champetier &lt;champetier.etienne@gmail.com&gt;
Tested-by: Georgi Valkov &lt;gvalkov@abv.bg&gt;
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit 0d1ebf0d6d20f0439ab45b293f9daa7662c44ba6)
</content>
</entry>
<entry>
<title>prereq-build: require python3-distutils</title>
<updated>2021-08-28T13:48:08Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2021-08-10T10:22:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5bfb9c30a1a3199596dcf07cf64dea7df92a7237'/>
<id>urn:sha1:5bfb9c30a1a3199596dcf07cf64dea7df92a7237</id>
<content type='text'>
Debian and Ubuntu ship a python3-minimal package which does not include
the distutils module. This is not supported by upstream and can be
considered a broken python distribution.

In practice, many scripts depend on said module, and this is a reoccuring
pain point for building various OpenWrt packages.

Require and check for said module, enough time has been wasted on this.

A list of just the most recent issues:
https://github.com/openwrt/packages/pull/16304
https://github.com/openwrt/packages/pull/16027
https://github.com/openwrt/packages/pull/15443
https://github.com/openwrt/packages/pull/14394
https://github.com/openwrt/packages/pull/12909
https://github.com/openwrt/packages/issues/12443
https://github.com/openwrt/packages/pull/11035
https://github.com/openwrt/packages/issues/10993

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
(cherry picked from commit 60af8d753343691c4a647bfc7c51ef6eb92df9f2)
</content>
</entry>
<entry>
<title>Extend checks on build prerequisites for building OpenWRT core</title>
<updated>2021-05-08T10:45:55Z</updated>
<author>
<name>Bas Mevissen</name>
</author>
<published>2021-04-19T23:08:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=567ad2d434a464f80c278800050fb3a9b9c49c9a'/>
<id>urn:sha1:567ad2d434a464f80c278800050fb3a9b9c49c9a</id>
<content type='text'>
OpenWRT requires a number of Perl modules to be installed. It wasn't checking on all of them.
This patch adds checks for Perl FindBin, File::Copy, File::Compare and Thread::Queue modules.

Failing to install these, will have the build break at some point. By adding these to the
prereq-build.mk script, they are checked on forehand.

Tested on a Fedora 33 and 34 (beta) that was freshly installed. Fedora appears to
break up Perl modules into small packages that need to be installed for the build to succeed.

Signed-off-by: Bas Mevissen &lt;abuse@basmevissen.nl&gt;
(cherry picked from commit f68c9474acf9a65b5a9538db8e45c173462487e3)
</content>
</entry>
<entry>
<title>build: add which command to build requirements</title>
<updated>2021-03-03T22:03:25Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2021-03-03T18:48:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ceb6869cd982056b02f97b51a0e4e2d300ea5b12'/>
<id>urn:sha1:ceb6869cd982056b02f97b51a0e4e2d300ea5b12</id>
<content type='text'>
`which` utility is not shipped by default for example on recent Arch
Linux and then any steps relying on its presence fails, like for example
following Python3 prereq build check:

 $ python3 --version
 Python 3.9.1

 $ make
 /bin/sh: line 1: which: command not found
 ...
 Checking 'python3'... failed.

So make `which` utility host build requirement.

References: PR#3820 FS#3525
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 13069b1a1dcbef0bb9b42db98025fa9203283220)
</content>
</entry>
<entry>
<title>build: fix checks for GCC11</title>
<updated>2021-03-03T22:01:18Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2021-03-01T12:29:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a29b3983248588505e927317a162edb8187b94f9'/>
<id>urn:sha1:a29b3983248588505e927317a162edb8187b94f9</id>
<content type='text'>
Fedora 34 already uses GCC11.

Reported-by: Marcin Juszkiewicz &lt;marcin-openwrt@juszkiewicz.com.pl&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit cae69d558135456976b8fc6cb08530d1358cf6d5)
</content>
</entry>
</feed>
