Natanael Copa
bd447a7c56
======== release 2.16.0 =========
2013-08-02 14:05:59 +00:00
Natanael Copa
6a0db56693
newapkbuild: add --build and --host options
2013-08-01 12:32:27 +00:00
Natanael Copa
270de19535
abuild.conf: simplify. only set CHOST and let abuild detect the rest
2013-08-01 12:29:03 +00:00
Natanael Copa
e2838fbb50
abuild: make it configurable what to cleanup and when
...
allow user specify if they want uninstall deps, remove srcdir and/or
pkgdir on failure or success.
We introduce CLEANUP and ERROR_CLEANUP config options in
/etc/abuild.conf. Valid values are: pkgdir srcdir deps.
2013-08-01 12:16:57 +00:00
Natanael Copa
11d9a7d601
abuild: set and export a default CC
...
seems like configure thinks we are crosscompiling unless we set CC when
--build and --host are specified.
2013-08-01 08:46:12 +00:00
Natanael Copa
ed89c1760d
ap: add #! in front of lua path
2013-08-01 06:41:09 +00:00
Natanael Copa
7472b59bb4
abuild: always set CBUILD and CTARGET if unset
2013-08-01 06:36:45 +00:00
Natanael Copa
0190dfaf8f
abuild: add safety check so we dont scan elfs outside our pkgdir
...
this is to catch bugs in abuild itself early
2013-07-30 12:27:03 +00:00
Natanael Copa
f43f6d312b
abuild: fix ldpath handling
...
it wrongly scanned /lib instead of $datadir/lib, causing bad things to
happen when scanning provides
2013-07-30 12:16:44 +00:00
Timo Teräs
21fb14d4e1
abuild: only update config.sub if needed
...
its only arm that needs it
2013-07-29 14:10:38 +00:00
Natanael Copa
e150a2515c
build: dont ship config.guess
...
instead let apkbuilds use --host and --build
2013-07-29 07:33:45 +00:00
Timo Teräs
c07db665ec
abuild: only update config.sub if our version is newer
...
and exit with error if not
2013-07-29 07:33:23 +00:00
Natanael Copa
8f93ada4ac
Revert "abuild: export CHOST, CARCH and CLIBC and let config.guess use CHOST"
...
This reverts commit 4234a10e92
.
We will not use config.guess. Instead we will use --build and --host
everywhere.
2013-07-29 06:40:41 +00:00
Natanael Copa
cbee419616
abuild: remove post_unpack
...
instead, provide 'update_config_sub' and let aports that needs replace
config.sub call it.
2013-07-26 11:56:05 +00:00
Natanael Copa
8112d2422a
abuild: use deps/undeps instead or installdeps/uninstalldeps
2013-07-26 11:04:40 +00:00
Natanael Copa
728ce0e6de
abuild: dont run 'build' from rootpkg
...
we want be able to run build and rootpkg separately. so you can stop
in the process, fix things, and then continue with 'abuild rootpkg' to
generate the package manually.
2013-07-26 09:18:55 +00:00
Natanael Copa
bfee7b63f9
abump: error out on first faild package
...
If some package fails, then stop processing the rest. This is so we
don't risk test build the rest for the packages against wrong lib.
For example, if 'abump libfoo-2.0 foo-2.0' fails on libfoo, we don't
want testbuild foo-2.0, which might end with success against libfoo-1.
We also echo the list of packages that was not bumped, so its easy to
copy/paste next run.
2013-07-26 07:31:54 +00:00
Natanael Copa
b0ea14135d
abuild: check for /usr/lib/charset.alias and error out if found
2013-07-26 07:22:45 +00:00
Natanael Copa
4234a10e92
abuild: export CHOST, CARCH and CLIBC and let config.guess use CHOST
2013-07-25 12:18:35 +00:00
Natanael Copa
3c15749bd0
abuild: microoptimization. call git describe only once
...
Use a global var for last_commit so we dont need call git for every
subpackage
2013-07-23 07:17:37 +00:00
Natanael Copa
60de2a776a
abuild: add support to mask out given CLIBC in options
...
For example, to mask out musl, add:
options="!libc_musl"
2013-07-22 14:29:56 +00:00
Natanael Copa
c20c613230
abuild: fix CARCH/CLIBC
...
We need set it in global scope as we need it even if we have not called
sanitycheck
2013-07-22 14:14:32 +00:00
Natanael Copa
2760f35c57
abump: print what packages failed
2013-07-22 13:57:14 +00:00
Natanael Copa
3935984872
abuild: dont worry about ALPINE_LIBC
...
we better fix the affected apkbuilds
2013-07-19 12:59:47 +00:00
Natanael Copa
cb21e18921
abump: fix the -f/--fixes option
2013-07-19 12:10:57 +00:00
Timo Teräs
d4627112a9
abuild: verify: only check strongest checksum which is present
2013-07-19 11:43:24 +00:00
Timo Teräs
b48df6c575
abuild: set CARCH and CLIBC always, guess from CHOST if not set
2013-07-19 11:39:50 +00:00
Natanael Copa
ad50945d80
abuild: use versioned depends for -dev subpackage
2013-07-16 09:30:09 +00:00
Natanael Copa
1606a8b31e
==== release 2.15.0 ====
2013-07-12 11:59:08 +00:00
Natanael Copa
92e36e2324
ap: switch to lua 5.2
2013-07-12 06:43:25 +00:00
Natanael Copa
e1d629b6c4
abump: fix set -e issue
...
It appears that when the subshell has a ||, the 'set -e' within
subshell gets invalidated.
This will work as expected:
( set -e; false; echo "should not get here" )
While this will not work as expected:
( set -e; false; echo "should not get here" ) || false
We resolve it by using $? to detect the status of subshell. We also let
the exitcode indicate how many packages that failed.
While here we also refactor it so most of the loop happens within the
subshell. This lets us set (or increase) rc variable once, and it
reduces number of forks which gives slightly better performance.
2013-07-10 07:14:46 +00:00
Natanael Copa
5021e13ffa
Revert "abump: verify APKBUILD's version"
...
We actually want be able to re-run abump without needing reset the
pkgver in case we had to fix things.
This reverts commit 8198ded868
.
Conflicts:
abump.in
2013-07-10 07:14:46 +00:00
Natanael Copa
5a53fbc9b7
build: make sure functions.sh gets generated at build time
2013-07-10 07:14:32 +00:00
Natanael Copa
db00867ceb
abump: add missing "
2013-07-09 12:57:20 +00:00
Natanael Copa
2ef7ed908c
functions: msg should always return success
...
Otherwise abuild-sign will end with error
2013-07-09 11:14:29 +00:00
Dubiousjim
0f5feef3c2
functions: also honor .abuild file at gitbase
...
This permits introducing branch-specific modifications to abuild.conf settings.
Any settings there override /etc/abuild.conf and $HOME/.abuild/abuild.conf.
2013-07-09 07:14:33 +00:00
Dubiousjim
cfa6c7d67a
various: fancier readconfig, permit env overrides
2013-07-09 07:13:46 +00:00
Dubiousjim
89afa41792
apkgrel, functions: refactor calculation of APKBUILD's path
2013-07-09 07:13:13 +00:00
Dubiousjim
b2d6b47be1
various: s/echo/msg/, s/echo/error/, tweak error messages
2013-07-09 07:12:56 +00:00
Dubiousjim
f15c630cb8
apkgrel: handle missing pkgrel in do_add
2013-07-09 07:12:40 +00:00
Dubiousjim
97f790a731
apkgrel: tweaks to loops, add quotes
2013-07-09 07:12:17 +00:00
Dubiousjim
59fd82d944
apkgrel: show_plain, show_pretty
2013-07-09 07:11:52 +00:00
Dubiousjim
e6313b54a4
apkgrel: --clean-git enhancements
2013-07-09 07:11:14 +00:00
Dubiousjim
9a740d05aa
abump: verify that we're in git tree
2013-07-09 07:10:27 +00:00
Dubiousjim
8198ded868
abump: verify APKBUILD's version
2013-07-09 07:09:48 +00:00
Dubiousjim
a10203d0fc
abump: refactor verification of APKBUILD
...
* includes renaming pkgname, pkgver
2013-07-09 07:09:29 +00:00
Dubiousjim
78b22a0f78
abump, functions: refactor (and verify) calculation of APKBUILD path
2013-07-09 07:09:05 +00:00
Dubiousjim
ecde203930
abump: tweak upgrade/cvelist
2013-07-09 07:08:41 +00:00
Dubiousjim
512d5fd551
abump: move loop inside do_bump, refine locals, introduce subshell
2013-07-09 07:05:32 +00:00
Dubiousjim
7a628e7dc4
abuild-sign: fix a race condition
2013-07-09 07:02:43 +00:00