1. 03 Oct, 2018 12 commits
  2. 24 Sep, 2018 2 commits
  3. 29 Jul, 2018 1 commit
  4. 22 Jun, 2018 1 commit
  5. 21 Jun, 2018 1 commit
    • Oliver Smith's avatar
      newapkbuild: check arguments and improve usage() · a68354eb
      Oliver Smith authored
      Changes:
      * argument sanity checks:
        * `PKGNAME[-PKGVER] | SRCURL`
          * check if missing
          * check if specified more than once (see below)
        * specifying more than one buildtype flag
        * `-n` (set pkgname) without using SRCURL as last argument
        * `-s` (sourceforge source) without using PKGNAME as last argument
      * Typo fix: exist -> exists
      * `usage()`:
        * always print PKGNAME and PKGDESC (instead of NAME and DESC,
          NAME was used in one place and PKGNAME in another)
        * link to <https://spdx.org/licenses/>
        * `-m` (meson) flag was missing in short usage line at the top
        * indicate that the buildtypes are exclusive
        * `-c` flag: remove "to new directory" wording to make the
          message shorter (this should be obvious)
        * remove empty line at the end
      
      NOTE: Before this commit, the `PKGNAME[-PKGVER] | SRCURL` was allowed
      to be specified more than once, and the code looped over the arguments.
      But this was not documented in `usage()` and had unexpected results:
      
      ```
      $ newapkbuild first second third
      $ tree
      .
      ___ first
          ___ APKBUILD
          ___ first
          ___ ___ APKBUILD
          ___ ___ first
          ___ ___ ___ APKBUILD
          ___ ___ ___ src
          ___ ___ src
          ___ src
      ```
      a68354eb
  6. 31 May, 2018 2 commits
    • Natanael Copa's avatar
      ==== release 3.2.0_rc2 ==== · 0bb0bd84
      Natanael Copa authored
      0bb0bd84
    • Natanael Copa's avatar
      abuild: fix race when stripping · c0a86293
      Natanael Copa authored
      scanelf may pick up tempfiles created by strip or setfattr since it runs
      in spearate process and pipes the out to a subshell. This causes a race
      and may lead to the while loop attempt to strip seomthing that no longer
      exists.
      
      We fix that by test if file exists before try manipulate it. We could
      have written he file list to a temp file first, but this way we benefit
      from multiple cores working in parallel.
      c0a86293
  7. 24 May, 2018 2 commits
    • A. Wilcox's avatar
      newapkbuild: move checksum call to after fetch · 75b8caca
      A. Wilcox authored
      unpack will no longer unpack without a checksum, even with -f.  This
      means that newapkbuild will not be able to deduce what kind of build
      system is contained within, so the templates for CMake, Perl, etc are
      never used.
      
      This patch ensures checksumming is done right after fetch, so that
      unpack works properly.
      75b8caca
    • A. Wilcox's avatar
      newapkbuild: fix typo · db5ca299
      A. Wilcox authored
      db5ca299
  8. 07 May, 2018 2 commits
  9. 24 Apr, 2018 1 commit
  10. 22 Apr, 2018 1 commit
    • Sören Tempel's avatar
      abuild.in: don't fail if git describe fails · 720a2c18
      Sören Tempel authored
      `git describe` by default looks for tags, but `git clone` does not clone
      tags by default which causes failures on travis currently.
      
      Also redirect `git describe` errors to /dev/null while being here.
      720a2c18
  11. 17 Apr, 2018 3 commits
  12. 15 Apr, 2018 1 commit
  13. 11 Apr, 2018 4 commits
  14. 20 Mar, 2018 1 commit
    • Oliver Smith's avatar
      Don't print 'git: not found' errors · 4501a6cc
      Oliver Smith authored
      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
      4501a6cc
  15. 15 Mar, 2018 1 commit
    • Oliver Smith's avatar
      abuild: Change -f (force) to not ignore checksums/init scripts · 6981f3a6
      Oliver Smith authored
      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.
      6981f3a6
  16. 11 Mar, 2018 3 commits
  17. 08 Mar, 2018 1 commit
  18. 20 Feb, 2018 1 commit