Gentoo Archives: gentoo-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Please review: function epunt_la_files for eutils.eclass
Date: Sun, 09 Nov 2008 16:10:45
Message-Id: 20081109161043.GK23310@gentoo.org
In Reply to: [gentoo-dev] Please review: function epunt_la_files for eutils.eclass by Peter Alfredsen
1 On 09-11-2008 18:04:05 +0200, Peter Alfredsen wrote:
2 > + # If this is a non-ELF system, chances are good that the .la files will be needed.
3 > + if type -P scanelf &> /dev/null
4
5 I think this is a not so cool way to check for an ELF system.
6
7 > + then
8 > + debug-print "Scanelf found, proceeding..."
9 > + ebegin "Removing useless .la files"
10 > + find "${TARGET}" -name '*.la' '(' -type l -o -type f ')' -exec rm -f '{}' '+'
11 > + eend 0
12 > + else
13 > + debug-print "scanelf not found, this appears to be a non-ELF system."
14 > + debug-print "non-ELF systems are likely to need .la files."
15 > + debug-print ".la files not removed from ${TARGET}"
16
17 rationale?
18
19
20 --
21 Fabian Groffen
22 Gentoo on a different level

Replies