meta-virtualization/recipes-devtools/go/go-systemd_git.bb
Bruce Ashfield 6961097ff6 go-systemd: explicitly specify branch
The upstream project has removed the master branch in favour of
'main'.

We were relying on the fetcher default of master previously, and
now that master no longer exists, we get a fetch failure.

Adding an explicit branch=main gets things working again.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-05-12 15:06:03 -04:00

32 lines
949 B
BlitzBasic

DESCRIPTION = "Go bindings to systemd socket activation, journal, D-Bus, and unit files"
HOMEPAGE = "https://github.com/coreos/go-systemd"
SECTION = "devel/go"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=19cbd64715b51267a47bf3750cc6a8a5"
SRCNAME = "systemd"
PKG_NAME = "github.com/coreos/go-${SRCNAME}"
SRC_URI = "git://${PKG_NAME}.git;branch=main"
SRCREV = "b4a58d95188dd092ae20072bac14cece0e67c388"
PV = "4+git${SRCPV}"
RDEPENDS_${PN} += "bash"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${prefix}/local/go/src/${PKG_NAME}
cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}
SYSROOT_PREPROCESS_FUNCS += "go_systemd_sysroot_preprocess"
go_systemd_sysroot_preprocess () {
install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}
FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"