Natanael Copa
37e15b1fe3
==== release 3.15.0_rc3 ====
3.15.0_rc3
2025-04-11 16:48:45 +02:00
Sertonix
c5b0b6a60b
abuild: fix rootbld with GNU awk
...
POSIX doesn't specify how something like 'getline < "foo" "bar"' should
behave. busybox and GNU awk differ so we need to use parentheses.
Fixes https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10171
2025-04-09 22:36:28 +02:00
Natanael Copa
d9ad978c89
==== release 3.15.0_rc2 ====
3.15.0_rc2
2025-03-31 17:43:19 +02:00
Kaarle Ritvanen
0f786fff08
abuild: dbg subpackage conflict dependencies
...
to prevent wrong versions from installing when multiple versions are
available
3.15.0_rc1
2025-03-31 15:40:12 +00:00
El RIDO
8c01ae7038
abump: add option -b BRANCH to create git branch before bumping
...
Create a git branch from HEAD before normal operation.
2025-03-31 16:47:22 +02:00
Sertonix
22635adebf
abuild: fix deduplicating builddeps
...
Fixes 495dac7fa943 abuild: unify dependency installation and removal code
2025-03-31 14:41:12 +00:00
ptrcnull
050b9de1de
abuild: mount /var/tmp with a writable location
...
some[1] packages' tests use /var/tmp instead of /tmp for temporary files,
sometimes for the purpose of being on the same filesystem.
[1]: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=tests/test-copy-file-1.sh;h=b56699159039#l9
2025-03-31 14:40:08 +00:00
Sertonix
d5ec3018b1
abuild: use $git for rootbld config
...
Avoids an error message when git is missing.
2025-03-31 14:35:28 +00:00
Sertonix
9da181abe3
test: increase default timeout
2025-03-31 14:33:24 +00:00
Sertonix
db1debe200
abuild: use clean passwd/group in rootbld
...
Fixes https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10094
Ref c9b4146aaa32 Revert "rootbld: run mkusers inside the chroot and don't affect host users"
2025-03-31 14:33:24 +00:00
Sertonix
3040818473
abuild-sign: use apk_tar
...
Fixes issues with abuild-sign using GNU tar extensions for mtime that
can't be parsed by apk-tools.
This happens for dates after 2242-03-16T12:56:31+00:00 (in octal 77777777777)
2025-03-31 10:28:43 +00:00
Sertonix
6627a52596
functions.sh: move apk_tar from abuild
...
Allows sharing code with other abuild tools
2025-03-31 10:28:43 +00:00
Sertonix
3f5614abbe
functions.sh: add fix PKG_CONFIG_PATH when cross compiling
...
.pc files can be found in both /usr/lib/pkgconfig and /usr/share/pkgconfig
2025-03-26 15:48:41 +00:00
ptrcnull
751870231a
abuild: do not export "$srcdir"
...
several[1][2] build systems use a variable called "srcdir"
to locate either the root project directory, or some subdirectory
we should not blindly export a variable under the same name,
as it leads to broken builds - either loudly, when tests fail,
or quietly when a ""missing"" file simply gets ignored
[1]: https://github.com/PCRE2Project/pcre2/blob/pcre2-10.45/RunTest#L141
[2]: https://github.com/json-c/json-c/blob/json-c-0.18/tests/test-defs.sh#12
2025-03-22 20:21:00 +01:00
Sertonix
2afbdf9fdb
abuild: configure cargo for debug symbols
...
Should make -dbg subpackages and DEBUG=1 just work for most packages
that use cargo.
2025-03-20 08:41:12 +00:00
Sertonix
f6ed352d6f
abuild: replace apk info --installed with -e
...
apk info --installed is deprecated in apkv3 in favor of -e, --exists.
The --exists option doesn't exist apkv3 so use -e.
Ref 14881b9ffb
2025-03-18 18:14:55 +01:00
Sertonix
f190fb19d6
abuild: only set --cache-dir when it exists
...
apkv3 requires that --cache-dir exists when it is set.
Ref https://gitlab.alpinelinux.org/alpine/apk-tools/-/merge_requests/239#note_453033
2025-03-18 18:14:12 +01:00
Hugo Osvaldo Barrera
8e2d2f7367
APKBUILD.5: document maintainer field
...
See: https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/318
2025-03-18 13:29:30 +00:00
fossdd
019cc3dde5
abump: run checkapk after abuild
2025-03-18 13:08:10 +00:00
Sertonix
99c4772d13
abuild: don't set !strip when dbg subpackage exists
...
default_dbg doesn't strip binaries which weren't moved into a (sub)pkgdir
yet and statically linked binaries so we still need to strip these with
stripbin.
2025-03-18 13:05:29 +00:00
Sertonix
4500fbdc8b
abuild: use fixed permissions for scripts
...
Before permission bits other than x were copied from the original file
which can differ depending on the umask while cloning the repo.
2025-03-18 13:02:23 +00:00
Sertonix
a1e7d0877f
abuild: fix trace_apk_deps when CBUILDROOT doesn't exit and isn't needed
2025-03-18 13:00:33 +00:00
Sertonix
152886e9ce
abuild: use scanelf -E to filter for ET_DYN
2025-03-18 12:58:27 +00:00
Sertonix
118579f839
abuild: add custom options with prefix:name
...
Fixes https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10168
Fixes c3019e1b5db1 abuild: allow options to only effect specific packages
2025-03-18 12:26:08 +00:00
Sertonix
5e77cf9f7f
abuild: remove pkgconfig rebuild warning
...
There is no package in the edge aports that needs to be rebuild anymore.
The "not found" warning should be enough for other cases.
2025-03-18 11:42:10 +00:00
Sertonix
6e04edc67e
abuild: use --exact for apk search to prevent false positives
2025-03-18 11:40:26 +00:00
Sertonix
03b674c3a6
abuild: simplify {replaces,provider}_priority validation with case
...
Also this way is much safer since it isn't using echo or shell expansion
2025-03-18 11:37:38 +00:00
Dominique Martinet
f11b7905fd
APKBUILD.5: add comment about negating arches
...
Text copied from the alpine wiki
Link: https://wiki.alpinelinux.org/wiki/APKBUILD_Reference
Reported-by: Quentin Rameau <quinq@fifth.space>
2025-03-18 11:22:58 +00:00
Sertonix
b016d5115f
apkbuild-pypi.in: add space at the beginning of the comment
2025-03-18 11:20:40 +00:00
Sertonix
05c3fe555c
apkbuild-cpan.in: add space at the beginning of the comment
...
As specified in [CODINGSTYLE.md](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/CODINGSTYLE.md?ref_type=heads#spacing )
2025-03-18 11:20:40 +00:00
Sertonix
59a1c6cf83
abuild: use unpigz instead of pigz -d
...
This simplifies the logic and doesn't require pigz to be found at a
specific hard-coded path.
2025-03-18 11:16:42 +00:00
Sertonix
57d24481f2
functions.sh: respect ABUILD_SHAREDIR at global scope
...
Fixes update_config_{sub,guess} not working with changed ABUILD_SHAREDIR
2025-03-18 11:16:42 +00:00
Sertonix
39443b02d7
abuild: fix default_static not restricted to usr/lib and lib
...
Fixes b849aae4b9b abuild: provide a default_static() and static() functions
2025-03-18 11:16:42 +00:00
Sertonix
e00b15e6ad
abuild: add -p to mkdir when creating temporary directories
...
When the build errors or is stopped before the temporary directory is
removed again trying to continue the build would fail.
2025-03-18 11:16:42 +00:00
Sertonix
c1b39e45e0
abuild: fix dependency tracing when CARCH = CBUILD_ARCH but CBUILD != CHOST
...
This happens when bootstrapping alpine linux on a different OS but with the
same architecure.
2025-03-18 11:16:42 +00:00
Sertonix
8c5665a937
abuild: fix arch in .PKGINFO when subpackage arch is set to all
...
Fixes cd32e245e21 abuild: fix subpackage setting arch to all explicitly
2025-03-18 11:16:42 +00:00
Sertonix
930f4f4c10
abuild: replace xargs with safer find -exec
...
xargs might consider some character special. find -exec doesn't have
such issues
2025-03-18 11:16:42 +00:00
Sertonix
2851ebf1f2
functions.sh: replace CC default g{cc,++} with c{c,++}
...
This fixes the test suite with only clang
and should simplify bootstrap/cross compiling
from a clang only system.
2025-03-18 11:16:42 +00:00
Sertonix
4bc6058333
tests: fix indentation
2025-03-18 11:16:42 +00:00
Sertonix
1870eee7e3
abuild: add missing path argument to find(1)
...
This is required by POSIX and some implementations fail without
2025-03-18 11:16:42 +00:00
Sertonix
6efa15f836
abuild: use - as file for paste(1)
...
POSIX requires a file to be specified
2025-03-18 11:16:42 +00:00
Sertonix
8042f544b3
tests: ignore build-base missing on host system
...
Fix tests on systems which use apk but are not alpine linux.
2025-03-18 11:16:42 +00:00
Sertonix
bb6a94de2c
*: replace cp -r with cp -R
...
-r has been removed from the posix spec and might be
missing in some implementations.
2025-03-18 11:16:42 +00:00
Sören Tempel
e0fad2cb0d
abuild: In default -openrc subpackage also move /etc/user files
...
OpenRC 0.60 added experimental support for user services. These ship
their init.d and conf.d files in /etc/user. Hence, we should also move
these subdirectories to the -openrc subpackage.
2025-03-01 22:46:49 +01:00
Celeste
fb2543ffb9
abuild: clean up empty /lib directory
...
unless options="keepdirs" is specified
the same behavior is already applied to /usr/lib
2025-01-02 16:07:28 +00:00
Celeste
28b91ef155
abuild: remove debug output in duplicate sub-package validating code
2024-12-31 07:54:24 +00:00
Sertonix
c3019e1b5d
abuild: allow options to only effect specific packages
...
This is sometimes needed for options like !tracedeps which needs to only
apply to a specific subpackage in some cases.
Ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/16632#note_458449
2024-12-31 07:04:17 +00:00
Sertonix
a694f476bb
abuild: fix compression of manpages from section '9' and 'n'
...
Also compress things like [baycom.9] and [seealso.nso].
[baycom.9]: https://pkgs.alpinelinux.org/contents?path=%2Fusr%2Fshare%2Fman%2Fman9&name=ax25-tools-doc
[seealso.nso]: https://pkgs.alpinelinux.org/contents?path=%2Fusr%2Fshare%2Fman%2Fmann&name=owfs-doc
2024-12-31 07:02:22 +00:00
fossdd
0c7930dbe6
default.conf: remove CARGO_REGISTRIES_CRATES_IO_PROTOCOL
...
`sparse` is the default protocol for accessing crates.io since 2023
March.
Ref: https://github.com/rust-lang/cargo/pull/11791
2024-12-31 07:01:31 +00:00
Sertonix
9e57f9d3a7
abuild: simplify unpacking with unlzma/unxz
...
Since xz version 5.6.0 -T,--threads is set to 0 by default so this code
can be simplified.
Ref https://git.tukaani.org/?p=xz.git;a=blob;f=NEWS;h=478b24b26e2a2f91dde42c27490c009a62739a2b;hb=HEAD#l416
2024-12-31 06:59:16 +00:00