summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for the SUDO variableLeo2020-03-231-3/+6
| | | | This can be used to pick another tool to elevate privileges.
* newapkbuild: use 'plain' buildtype for meson and 'None' buildtype for CMakeRasmus Thomsen2020-02-211-2/+2
| | | | | | | | | 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
* abuild.in: in snapshot(), fix recursive callsWictor Lund2020-02-161-2/+2
| | | | | - Call "$abuild_path" instead of plain "abuild" - Pass $forceroot as done elsewhere
* set CARGO_HOME to $SRCDEST/cargoLeo2020-02-161-1/+2
| | | | | | 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.
* newapkbuild: do out-of-source CMake builds by defaultLeo2020-02-161-4/+20
| | | | | It is recommended by upstream CMake (it will warn when you do in-source builds) to keep generated files away from the source.
* abuild: include $pkgname in temporary rootbld directorySören Tempel2020-02-161-1/+1
| | | | | | | 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.
* abuild: use stat instead of df to figure filesystem typeTimo Teräs2020-02-081-1/+1
| | | | | | | | 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.
* functions.sh: exclusively use apk --print-arch to detect build archTimo Teräs2020-02-071-8/+5
| | | | | | | | | | | | | | | | | | | | | 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"
* fix typo in sample for pre and post installLeo2020-02-052-2/+2
|
* functions.sh: use apk --print-arch for CARCH if gcc is missingNatanael Copa2020-01-311-0/+7
|
* abuild: explicitly sort apk contentkpcyrd2020-01-301-3/+5
|
* abuild: set fixed atime and ctime in tarkpcyrd2020-01-301-4/+12
|
* abuild.in: add default bashcomp, zshcomp and fishcomp functionsLeo2020-01-281-2/+65
|
* abuild-keygen: make size of private key configurableSören Tempel2019-12-231-7/+11
| | | | | | 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.
* ==== release 3.5.0 ====v3.5.0Natanael Copa2019-12-191-1/+1
|
* ==== release 3.5.0_rc3 ====v3.5.0_rc3Natanael Copa2019-12-181-1/+1
|
* abuild: fix building without gitNatanael Copa2019-12-051-0/+4
| | | | fixes #9981
* abuild: fix applying patches from httpsNatanael Copa2019-11-281-1/+1
| | | | | | 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
* ==== release 3.5.0_rc2 ====v3.5.0_rc2Natanael Copa2019-11-261-1/+1
|
* abuild: set SOURCE_DATE_EPOCH from rootpkgNatanael Copa2019-11-261-1/+4
|
* abuild: Fix abuild rootbldSören Tempel2019-11-141-9/+17
| | | | | | | | | | | | | | Without this change abuild rootbld would fail with: touch: invalid date '@' Because SOURCE_DATE_EPOCH wasn't set when abuild rootbld was used. This is a bug introduced in 71d9d5233b9db3be91510addcb28721545d93185. Instead of reverting the aforementioned commit move the SOURCE_DATE_EPOCH initialization to a custom function and also call it from the abuild rootbld function. Fixes #9978
* Revert "abuild: make built package reproducible"Natanael Copa2019-11-071-11/+3
| | | | | | | The introduction of the --pax-options seems to confuse apk and resulted in `BAD archive' errors. This reverts commit f04a2ee34b28a38c4349ef1f94686a07afce730f.
* functions.sh: dont die if gcc is missingNatanael Copa2019-11-072-1/+12
| | | | | | abuild-sign does not use gcc. fixes #9974
* ==== release 3.5.0_rc1 ====v3.5.0_rc1Natanael Copa2019-11-071-1/+1
|
* abuild: detect /bin/sh dependency even if shebang has spacesNatanael Copa2019-11-071-1/+1
| | | | fixes !7
* Change permissions for sudo to 4555Fredrik Gustafsson2019-11-071-1/+1
| | | | | | | | | Currently the permissions for abuild-sudo is set to 4111, this make it impossible to move the sudo file after it has being created. Moving the sudo file is needed by yocto when creating an apk-package of abuild. The sudo binary in debian stretch since if debian does it, it can't be bad. Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
* Allow round brackets in the license variableBart Ribbers2019-11-071-1/+1
|
* abuild: get the git commit date only when neededNatanael Copa2019-11-071-8/+12
| | | | | getting the commit date can be timeconsuming so only do it once we need it. We also re-use the ABUILD_LAST_COMMIT to speed up the operation.
* abuild: rename global last_commit to ABUILD_LAST_COMMITNatanael Copa2019-11-071-4/+4
| | | | rename the global variable to upppercase.
* abuild: fix git_* functionsNatanael Copa2019-11-071-3/+3
| | | | | | Add -- to explicitly separate out the file path. Let git_last_commit_epoch take an option with the hash.
* abuild: make built package reproducibleNatanael Copa2019-11-071-3/+11
| | | | | Flags to make the tarball reproducible is taken from here: http://h2.jaguarpaw.co.uk/posts/reproducible-tar/
* abuild-sign: dont set timestamp in gzipNatanael Copa2019-11-071-1/+1
| | | | This improves reproducibility of builds
* abuild-sign: use pigz if availableNatanael Copa2019-11-071-1/+3
| | | | | This is similar to what we do in abuild. It improves performance on multicore machines.
* abuild: set SOURCE_DATE_EPOCH to last commit date by defaultNatanael Copa2019-11-071-5/+13
| | | | | set datestamps to be used in the built packages to date of commit. This makes it much easier to have reproducible builds.
* make: install depends as virtualNatanael Copa2019-11-071-1/+1
|
* make: add `depends` targetRichard Mortier2019-11-071-1/+3
| | | | Signed-off-by: Richard Mortier <mort@cantab.net>
* allow override sharedir for testingNatanael Copa2019-11-079-8/+9
| | | | | Aloow overrid sharedir with global ABUILD_SHAREDIR so we test the local functions.sh instead of a system installed functions.sh
* rename datadir -> sharedirNatanael Copa2019-11-079-39/+39
| | | | | abuild uses datadir as local variable in various functions. Rename the global datadir to sharedir to avoid confusion.
* add basic tests using batsNatanael Copa2019-11-074-0/+50
|
* newapkbuild: simplify source URL derived from GitHub URLJakub Jirutka2019-10-271-1/+1
| | | | | GitHub allows to reference https://github.com/<user>/<proj>/archive/<ver>.tar.gz also as https://github.com/<user>/<proj>/archive/<ver>/<anything>.tar.gz.
* newapkbuild: run cargo install with --lockedJakub Jirutka2019-10-271-1/+1
| | | | | This forces cargo to install the exact versions of the dependencies specified in Cargo.lock. This is essential for reproducible builds!
* abuild: remove unused print_version functionNatanael Copa2019-10-011-4/+0
| | | | | the function is not used since commit 3379e675512d (abuild: print version of built package early)
* abuild: add -V for print abuild versionNatanael Copa2019-10-011-1/+2
|
* abuild: only set sysconfdir in functions.shNatanael Copa2019-10-011-1/+0
| | | | | we set sysconfdir in functions.sh so there is no need to set it in abuild.
* Fix package version check on checkapkLeo2019-10-011-1/+1
| | | | The assignment of the oldpkg variable is missing the name of the package
* newapkbuild: add rust supportRasmus Thomsen2019-10-011-2/+32
|
* apkbuild-cpan.in: add 'configure' prereqsJoseph Burt2019-10-011-3/+8
| | | | Prereqs from the 'configure' phase also belong in makedepends
* apkbuild-cpan.in: always start pkgver with a digitJoseph Burt2019-10-011-4/+5
| | | | The 'version' string from CPAN can start with 'v...' or similar.
* Make default_dev move to /usr/share/pkgconfigLeo2019-10-011-6/+5
|
* Add support for parsing pkg-config files in /usr/share/pkgconfigLeo2019-10-011-9/+13
|