diff options
author | Adin Scannell <ascannell@google.com> | 2019-11-05 15:06:06 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-05 15:16:04 -0800 |
commit | e904823833bb166a514c98bd628704379de93b47 (patch) | |
tree | 16126db8170de17754be82103cc873f1a977b6d8 /runsc/BUILD | |
parent | 493334f8b594eb1c2b0f5a6133dbedad4e0ecd32 (diff) |
Fix repository build scripts.
This fixes a number of issues with the repository build process:
* Fix the overall structure of the repository.
* Fix the debian package description.
* Fix the broken version number for packages.
* Update the digest algorithm used for signing the release.
I've validated that installation works from a separate staging bucket.
Updates #852
PiperOrigin-RevId: 278716914
Diffstat (limited to 'runsc/BUILD')
-rw-r--r-- | runsc/BUILD | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runsc/BUILD b/runsc/BUILD index e4e8e64a3..e5587421d 100644 --- a/runsc/BUILD +++ b/runsc/BUILD @@ -76,16 +76,24 @@ pkg_tar( genrule( name = "deb-version", + # Note that runsc must appear in the srcs parameter and not the tools + # parameter, otherwise it will not be stamped. This is reasonable, as tools + # may be encoded differently in the build graph (cached more aggressively + # because they are assumes to be hermetic). + srcs = [":runsc"], outs = ["version.txt"], cmd = "$(location :runsc) -version | grep 'runsc version' | sed 's/^[^0-9]*//' > $@", stamp = 1, - tools = [":runsc"], ) pkg_deb( name = "runsc-debian", architecture = "amd64", data = ":debian-data", + # Note that the description_file will be flatten (all newlines removed), + # and therefore it is kept to a simple one-line description. The expected + # format for debian packages is "short summary\nLonger explanation of + # tool." and this is impossible with the flattening. description_file = "debian/description", homepage = "https://gvisor.dev/", maintainer = "The gVisor Authors <gvisor-dev@googlegroups.com>", |