Commit Graph

234 Commits

Author SHA1 Message Date
Natanael Copa 1822f3f624 functions: rename prog to program 2013-10-25 07:24:46 +00:00
Natanael Copa 0c02afc694 abuild: move various functions to the shared functions.sh
specifically, every script that reads/parses ./APKBUILD needs to set
CARCH.
2013-10-25 07:18:11 +00:00
Natanael Copa 3092986fc6 abuild: add cmake files to -dev 2013-10-04 18:22:51 +00:00
Natanael Copa f95366002f abuild: support qt5 mkspecs 2013-10-04 14:15:17 +00:00
Timo Teräs 9e9e27b1db abuild: fix error message in update_config_sub 2013-09-26 10:22:13 +03:00
Natanael Copa dd3643574f abuild: allow circular makedepends
Some packages like gcc-gnat needs bootstrapping. We need to allow
circular makedepends so we can specify gcc-gnat as makedepends for gcc.
2013-09-10 13:02:01 +00:00
Natanael Copa a2bab13656 abuild: fix recursive building
fixes bug introduced with c6b0de32a (abuild: add makedepends_build and
makedepends_host for crosscompile)
2013-09-10 12:58:56 +00:00
Natanael Copa 23c760b499 abuild: add a cross_compiling helper function
to detect if we cross compile
2013-09-06 11:04:14 +00:00
Natanael Copa 7bda0ceadb abuild: make sure cleanup returns false in native compiling 2013-09-05 08:25:15 +00:00
Timo Teras c6b0de32a2 abuild: add makedepends_build and makedepends_host for crosscompile 2013-09-05 08:21:29 +00:00
Natanael Copa 9f81a14456 abuild: set CTARGET_ARCH and CTARGET_LIBC
For better crosscompile support
2013-09-04 14:06:48 +00:00
Natanael Copa b9305bad3d abuild: post check for /usr/var 2013-09-03 14:08:16 +00:00
Natanael Copa f525e735c2 abuild: export CC properly 2013-09-03 14:07:43 +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 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
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 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 3935984872 abuild: dont worry about ALPINE_LIBC
we better fix the affected apkbuilds
2013-07-19 12:59:47 +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
Dubiousjim 811a215018 various: tweak opening comments, whitespace
Also remove incomplete efforts at listing "Depends on: ..."
2013-07-08 14:49:36 +00:00
Natanael Copa 9e94ea1844 abuild: also look in /lib for .a files for -dev subpackage 2013-07-08 12:46:50 +00:00
Natanael Copa 8c12f9f61e abuild: automatically replace the config.sub with our version
introduce post_unpack that by default will search for config.sub and
config.guess and replace those if found.

we ship our own version of those files
2013-07-02 11:10:04 +02:00
Natanael Copa d1b6da646e abuild: whitespace fixes. use longopts for apk 2013-07-02 09:21:50 +02:00
Natanael Copa 60eb0dc80f abuild: explicitly use so:depends when croscompiling 2013-07-02 09:14:31 +02:00
Natanael Copa 4edf77e50f abuild: crosscompile support for strip 2013-07-02 08:18:47 +02:00
Natanael Copa 076ecdf315 abuild: check for more common spell errors
check for pkguser, pkggroup, subpackage
2013-07-02 08:16:18 +02:00
Natanael Copa 65edee22f2 abuild: run subpackage split functions in a subshell
so subfunctions don't overwrite the global variables like depends, pkgdesc etc.
2013-04-23 06:08:52 +00:00
Natanael Copa 8b3ecdf1f4 abuild: add support for optional remote logging
via ABUILD_LOG_CMD config option

This is supposed to be used on the build servers
2013-04-19 11:22:32 +02:00
Natanael Copa 5fca471ab2 abuild: treat syslinux's .c32 files as shared objects
syslinux switched to elf format from 5.0
2013-02-21 15:30:09 +00:00
Natanael Copa a3fc9a056f abuild: support filename::fileuri in source
This is an alternative to saveas-*:// which should be slightly more
intuitive. It also is similar to what arch linux does.
2013-02-20 13:38:22 +00:00
Natanael Copa 692a31793c abuild: fix warning about md5check 2013-02-13 07:31:00 +00:00
Natanael Copa 5f453f1cde abuild: use REPODEST as abuildrepo if specified
This has the nice effect that we get the index automatically built for
our REPODEST.

Discussion here:
http://lists.alpinelinux.org/alpine-devel/0249.html
2013-02-07 16:03:53 +00:00
Natanael Copa e0217ee520 abuild: update abuild repo index when cleaning packages 2013-02-07 15:29:53 +00:00
Natanael Copa db62857505 abuild: fix spelling in comment 2013-02-07 15:03:48 +00:00
Natanael Copa 36a55af4a0 abuild: verify pkgdesc length
fixes #1477
2013-02-07 14:54:59 +00:00
Carlo Landmeter 3ac1b1294a abuild: add git/svn snapshot hook
ref #1537
2013-01-08 00:45:53 +01:00