<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/jow/scripts/feeds, branch main</title>
<subtitle>Staging tree of Jo-Philipp Wich</subtitle>
<id>https://git.openwrt.org/openwrt/staging/jow/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/jow/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/'/>
<updated>2024-10-10T19:51:43Z</updated>
<entry>
<title>scripts/feeds: force kernel package scan after a target installation</title>
<updated>2024-10-10T19:51:43Z</updated>
<author>
<name>Thomas Richard</name>
</author>
<published>2024-09-24T16:27:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=51e083426b8b9343a253597baa286b76e9232194'/>
<id>urn:sha1:51e083426b8b9343a253597baa286b76e9232194</id>
<content type='text'>
When a target is installed from a feed, the linux kernel package is scanned
before the installation of this target.
If some kernel module packages are defined in this feeds at the target
level, there were not parsed during the scan of linux kernel package, as
the target didn't exist yet. So these kernel module packages don't exist.

Once the target is installed, clean the linux kernel packageinfo to force
the scan of the linux kernel package next time this script (or the make
command) is called.

Signed-off-by: Thomas Richard &lt;thomas.richard@bootlin.com&gt;
Link: https://patchwork.ozlabs.org/project/openwrt/patch/mailman.117548.1727195440.1280.openwrt-devel@lists.openwrt.org/
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: Support feed update with git pull --rebase --autostash</title>
<updated>2024-09-08T16:54:42Z</updated>
<author>
<name>Hannu Nyman</name>
</author>
<published>2024-05-04T06:57:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=f68dcce3bb2a5d1043db7282809ef9b197dec99a'/>
<id>urn:sha1:f68dcce3bb2a5d1043db7282809ef9b197dec99a</id>
<content type='text'>
Add feed update option '-s' that performs 'git pull --rebase --autostash':
* possible local uncommited changes are autostashed before pull,
* local commits are then rebased on top of the new commits pulled
  from origin and
* finally git does 'stash pop'.

This enables feed update while there are local development commits
and possibly also local uncommited changes.

Signed-off-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Link: https://github.com/openwrt/openwrt/pull/15377
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: Support feed update with git pull --rebase</title>
<updated>2024-09-08T16:54:41Z</updated>
<author>
<name>Hannu Nyman</name>
</author>
<published>2024-05-04T06:56:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=ef720b1e09fc8f013dc2bcc0b86f9b98ed4607fc'/>
<id>urn:sha1:ef720b1e09fc8f013dc2bcc0b86f9b98ed4607fc</id>
<content type='text'>
Add feed update option '-r' to perform "git pull --rebase" so that
possible local commits are rebased on top of the new commits pulled
from origin. That enables git pull while there are local
development commits.

Signed-off-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Link: https://github.com/openwrt/openwrt/pull/15377
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: add APK package build capabilities</title>
<updated>2024-05-17T20:21:26Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-05-14T10:36:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=d788ab376f859164df84e2054cbbbb0921943c5b'/>
<id>urn:sha1:d788ab376f859164df84e2054cbbbb0921943c5b</id>
<content type='text'>
A new option called `USE_APK` is added which generated APK packages
(.apk) instead of OPKG packages (.ipk).

Some features like fstools `snapshot` command are not yet ported

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: use long hashes when generating feed.buildinfo</title>
<updated>2023-11-02T11:40:44Z</updated>
<author>
<name>Sandro Jäckel</name>
</author>
<published>2023-11-02T02:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=376f1c80a967cf349e9d7d6168dd9bce3c35ebd8'/>
<id>urn:sha1:376f1c80a967cf349e9d7d6168dd9bce3c35ebd8</id>
<content type='text'>
Short hashes are not guaranteed to be unambiguous forever and could
collide if the repo grows over time. Git also estimates how many
characters are roughly required to prevent such a collision and slowly
increases the amount of characters beginning from 6, OpenWrt is already
at 8. Lets use the full hash the have a predictable length and keep
hashes unambiguous forever.

Signed-off-by: Sandro Jäckel &lt;sandro.jaeckel@gmail.com&gt;
</content>
</entry>
<entry>
<title>feeds: use git-src-full to allow Git versioning</title>
<updated>2022-02-14T23:24: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/jow/commit/?id=7fae1e5677e9bb4979c8d4ac99be4de6955b13d0'/>
<id>urn:sha1:7fae1e5677e9bb4979c8d4ac99be4de6955b13d0</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;
</content>
</entry>
<entry>
<title>scripts/feeds: install targets to target/linux/feeds and support overriding</title>
<updated>2022-01-24T12:29:05Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2022-01-24T12:28:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=ebc36ebb2349ef5d492dd2bd5be962bac26bb19a'/>
<id>urn:sha1:ebc36ebb2349ef5d492dd2bd5be962bac26bb19a</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: fix installing targets without explicitly specifying the feed</title>
<updated>2022-01-24T12:29:05Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2022-01-24T12:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=0bdf8d12063b9be1cd73798f54a53279d21c9c95'/>
<id>urn:sha1:0bdf8d12063b9be1cd73798f54a53279d21c9c95</id>
<content type='text'>
Add similar code to what is done on packages

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>treewide: drop use of which</title>
<updated>2022-01-17T08:14:26Z</updated>
<author>
<name>Ansuel Smith</name>
</author>
<published>2021-11-25T01:12:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=88204bfa82f982a986d2aa3e166a4c5946040308'/>
<id>urn:sha1:88204bfa82f982a986d2aa3e166a4c5946040308</id>
<content type='text'>
Ubuntu started to flag which as deprecated and it
seems which is not really standard and may vary
across Distro.
Drop the use of which and use the standard 'command -v'
for this simple task.
Which is still present in the prereq if some package/script
still use which.
A utility script called command_all.sh is implemented that
will just mimic the output of which -a.

Signed-off-by: Ansuel Smith &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/feeds: generate index after all feeds are updated</title>
<updated>2021-06-07T22:44:50Z</updated>
<author>
<name>Karel Kočí</name>
</author>
<published>2021-02-11T09:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=1aa80ce3931736f1020f69f486a815c2b2575d19'/>
<id>urn:sha1:1aa80ce3931736f1020f69f486a815c2b2575d19</id>
<content type='text'>
This separates index update from feed update. The result is that all
requested feeds are first updated and only then indexed.

The reason for this change is to prevent errors being reported and
potentially invalid index being generated thanks to cross feeds
dependency.
The feeds script pulls in default all feeds as they come and on install
prefers packages from first feeds (unless special feed is requested).
Thus order of feeds in some way specifies preferences. This is handy for
downstream distributions as they can simply override any package from
upstream feeds by placing their feed before them. This removes need to
patch or fork upstream feeds.
The problem is that such feed most likely depends in some way also on
subsequent feeds. The most likely feeds are 'packages' or 'luci'. The
example would be Python package that needs 'python.mk' from 'packages'
feed. Ordering custom feed after dependent feeds is sometimes just not
possible because of preference requirement described before.
The solution is to just first pull all feeds and generate indexes only
after that. In the end this ensures that index is generated correctly at
first try without any error.

In terms of code this removes 'perform_update' argument from
'update_feed' as with index update removal the update is the only action
performed in that subroutine. Thus this moves condition to 'update'
subroutine.

Signed-off-by: Karel Kočí &lt;karel.koci@nic.cz&gt;
</content>
</entry>
</feed>
