Commit Graph

1427 Commits

Author SHA1 Message Date
Timothy Legge
3129c7bcdb apkbuild-cpan.in: format depends indent and wrap 2021-01-07 14:06:35 +00:00
Timothy Legge
9dde1e73e2 Add license_mapping for Apache-2.0 2021-01-07 14:06:35 +00:00
Bart Ribbers
700bdb552f newapkbuild: don't try to build in the package target when using cmake, just install 2021-01-07 14:05:47 +00:00
Drew DeVault
b0af30c5be abuild.in: update autoconf test for riscv64 2021-01-04 20:28:09 +01:00
Drew DeVault
98c10731dc Update config.guess, config.sub, to 2020-11-19 2021-01-04 20:28:09 +01:00
Sören Tempel
3665a7a994 abuild rootbld: disable real chown calls in fakeroot
By default, fakeroot forwards chown system calls to the libc and ignores
EPERM errors. Unfortunately, when fakeroot is used inside a restricted
bubblewrap environment, bubblewrap intercepts these system calls and
returns EINVAL. The EINVAL return value is not masked by fakeroot and
returned to the caller, thereby causing failures of mv(1), install(1),
chown(1), … which use the chown system calls internally.

Setting the FAKEROOTDONTTRYCHOWN environment variable prevents the chown
systemcalls to be performed in the first place. This variable is only
set in the environment created through bubblewrap by abuild rootbld.

Fixes #10021
2020-12-21 22:00:19 +01:00
Jakub Jirutka
b78073f663 newapkbuild: remove /usr/.cargo* after cargo install
cargo is now generating two files: .cargo.toml and .cargo2.json.
2020-12-14 07:23:20 +00:00
Leo
c59629326b abuild.in: check for a valid pkgrel with apk version --check
fixes #10011
2020-12-13 11:23:42 -03:00
Natanael Copa
10aa67a0ca Revert "set CARGO_HOME to $SRCDEST/cargo"
the SRCDEST may be shared by multiple builders and apparently cargo does
not seem to handle that well. There are also no good way to do clean-up
of the cache for purging things that is no longer in use.

This reverts commit af0c88e6ab.
2020-11-27 15:17:11 +00:00
Newbyte
55be1feb02 newapkbuild.1: remove redundant parenthesis in CMake generator so apkbuild-lint stops complaining 2020-11-08 14:31:46 +00:00
Natanael Copa
8ceca11831 ==== release 3.7.0_rc1 ==== 2020-10-29 15:02:23 +00:00
Natanael Copa
c3fb176f24 tests: test if build is reproducible 2020-10-29 14:47:30 +00:00
Natanael Copa
32785f6360 abuild: restore working dir after updating index
This fixes issue with `abuild cleanpkg all`, which would fail to set
SOURCE_DATE_EPOC for reproducible builds.
2020-10-29 14:46:46 +00:00
Natanael Copa
614fbc507b tests: add test for lib64 2020-10-29 14:46:46 +00:00
Natanael Copa
5111ca5fc8 tests: clean up build packages after successful build 2020-10-29 14:46:38 +00:00
Natanael Copa
3a75c39860 tests: test for build failure 2020-10-29 13:30:30 +00:00
Natanael Copa
b6a807296f APKBUILD.5: document options="lib64" 2020-10-29 12:05:43 +00:00
Natanael Copa
68baa23906 tests: add test for basic package 2020-10-29 12:04:27 +00:00
Leo
4c38544a96 abuild: don't warn about static libraries in -dev 2020-10-29 11:38:38 +00:00
Leo
8eeca0adad *: say we are using GPL-2.0-only 2020-10-23 11:39:18 -03:00
Leo
b376035ce3 add license GPL-2.0-only WITH OpenSSL-Exception 2020-10-23 11:30:25 -03:00
Timothy Legge
bda2774811 apkbuild-cpan.in: add gpl_2 license_mapping 2020-09-17 22:03:47 +00:00
Sören Tempel
b3c1b65f75 checkapk: calculate size difference of packages 2020-09-17 11:55:54 +00:00
Rasmus Thomsen
13993e014a abuild.conf: add SAMUFLAGS to honor $JOBS with samu/ninja 2020-09-17 11:54:26 +00:00
Leo
ba3e575d37 abuild: accept lib64 as an option to ignore /lib64 checks
this is required when we package stuff with compatibility to glibc like
libc6-compat
2020-07-20 14:03:52 -03:00
Timothy Legge
a3eb828a7c apkbuild-cpan.in: add back non perl dependencies on recreate 2020-07-08 11:47:24 +00:00
Natanael Copa
dd4cd9d606 abuild: return error if there are more than one maintainer
fixes #5421
2020-07-08 13:15:13 +02:00
Natanael Copa
634c81180c abuild-gzsplit: fix handling of pax headers
fixes #9999
2020-07-08 12:44:40 +02:00
Natanael Copa
62913a287d abuild-gzsplit: use meaningful error messages 2020-07-08 12:44:19 +02:00
Natanael Copa
fbc11ea271 make: build with -g by default 2020-07-08 12:41:21 +02:00
Natanael Copa
69dd828919 tests: improve test output
prefix each test output so its easier to see what is tested
2020-07-08 10:59:38 +02:00
Natanael Copa
84e82828ba tests: add tests for abuild-gzsplit
ref #9999
2020-07-08 10:55:01 +02:00
Natanael Copa
2be7002cda abuild-fetch: retry download if byte range is unsupported
fixes #10004
2020-07-08 10:10:26 +02:00
Rasmus Thomsen
2cc63809ad newapkbuild: invoke meson directly for build/test/install instead of ninja
This has multiple advantages:
* It's tool agnostic (e.g. if we were to drop the ninja symlink
  for samu, we wouldn't have to change anything here)
