<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/include/prereq-build.mk, branch v19.07.9</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=v19.07.9</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=v19.07.9'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2021-05-08T10:51:54Z</updated>
<entry>
<title>Extend checks on build prerequisites for building OpenWRT core</title>
<updated>2021-05-08T10:51:54Z</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/chunkeey/commit/?id=ded3ad3c2f218c06968d1535aa8347646dd731f5'/>
<id>urn:sha1:ded3ad3c2f218c06968d1535aa8347646dd731f5</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>prereq-build: test for perl's Data::Dumper</title>
<updated>2021-05-08T10:50:49Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-03-30T01:13:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=5bec393fcb34236a6fcdb4b9adaf6ba755ef7677'/>
<id>urn:sha1:5bec393fcb34236a6fcdb4b9adaf6ba755ef7677</id>
<content type='text'>
Required for installation of autoconf:

make[5]: Entering directory `/openwrt/build_dir/host/autoconf-2.69'
Making all in bin
make[6]: Entering directory `/openwrt/build_dir/host/autoconf-2.69/bin'
autom4te_perllibdir='..'/lib AUTOM4TE_CFG='../lib/autom4te.cfg'
../bin/autom4te -B '..'/lib -B '..'/lib         --language M4sh --cache
 '' --melt ./autoconf.as -o autoconf.in

Can't locate Data/Dumper.pm in @INC (@INC contains: ../lib
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
../lib/Autom4te/C4che.pm line 33.
BEGIN failed--compilation aborted at ../lib/Autom4te/C4che.pm line 33.
Compilation failed in require at ../bin/autom4te line 40.
BEGIN failed--compilation aborted at ../bin/autom4te line 40.
make[6]: *** [autoconf.in] Error 2

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
(cherry picked from commit dc467eac38f2447b652b6680cf4af75b05fd6cd2)
</content>
</entry>
<entry>
<title>build: fix checks for GCC11</title>
<updated>2021-03-06T14:48:03Z</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/chunkeey/commit/?id=0a08a9a2b4374da05628d70ebc6e22183bb00096'/>
<id>urn:sha1:0a08a9a2b4374da05628d70ebc6e22183bb00096</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>
<entry>
<title>build/prereq: merge ifndef IB block together</title>
<updated>2020-12-31T19:33:07Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-12-30T04:19:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=2c37993c8a6f64b736f3ad37c1ac20046d0d1e1b'/>
<id>urn:sha1:2c37993c8a6f64b736f3ad37c1ac20046d0d1e1b</id>
<content type='text'>
Multiple prereq checks are only required within the build system but not
for the ImageBuilder. These checks are excluded by using ifndef IB.

This commit merges the three ifndef IB blocks together.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit cc9d5b5a488d3a43068f621a1ef184f06e43bede)
</content>
</entry>
<entry>
<title>build, imagebuilder: Do not require compilers</title>
<updated>2020-12-31T19:32:33Z</updated>
<author>
<name>Sven Roederer</name>
</author>
<published>2020-09-27T21:07:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=79b1fa170288115d1929c55713dc840a133bddd9'/>
<id>urn:sha1:79b1fa170288115d1929c55713dc840a133bddd9</id>
<content type='text'>
The buildroot and SDK both require the compilers (gcc, g++) to be
installed on the host system, however the ImageBuilder uses precompiled
binaries.

This patch changes the prerequirements checks to skip the checking for
the compilers if running as ImageBuilder. A similar change has been
made for libncurses-dev in 4a1a58a3e2d2.

Signed-off-by: Sven Roederer &lt;devel-sven@geroedel.de&gt;
Acked-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit ae12a747cae3df16d84b7dc92f39427948d4e8e2)
</content>
</entry>
<entry>
<title>build, imagebuilder: Do not require libncurses-dev</title>
<updated>2020-12-31T19:31:54Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-04-14T21:14:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=58138df2d56789f0b3da3fe0592d9d1288803bcb'/>
<id>urn:sha1:58138df2d56789f0b3da3fe0592d9d1288803bcb</id>
<content type='text'>
The buildroot and SDK both require `libncurses-dev` to be installed on
the system, however the ImageBuilder uses precompiled binaries.

