From: "Mike Thompson" <mthompson@dustyrobotics.com>
To: yocto@lists.yoctoproject.org
Subject: Re: Yocto recipe for Tailscale #yocto #golang
Date: Sat, 19 Sep 2020 03:13:36 -0700 [thread overview]
Message-ID: <1315.1600510416708828939@lists.yoctoproject.org> (raw)
In-Reply-To: <8132db85-5881-636e-c091-d84c47efe4fe@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3475 bytes --]
Inheriting from go-mod didn't make any difference that I could tell.
This is what I have so far for the Tailscale recipe. I'm resolving dependencies with individual Bitbake files that pull in each dependency as I find them.
---------------------------------------------
# tailscale_1.0.5.bb
SUMMARY = "Tailscale client and daemon for Linux"
HOMEPAGE = "github.com/tailscale/tailscale"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=d995c1c44529856a0f35a5ad43e51cc5"
SRC_URI = "git://github.com/tailscale/tailscale.git;nobranch=1;tag=v${PV}"
DEPENDS += "github.com-apenwarr-fixconsole \
github.com-coreos-go-iptable \
github.com-godbus-dbus \
github.com-golang-groupcache \
github.com-jsimonetti-rtnetlink \
github.com-klauspost-compress \
github.com-mdlayher-netlink \
github.com-pborman-getopt \
github.com-peterbourgon-ff \
github.com-tailscale-wireguard-go \
github.com-tcnksm-go-httpstat \
github.com-toqueteos-webbrowser \
golang.org-x \
go4.org-mem \
inet.af-netaddr \
rsc.io-goversion \
"
inherit go
inherit go-mod
GO_IMPORT = "tailscale.com"
GO_INSTALL = "${GO_IMPORT}/cmd/tailscale"
RDEPENDS_${PN}-dev += "bash"
---------------------------------------------
Unfortunately, the golang.org-x.bb recipe is turning into an endless source of dependencies during do_compile stage. I feel I must be on the wrong track.
Is there a way to package up the following so that just what is needed by Tailscale is included, but dependencies not needed by Tailscale are ignored?
---------------------------------------------
# golang.org-x.bb
DESCRIPTION = "Go X libraries"
SRC_URI = "\
git://github.com/golang/mod.git;protocol=https;name=mod;destsuffix=${PN}-${PV}/src/golang.org/x/mod \
git://github.com/golang/net.git;protocol=https;name=net;destsuffix=${PN}-${PV}/src/golang.org/x/net \
git://github.com/golang/sys.git;protocol=https;name=sys;destsuffix=${PN}-${PV}/src/golang.org/x/sys \
git://github.com/golang/text.git;protocol=https;name=text;destsuffix=${PN}-${PV}/src/golang.org/x/text \
git://github.com/golang/time.git;protocol=https;name=time;destsuffix=${PN}-${PV}/src/golang.org/x/time \
git://github.com/golang/sync.git;protocol=https;name=sync;destsuffix=${PN}-${PV}/src/golang.org/x/sync \
git://github.com/golang/tools.git;protocol=https;name=tools;destsuffix=${PN}-${PV}/src/golang.org/x/tools \
git://github.com/golang/build.git;protocol=https;name=build;destsuffix=${PN}-${PV}/src/golang.org/x/build \
git://github.com/golang/oauth2.git;protocol=https;name=oauth2;destsuffix=${PN}-${PV}/src/golang.org/x/oauth2 \
git://github.com/golang/crypto.git;protocol=https;name=crypto;destsuffix=${PN}-${PV}/src/golang.org/x/crypto \
git://github.com/golang/xerrors.git;protocol=https;name=xerrors;destsuffix=${PN}-${PV}/src/golang.org/x/xerrors \
"
SRCREV_FORMAT = "golang"
SRCREV_mod = "${AUTOREV}"
SRCREV_net = "${AUTOREV}"
SRCREV_sys = "${AUTOREV}"
SRCREV_text = "${AUTOREV}"
SRCREV_time = "${AUTOREV}"
SRCREV_sync = "${AUTOREV}"
SRCREV_tools = "${AUTOREV}"
SRCREV_build = "${AUTOREV}"
SRCREV_oauth2 = "${AUTOREV}"
SRCREV_crypto = "${AUTOREV}"
SRCREV_xerrors = "${AUTOREV}"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
inherit go
GO_IMPORT = "golang.org/x"
---------------------------------------------
Thanks,
Mike Thompson
[-- Attachment #2: Type: text/html, Size: 5428 bytes --]
next prev parent reply other threads:[~2020-09-19 10:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-18 5:43 Yocto recipe for Tailscale #yocto #golang Mike Thompson
2020-09-18 6:26 ` [yocto] " Nicolas Jeker
2020-09-18 23:46 ` Mike Thompson
2020-09-19 6:04 ` [yocto] " Khem Raj
2020-09-19 10:13 ` Mike Thompson [this message]
2020-09-19 20:58 ` Mike Thompson
2020-09-21 17:30 ` [yocto] " Randy MacLeod
2020-09-23 4:49 ` Mike Thompson
2020-10-13 18:51 ` Mike Thompson
2020-10-13 19:42 ` [yocto] " Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1315.1600510416708828939@lists.yoctoproject.org \
--to=mthompson@dustyrobotics.com \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.