--- a/gobject-introspection-1.40.0-r2.ebuild 2015-03-03 18:15:13.205984119 +0000 +++ b/gobject-introspection-1.40.0-r2.ebuild 2015-03-03 18:15:17.657983805 +0000 @@ -41,6 +41,8 @@ DEPEND="${RDEPEND} # PDEPEND to avoid circular dependencies, bug #391213 PDEPEND="cairo? ( x11-libs/cairo[glib] )" +LD_MUSL="/lib/ld-musl-$(uname -m).so.1" + pkg_setup() { python-single-r1_pkg_setup } @@ -48,6 +50,12 @@ pkg_setup() { src_prepare() { # Prevent gjs crashes, bug #523608 (from 'master') epatch "${FILESDIR}/${PN}-1.40.0-gjs-crash.patch" + + if [ ! -f "/bin/ldd" ]; then + echo "No dynlinker found, symlinking musl linker at ${LD_MUSL}" + dosym "${LD_MUSL}" "/bin/ldd" + fi + gnome2_src_prepare }