Gentoo Archives: gentoo-dev

From: Michal Hrusecky <miska@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] RFC patch for obs-service.eclass
Date: Tue, 21 Feb 2012 10:19:43
Message-Id: 20120221101843.GA17026@misibook.miska.isageek.net
1 Hi,
2
3 any objections against following patch? I guess I'm the only one using
4 this eclass anyway. So what the patch does. In gentoo we have build
5 renamed to avoid clashes and moved to the different directory. More and
6 more services are using parts of the build, so instead of patching all
7 services, I think it would be better to do it in eclass.
8
9 --- obs-service.eclass 16 Sep 2011 15:49:19 -0000 1.1
10 +++ obs-service.eclass 21 Feb 2012 10:03:43 -0000
11 @@ -74,6 +74,18 @@
12 debug-print-function ${FUNCNAME} "$@"
13 }
14
15 +# @FUNCTION: obs-service_src_prepare
16 +# @DESCRIPTION:
17 +# Replaces all /usr/lib/build directories with /usr/share/suse-build to reflect
18 +# where suse-build is installed in Gentoo.
19 +obs-service_src_prepare() {
20 + debug-print-function ${FUNCNAME} "$@"
21 + debug-print "Replacing all paths to find suse-build in Gentoo"
22 + find . -exec grep -l /usr/lib/build \{\} \; | while read i; do
23 + sed -i 's|/usr/lib/build|/usr/share/suse-build|g' "${i}"
24 + done
25 +}
26 +
27 # @FUNCTION: obs-service_src_install
28 # @DESCRIPTION:
29 # Does the installation of the downloaded files.
30 @@ -94,4 +106,4 @@
31 fi
32 }
33
34 -EXPORT_FUNCTIONS src_install src_unpack
35 +EXPORT_FUNCTIONS src_install src_prepare src_unpack
36
37
38 --
39 Michal Hrusecky <miska@g.o>

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] RFC patch for obs-service.eclass "Michał Górny" <mgorny@g.o>
Re: [gentoo-dev] RFC patch for obs-service.eclass Michal Hrusecky <miska@g.o>