New comment by Chocimier on void-packages repository https://github.com/void-linux/void-packages/pull/43443#issuecomment-1509135246 Comment: Cross compilation fix ``` diff --- a/srcpkgs/minipro/template +++ b/srcpkgs/minipro/template @@ -2,11 +2,10 @@ pkgname=minipro version=0.6 revision=1 -archs="x86_64* i686*" build_style=gnu-makefile make_use_env=compliant -hostmakedepends="pkg-config libusb-devel" -makedepends="libusb-devel which" +hostmakedepends="pkg-config which" +makedepends="libusb-devel" depends="libusb" short_desc="Program for controlling the MiniPRO TL866xx series of chip programmers" maintainer="Bryce Vandegrift " @@ -15,9 +14,9 @@ homepage="https://gitlab.com/DavidGriffith/minipro" distfiles="${homepage}/-/archive/${version}/${pkgname}-${version}.tar.gz" checksum=16b4220b5fc07dddc4d1d49cc181a2c6a735c833cc27f24ab73eac2572c9304a -if [ "${CROSS_BUILD}" ]; then - hostmakedepends+=" which" -fi +post_patch() { + vsed -i Makefile -e 's/CC=gcc/CC?=gcc/' +} post_install() { vmkdir usr/lib/udev/rules.d ```