Gentoo Archives: gentoo-dev

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] find ${D} -delete in src_install() ?
Date: Tue, 15 Jul 2014 10:12:32
Message-Id: 53C4FD42.3040704@gentoo.org
In Reply to: [gentoo-dev] find ${D} -delete in src_install() ? by Peter Stuge
1 On 15/07/14 13:00, Peter Stuge wrote:
2 > I came across this in sys-power/pm-utils-1.4.1-r2.ebuild src_install():
3 >
4 > # NetworkManager 0.8.2 is handling suspend/resume on it's own with UPower
5 > find "${D}" -type f -name 55NetworkManager -exec rm -f '{}' +
6 >
7 > This seems baroquely reckless, but it has been like that since 2010
8 > with one revbump and a bunch of stabilizations, so maybe it's fine?
9
10 I don't see anything reckless about it.
11
12 > Is it really acceptable for an ebuild to delete all files in $D
13 > which have a particular name?
14 >
15 >
16 > //Peter
17 >
18
19 Of course, why wouldn't it be? $D is the image directory of the package
20 before it's merged to
21 actual filesystem, and even if it weren't, it specifies -name as well,
22 so it's double-safe

Replies

Subject Author
Re: [gentoo-dev] find ${D} -delete in src_install() ? Peter Stuge <peter@×××××.se>