1. 05 Mar, 2019 2 commits
  2. 25 Feb, 2019 1 commit
  3. 22 Feb, 2019 1 commit
    • Natanael Copa's avatar
      abuild: add support for pkg-config prefix pcprefix · 376ccc5b
      Natanael Copa authored
      Fix issue when two -dev packages provides same pkg-config wil but with
      different versions. For example libressl-dev and openssl-dev both ships
      libssl.pc and libcrypto.pc, which resulted in automatic provides of
      pc:libssl and pc:libcrypto.
      apk would end up picking libressl-dev over openssl-dev for packages that
      had automatic pc:libssl depends (for example libssl2-dev), when
      openssl-dev was the one that was used during build.
      To fix this we add support for a pcprefix so we can set
      pcprefix="libressl:" in libressl APKBUILD which makes libressl-dev
      provide pc:libressl:libssl. This is similar to what we do with
      We do not yet automatically detect when the prefixed variant should be
      used so for now we will have to explicitly add libressl-dev.
      ref #9959
  4. 23 Jan, 2019 1 commit
  5. 10 Jan, 2019 3 commits
  6. 09 Jan, 2019 2 commits
  7. 02 Dec, 2018 1 commit
  8. 08 Nov, 2018 2 commits
  9. 11 Oct, 2018 1 commit
    • Sören Tempel's avatar
      abuild-rmtemp: Do not follow symbolic links · 17cb68e9
      Sören Tempel authored
      Symbolic links might point to files outside of the chroot and
      thus might delete files outside the chroot. This allows deletion
      of arbitrary directories on the host from a malicious APKBUILD.
      Following hard links shouldn't be a problem since hard links (usually)
      cannot refer to directories and since remove(3) removes the link, not
      the file it points to it shouldn't cause a problem.
      I noticed this because alpine-baselayout creates /var/run as a symlink
      to /run. Therefore causing /run to be deleted on the host when using
      abuild-rmtemp which in turn causes a bunch of software to no longer
      function properly (including OpenRC).
  10. 03 Oct, 2018 20 commits
  11. 24 Sep, 2018 2 commits
  12. 29 Jul, 2018 1 commit
  13. 22 Jun, 2018 1 commit
  14. 21 Jun, 2018 1 commit
    • Oliver Smith's avatar
      newapkbuild: check arguments and improve usage() · a68354eb
      Oliver Smith authored and Natanael Copa's avatar Natanael Copa committed
      * argument sanity checks:
          * 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
  15. 31 May, 2018 1 commit