* It allows for more fine grained control, e.g. in meson test,
  where we can increase timeouts and print the test log to stdout,
  something which we can't control when invoking it via ninja.
* We can pass --no-rebuild to test and install, so ninja doesn't
  have to check if anything has to be rebuild against in the test
  and install phase, when we built everything in the build phase
  already

This is similiar to dd24cdf85f, but
for meson.
2020-07-06 18:34:29 +00:00
Natanael Copa
606174552e abuild-fetch: adjust maxlength of outfile
so we have buffer space for the ".part" suffix.
2020-07-06 10:59:56 +00:00
Natanael Copa
529904eade abuild-gzsplit: fix compiler warnings 2020-07-06 10:59:56 +00:00
Natanael Copa
a40c5de0ca abuild-tar: fix varioius compiler warnings
fix return value for usage text

fix digest to be unsigned char buffer
2020-07-06 10:59:56 +00:00
Natanael Copa
ff11a9a0a8 abuild: provide a list of patches that failed
Try all patches and return of list of patches that failed rather than
exit on first failed patch.
2020-07-06 10:59:56 +00:00
Natanael Copa
14a81655e4 make: use -Wall -Werror by default
But let env var CFLAG override
2020-07-06 10:59:56 +00:00
Timothy Legge
d984d89ced Keep original package order on recreate 2020-07-06 10:51:33 +00:00
Rasmus Thomsen
0a9ca00905 abuild.conf: set DFLAGS="-Os" by default
Without these we don't have any optimizations by default in D applications
2020-07-06 10:50:31 +00:00
Leo
29a3433b43 abuild: don't error out immediately in postcheck()
Store exit code in the variable 'e', then return it, if there are no
errors then it will return 0 as that is the default value, otherwise it
will return 1 and error out as previously
2020-07-06 10:46:26 +00:00
Leo
cd004c0232 error out if /lib64 or /usr/lib64 is found 2020-07-06 10:46:26 +00:00
Max Rees
b5549436df abuild-gzsplit: support libarchive pax format tar archives 2020-07-06 10:43:48 +00:00
Leo
0202244ce5 abuild: fix a couple of whitespace
use whitespace instead of tab where appropriate
2020-07-06 10:20:57 +00:00
Kuichi Fujiwara
6069975f21 Fix integer signedness mismatch on x86_64
Root cause of a malloc() failure when processing large files (>2GB) in an archive.
2020-07-06 10:06:57 +00:00
Rasmus Thomsen
d3c93a3d15 abuild: set --locked for all cargo invocations
That ensures that we always use the versions specified in the Cargo.lock
file, which is required for reproducible builds
2020-07-06 10:00:13 +00:00
Bart Ribbers
dd24cdf85f newapkbuild: make CMake packages use cmake --build directly rather than through make 2020-07-06 09:47:29 +00:00
Ariadne Conill
51c03644ba functions: add hostspecs for riscv32/riscv64 2020-05-28 13:12:22 -06:00
Natanael Copa
c53d8ad12a ==== release 3.6.0 ==== 2020-05-28 14:38:50 +00:00