This patch changes the prerequirements checks to skip the
`libncurses-dev` part if running as ImageBuilder.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit 4a1a58a3e2d2360950ff23a05f1f55b779174d6a)
</content>
</entry>
<entry>
<title>build: prereq: tidy gcc version checks</title>
<updated>2020-03-29T16:47:03Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2020-03-24T11:05:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=a08394b3c6f5c8e4b4828b11bf691836c8dd306f'/>
<id>urn:sha1:a08394b3c6f5c8e4b4828b11bf691836c8dd306f</id>
<content type='text'>
There is a restriction in the number of parameters(10)  that may be passed to
the SetupHostCommand macro so continually adding explicit gcc'n' version
checks ends up breaking the compiler check for the later versions and
oddballs like Darwin as was done in 835d1c68a0 which added gcc10.

Drop all the explicitly specified gcc version checks.  If a suitable gcc
compiler is not found, it may be specified at the dependency checking
stage after which that version will be symlinked into the build staging
host directory.

eg. 'CC=gccfoo CXX=g++foo make prereq'

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
Acked-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
(cherry picked from commit 1fb3c003d68d3feaf797e8b64edccc9fa622d250)
</content>
</entry>
<entry>
<title>build: add GCC 10 version detection</title>
<updated>2020-03-29T16:46:57Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2020-03-18T18:39:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=66cbfeeaae2c8d9eff8ede50e52ba99875b0ad66'/>
<id>urn:sha1:66cbfeeaae2c8d9eff8ede50e52ba99875b0ad66</id>
<content type='text'>
Lets add GCC 10 detection to the build system as distributions like Fedora 32 have started shipping with it.
Some tools like mtd-utils need work to compile under GCC10, but that will be next step.

Signed-off-by: Robert Marko &lt;robert.marko@sartura.hr&gt;
(cherry picked from commit 835d1c68a0f036c8b0d837a48b5a05fdfb2e8218)
</content>
</entry>
<entry>
<title>build: cleanup possibly dangling Python 3 host symlink</title>
<updated>2019-11-09T07:21:45Z</updated>
<author>
<name>Etienne Champetier</name>
</author>
<published>2019-11-08T14:58:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=799de7c641ffa98323929a20a8d92c7cc4ebb251'/>
<id>urn:sha1:799de7c641ffa98323929a20a8d92c7cc4ebb251</id>
<content type='text'>
When switching from master branch to 19.07 or older, we need to ensure
that Python symlink in staging bin directory points to Python 2.

We can't rely completly just on SetupHostCommand as its executed only in
cases when the $(STAGING_DIR_HOST)/bin/python doesn't already exist, so
we need to remove it before running SetupHostCommand.

This is a cherry-pick of 3b68fb57c938af3948ae4c2da61501183fbef649
with python3 instead of python2

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Signed-off-by: Etienne Champetier &lt;champetier.etienne@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: fixup python SetupHostCommand to use python2</title>
<updated>2019-11-09T07:21:45Z</updated>
<author>
<name>Etienne Champetier</name>
</author>
<published>2019-10-31T10:54:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=785d4f3efded4a5094ee8e1ce4535dd0933b956d'/>
<id>urn:sha1:785d4f3efded4a5094ee8e1ce4535dd0933b956d</id>
<content type='text'>
Here is a way to break your build env without this patch:
1) have python point to python3, and no python2
2) start the build, SetupHostCommand will create a symlink
./staging_dir/host/bin/python -&gt; /usr/bin/python
3) build fails on scons because it can't find any python2
4) install python2 and restart the build
5) the build fails on wireless-regdb compile because python is python3 instead of python

Signed-off-by: Etienne Champetier &lt;champetier.etienne@gmail.com&gt;
</content>
</entry>
</feed>
