Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id E5D01781A5B for <~alpine/aports@lists.alpinelinux.org>; Mon, 29 Jun 2020 17:22:37 +0000 (UTC) Received: by mail-qk1-f178.google.com with SMTP id l6so15974742qkc.6 for <~alpine/aports@lists.alpinelinux.org>; Mon, 29 Jun 2020 10:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=LlD3W1Kw9I2KqTafbgzmo3ES6h8jEKGrK/OQ2aHrzkE=; b=F3hTOt2Z1NxO6VSrdKEcCu3lmz2KPU0Wm33Nev1aqD9tDEpCcjyfsU+eurN1pH4qWC GXPaPnBFcYQYd40Ydt9o6t1hkh4FuGm1Yp6IaqXynDjvWQIkFrX+m4BdFLZZ77LVXl6y v70pu/kMPMPm76c4mG6taGsp3kylcoh4EquYO8BhLu6+Wyj2ViGfCHWnWJgkC0ZpLum9 ybfsP/svZ7dRu2wL3+mW8b1POa659x+MJ9/s490Er2c44Q21TmX8vhhB0TmoYUwDv+zE B1F9+pqtGeVyXq+OxnSMwtdTq08yNeq35/na7uKdsxCAmXW9bMzdumCL/KNiShQGU1nG YI1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LlD3W1Kw9I2KqTafbgzmo3ES6h8jEKGrK/OQ2aHrzkE=; b=SEPeDGPKRNpPC84i/3NGTSVtgtH1Uu1Xm+QC0yri12auJeGU6lpDSHJ0S5O/r54nvi 3qT0eFzqXOohG242EcKOIW5cscy2xz5BBw2FQDhpU7BATqLDOMXbIKc1iSY5dk7Bic0z Ks9qpMgseP1d9btSRdx0AcLfe86csTfZuClwTY7+kYGtpXUd7GXiKCeWPwjLkogc9zfT LfO2eiwMJ55i8zvxE0bsx/LDp5JRyTph4997z0TLcXToCQV2eoELBxSgSppjhW+K/IIR YVxhOZU6aN6XWD38BgJZJxIQL7WbJQR9HfgNrjNY3Xqjfg5aqc4Si9BgnvpwAfc+k+EO uU7w== X-Gm-Message-State: AOAM533/Q36gjFXKkgWHVsyJ0WlcMHQF1ufu/OaL/rM3+4vi8+H5B3kj EUKmgYylz/AbtHDI1ce6yo9Cu+fz3Lw= X-Google-Smtp-Source: ABdhPJzP6Vi9SfcNCdvHTZpY5TvAOUldGTxafpqy8mreMVPMpnfiJ/Cd05OTQ8CQKJuaJlVaVz7RGQ== X-Received: by 2002:a37:9dd3:: with SMTP id g202mr15207645qke.432.1593451356663; Mon, 29 Jun 2020 10:22:36 -0700 (PDT) Received: from enterprise ([2804:431:cfcc:f955:b8e8:81d2:c9c:df71]) by smtp.gmail.com with ESMTPSA id 15sm479297qkm.93.2020.06.29.10.22.35 for <~alpine/aports@lists.alpinelinux.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 10:22:36 -0700 (PDT) Date: Mon, 29 Jun 2020 14:22:32 -0300 From: Leo To: ~alpine/aports@lists.alpinelinux.org Subject: Re: [PATCH] testing/yggdrasil: fix LDFLAGS, service file Message-ID: <20200629142232.0e152d12@enterprise> In-Reply-To: <20200629134245.9719-1-sir@cmpwn.com> References: <20200629134245.9719-1-sir@cmpwn.com> X-Mailer: Claws Mail 3.17.5 (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 Mon, 29 Jun 2020 07:42:45 -0600 Drew DeVault wrote: > --- > testing/yggdrasil/APKBUILD | 8 ++++---- > testing/yggdrasil/yggdrasil.initd | 8 ++------ > 2 files changed, 6 insertions(+), 10 deletions(-) > mode change 100644 => 100755 testing/yggdrasil/yggdrasil.initd > > diff --git a/testing/yggdrasil/APKBUILD b/testing/yggdrasil/APKBUILD > index 5081fe24dd..82837477c9 100644 > --- a/testing/yggdrasil/APKBUILD > +++ b/testing/yggdrasil/APKBUILD > @@ -1,7 +1,7 @@ > # Maintainer: Drew DeVault > pkgname=yggdrasil > pkgver=0.3.14 > -pkgrel=0 > +pkgrel=1 > pkgdesc="An experiment in scalable routing as an encrypted IPv6 > overlay network" url="https://yggdrasil-network.github.io/" > arch="all" > @@ -20,13 +20,13 @@ subpackages="$pkgname-openrc" > build() { > go mod vendor > pkgsrc=github.com/yggdrasil-network/yggdrasil-go/src/version > - LDFLAGS="$LDFLAGS -X $pkgsrc.buildName=$pkgname -X > $PKGSRC.buildVersion=$pkgver" > + ldflags="-X $pkgsrc.buildName=$pkgname -X > $PKGSRC.buildVersion=$pkgver" for cmd in yggdrasil yggdrasilctl > do > go build \ > -trimpath \ > -mod=vendor \ > - -ldflags "-extldflags $LDFLAGS" \ > + -ldflags "-extldflags \"$LDFLAGS\" $ldflags" > \ ./cmd/$cmd > done > } > @@ -44,5 +44,5 @@ package() { > > sha512sums="3c3e92c7d49a08d2390a5d7226387c83b5575d55ae90b1209a103b50659ae60d978e39ee9247f548efe90228c3ce544b17bb205f9dcbc7f67262beaf9b7c38bf > yggdrasil-0.3.14.tar.gz > 089221d9dd703b21714ac5ec04f23218083d216ff259fdd76942c9b2089ee4ca908b360dca0c1f4fa2e0bb1de7d57f0c638d8db9bc782cbe0ed1733f6888171a > yggdrasil.confd > -2c08ea638be7632d930e0a80e85ce5311f6703870eada5ad41dd6033f1837a9a41b3d567af807e55004af1f06dfd69e6a49e321340e2b0113b73f5a25237879d > yggdrasil.initd > +3a65df7945389d91bcd43b75e2cab6d0982ca83322bdc196f7efdb00effa652b9297286b7743b12eeb6bcb41835e8dfb2d42cdcb131dfa46f8399485c6d80d75 > yggdrasil.initd > 871b650ff982be061532b4c5fe4812f41e6e2c58fc69b24f8a745f9a43389da44e742a69b0467b3c3d9e2b031af0728e20f10fa4584695c4f5ac87768a1fd34e > modules.conf" diff --git a/testing/yggdrasil/yggdrasil.initd > b/testing/yggdrasil/yggdrasil.initd old mode 100644 new mode 100755 > index 9fab7d7c58..8aab44277b --- a/testing/yggdrasil/yggdrasil.initd > +++ b/testing/yggdrasil/yggdrasil.initd @@ -4,7 +4,6 @@ > description="An experiment in scalable routing as an encrypted IPv6 > overlay netw supervisor=supervise-daemon command=/usr/bin/yggdrasil > command_args="-useconffile $yggdrasil_config_file" > -command_user="yggdrasil:yggdrasil" > depend() { > need net > @@ -13,9 +12,6 @@ depend() { > } > > start_pre() { > - [ -n "$output_log" ] && checkpath -f "$output_log" \ > - -m 644 -o yggdrasil:yggdrasil || true > - [ -n "$error_log" ] && checkpath -f "$error_log" \ > - -m 644 -o yggdrasil:yggdrasil || true > - checkpath /var/run/yggdrasil.sock -m 755 -o > yggdrasil:yggdrasil > + [ -n "$output_log" ] && checkpath -f "$output_log" -m 644 || > true > + [ -n "$error_log" ] && checkpath -f "$error_log" -m 644 || > true } Applied, thanks for contributing