Commit Graph

1307 Commits

Author SHA1 Message Date
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
Rasmus Thomsen 79cc553d3b abuild: set -g in DFLAGS too for -dbg subpackages
This is required for proper debug info for D packages
2020-05-03 13:57:34 +02:00
Sören Tempel 19678c5434 Revert "abuild: include $pkgname in temporary rootbld directory"
This commit broke abuild-rmtemp which has a prefix check to ensure it
doesn't remove non-abuild directories. Revert the commit instead of
adjusting the prefix check for now.

This reverts commit d0828c0655.
2020-04-17 13:16:42 +02:00
Sören Tempel dcb7ec0c6b abuild.conf: enable PIE binaries by default for go as well
From `go help environment`:

	GOFLAGS
		A space-separated list of -flag=value settings to apply
		to go commands by default, when the given flag is known by
		the current command. Flags listed on the command-line
		are applied after this list and therefore override it.

And from `go help build`:

	-buildmode mode
		build mode to use. See 'go help buildmode' for more.

Setting this environment variable in /etc/abuild.conf allows us to build
all go binaries on the builders as PIE without needing to patch the go
compiler itself.
2020-04-17 13:16:42 +02:00
Natanael Copa 3ea72b0a9e ==== release 3.6.0_rc1 ==== 2020-04-14 13:55:32 +00:00
Natanael Copa 7779e913e7 newapkbuild: allow -n option without url 2020-04-14 13:53:10 +00:00
Natanael Copa 3c45858fc0 abuild: fix check_libc
fixes commit 012a179339
2020-03-31 10:13:24 +00:00
Minecrell f9e2f96476 abuild: default_prepare: Apply GZIP/XZ-compressed *.patch files
This allows using default_prepare to apply compressed patches,
e.g. the linux-lts kernel patches (compressed using XZ).
2020-03-30 11:03:21 +00:00
Leo d0ce42112f newapkbuild: treat packages that start with py[0-9]- as python packages. 2020-03-30 10:59:06 +00:00
Sören Tempel 5cc73d98c3 newapkbuild: do not pass CFLAGS and CXXFLAGS explicitly
With the None build type used nowadays these should be picked up
automatically by the environment. If not, we would also need to pass
CPPFLAGS and LDFLAGS explicitly.
2020-03-30 10:58:02 +00:00
Timothy Legge b60dd09b3b apkbuild-cpan.in: keep provides and replaces on recreate and deal with pkgrel 2020-03-27 02:02:24 +00:00
Timothy Legge b9f6741f11 apkbuild-cpan.in: add or between license 2020-03-27 02:02:24 +00:00
Timothy Legge b09e522d70 apkbuild-cpan.in: add additional license and package mappings 2020-03-27 02:02:24 +00:00
Timothy Legge e448c9a452 apkbuild-cpan.in: Avoid processing duplicate modules in parse_deps 2020-03-27 02:02:24 +00:00
Timothy Legge 8c62020a34 apkbuild-cpan.in: Fix issue if Build.PL and add perl-module-build as makedeps 2020-03-27 02:02:24 +00:00
Timothy Legge aaf56ec102 apkbuild-cpan.in: reset the pkgrel if the pkgver changes on recreate 2020-03-27 02:02:24 +00:00
Timothy Legge 6670e9479d apkbuild-cpan.in: perl and perl-dev as depends and makedepends
fix issue with how perl-dev was added as a makedepends
perl probably should be a dependency of all per modules
2020-03-27 02:02:24 +00:00
Timothy Legge bcbb8979c7 apkbuild-cpan.in: fix missing variables fails and remove empty vars
aports convention is to delete empty variables from APKBUILD files
this causes and issue with updating existing APKBUILD files
new depends, makedepends or checkdepends are added to process the file
properly.  Empty variables are then deleted once the file processes correctly
2020-03-27 02:02:24 +00:00
Timothy Legge 0387b8014a apkbuild-cpan.in: improve dealing with old APKBUILD perl module names
remove trailing pkgver from some module names
attempt to use additional variable content to determine perl package name
this now appears to support all but 10 or 11 non metacpan api retrievable
 module information and add a package mapping for perl-ldap
2020-03-27 02:02:17 +00:00
Timothy Legge 28bf6f71f0 apkbuild-cpan.in: fix parse_deps for multiple CPAN::Meta::Requirements return unique
do_depends can send multiple meta dependencies as additional parameters
parse_deps was not itterating through each of the parameters
this fix gets the entire list without duplicate entries
2020-03-23 18:14:47 +00:00
Timothy Legge 3d1c703562 apkbuild-cpan.in: fixes #9990, #9991 and #9992 2020-03-23 18:14:46 +00:00