<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/mkresin/include/prereq-build.mk, branch master</title>
<subtitle>Staging tree of Mathias Kresin</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/mkresin/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/'/>
<updated>2021-11-02T17:18:00Z</updated>
<entry>
<title>build: fix ldconfig executable error in python</title>
<updated>2021-11-02T17:18:00Z</updated>
<author>
<name>Damien Mascord</name>
</author>
<published>2021-11-01T09:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=6a5b4228e30244b44a49f523dea66caf3fbe3307'/>
<id>urn:sha1:6a5b4228e30244b44a49f523dea66caf3fbe3307</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;
</content>
</entry>
<entry>
<title>build: prereq detect Python 3.10 for `python3` binary</title>
<updated>2021-10-10T14:25:58Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-10T09:09:46Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=56ea2bf2eec431ccd3c566190a444ad63db39b65'/>
<id>urn:sha1:56ea2bf2eec431ccd3c566190a444ad63db39b65</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;
</content>
</entry>
<entry>
<title>build: fix `which` detection on Fedora &amp; MacOS</title>
<updated>2021-10-03T05:53:24Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-02T01:56:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=0d1ebf0d6d20f0439ab45b293f9daa7662c44ba6'/>
<id>urn:sha1:0d1ebf0d6d20f0439ab45b293f9daa7662c44ba6</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;
</content>
</entry>
<entry>
<title>prereq-build: revert "fix `which` detection on Fedora"</title>
<updated>2021-10-01T04:32:20Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-01T04:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=16e83a7491bb038187e918273671894992ae003c'/>
<id>urn:sha1:16e83a7491bb038187e918273671894992ae003c</id>
<content type='text'>
This reverts commit fca5ad55d292f8e481406123d0e95b3c85d39733.

Causes problems on MacOS host systems.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>prereq-build: fix `which` detection on Fedora</title>
<updated>2021-09-30T22:31:41Z</updated>
<author>
<name>Jani Partanen</name>
</author>
<published>2021-09-30T20:51:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=fca5ad55d292f8e481406123d0e95b3c85d39733'/>
<id>urn:sha1:fca5ad55d292f8e481406123d0e95b3c85d39733</id>
<content type='text'>
Fix Fedora 34/35 issue where 'which' detection of 'which' wasn't working
because Fedora use alias and proc

Signed-off-by: Jani Partanen &lt;rtfm@iki.fi&gt;
[fix commit subject and message]
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>prereq-build: recognize Python 3.10</title>
<updated>2021-09-29T09:49:02Z</updated>
<author>
<name>Marcin Juszkiewicz</name>
</author>
<published>2021-09-28T13:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=e1c03ca18519f9683f6bfce1795e58d99575d895'/>
<id>urn:sha1:e1c03ca18519f9683f6bfce1795e58d99575d895</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;
</content>
</entry>
<entry>
<title>prereq-build: require python3-distutils</title>
<updated>2021-08-21T14:31:20Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2021-08-10T10:22:17Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=60af8d753343691c4a647bfc7c51ef6eb92df9f2'/>
<id>urn:sha1:60af8d753343691c4a647bfc7c51ef6eb92df9f2</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;
</content>
</entry>
<entry>
<title>prereq-build: diff requirement to GNU</title>
<updated>2021-06-13T01:54:13Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2021-06-12T23:02:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=9bf654ac4742326ddda6656182f5bae00ad3757b'/>
<id>urn:sha1:9bf654ac4742326ddda6656182f5bae00ad3757b</id>
<content type='text'>
tools/quilt requires GNU diffutils to compile. Failure can be simulated
by installing Alpine Linux without diffutils.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>prereq-build: g++ formatting and consistency fixes</title>
<updated>2021-05-23T13:11:38Z</updated>
<author>
<name>Karl Palsson</name>
</author>
<published>2021-05-17T00:38:03Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=81d0ddc806e1f088328ca29eb56db9285b2a4f7b'/>
<id>urn:sha1:81d0ddc806e1f088328ca29eb56db9285b2a4f7b</id>
<content type='text'>
Remove \n that mangles output, and fix inconsistent version name check.

Example before:

Build dependency: Please install the GNU C++ Compiler (g++) 6 or later
Build dependency: \nPlease reinstall the GNU C++ Compiler (4.8 or later) - it appears to be broken
Build dependency: Please install ncurses. (Missing libncurses.so or ncurses.h)

Signed-off-by: Karl Palsson &lt;karlp@tweak.net.au&gt;
</content>
</entry>
<entry>
<title>Extend checks on build prerequisites for building OpenWRT core</title>
<updated>2021-05-08T10:43:45Z</updated>
<author>
<name>Bas Mevissen</name>
</author>
<published>2021-04-19T23:08:19Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/mkresin/commit/?id=f68c9474acf9a65b5a9538db8e45c173462487e3'/>
<id>urn:sha1:f68c9474acf9a65b5a9538db8e45c173462487e3</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;
</content>
</entry>
</feed>
