The line: sed -i '34s/^/exec/' "wx-config-${WXWRAP_VER}" || die on the ebuild creates a malformed wx-config. Just commenting it fixes the bug. The bug presents as: # /usr/bin/wx-config /usr/bin/wx-config: line 34: syntax error near unexpected token `then' /usr/bin/wx-config: line 34: `exec if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then' Reproducible: Always Steps to Reproduce: 1./usr/bin/wx-config 2. 3. Actual Results: # /usr/bin/wx-config /usr/bin/wx-config: line 34: syntax error near unexpected token `then' /usr/bin/wx-config: line 34: `exec if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then' Expected Results: # /usr/bin/wx-config wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full] [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT] [--universal[=yes|no]] [--unicode[=yes|no]] [--static[=yes|no]] [--debug[=yes|no]] [--version[=VERSION]] [--basename] [--cc] [--cxx] [--cppflags [base]] [--cxxflags [base]] [--cflags] [--rescomp] [--linkdeps] [--ld] [--utility=UTIL] [--libs [LIBS...]] [--optional-libs [LIBS...]] wx-config returns information about the wxWidgets libraries available on your system. It may be used to retrieve the information required to build applications using these libraries using --cppflags, --cxxflags, --cflags, and --libs options. And you may query the properties of this configuration using --query-{host,toolkit,widgetset,chartype,debugtype,version,linkage}. NOTE: Usage of --debug and --query-debugtype are only relevant if you have any versions prior to 2.9 installed and use the --version option to select an earlier version. If multiple builds of wxWidgets are available, you can use the options --prefix, --host, --toolkit, --unicode, --static, --universal or --version to select from them. The --selected-config option shows the name of the current configuration and --list shows available alternatives which match specified criteria. The --utility option returns the correct version of UTIL to use with the selected build. The --linkdeps option returns only static libraries for your makefile link rule dependencies. The LIBS arguments (comma or space separated) may be used to specify the wxWidgets libraries that you wish to use. The "std" label may be used to import all libraries that would be used by default if none were specified explicitly, e.g. wx-config --libs core,base. The "all" label may be used to import all libraries that have been compiled which are shown in the list below. The --optional-libs parameter should be followed by a list of libs that should be linked to, but only if they are available. Available libraries in this build are: xrc webview stc richtext ribbon propgrid aui gl media html qa adv core xml net base
Fixed already in -r1.