The ebuild has a sed command to remove LDFLAGS from the pkg-config file: sed -i \ -e "s:${LDFLAGS}::g" \ "${ED}"/usr/$(get_libdir)/pkgconfig/redland.pc || die But if the user has set LDFLAGS="" then this removes all spaces from the entire file, and it's unusable by pkg-config: prefix=/usr exec_prefix=${prefix} libdir=/usr/lib64 includedir=${prefix}/include plugindir=${libdir}/redland swig=${prefix}/share/redland/Redland.i have_raptor2_api=1 Name:RedlandRDFAPILibrary Description:RedlandRDFAPIandtriplestorelibrary Requires.private:raptor2>=2.0.7,rasqal>=0.9.25,rasqal<=0.9.99 Version:1.0.16 Libs:-L${libdir}-lrdf Libs.private:-ldl-ldb-4.8 Cflags:-I${includedir}
Created attachment 347138 [details, diff] redland-1.0.16-pkgconfig.patch This should be done properly not with such sed hacks.
Created attachment 347140 [details, diff] redland-1.0.16.ebuild.patch
unfortunately this is a stable ebuild and I feel uncomfortable about applying this retroactively. We should probably just wrap the sed inside a [[ -z ${LDFLAGS} ]] || { sed ... ;} check until the next revbump/version bump
this bug will be closed when the actual patch can be applied on version bump or is included upstream + 02 May 2013; Julian Ospald <hasufell@gentoo.org> redland-1.0.16.ebuild: + fix sed-hack wrt #468298