Skip to content

Commit

Permalink
refactor: use runtime dependencies
Browse files Browse the repository at this point in the history
There are two changes:

First:

* toolchain image & make stage are packed as `base` stage as runtime
deps
* every other stage now depends on `base` which pulls in `make` &
toolchain into every other build, so toolchain is referenced only once

Second:

* autoconf & automake now have runtime deps list which dries up
dependencies list for builds which depend on autoconf/automake

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira committed Oct 14, 2019
1 parent 2eab219 commit d77bf89
Show file tree
Hide file tree
Showing 52 changed files with 60 additions and 108 deletions.
2 changes: 1 addition & 1 deletion Pkgfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# syntax = docker.io/autonomy/bldr:2b3b543-frontend
# syntax = docker.io/autonomy/bldr:2b9366f-frontend
3 changes: 1 addition & 2 deletions argp-standalone/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: argp-standalone
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: patch
steps:
- sources:
Expand Down
5 changes: 3 additions & 2 deletions autoconf/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: autoconf
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: perl
runtime: yes
- stage: m4
runtime: yes
steps:
- sources:
- url: https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz
Expand Down
5 changes: 2 additions & 3 deletions automake/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: automake
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: perl
runtime: yes
- stage: autoconf
- stage: m4
steps:
- sources:
- url: https://ftp.gnu.org/gnu/automake/automake-1.16.1.tar.xz
Expand Down
6 changes: 6 additions & 0 deletions base/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: base
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
runtime: true
- stage: make
runtime: true
3 changes: 1 addition & 2 deletions bash/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: bash
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/bash/bash-4.4.18.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions bc/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: bc
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: texinfo
- stage: perl
steps:
Expand Down
3 changes: 1 addition & 2 deletions bison/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: bison
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: m4
- stage: make
- stage: perl
steps:
- sources:
Expand Down
3 changes: 1 addition & 2 deletions bzip2/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: bzip2
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions coreutils/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: coreutils
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/coreutils/coreutils-8.30.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions cpio/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: cpio
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: autoconf
steps:
- sources:
Expand Down
3 changes: 1 addition & 2 deletions curl/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: curl
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: libressl
- stage: zlib
- stage: pkg-config
- stage: make
steps:
- sources:
- url: https://curl.haxx.se/download/curl-7.63.0.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions dejagnu/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: dejagnu
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: expect
- stage: tcl
steps:
Expand Down
Binary file modified deps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions diffutils/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: diffutils
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/diffutils/diffutils-3.6.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions dtc/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: dtc
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: m4
- stage: bison
- stage: flex
- stage: pkg-config
- stage: make
steps:
- sources:
- url: https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-1.5.0.tar.xz
Expand Down
5 changes: 1 addition & 4 deletions elfutils/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: elfutils
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: zlib
- stage: argp-standalone
- stage: musl-fts
- stage: musl-obstack
- stage: make
- stage: patch
- stage: autoconf
- stage: automake
- stage: perl
- stage: m4
steps:
- sources:
- url: https://sourceware.org/ftp/elfutils/0.173/elfutils-0.173.tar.bz2
Expand Down
3 changes: 1 addition & 2 deletions expect/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: expect
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: tcl
- stage: make
steps:
- sources:
- url: https://downloads.sourceforge.net/project/expect/Expect/5.45.4/expect5.45.4.tar.gz
Expand Down
5 changes: 1 addition & 4 deletions file/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: file
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: libtool
- stage: autoconf
- stage: automake
- stage: perl
- stage: m4
steps:
- sources:
- url: https://github.com/file/file/archive/FILE5_34.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions findutils/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: findutils
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/findutils/findutils-4.7.0.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions flex/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: flex
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: m4
steps:
- sources:
Expand Down
3 changes: 1 addition & 2 deletions gawk/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: gawk
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/gawk/gawk-4.2.1.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions gettext/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: gettext
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz
Expand Down
5 changes: 1 addition & 4 deletions git/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: git
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: zlib
- stage: tcl
- stage: gettext
- stage: libressl
- stage: curl
- stage: make
- stage: autoconf
- stage: perl
- stage: m4
steps:
- sources:
- url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.20.1.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions golang/bootstrap/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: golang-bootstrap
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions golang/golang/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: golang
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: golang-bootstrap
- stage: make
steps:
- sources:
- url: https://dl.google.com/go/go1.13.1.src.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions gperf/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: gperf
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions grep/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: grep
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/grep/grep-3.1.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions gzip/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: gzip
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/gzip/gzip-1.9.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions kmod/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: kmod
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-25.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions libressl/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: libressl
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.9.0.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions libtool/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: libtool
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: m4
runtime: true
steps:
- sources:
- url: http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions m4/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: m4
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz
Expand Down
4 changes: 1 addition & 3 deletions musl-fts/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: musl-fts
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: m4
- stage: libtool
- stage: autoconf
- stage: automake
- stage: pkg-config
- stage: perl
steps:
- sources:
- url: https://github.com/pullmoll/musl-fts/archive/v1.2.7/musl-fts-1.2.7.tar.gz
Expand Down
5 changes: 1 addition & 4 deletions musl-obstack/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: musl-obstack
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
- stage: libtool
- stage: autoconf
- stage: automake
- stage: pkg-config
- stage: perl
- stage: m4
steps:
- sources:
- url: https://github.com/pullmoll/musl-obstack/archive/v1.1/musl-obstack-1.1.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions ncurses/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: ncurses
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/ncurses/ncurses-6.1.tar.gz
Expand Down
3 changes: 1 addition & 2 deletions patch/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: patch
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://ftp.gnu.org/gnu/patch/patch-2.7.6.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions pcre/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: pcre
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: base
- stage: zlib
- stage: bzip2
- stage: make
steps:
- sources:
- url: https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.bz2
Expand Down
3 changes: 1 addition & 2 deletions perl/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: perl
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://www.cpan.org/src/5.0/perl-5.28.2.tar.xz
Expand Down
3 changes: 1 addition & 2 deletions pkg-config/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: pkg-config
dependencies:
- image: docker.io/autonomy/toolchain:0714f82
- stage: make
- stage: base
steps:
- sources:
- url: https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
Expand Down
Loading

0 comments on commit d77bf89

Please sign in to comment.