summaryrefslogtreecommitdiffstats
path: root/abuild.in
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't print 'git: not found' errorsOliver Smith2018-03-201-6/+13
| | | | | | | | | | | | | | | | | | abuild, as packaged in Alpine Linux, does not depend on git. But when you use it without git, it will print out errors like the following: /usr/bin/abuild: line 2554: git: not found With this commit, it saves the git_path in the beginning (just like abuild_path). Later in the code it does not try to run git if that variable is empty. Notably `abuild rootbld` is already checking whether `abuild-rootbld` is installed, and that subpackage of `abuild` does already depend on `git`. So no additional check was added before using `git ` inside `rootbld`. Fixes #32
* abuild: Change -f (force) to not ignore checksums/init scriptsOliver Smith2018-03-161-5/+3
| | | | | | | | | | | | | | | | | The force flag used to skip the following functions, without any documentation in the help (-h) output: * verify (checksum verification) * initdcheck (check if the init scripts are openrc scripts) * check_arch (check if the target architecture is in "arch=") * check_libc (check if the target libc is masked in the options) This was counter-intuitive and could even be dangerous (when one relies on the checksum verification to prevent man-in-the-middle attacks, but always uses the -f flag). With this commit, it only skips check_arch and check_libc besides the package up to date check and the help output mentions this.
* abuild: set arch for -openrc subpackage to noarchSören Tempel2018-03-111-1/+1
|
* abuild: add postcheck for -openrc subpackageSören Tempel2018-03-111-0/+10
|
* abuild.in: ensure that $triggers is not in $sourceSören Tempel2018-03-111-0/+5
| | | | | Since we already check that $install is not in $source is does make sense to also check that $triggers is not in $source.
* rootbld: if networking is enabled, copy resolv.conf into the build rootWilliam Pitcock2018-03-081-0/+4
|
* abuild: fix typoNatanael Copa2018-02-201-1/+1
|
* abuild: add sanitycheck of providesNatanael Copa2018-01-021-0/+12
| | | | provides cannot contain the pkgname or apk will be very unhappy.
* rootbld: allow the fake $HOME to be writableWilliam Pitcock2017-11-151-0/+1
| | | | this is needed for running some test runners such as kyua under rootbld.
* abuild: rootbld: run testsuites if requested, also handle package() only buildsWilliam Pitcock2017-11-101-2/+12
|
* abuild: rootbld: fix order of bind-mounts given to bwrapWilliam Pitcock2017-11-081-1/+1
| | | | | when building a package with abuildd, a copy of the git checkout is cloned to /tmp, which causes difficulties.
* abuild: add support for provider_priorityWilliam Pitcock2017-11-021-0/+10
| | | | | | provider_priority is a number which determines what priority a package should be given when solving a dependency graph using a provides entry instead of a direct package, in the event of conflicts.
* abuild: add env option to require testsCarlo Landmeter2017-10-261-0/+6
| | | | | | | This adds an env option REQUIRE_CHECK to require testsuites to be run. This does not clutter getopts so it can be safely removed afterwards when we enforce tests globally. This will allow our CI infrastructure to enforce testsuites where possible.
* abuild: use provides = cmd:foo instead of 'command:foo'Natanael Copa2017-10-241-1/+1
| | | | it is slightly shorter
* abuild: log command: providersWilliam Pitcock2017-10-201-0/+18
|
* abuild: only print version if we are buildingNatanael Copa2017-09-281-3/+5
| | | | The purpose was to show abuild version in the build logs
* abuild: fix typoA. Wilcox2017-09-281-1/+1
|
* abuild: rootbld: reflect build branch in the builder hostnameTimo Teräs2017-09-271-9/+7
|
* abuild: do not try to strip standalone elf imagesTimo Teräs2017-09-261-3/+3
| | | | | | | | | | Guile uses ELF is internal object format, and creates them as "no machine" and "standlone" OSABI. Scanelf supports printing OSABI, so use that to filter these out. See: https://github.com/alpinelinux/aports/pull/1714 This also removes unneccessary 'sed' from the pipeline as it's simple to read each field outputted by scanelf.
* abuild.in: remove saveas- syntax and fix sourcecheck()v3.0.1tmpfile2017-09-191-6/+2
| | | | | | As discussed in alpinelinux/aports#1438 saveas- was removed from abuild-fetch.c with https://github.com/alpinelinux/abuild/pull/20 but abuild.in slipped. Also fixes a wget -s instance that's not supported by recent busybox (-s was changed for --spider). /cc @kaniini
* abuild: ensure a package has deps before printing themA. Wilcox2017-09-191-0/+4
| | | | | | | | | | | | | | | | After the first dep is printed, `shift` is called to avoid the special case where the first dep cannot have a comma prepended. However, if there are no deps for a package (seen early on in the aports main repo in acf-jquery), $# is 0. POSIX specifies that `shift` has two options when the shift operand (1) is greater than $#: - if non-interactive, it can exit the shell - if it does not exit the shell, it must return a non-zero exit code Since we run the shell with -e, the second case folds in to the first. BusyBox ash does not implement this behaviour, but bash does when called as /bin/sh or when the `posix` shopt is set.
* abuild: avoid print version multiple timesNatanael Copa2017-09-191-1/+3
| | | | and respect -q flag
* abuild: Always print the builder versionBreno Leitao2017-09-191-1/+1
| | | | | | | Currently is hard to discover what abuild version was used on a build log. This lack of information makes it hard to reproduce a buld failure. This change simply adds the abuild version at all logs.
* abuild: exit with success if arch is disabledNatanael Copa2017-09-191-2/+1
| | | | the set -e made script exit early
* abuild: prepare_metafiles: use new /bin/sh virtual instead of hardcoded ↵William Pitcock2017-08-051-3/+3
| | | | busybox dependency
* abuild: Add default split OpenRC functionA. Wilcox2017-07-261-0/+19
|
* abuild: print url we are fetchingNatanael Copa2017-07-201-4/+1
| | | | This is useful for debugging
* abuild: add sanitycheck for secfixes commentNatanael Copa2017-07-201-0/+21
| | | | | The secfixes comment will be parsed and added to alpine-secdb. add sanitycheck so we catch errors early.
* abuild: rootbld: require metapackageKaarle Ritvanen2017-07-161-5/+1
|
* abuild: rootbld: improve version compatibilityKaarle Ritvanen2017-07-161-1/+8
|
* abuild: rootbld: require envsubstKaarle Ritvanen2017-07-161-1/+1
|
* abuild: rootbld: make mkusers workKaarle Ritvanen2017-07-061-2/+4
|
* abuild: rootbld: always require repo templateKaarle Ritvanen2017-07-061-34/+22
|
* abuild: build in chrootKaarle Ritvanen2017-06-271-0/+108
| | | | This patch is based on earlier work by Timo Teräs.
* abuild: disable trap when entering the handlerKaarle Ritvanen2017-06-271-0/+1
|
* abuild: add config option to globally enable dbgCarlo Landmeter2017-06-271-0/+5
|
* abuild: fix bad git mergeA. Wilcox2017-06-231-1/+0
|
* abuild: use portable awk exponentiation operatorA. Wilcox2017-06-231-1/+1
|
* abuild: call tar portablyA. Wilcox2017-06-231-2/+2
|
* abuild: Correctly comment default_dbgA. Wilcox2017-06-231-1/+3
|
* abuild: Add verbose option '-v' to show everythingA. Wilcox2017-06-231-0/+3
|
* Allow $patch_args to pass multiple arguments to patchAndrej2017-06-211-1/+1
|
* abuild: add !checkroot option to run tests without fakerootShiz2017-06-211-0/+3
| | | | | | | | | Due to fakeroot being very permissive with regards to file permissions, some package testsuites that explicitly check for failing permission checks will fail. For those testsuites, give the APKBUILD the option to run the tests outside of a fakeroot environment.
* Add parameter '-D' for alternative APKINDEX descriptionOliver Smith2017-06-211-4/+6
| | | | | | | | | | | This patch allows to set a nice description for the APKINDEX, in case the aport that is being built is not inside a git repository. I have tested it, and it behaves exactly like without the patch, even when git is not installed, or the folder is not inside a git repository: The `|| true` at the end of the DESCRIPTION= line makes sure, aport does not get aborted, just like it does not get aborted in that case as of now, as the `git describe` command gets executed in a subshell.
* abuild: More readable message for missing dependenciesA. Wilcox2017-06-121-1/+1
|
* abuild: Add support for lzip source packagesBreno Leitao2017-04-081-0/+3
| | | | | | | | | Currently abuild does not understand .tar.lz packages, which blocks the inclusion of certain packages in Alpine Linux. I found this issue when adding 'ed' package to the repository. With this change, abuild package will now depend on lzip package. I might send a patch for abuild's APKBUILD.
* abuild: set -e fix for update_config_{sub,guess}Natanael Copa2017-04-041-12/+4
|
* abuild: wrap check() with fakerootWilliam Pitcock2017-03-271-1/+8
|
* abuild: use new PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH env variable to disable ↵William Pitcock2017-03-271-1/+1
| | | | the SAT solver
* abuild: fix -K optionNatanael Copa2017-03-241-6/+7
| | | | | | make sure we don't delete files when -K is specified fixes #7008