New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/26952#issuecomment-744140330 Comment: This could be used to fix cross, but I don't know why npm doesn't pick wrapped `pkg-config` ```diff diff --git a/srcpkgs/joplin-cli/template b/srcpkgs/joplin-cli/template index 2f04a10dd0..abfeddbd98 100644 --- a/srcpkgs/joplin-cli/template +++ b/srcpkgs/joplin-cli/template @@ -14,6 +14,12 @@ distfiles="https://github.com/laurent22/joplin/archive/v${version}.tar.gz" checksum=55aad4fe50e2da980983a69bc7c0870626064db971550d522e266feb17d38916 python_version=3 +if [ "$CROSS_BUILD" ]; then + export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE" + export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/usr/lib/pkgconfig" + export PKG_CONFIG_PATH="$PKG_CONFIG_LIBDIR:$XBPS_CROSS_BASE/usr/share/pkgconfig" +fi + do_build() { # Remove unused modules rm -rf packages/{app-mobile,app-desktop,app-clipper,generator-joplin} diff --git a/srcpkgs/joplin-desktop/template b/srcpkgs/joplin-desktop/template index ff200fcd7c..6fc7ab0faf 100644 --- a/srcpkgs/joplin-desktop/template +++ b/srcpkgs/joplin-desktop/template @@ -13,11 +13,18 @@ license="MIT" homepage="https://joplinapp.org" distfiles="https://github.com/laurent22/joplin/archive/v${version}.tar.gz" checksum=55aad4fe50e2da980983a69bc7c0870626064db971550d522e266feb17d38916 +no_generic_pkgconfig_link=yes export USE_SYSTEM_7ZA="true" export USE_SYSTEM_APP_BUILDER="true" export USE_SYSTEM_MKSQUASHFS="true" +if [ "$CROSS_BUILD" ]; then + export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE" + export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/usr/lib/pkgconfig" + export PKG_CONFIG_PATH="$PKG_CONFIG_LIBDIR:$XBPS_CROSS_BASE/usr/share/pkgconfig" +fi + do_build() { # Remove unused modules rm -rf packages/{app-mobile,app-cli,generator-joplin,app-clipper} ```