From owner-freebsd-ports-bugs@freebsd.org Sat Sep 24 05:43:00 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B68BBE8009 for ; Sat, 24 Sep 2016 05:43:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4DEE9E7 for ; Sat, 24 Sep 2016 05:42:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8O5gxqU081393 for ; Sat, 24 Sep 2016 05:42:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 212956] [PATCH] USES/go.mk, add GO_EXTRA_PACKAGES for multi-package applications Date: Sat, 24 Sep 2016 05:42:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bsdports@kyle-evans.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc attachments.created 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2016 05:43:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212956 Bug ID: 212956 Summary: [PATCH] USES/go.mk, add GO_EXTRA_PACKAGES for multi-package applications Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: bsdports@kyle-evans.net CC: freebsd-ports-bugs@FreeBSD.org Keywords: patch Created attachment 175116 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D175116&action= =3Dedit svn(1) diff of Mk/Uses/go.mk to add GO_EXTRA_PACKAGES I've ran into a golang application ([1]) that is actually composed of four different packages within its own repository, plus a couple of external dependencies. Currently, this makes for kind of an ugly situation where one would need to= put these into their proper ${GO_SRCDIR}/${PACKAGENAME} paths in order to prope= rly build, and it gets kind of messy. Additionally, the behavior for creating ${GO_WRKSRC} is out-right wrong because the repository is already package-aware. I'm attaching a patch that handles this situation a little better with a GO_EXTRA_PACKAGES var. If GO_EXTRA_PACKAGES is populated, then: * Make sure that ${GO_PKGNAME} is included -- for multi-package repositorie= s, this should *always* work as it's the only sane layout I can think of * In post-extract we assume/check that each package is currently living in ${WRKSRC}/src and symlink it into place if proper. [1] https://github.com/arduino/arduino-builder --=20 You are receiving this mail because: You are on the CC list for the bug.=