Commit Graph

1279 Commits

Author SHA1 Message Date
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
Natanael Copa 7d75f85847 abuild-sudo: dont require root to be member of abuild group
fixes #9984
2020-03-23 14:18:52 +00:00
TBK 714be736a7 APKBUILD.5: change 'abuild checkout' to 'abuild snapshot' 2020-03-23 14:03:44 +00:00
Leo 012a179339 use option_has instead of list_has 2020-03-23 14:00:27 +00:00
TBK 1888007c38 newapkbuild.in: Allign with CODINGSTYLE quoting 2020-03-23 13:58:59 +00:00
TBK 402b582810 apkbuild-cpan.in: add OR to license 2020-03-23 13:57:37 +00:00
A. Wilcox 93cc98930d abuild: Use $APK instead of apk
This is the only appearance of `apk` in the source.  Appears accidental.

Fixes: 41343329 ("abuild: fix dependency tracing for cross builds")
Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
2020-03-23 13:55:41 +00:00
Leo ea166888bb Don't pollute stderr with rmdir messages that are ignored 2020-03-23 13:53:54 +00:00
Leo 2151c7af80 warn when directories found that hold shell completions.
This will warn then paths for certain shells that have completions are
found and tell the user to add a subpackage for it.

In a future date we also want to warn the user to move certain
directories where packages have completions to those directories so our
default_ functions can move them without problems
2020-03-23 13:20:05 +00:00
Drew DeVault 77922d5c41 .editorconfig: add Makefile rules 2020-03-23 13:16:01 +00:00
Leo 1bf7e588df move usr/lib/glade/modules and usr/share/glade/catalogs to -dev by default. 2020-03-23 13:14:16 +00:00
Leo d4c670bc44 Add support for the SUDO variable
This can be used to pick another tool to elevate privileges.
2020-03-23 13:09:15 +00:00
Rasmus Thomsen 69fc8b8fc1 newapkbuild: use 'plain' buildtype for meson and 'None' buildtype for CMake
This way Meson and CMake will use the C{,PP,XX}FLAGS we've set in
`/etc/abuild.conf`. Without this change CMake and meson will overwrite
our CFLAGS with custom flags. Most importantly, they prefer -O1/-O2 over
our -Os.

See also: https://lists.alpinelinux.org/~alpine/devel/%3C2896c13070c508a49cbaa72c8fb7f34ea947358b.camel%40cogitri.dev%3E
2020-02-21 18:01:48 +01:00
Wictor Lund 6d741ffba8 abuild.in: in snapshot(), fix recursive calls
- Call "$abuild_path" instead of plain "abuild"
- Pass $forceroot as done elsewhere
2020-02-16 23:46:58 +01:00
Leo af0c88e6ab set CARGO_HOME to $SRCDEST/cargo
CARGO_HOME tells cargo where to store installed dependencies, save it to
a directory in $SRCDEST so we don't need to download all dependencies
again when compiling a rust package.
2020-02-16 23:30:17 +01:00
Leo e125a76489 newapkbuild: do out-of-source CMake builds by default
It is recommended by upstream CMake (it will warn when you do in-source
builds) to keep generated files away from the source.
2020-02-16 19:05:42 +01:00
Sören Tempel d0828c0655 abuild: include $pkgname in temporary rootbld directory
This makes it easier to figure out to which build the directory belongs
to. Occasionally, I have many failed abuild rootblds in my /var/tmp and
including the $pkgname in the directory would help me associating the
directories with failed builds I recently executed.
2020-02-16 12:34:58 +01:00
Timo Teräs bad781082d abuild: use stat instead of df to figure filesystem type
Fixes the error:
  df: .: can't find mount point

When running abuild inside a chroot when the root file system
mountpoint information is not necessarily directly available.
2020-02-08 12:51:10 +02:00
Timo Teräs c9d3df08b3 functions.sh: exclusively use apk --print-arch to detect build arch
Originally "gcc -dumpmachine" was used to detect build gcc triplet.
However, abuild does not depend on gcc or build-base (but installs
it if needed to build) so gcc might not be there. Additionally
abuild-sign can be used standalone, and does not have gcc dependency.

Using ${CC:-gcc} is problematic in cross-compile, as CC might be
already set for the cross-compiler and would result giving the target
host triplet.

It was deemed simplest to use "apk --print-arch" exclusively to detect
the builder host type, or specify CBUILD manually. If there is need
to use abuild/abuild-sign on non-Alpine hosts withou apk, we can
later add fallback that uses "uname -m" to detect the architecture
and guess Alpine CBUILD from it.

Fixes #9974
Fixes: 5adf47c1 "functions.sh: use apk --print-arch for CARCH if gcc is missing"
Fixes: 95cd15c0 "functions.sh: dont die if gcc is missing"
2020-02-07 23:14:23 +02:00
Leo 57185172c5 fix typo in sample for pre and post install 2020-02-05 17:27:26 +01:00
Natanael Copa 5adf47c168 functions.sh: use apk --print-arch for CARCH if gcc is missing 2020-01-31 09:47:44 +00:00
kpcyrd 4f5b0a14bd abuild: explicitly sort apk content 2020-01-30 10:41:06 +00:00
kpcyrd 660f793d6d abuild: set fixed atime and ctime in tar 2020-01-30 10:41:06 +00:00
Leo d5826968b7 abuild.in: add default bashcomp, zshcomp and fishcomp functions 2020-01-28 08:57:40 +00:00
Sören Tempel d5f4982a9a abuild-keygen: make size of private key configurable
Previously, a key size of 2048 bits was hardcoded. While this is still
the default, it can now be changed. Additionally, the default key size
might be changed to 4096 in the future.
2019-12-23 15:12:14 +01:00
Natanael Copa 0d3dc71833 ==== release 3.5.0 ==== 2019-12-19 15:17:57 +00:00
Natanael Copa 478d4e9452 ==== release 3.5.0_rc3 ==== 2019-12-18 12:36:19 +00:00
Natanael Copa ec96c604e9 abuild: fix building without git
fixes #9981
2019-12-05 08:32:30 +00:00
Natanael Copa bb0324e398 abuild: fix applying patches from https
fix patches such as https://dev.alpinelinux.org/archive/domoticz/openzwave-1.6.patch

previously it would only work with the filenamename.patch::$url syntax
2019-11-28 12:46:12 +00:00