<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/robimarko/include/download.mk, branch main</title>
<subtitle>Staging tree of Robert Marko</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/robimarko/atom?h=main</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/'/>
<updated>2023-07-28T07:00:49Z</updated>
<entry>
<title>build: make git sub-modules to fetch configurable</title>
<updated>2023-07-28T07:00:49Z</updated>
<author>
<name>Karsten Sperling</name>
</author>
<published>2023-03-16T01:17:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=350d9a34623374b54d2f953917466a5db9ec1dc1'/>
<id>urn:sha1:350d9a34623374b54d2f953917466a5db9ec1dc1</id>
<content type='text'>
Currently the git protocol downloads all submodules of the target
repository. This can be unwieldy for repositories with a lot of submodules
where only a subset are required in the context of the OpenWrt build.

This change adds a PKG_SOURCE_SUBMODULES variable to configure this
behavior. It takes a space-separated list of submodule paths, or the word
"skip" to disable submodule downloads entirely. The default is to download
all submodules, i.e. preserving current behavior.

Signed-off-by: Karsten Sperling &lt;ksperling@apple.com&gt;
</content>
</entry>
<entry>
<title>download: create immutable subversion checkout archive</title>
<updated>2023-05-18T14:17:52Z</updated>
<author>
<name>Tomasz Maciej Nowak</name>
</author>
<published>2023-05-10T17:07:07Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=92fec5360988bb761481ffdcb10514493f203321'/>
<id>urn:sha1:92fec5360988bb761481ffdcb10514493f203321</id>
<content type='text'>
On each generation of the archive check sum will differ, because when
checking out subversion repository, current date is used for directories
creation. Force tar to assign creation date of the last revision for all
items inside archive.

Signed-off-by: Tomasz Maciej Nowak &lt;tmn505@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: make the download tool configurable</title>
<updated>2022-10-19T22:35:19Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-30T23:36:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=f17608ddca299dc617595247f2ad30a73390dbd7'/>
<id>urn:sha1:f17608ddca299dc617595247f2ad30a73390dbd7</id>
<content type='text'>
Introduce a new option in the "Advanced configuration options" to
configure a custom download tool.

By declaring a string in "Use custom download tool" an user can force
what command to use to download package. With the string empty the
default tool used is curl, with wget as a fallback if not available.

download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.

If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.

While at it also tweak the tool selection logic and chose the tool only
once when the script is called and move aria2c specific variables in the
relevant section.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rules.mk: move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk</title>
<updated>2022-10-05T15:49:19Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-10-03T22:30:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=7df959449cabee021aa42cab3a7172e0972a79a7'/>
<id>urn:sha1:7df959449cabee021aa42cab3a7172e0972a79a7</id>
<content type='text'>
Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk as it's a better
place than exporting it in the global rules.mk makefile.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>download: improve handling of invalid local files</title>
<updated>2021-11-01T19:18:55Z</updated>
<author>
<name>Eneas U de Queiroz</name>
</author>
<published>2021-08-19T21:14:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=8cf4d4df5560f6771f74c3124870e8a23094aff3'/>
<id>urn:sha1:8cf4d4df5560f6771f74c3124870e8a23094aff3</id>
<content type='text'>
4e19cbc5533: [download: handle possibly invalid local tarballs] added a
FORCE rule to downloaded files, so that they will be always checked by
download.pl.

As a side-effect, check-compile will fail, forcing unnecessary package
rebuilds.
The check-compile.txt log shows (for libxml2 for example):
  Considering target file '.../dl/libxml2-2.9.12.tar.gz'.
    ...
    prerequisite 'FORCE' of target '.../dl/libxml2-2.9.12.tar.gz' does
    not exist.
    Must remake target '.../dl/libxml2-2.9.12.tar.gz'.
    ...
   Giving up on target file '...libxml2-2.9.12/.prepared_...'.
   Giving up on target file '...libxml2-2.9.12/.configured_...'.
   Giving up on target file '...libxml2-2.9.12/.built'.
   Giving up on target file '...stamp/.libxml2_installed'.
  Giving up on target file '.compile'.

Then the package is rebuilt even if it is not otherwise needed.

To fix this, instead of always forcing the download target to be remade,
check its hash first: if it matches, then the FORCE is not added.

Signed-off-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: introduce $(MKHASH)</title>
<updated>2021-05-13T13:13:15Z</updated>
<author>
<name>Leonardo Mörlein</name>
</author>
<published>2021-05-09T20:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=b993b68b6ca8444b5227a0c18df4600b37ac565c'/>
<id>urn:sha1:b993b68b6ca8444b5227a0c18df4600b37ac565c</id>
<content type='text'>
Before this commit, it was assumed that mkhash is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. In most of the cases, I just saw warnings like this:

    make: Entering directory '/home/.../package/gluon-status-page'
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    [...]

While these were only warnings and the package still compiled sucessfully,
I also observed that some package even fail to build because of this.

After applying this commit, the variable $(MKHASH) is introduced. This
variable points to $(STAGING_DIR_HOST)/bin/mkhash, which is always the
correct path.

Signed-off-by: Leonardo Mörlein &lt;me@irrelefant.net&gt;
</content>
</entry>
<entry>
<title>download: add mirror alias for Debian</title>
<updated>2021-02-26T19:41:00Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2021-02-20T20:17:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=9a9cf40dd968f409cf36c9537e79438d35322d95'/>
<id>urn:sha1:9a9cf40dd968f409cf36c9537e79438d35322d95</id>
<content type='text'>
Add an alias for Debian packages and download them from the Debian
mirror redirector.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
</entry>
<entry>
<title>treewide: unify OpenWrt hosted source via @OPENWRT</title>
<updated>2021-02-05T22:00:24Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-01-30T20:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=8286f3a3d3a7d65d36ee312c6fd3828d4e4fd048'/>
<id>urn:sha1:8286f3a3d3a7d65d36ee312c6fd3828d4e4fd048</id>
<content type='text'>
Multiple sources are hosted on OpenWrts source server only. The source
URLs to point to the server vary based on different epochs in OpenWrts
history.

Replace all by @OPENWRT which is an "empty" mirror, therefore using the
fallback servers sources.cdn.openwrt.org and sources.openwrt.org.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: use SPDX license tags</title>
<updated>2021-02-05T13:54:47Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-09-22T02:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=a17b8eaa2e4b319b7069170398fe965786a813e9'/>
<id>urn:sha1:a17b8eaa2e4b319b7069170398fe965786a813e9</id>
<content type='text'>
The license folder is a core part of OpenWrt and all GPL-2.0 licensed.
Use SPDX license tags to allow machines to check licenses.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
[rebase, keep some Copyright lines, sharpen commit message]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>build: prevent excessive re-evaluation of PKG_VERSION</title>
<updated>2020-10-16T19:39:10Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2020-10-06T11:39:58Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/robimarko/commit/?id=14bad2001f3f205af6d029ee8b55a0f6c4f0f4d0'/>
<id>urn:sha1:14bad2001f3f205af6d029ee8b55a0f6c4f0f4d0</id>
<content type='text'>
version_abbrev uses $(shell) and the ?= is causing make to run the command
over and over again, causing a significant build slowdown

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
