From nobody Wed Dec 22 14:05:31 2021 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7BE3E18F2D87 for ; Wed, 22 Dec 2021 14:05:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJw8C1mHfz4cZn for ; Wed, 22 Dec 2021 14:05:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 183761E659 for ; Wed, 22 Dec 2021 14:05:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BME5VBR088643 for ; Wed, 22 Dec 2021 14:05:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BME5Vpr088641 for ports-bugs@FreeBSD.org; Wed, 22 Dec 2021 14:05:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 260608] sysutils/zrepl: build does not include version Date: Wed, 22 Dec 2021 14:05:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lapo@lapo.it X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: lcook@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640181931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F3NZtPNYzBPs9XzAR8I9q95sN8yC0jVSoty550ONkNQ=; b=xF7yEmSZT7qRmMiAsB2Cm/p0Kh1naSiGdKnZfIcqCKaLslCMbQNsfoCKiEDPnnOB1zLyLD 6E0dtOHmZlJ7QgUMcdH1QoqFnkXT9XjTSP0UnIQVKarJZdejXdtBGRvGSyD8sM6aucEVzg ILqkCqODWnCrnWk6aNntTnourfnX8p94oAnpWwAFd/D/gpq7PFCiJraNGBylEU4rRGD8XC EywbRC6y63WvREKavG3G7uQJ548hvzm4TaFBn3VSZSJEHp0yDRpuGKpG706haC2+4Et5Uu wAfeYvfV5jll3hClpbplssjjPqdJxaLpRbZxba7SBnB0zgRV6DVkMi7NMOksmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640181931; a=rsa-sha256; cv=none; b=XPsRTkTsg7ERK2MXargBc3BMp7HOc1I8KESg62mFGprvw65cgn7ZGmExzPRbTtWuHT5Uyy Jc0UB+lgrflTEMVvhmJWpCyK8Ubj+AQQBMp+bo7LA8hWpm+UKegvfLOd01KOCl4TIIOC+D 31oFd4uupI17gbeJrhI+pVYBIahxBFqBEdJAFYPdTmLmKYTMlHl5c53W8V3mWeyAgQMDiE HoYx3HhZYgUqyGtiNc37h+DTRwohVpAv9PpUKtHMyZvBOeVTBplqG5rvZ2uCqfNJnHudEA DpHTE5gQD8ihCQrxvhzHDKPx8BCDQcyV5ssYDtKtTs2Cm4MYqUye9iloBmpMrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260608 Bug ID: 260608 Summary: sysutils/zrepl: build does not include version Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: lcook@freebsd.org Reporter: lapo@lapo.it Flags: maintainer-feedback?(lcook@freebsd.org) Assignee: lcook@freebsd.org current: # pkg install zrepl # zrepl version client: zrepl version=3D go=3Dgo1.17.3 GOOS=3Dfreebsd GOARCH=3Damd64 Compil= er=3Dgc expected: # zrepl version client: zrepl version=3D0.4.0 go=3Dgo1.17.3 GOOS=3Dfreebsd GOARCH=3Damd64 C= ompiler=3Dgc The reason is that the port is using `go build` directly, instead of using `gmake`. I tried like this: USES=3D gmake go:modules,no_targets USE_RC_SUBR=3D zrepl MAKE_ENV=3D ZREPL_VERSION=3D${DISTVERSION} but it gets a bit complex as it would probably require modifications to the Makefile (but, as we're not using it, should USES=3Dgmake removed from the port?). I finally managed like this (but is a bit more hackish and breaks WITH_DEBU= G as it overrides "-ldflags=3D-s" as would be otherwise done in /usr/ports/Mk/Uses/go.mk) but it's simple enough and works in the general c= ase: GO_BUILDFLAGS+=3D -ldflags=3D"-X github.com/zrepl/zrepl/version.zreplVersion=3D${DISTVERSION}" --=20 You are receiving this mail because: You are the assignee for the bug.=