FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 02-21-2012, 09:18 AM
Michal Hrusecky
 
Default RFC patch for obs-service.eclass

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 <miska@gentoo.org>
 

Thread Tools




All times are GMT. The time now is 06:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org