<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts, 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-09-21T09:52:40Z</updated>
<entry>
<title>scripts/download.pl: fix downloads with wget</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-09-13T05:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c07c565ea671e9929b99fbd28c58bde5f5e50070'/>
<id>urn:sha1:c07c565ea671e9929b99fbd28c58bde5f5e50070</id>
<content type='text'>
Several users of wget for downloads (curl is not available in the
system) have reported broken download functionality:

 wget --tries=5 --timeout=20 --output-document=-  https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.142.tar.xz
 http://: Invalid host name.

Thats all happening due to '' was passed as an argument, which got later
expanded to http://.

In the context of a list constructor '' is not nothing, it is an empty
string element.  So fix it by using () as it will yield "nothing" and
thus not introduce an empty string element.

Fixes: #10692
Fixes: 90c6e3aedf16 ("scripts: always check certificates")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt; [shellwords() -&gt; ()]
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 50a48faa1b8424e6b4b436b7118fffa2cba14b18)
</content>
</entry>
<entry>
<title>scripts/download.pl: silence can't exec curl warning</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-09-13T05:38:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f14d7cef7cce3ce79b880f71b25e03e5fb844882'/>
<id>urn:sha1:f14d7cef7cce3ce79b880f71b25e03e5fb844882</id>
<content type='text'>
When running build in verbose mode `make V=s` we can see a lot of
following warnings when curl is not available in the system:

 Can't exec "curl": No such file or directory at scripts/download.pl line 77.

So lets fix it by redirecting of the stderr to null hole.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit c836ca84e8f641e10a8349a8f9b7432b33d6cec1)
</content>
</entry>
<entry>
<title>scripts: always check certificates</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Josh Roys</name>
</author>
<published>2022-07-23T15:23:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f0bca34f16327c6001515f9c73c2c284574c7b6d'/>
<id>urn:sha1:f0bca34f16327c6001515f9c73c2c284574c7b6d</id>
<content type='text'>
Remove flags from wget and curl instructing them to ignore bad server
certificates. Although other mechanisms can protect against malicious
modifications of downloads, other vectors of attack may be available
to an adversary.

TLS certificate verification can be disabled by turning oof the
"Enable TLS certificate verification during package download" option
enabled by default in the "Global build settings" in "make menuconfig"

Signed-off-by: Josh Roys &lt;roysjosh@gmail.com&gt;
[ add additional info on how to disable this option ]
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt; [backport]
(cherry picked from commit 90c6e3aedf167b0ae1baf376e7800a631681e69a)
</content>
</entry>
<entry>
<title>scripts: xxdi.pl: add xxd -i compat mode</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-08-30T06:34:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=45a486bf934dc6ddbc71ed4b986a47883df12150'/>
<id>urn:sha1:45a486bf934dc6ddbc71ed4b986a47883df12150</id>
<content type='text'>
So it can serve as a standalone drop in replacement for xxd utility used
currently mostly in U-Boot packages with `xxd -i` mode which outputs C
include file style, with aim for byte to byte identical output, so the
eventual difference in the generated output is easily spottable.

Fixes: #10555
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt; [perl-fu]
(cherry picked from commit 06e01e817ec6643a35beb9e6946689e9cc7d020a)
</content>
</entry>
<entry>
<title>scripts: xxdi.pl: remove File::Slurp dependency</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2022-08-30T16:20:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=70124b8579b1c43c9018352adf8e87e1246843c7'/>
<id>urn:sha1:70124b8579b1c43c9018352adf8e87e1246843c7</id>
<content type='text'>
In order to make it more portable.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 8b278a76d90e3724815a5fde32be59f7796be1d8)
</content>
</entry>
<entry>
<title>scripts: add xxdi.pl</title>
<updated>2022-09-21T09:52:40Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-08-30T06:31:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4e221757c45fa94bfbd191726bfdc5655e61c31d'/>
<id>urn:sha1:4e221757c45fa94bfbd191726bfdc5655e61c31d</id>
<content type='text'>
xxdi.pl is a Perl script that implements vim's 'xxd -i' mode so that
packages do not have to use all of vim just to get this functionality.

References: #10555
Source: https://github.com/gregkh/xxdi/blob/97a6bd5cee05d1b15851981ec38ef5a460ddfcb1/xxdi.pl
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 2117d04a3aaad3394c0afec799d9c43f8a09c2cf)
</content>
</entry>
<entry>
<title>feeds: use git-src-full to allow Git versioning</title>
<updated>2022-08-28T06:16:24Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-10-11T20:47:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d445df84c5a9eb48939322733ec48031c32c2cf2'/>
<id>urn:sha1:d445df84c5a9eb48939322733ec48031c32c2cf2</id>
<content type='text'>
Both $(AUTORELEASE) and $(PKG_SRC_VERSION) (from luci.git) use the Git
log to determine releases and package timestamps.

Feeds are shallow cloned by default, resulting in an incomplete Git log
and therefore different local package versions than offered upstream.

This commits sets the default feeds to use `src-git-full` to solve that.

Add fixes from "2b1d92f: scripts/feeds: silence git warning by selecting
pull style" to `src-git-full`

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit 7fae1e5677e9bb4979c8d4ac99be4de6955b13d0)
</content>
</entry>
<entry>
<title>build,json: fix generation with empty profiles</title>
<updated>2021-06-21T19:43:21Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-06-21T06:23:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=2e157714a8d4a0e1dbd6351ca0a3fe2fce75b0eb'/>
<id>urn:sha1:2e157714a8d4a0e1dbd6351ca0a3fe2fce75b0eb</id>
<content type='text'>
If the image generation doesn't add any profiles to the output the
*profile merge* will fail. To avoid that set an empty profile as
fallback.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit fd0d9909bf50f114d5e7f7cedf53e542de878a2c)
</content>
</entry>
<entry>
<title>build: preserve profiles.json between builds</title>
<updated>2021-06-21T19:43:21Z</updated>
<author>
<name>Moritz Warning</name>
</author>
<published>2021-02-21T23:18:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=8add3e139ca5b58b91098aa0615f3492d1191241'/>
<id>urn:sha1:8add3e139ca5b58b91098aa0615f3492d1191241</id>
<content type='text'>
Keep other profiles.json content if the data belongs to the current
build version.

Also useful for the ImageBuilder, which builds for a single model each
time. Without this commit the profiles.json would only contain the
latest build profile information.

Signed-off-by: Moritz Warning &lt;moritzwarning@web.de&gt;
[improve commit message]
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit a463b96241fbc2d142982387eaed9989e201ac7a)
</content>
</entry>
<entry>
<title>build,json: backport default_packages fixes</title>
<updated>2021-03-26T09:15:42Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-03-26T08:53:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=22149da1f4f65985439b3e92da9a5226ad219f3b'/>
<id>urn:sha1:22149da1f4f65985439b3e92da9a5226ad219f3b</id>
<content type='text'>
Remove duplicate packages by running in `target/linux/` rather than
`target/linux/&lt;target&gt;/&lt;subtarget&gt;` and sort packages alphabetically.

Squash commit of:
7880a64848 build,json: 3rd fixup of default_packages
b36068d35d build,json: fixup fixup of arch_packages
1bf2b3fe90 build,json: fixup missing arch_packages

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
</feed>
