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
Dubiousjim
ad61123797
abuild-sign: wrap cd in a subshell, use set -e
2013-07-09 07:02:36 +00:00
Dubiousjim
3eac277542
abuild-sign: make vars local
2013-07-09 07:01:07 +00:00
Dubiousjim
8aa5e21322
abuild-sign: reformat error output
2013-07-09 07:00:53 +00:00
Dubiousjim
83ff539cb7
abuild_keygen: several tweaks
...
* make vars local
* refactor calculation of default_name
* make non_interactive=1
* tweak error message
* tweak sed command
2013-07-09 07:00:41 +00:00
Dubiousjim
ef9fb52908
various: use long options, rework usages
2013-07-09 06:59:30 +00:00
Dubiousjim
7b2030a06a
Makefile: remove dist
...
as discussed in http://lists.alpinelinux.org/alpine-devel/3122.html
2013-07-09 06:58:45 +00:00
Dubiousjim
db1314ac55
various: move conf-loading and i/o to functions
2013-07-09 06:44:01 +00:00
Dubiousjim
144ee3f113
abuild-sign: refactor
2013-07-09 06:39:46 +00:00
Dubiousjim
42b0e019b9
abuild-keygen: refactor
2013-07-09 06:39:37 +00:00
Dubiousjim
811a215018
various: tweak opening comments, whitespace
...
Also remove incomplete efforts at listing "Depends on: ..."
2013-07-08 14:49:36 +00:00
Dubiousjim
e1339a9b77
various: add descriptions, attribution, license
2013-07-08 14:48:56 +00:00