Closed issue by yopito on void-packages repository https://github.com/void-linux/void-packages/issues/12807 Description: ### System * xuname: `Void 4.19.56_1 x86_64 GenuineIntel notuptodate rFF` *output of ``xuname`` (part of xtools)* * package: `wxWidgets-gtk3-devel-3.0.4_1` *affected package(s) including the version* ### Expected behavior building and cross-building using `wx-config-gtk3` should be fine, whatever the target architecture is. ### Actual behavior Cross-building using `wx-config-gtk3` for i686 target arch fails. ### Steps to reproduce the behavior Crossbuild filezilla for i686 for instance: ``` [...] checking pkg-config is at least version 0.9.0... yes checking for libfilezilla >= 0.17.1... yes checking for wx-config-gtk3... /usr/bin/wx-config-gtk3 checking for wxWidgets version >= 3.0.4 (--unicode=yes --universal=no)... no configure: error: The requested wxWidgets build couldn't be found. [...] ``` ### Additional infos `wx-config-gtk3` is a symlink , that is not consistent in packages: sometime absolute, sometime relative. So `generic_wrapper` don't wrap it for i686, that make build fails then. Example on some package(s): ``` $ for i in repocache/wxWidgets-gtk3-devel-3.0.4_1.*.xbps; do echo ; echo "# $i" ; tar tvJf $i | grep wx-config done # repocache/wxWidgets-gtk3-devel-3.0.4_1.aarch64-musl.xbps lrwxrwxrwx 0/0 0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> ../lib/wx/config/gtk3-unicode-3.0 # repocache/wxWidgets-gtk3-devel-3.0.4_1.aarch64.xbps lrwxrwxrwx 0/0 0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> ../lib/wx/config/gtk3-unicode-3.0 # repocache/wxWidgets-gtk3-devel-3.0.4_1.i686.xbps lrwxrwxrwx 0/0 0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> /usr/lib32/wx/config/gtk3-unicode-3.0 # repocache/wxWidgets-gtk3-devel-3.0.4_1.x86_64.xbps lrwxrwxrwx 0/0 0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> /usr/lib/wx/config/gtk3-unicode-3.0 ``` Edit: not strictly related to fails build of PR #11854, add output for filezilla/i686