From: | "Bo Ørsted Andresen" <bo.andresen@××××.dk> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Cc: | opfer@g.o | ||
Subject: | Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-misc/note: ChangeLog note-1.3.3.ebuild | ||
Date: | Mon, 15 Oct 2007 08:08:56 | ||
Message-Id: | 200710150956.05673.bo.andresen@zlin.dk | ||
In Reply to: | [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-misc/note: ChangeLog note-1.3.3.ebuild by Donnie Berkholz |
1 | On Monday 15 October 2007 09:42:50 Donnie Berkholz wrote: |
2 | > On 07:40 Mon 15 Oct , Christian Faulhammer (opfer) wrote: |
3 | > > 1.1 app-misc/note/note-1.3.3.ebuild |
4 | > > |
5 | > > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/note/note-1.3.3.ebuild?rev=1.1&view=markup |
6 | > > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/note/note-1.3.3.ebuild?rev=1.1&content-type=text/plain |
7 | > > |
8 | > > for v in mysql text dbm general; do |
9 | > > if ! use ${v}; then |
10 | > > for u in `find "${D}" -type f -name *${v}.*pm`; do |
11 | > > rm ${u} |
12 | > |
13 | > Looks like 'u' could have spaces in it, since it's based on D. |
14 | |
15 | Written like this u certainly can't since the output of the find expression is |
16 | subjected to word splitting before u gets set. Hence this will fail if ${D} |
17 | contains spaces even if ${u} gets quoted. The best way to solve this is to use |
18 | find ... -print0 | xargs -0 rm. Unfortunately that solution means using GNU |
19 | extensions that I'm not sure are guaranteed to be available in the ebuild |
20 | environment. If they aren't maybe they should be. |
21 | |
22 | -- |
23 | Bo Andresen |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-misc/note: ChangeLog note-1.3.3.ebuild | Donnie Berkholz <dberkholz@g.o> |
Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-misc/note: ChangeLog note-1.3.3.ebuild | Ulrich Mueller <ulm@g.o> |
Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-misc/note: ChangeLog note-1.3.3.ebuild | Roy Marples <uberlord@g.o> |