Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Pacho Ramos <pacho@g.o>, gnome@g.o
Subject: Re: [gentoo-dev] [PATCH] gnome2.eclass does not respect ECONF_SOURCE
Date: Thu, 23 May 2013 19:31:24
Message-Id: 201305231531.19706.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] gnome2.eclass does not respect ECONF_SOURCE by Pacho Ramos
1 On Thursday 09 May 2013 12:59:11 Pacho Ramos wrote:
2 > El mié, 08-05-2013 a las 20:59 -0400, Mike Frysinger escribió:
3 > > On Wednesday 05 December 2012 18:02:51 Doug Goldstein wrote:
4 > > > - if grep -q "disable-scrollkeeper" configure; then
5 > > > + if grep -q "disable-scrollkeeper" ${ECONF_SOURCE:-.}/configure; then
6 > >
7 > > ECONF_SOURCE should be quoted
8 > > -mike
9 >
10 > If it doesn't cause any problem (it shouldn't, I think), feel free to
11 > commit adding the quotes. Thanks for noticing! (will CC gnome team to
12 > keep them aware)
13
14 Index: gnome2.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v
17 retrieving revision 1.120
18 diff -u -p -r1.120 gnome2.eclass
19 --- gnome2.eclass 16 Jan 2013 23:01:02 -0000 1.120
20 +++ gnome2.eclass 23 May 2013 19:31:00 -0000
21 @@ -122,7 +122,7 @@ gnome2_src_configure() {
22 # Remember to drop 'doc' USE flag from your package if it was only used to
23 # rebuild docs.
24 # Preserve old behavior for older EAPI.
25 - if grep -q "enable-gtk-doc" ${ECONF_SOURCE:-.}/configure ; then
26 + if grep -q "enable-gtk-doc" "${ECONF_SOURCE:-.}"/configure ; then
27 if has ${EAPI:-0} 0 1 2 3 4 && in_iuse doc ; then
28 G2CONF="$(use_enable doc gtk-doc) ${G2CONF}"
29 else
30 @@ -132,29 +132,29 @@ gnome2_src_configure() {
31
32 # Pass --disable-maintainer-mode when needed
33 if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" \
34 - ${ECONF_SOURCE:-.}/configure.*; then
35 + "${ECONF_SOURCE:-.}"/configure.*; then
36 G2CONF="--disable-maintainer-mode ${G2CONF}"
37 fi
38
39 # Pass --disable-scrollkeeper when possible
40 - if grep -q "disable-scrollkeeper" ${ECONF_SOURCE:-.}/configure; then
41 + if grep -q "disable-scrollkeeper" "${ECONF_SOURCE:-.}"/configure; then
42 G2CONF="--disable-scrollkeeper ${G2CONF}"
43 fi
44
45 # Pass --disable-silent-rules when possible (not needed for eapi5), bug
46 #429308
47 if has ${EAPI:-0} 0 1 2 3 4; then
48 - if grep -q "disable-silent-rules" ${ECONF_SOURCE:-.}/configure; then
49 + if grep -q "disable-silent-rules" "${ECONF_SOURCE:-.}"/configure; then
50 G2CONF="--disable-silent-rules ${G2CONF}"
51 fi
52 fi
53
54 # Pass --disable-schemas-install when possible
55 - if grep -q "disable-schemas-install" ${ECONF_SOURCE:-.}/configure; then
56 + if grep -q "disable-schemas-install" "${ECONF_SOURCE:-.}"/configure; then
57 G2CONF="--disable-schemas-install ${G2CONF}"
58 fi
59
60 # Pass --disable-schemas-compile when possible
61 - if grep -q "disable-schemas-compile" ${ECONF_SOURCE:-.}/configure; then
62 + if grep -q "disable-schemas-compile" "${ECONF_SOURCE:-.}"/configure; then
63 G2CONF="--disable-schemas-compile ${G2CONF}"
64 fi
65
66 -mike

Attachments

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

Replies