1. 03 May, 2019 1 commit
  2. 30 Apr, 2019 3 commits
  3. 29 Apr, 2019 7 commits
  4. 25 Apr, 2019 1 commit
    • Natanael Copa's avatar
      Revert "abuild: unset depends for subpackages" · c0dc7ace
      Natanael Copa authored
      Apparently there are many packages that does soemthing like:
      
      subpackages="$pkgname-foo:_foo"
      
      _foo() {
      	depends="$depends something-else"
      }
      
      and thus depend on the previous behavior. We need to revert and plan
      this better.
      
      This reverts commit 8fbbffd2.
      c0dc7ace
  5. 09 Apr, 2019 1 commit
    • Sören Tempel's avatar
      abuild: add depends_libs variable to default_libs() · f92353f5
      Sören Tempel authored
      Other subpackage such as -dev, -doc and even -openrc allow adjusting
      depends of the subpackage through such a variable. This is, for
      instance, useful to remove a dependency of the origin package from the
      -libs subpackage.
      
      While at it document it in APKBUILD(5).
      f92353f5
  6. 03 Apr, 2019 3 commits
    • tcely's avatar
      abuild: -openrc should not inherit depends · 801578a0
      tcely authored
      801578a0
    • Chloe Kudryavtsev's avatar
      Add default_cleanup_srcdir · 6a6310f0
      Chloe Kudryavtsev authored
      In some cases, a simple rm -rf is not sufficent to clean srcdir.
      One such case is the new go module system, that marks everything as
      read-only - thus only letting root rm -rf it without a chmod.
      There is a command intended to clean them - `go clean -modcache`.
      However, for that to work, GOPATH must be defined and existent.
      Running chmod for all srcdir cleanups makes no sense, nor does enforcing
      root, or putting global overrides just for go.
      
      This patch allows overriding what happens on `cleanup srcdir`, by
      overriding cleanup_srcdir, and allows the use of default_cleanup_srcdir.
      
      In our go example, it might be used as such:
      
      cleanup_srcdir() {
      	go clean -modcache
      	default_cleanup_srcdir
      }
      6a6310f0
    • Chloe Kudryavtsev's avatar
      Make clean() use cleanup() · 30d296dd
      Chloe Kudryavtsev authored
      Avoid DRY issues, and increase consistency.
      30d296dd
  7. 21 Mar, 2019 1 commit
  8. 05 Mar, 2019 1 commit
  9. 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
      sonameprefix.
      
      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
      376ccc5b
  10. 10 Jan, 2019 2 commits
  11. 09 Jan, 2019 1 commit
    • Natanael Copa's avatar
      abuild: avoid add depends to itself · 13aec9a1
      Natanael Copa authored
      packages should never depend on themselves which does not make sense.
      This may happen if main package depends on a subpackage, then the
      subpackages will inherit the global depends and the subpackage ends up
      depend on itself.
      
      Fix abuild to avoid this.
      13aec9a1
  12. 02 Dec, 2018 1 commit
  13. 08 Nov, 2018 2 commits
  14. 03 Oct, 2018 9 commits
    • Natanael Copa's avatar
      abuild: run build actions via runpart · 324a5759
      Natanael Copa authored
      So we make sure chdir $builddir happens when it should.
      324a5759
    • Natanael Copa's avatar
      abuild: do not run check in fakeroot by default · 0bf61ee0
      Natanael Copa authored
      Only run check in fakeroot if options="checkroot" is set. This makes
      options="!checkroot" the default.
      
      I expect most checks work as non-root, and if a testsuite requires root,
      it will likely fail in fakeroot too. Fakeroot has also shown lower
      performance for parallel builds.
      0bf61ee0
    • Natanael Copa's avatar
      abuild: print version of built package early · 3379e675
      Natanael Copa authored
      instead of printing abuild version, print package version. This is to
      avoid confuse the abuild version with the package version.
      3379e675
    • Natanael Copa's avatar
      abuild: chdir to $builddir if it exists · 2fe29d58
      Natanael Copa authored
      chdir to $builddir before running prepare, build, package or check.
      2fe29d58
    • Natanael Copa's avatar
      abuild: fix regression. run build · 4e455979
      Natanael Copa authored
      fix regression introduced in def21999
      4e455979
    • Natanael Copa's avatar
      abuild: require package() function · def21999
      Natanael Copa authored
      make a missing function for package() a hard error.
      
      this means we never run build in fakeroot.
      def21999
    • Natanael Copa's avatar
      abuild: fix checksum update · 1cbc8531
      Natanael Copa authored
      Fix case where 1) checksum is a single line and 2) there is a variable
      under the checksum that should be kept. For example:
      
        sha512sum="...."
        keepthis="..."
      
      Previously the `keepthis` variable would have been removed.
      
      ref https://github.com/alpinelinux/abuild/pull/41
      1cbc8531
    • Natanael Copa's avatar
      move logic of curl's http range error to abuild-fetch · c6609b47
      Natanael Copa authored
      Move the logic of deleting partial downloads to abuild-fetch, which
      knows if it is curl or wget that was executed.
      c6609b47
    • Oliver Smith's avatar
      Fix: incomplete partfile gets renamed to distfile · 07d9f3bf
      Oliver Smith authored
      Abuild-fetch uses curl (fallback to wget) to download files. They are
      saved with a ".part" extension first, so they can be resumed if
      necessary. When the download is through, the ".part" extension gets
      removed. However, when the server does not support resume of downloads
      (e.g. GitHub's on the fly generated tarballs), then the ".part"
      extension got removed anyway. Abuild aborts in that case. But when
      running a third time, the distfile exists and it is assumed that this
      is the full download.
      
      Changes:
      * abuild-fetch:
        * Only remove the ".part" extension, when curl/wget exit with 0
        * Pass the exit code from curl/wget as exit code of abuild-fetch
        * Wherever abuild-fetch would return an exit code on its own, the
          codes have been changed to be > 200 (so they don't collide with
          curl's as of now 92 exit codes)
        * Remove undocumented feature of downloading multiple source URLs at
          a time. This doesn't match with the usage description, was not used
          in abuild at all and it would have made it impossible to pass the
          exit code.
      * abuild:
        * After downloading, when curl is installed and abuild-fetch has
          33 as exit code (curl's HTTP range error), then delete the partfile
          and try the download again.
      07d9f3bf
  15. 31 May, 2018 1 commit
    • 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
  16. 24 Apr, 2018 1 commit
  17. 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
  18. 17 Apr, 2018 2 commits
  19. 15 Apr, 2018 1 commit