New comment by dkwo on void-packages repository https://github.com/void-linux/void-packages/pull/29434#issuecomment-1265610884 Comment: I tried to implement this: no changes to the trigger file, and booster template becomes ``` # Template file for 'booster' pkgname=booster version=0.9 revision=1 build_style=go go_import_path=github.com/anatol/booster go_package="${go_import_path}/generator ${go_import_path}/init" hostmakedepends="git ruby-ronn" depends="busybox-static" short_desc="Fast and secure initramfs generator" maintainer="travankor " license="MIT" homepage="https://github.com/anatol/booster" distfiles="https://github.com/anatol/booster/archive/${version}.tar.gz" checksum=786b89ac5f5b6fb063ff58b490525c9fda9c6f2ae53ab06416b25993bdb72ca4 conf_files="/etc/booster.yaml" alternatives=" initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/booster/kernel-hook-postinst initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/booster/kernel-hook-postrm " do_build() { cd generator go install -p "$XBPS_MAKEJOBS" -mod=readonly -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" cd ../init CGO_ENABLED=0 go install -p "$XBPS_MAKEJOBS" -mod=readonly -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" } do_install() { if [ "$CROSS_BUILD" ]; then vbin ${GOPATH}/bin/linux_${GOARCH}/generator booster vinstall ${GOPATH}/bin/linux_${GOARCH}/init 755 usr/lib/booster else vbin ${GOPATH}/bin/generator booster vinstall ${GOPATH}/bin/init 755 usr/lib/booster fi ronn docs/manpage.md vman docs/manpage.1 booster.1 echo "busybox: true" > booster.yaml } post_install() { vconf booster.yaml vinstall ${FILESDIR}/kernel-hook-postinst 755 usr/libexec/booster vinstall ${FILESDIR}/kernel-hook-postrm 755 usr/libexec/booster vcompletion contrib/completion/bash bash booster vlicense LICENSE } ``` I noticed the following: ``` => booster-0.9_1: running pre-pkg hook: 04-generate-runtime-deps ... objdump: /destdir//booster-0.9/usr/bin/booster: .gnu.version_r invalid entry objdump: warning: private headers incomplete: bad value SONAME: libc.so <-> musl>=1.1.24_7 ``` I'll report if I have issues with next kernel updates.