<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/ansuel/include/package-ipkg.mk, branch main</title>
<subtitle>Staging tree of Christian Marangi</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/ansuel/atom?h=main</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/'/>
<updated>2024-01-08T13:06:38Z</updated>
<entry>
<title>packages: store URL in Manifest</title>
<updated>2024-01-08T13:06:38Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-01-06T17:48:46Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=751791d545087ceee10c680ec8b5590b3554d082'/>
<id>urn:sha1:751791d545087ceee10c680ec8b5590b3554d082</id>
<content type='text'>
The manifest should provide as much information as possible about the
package, including the project URL. With this commit the URL is stored
as it's own attribute instead of at the end of the description.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: replace SourceName with PKG_NAME compile unit name</title>
<updated>2023-09-24T17:33:53Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2023-09-08T12:01:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=658549837282d0ca9decfdaf599fc67bf90418c6'/>
<id>urn:sha1:658549837282d0ca9decfdaf599fc67bf90418c6</id>
<content type='text'>
Currently, the same information is stored at the Packages.manifest in
the 'Package:' variable and also additionally in the 'SourceName:' variable.

So we have for Packages.manifest for strongswan-charon-cmd:
```
Package: strongswan-charon-cmd
Version: 5.9.11-1

SourceName: strongswan-charon-cmd
License: GPL-2.0-or-later
Section: net
```

This is not correct. Several installable packages are built from the same
strongswan source. Therefore it makes more sense that the source name is
really the source name. In this case the it is 'strongswan'.

After this change the Packages.manifest for strongswan-charon-cmd:
```
Package: strongswan-charon-cmd
Version: 5.9.11-1

SourceName: strongswan
License: GPL-2.0-or-later
Section: net
```

In summary. The 'Package' name is the name of the package to be installed
on the target system. The 'SourceName' is the compile unit from which the
package was build from. This must be the same for all installable
packages built from the same compile unit. This commit fixes that.

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
</entry>
<entry>
<title>tools: build bash on macOS and use it for ipkg-build</title>
<updated>2022-01-27T12:38:48Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2022-01-27T12:25:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=3869ccbcc891a7185550a2a422e2db01fd994b7d'/>
<id>urn:sha1:3869ccbcc891a7185550a2a422e2db01fd994b7d</id>
<content type='text'>
On macOS, system binaries silently drop the environment variables for injecting
extra shared libraries (used by fakeroot). This is done for security reasons.
Work around this by building bash from source, so that it gets an ad-hoc signature
and does not have these restrictions

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: allow package to be built for all variants</title>
<updated>2021-11-14T23:38:46Z</updated>
<author>
<name>Eneas U de Queiroz</name>
</author>
<published>2021-11-03T18:51:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=91a5d69ea40196044e7456d72095afb655b0c5aa'/>
<id>urn:sha1:91a5d69ea40196044e7456d72095afb655b0c5aa</id>
<content type='text'>
This allows a package to be rebuilt for all different VARIANTs.
To do so, set VARIANT=*.

The wpa-cli package is not getting built after changes made by
19aae94 [build: avoid rebuilds of unset VARIANT packages], because
wpa-cli is only built when compiling a variant that includes
supplicant support, and the first selected variant may not build it.

Signed-off-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: avoid rebuilds of unset VARIANT packages</title>
<updated>2021-11-01T19:18:55Z</updated>
<author>
<name>Eneas U de Queiroz</name>
</author>
<published>2021-10-22T19:12:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=19aae949c608c8e78475988a8c7b453b8187d865'/>
<id>urn:sha1:19aae949c608c8e78475988a8c7b453b8187d865</id>
<content type='text'>
If a Makefile defines some packages with VARIANT set, and others without
it, the latter will be built once for every different VARIANT set, each
build trumping the previous one.

Avoid rebuilds by only building unnamed variant packages when the first
variant is built.

Signed-off-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: prepend ABI suffixes with a dash if package name ends with digit</title>
<updated>2021-06-14T13:14:19Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2021-06-14T12:58:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=f6a03bff5bccdbf9165087bccbb35095903d05c6'/>
<id>urn:sha1:f6a03bff5bccdbf9165087bccbb35095903d05c6</id>
<content type='text'>
Ensure that ABI suffixes are separated with a dash from the package name if
the name happens to end with a digit. This implementation detail got lost
during the recent refactoring of the ABI_VERSION handling in buildroot.

Ref: https://github.com/openwrt/packages/pull/14237#issuecomment-860473585
Fixes: c921650382 ("build: drop ABI version from metadata")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&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/ansuel/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>include: store ABIVersion in Packages index</title>
<updated>2021-03-09T05:04:35Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2021-03-08T04:09:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=fc5b101c06928884d2b0c42b11bf917d29538971'/>
<id>urn:sha1:fc5b101c06928884d2b0c42b11bf917d29538971</id>
<content type='text'>
With the existence of ABI versions there is no clean way to determine
the package name without an attached ABI version. The Packages index is
stored on device to know what packages are installed.

The ABIVersion was recently removed in c921650382 "build: drop ABI
version from metadata", while ABI versions still exists. This becomes a
problem if a user tries to export installed packages via `ubus call
rpcd-sys packagelist` which would return package names including the ABI
version. Trying to find these packages in a later release with changes
ABI version is impossible.

This commits adds the `ABIVersion` field again. Knowing both the
combined (SourceName + ABIVersion) and the `ABIVersion` it is possible
to calculate the package `SourceName` without storing it in the
on-device package list.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: fix ABI version for PROVIDES symbols</title>
<updated>2021-02-18T18:57:57Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-02-18T18:51:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=0db9d118657dd93509abec817eb22ce13d0ec1b6'/>
<id>urn:sha1:0db9d118657dd93509abec817eb22ce13d0ec1b6</id>
<content type='text'>
GetABISuffix does not work for intra-package ABI version of provided symbols,
since ABIV_$(provided) is not set.
Fix ABI version by using $(ABIV_$(1)) directly

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: only overwrite ABI version for provided packages when base version changed</title>
<updated>2021-02-15T17:56:50Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-02-15T17:53:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/ansuel/commit/?id=542eab31a60227bd429cb0207199daf83dd6850f'/>
<id>urn:sha1:542eab31a60227bd429cb0207199daf83dd6850f</id>
<content type='text'>
Should avoid some spurious rebuilds

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