Received: from mx1.tetrasec.net (mx1.tetrasec.net [66.245.176.36]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id A9223782D01 for <~alpine/aports@lists.alpinelinux.org>; Thu, 17 Dec 2020 08:38:18 +0000 (UTC) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id 84BDB162A12; Thu, 17 Dec 2020 08:38:17 +0000 (UTC) Received: from ncopa-desktop.lan (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id C6D42162A11; Thu, 17 Dec 2020 08:38:16 +0000 (UTC) Date: Thu, 17 Dec 2020 09:38:09 +0100 From: Natanael Copa To: Drew DeVault Cc: ~alpine/aports@lists.alpinelinux.org Subject: Re: [PATCH] main/samurai: upgrade to 1.2 Message-ID: <20201217093809.7f177cd1@ncopa-desktop.lan> In-Reply-To: <20201217024222.29579-1-sir@cmpwn.com> References: <20201217024222.29579-1-sir@cmpwn.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 17 Dec 2020 02:42:51 GMT Drew DeVault wrote: > --- > main/samurai/20-query-tool.patch | 86 -------------------------------- > main/samurai/APKBUILD | 10 ++-- > 2 files changed, 4 insertions(+), 92 deletions(-) > delete mode 100644 main/samurai/20-query-tool.patch > Hi! I am slightly skeptic to merge this so close to the 3.13 release. We have already built majority of packages with the previous release and I am worried this introduces regressions, which we don't want deal with when fixing security issues in other 3.13 packages in the future. Can we wait til after 3.13 release or does this release fix things that we need? -nc > diff --git a/main/samurai/20-query-tool.patch b/main/samurai/20-query-tool.patch > deleted file mode 100644 > index 441453fa7b..0000000000 > --- a/main/samurai/20-query-tool.patch > +++ /dev/null > @@ -1,86 +0,0 @@ > -From: Paolo Bonzini > -Subject: [PATCH] Implement "query" tool > - > -The query tool allows to print the incoming and outgoing edges for > -a given node. > - > -Upstream commit 0727b7c7d08e857a836b8cc7c630fe7a66385c92. > - > -diff --git a/samu.1 b/samu.1 > -index 1bcc181..62c4cdb 100644 > ---- a/samu.1 > -+++ b/samu.1 > -@@ -29,6 +29,11 @@ > - .Nm > - .Op Fl C Ar dir > - .Op Fl f Ar buildfile > -+.Fl t Cm query > -+.Op Ar target... > -+.Nm > -+.Op Fl C Ar dir > -+.Op Fl f Ar buildfile > - .Fl t Cm targets > - .Op Cm depth Op Ar maxdepth > - .Nm > -@@ -78,6 +83,10 @@ tool is used, a compilation database > - is printed instead. > - .Pp > - If the > -+.Cm query > -+tool is used, the inputs and outputs of the targets are printed instead. > -+.Pp > -+If the > - .Cm targets > - tool is used, a list of targets will be displayed, either by rule or by depth. > - The first argument determines how the targets will be displayed: > -diff --git a/tool.c b/tool.c > -index 1eaabfd..5e777cd 100644 > ---- a/tool.c > -+++ b/tool.c > -@@ -298,9 +298,46 @@ targets(int argc, char *argv[]) > - return 0; > - } > - > -+static int > -+query(int argc, char *argv[]) > -+{ > -+ struct node *n; > -+ struct edge *e; > -+ char *path; > -+ int i; > -+ size_t j, k; > -+ > -+ if (argc == 1) { > -+ fprintf(stderr, "usage: %s ... -t query target...\n", argv0); > -+ exit(2); > -+ } > -+ for (i = 1; i < argc; ++i) { > -+ path = argv[i]; > -+ n = nodeget(path, 0); > -+ if (!n) > -+ fatal("unknown target '%s'", path); > -+ printf("%s:\n", argv[i]); > -+ e = n->gen; > -+ if (e) { > -+ printf(" input: %s\n", e->rule->name); > -+ for (j = 0; j < e->nin; ++j) > -+ printf(" %s\n", e->in[j]->path->s); > -+ } > -+ puts(" outputs:"); > -+ for (j = 0; j < n->nuse; ++j) { > -+ e = n->use[j]; > -+ for (k = 0; k < e->nout; ++k) > -+ printf(" %s\n", e->out[k]->path->s); > -+ } > -+ } > -+ > -+ return 0; > -+} > -+ > - static const struct tool tools[] = { > - {"clean", clean}, > - {"compdb", compdb}, > -+ {"query", query}, > - {"targets", targets}, > - }; > - > diff --git a/main/samurai/APKBUILD b/main/samurai/APKBUILD > index 8c3cf969ac..0162ee16e0 100644 > --- a/main/samurai/APKBUILD > +++ b/main/samurai/APKBUILD > @@ -1,16 +1,15 @@ > # Contributor: Drew DeVault > # Maintainer: Drew DeVault > pkgname=samurai > -pkgver=1.1 > -pkgrel=1 > +pkgver=1.2 > +pkgrel=0 > pkgdesc="ninja-compatible build tool written in C" > url="https://github.com/michaelforney/samurai" > arch="all" > license="Apache-2.0" > options="!check" # No test suite. > subpackages="$pkgname-doc" > -source="https://github.com/michaelforney/samurai/releases/download/$pkgver/samurai-$pkgver.tar.gz > - 20-query-tool.patch" > +source="https://github.com/michaelforney/samurai/releases/download/$pkgver/samurai-$pkgver.tar.gz" > provides="ninja" > replaces="ninja" > > @@ -23,5 +22,4 @@ package() { > ln -s samu "$pkgdir"/usr/bin/ninja > } > > -sha512sums="b27302c34d736f483909e57c8b162609eaa4c86571c1167b71a5564b521cc3af2861307a16bb6dca55e80952088989e9526b103160d2ea054d15f4ed85b1cedb samurai-1.1.tar.gz > -54f5159ed71e5e0d4bcc3e9c7534411225b1ad8b90ac5ac917114dbae619fed74b74a91dea4d99246304d0e7017f2600a06dd54f899a7b7852a858189e12608d 20-query-tool.patch" > +sha512sums="bbe6a582c34b04f1df53b76c1647aa3e03c4698ebf7591a203935f11ffa05971bbcb86dc1a8c06aeb904cdc741abb08918122810fc47216fed0a6d9f87fd1225 samurai-1.2.tar.gz"