Hi, any objections against following patch? I guess I'm the only one using this eclass anyway. So what the patch does. In gentoo we have build renamed to avoid clashes and moved to the different directory. More and more services are using parts of the build, so instead of patching all services, I think it would be better to do it in eclass.
--- obs-service.eclass 16 Sep 2011 15:49:19 -0000 1.1 +++ obs-service.eclass 21 Feb 2012 10:03:43 -0000 @@ -74,6 +74,18 @@ debug-print-function ${FUNCNAME} "$@" } +# @FUNCTION: obs-service_src_prepare +# @DESCRIPTION: +# Replaces all /usr/lib/build directories with /usr/share/suse-build to reflect +# where suse-build is installed in Gentoo. +obs-service_src_prepare() { + debug-print-function ${FUNCNAME} "$@" + debug-print "Replacing all paths to find suse-build in Gentoo" + find . -exec grep -l /usr/lib/build \{\} \; | while read i; do + sed -i 's|/usr/lib/build|/usr/share/suse-build|g' "${i}" + done +} + # @FUNCTION: obs-service_src_install # @DESCRIPTION: # Does the installation of the downloaded files. @@ -94,4 +106,4 @@ fi } -EXPORT_FUNCTIONS src_install src_unpack +EXPORT_FUNCTIONS src_install src_prepare src_unpack -- Michal Hrusecky <mi...@gentoo.org>
signature.asc
Description: Digital signature