From 5d923ec84d0bb5b9c012252ebf3352ddcd7c3c9d Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 11 Jan 2018 09:20:36 +0100 Subject: [PATCH] acmetool: fix build --- srcpkgs/acmetool/patches/fix-uuid-build.patch | 12 ++++++++++++ srcpkgs/acmetool/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/acmetool/patches/fix-uuid-build.patch diff --git a/srcpkgs/acmetool/patches/fix-uuid-build.patch b/srcpkgs/acmetool/patches/fix-uuid-build.patch new file mode 100644 index 00000000000..66f1c459866 --- /dev/null +++ b/srcpkgs/acmetool/patches/fix-uuid-build.patch @@ -0,0 +1,12 @@ +--- storage/types.go.orig 2018-01-11 08:57:49.339089353 +0100 ++++ storage/types.go 2018-01-11 08:58:12.707027749 +0100 +@@ -194,7 +194,8 @@ func (tgt *Target) ensureFilename() { + nprefix = tgt.Satisfy.Names[0] + "-" + } + +- b := uuid.NewV4().Bytes() ++ u, _ := uuid.NewV4() ++ b := u.Bytes() + str := strings.ToLower(strings.TrimRight(base32.StdEncoding.EncodeToString(b), "=")) + + tgt.Filename = nprefix + str diff --git a/srcpkgs/acmetool/template b/srcpkgs/acmetool/template index d7a234a29e9..6cc93dd181a 100644 --- a/srcpkgs/acmetool/template +++ b/srcpkgs/acmetool/template @@ -1,7 +1,7 @@ # Template file for 'acmetool' pkgname=acmetool version=0.0.62 -revision=1 +revision=2 wrksrc="acme-${version}" build_style=go go_import_path=github.com/hlandau/acme