Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: archs/amd64/
Date: Wed, 22 Dec 2021 15:27:42
Message-Id: 1640184690.4e7a2e7b243be4ef2033097d1351e42c9be97fa1.ulm@gentoo
1 commit: 4e7a2e7b243be4ef2033097d1351e42c9be97fa1
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 12 19:22:58 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 22 14:51:30 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=4e7a2e7b
7
8 archs/amd64: econf passes --libdir by default
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 archs/amd64/text.xml | 16 ++--------------
13 1 file changed, 2 insertions(+), 14 deletions(-)
14
15 diff --git a/archs/amd64/text.xml b/archs/amd64/text.xml
16 index cbfe8df..db9e9c5 100644
17 --- a/archs/amd64/text.xml
18 +++ b/archs/amd64/text.xml
19 @@ -232,22 +232,10 @@ this behaviour is controlled by the <c>MULTILIB_STRICT_EXEMPT</c> variable in
20 <body>
21
22 <p>
23 -In most cases, it's sufficient to use the <c>$(get_libdir)</c> function:
24 +In most cases, default <c>econf</c> behaviour is sufficient, because it will
25 +pass the correct <c>--libdir</c> option to <c>configure</c>.
26 </p>
27
28 -<codesample lang="ebuild">
29 -src_compile() {
30 - econf \
31 - --libdir=/usr/$(get_libdir)
32 -
33 - emake || die
34 -}
35 -
36 -src_install() {
37 - emake DESTDIR="${D}" install || die
38 -}
39 -</codesample>
40 -
41 <p>
42 Some packages provide really bad Makefiles which hard-code <c>/usr/lib</c>. Those
43 should be <c>sed</c> -ed or patched. Don't forget to let upstream know about your