1 |
commit: b4986e8ca60437c6c155efedc14cc4480b519482 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 30 21:03:00 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 30 21:13:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=b4986e8c |
7 |
|
8 |
functions.sh: drop get_libdir |
9 |
|
10 |
libdir is defined when packages are built. Trying to determine its value |
11 |
via a runtime function makes no sense. |
12 |
|
13 |
On a typical Gentoo system, this function will always return "lib", |
14 |
which is often the wrong value on a multilib system with SYMLINK_LIB=no. |
15 |
|
16 |
Bug: https://bugs.gentoo.org/640456 |
17 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
18 |
|
19 |
functions.sh | 13 ------------- |
20 |
1 file changed, 13 deletions(-) |
21 |
|
22 |
diff --git a/functions.sh b/functions.sh |
23 |
index 3ea9daa..53cc189 100644 |
24 |
--- a/functions.sh |
25 |
+++ b/functions.sh |
26 |
@@ -335,19 +335,6 @@ veoutdent() |
27 |
yesno "${EINFO_VERBOSE}" && eoutdent |
28 |
} |
29 |
|
30 |
-# |
31 |
-# prints the current libdir {lib,lib32,lib64} |
32 |
-# |
33 |
-get_libdir() |
34 |
-{ |
35 |
- if [ -n "${CONF_LIBDIR_OVERRIDE}" ] ; then |
36 |
- CONF_LIBDIR="${CONF_LIBDIR_OVERRIDE}" |
37 |
- elif command -v portageq > /dev/null 2>&1; then |
38 |
- CONF_LIBDIR="$(portageq envvar CONF_LIBDIR)" |
39 |
- fi |
40 |
- printf "${CONF_LIBDIR:=lib}\n" |
41 |
-} |
42 |
- |
43 |
# |
44 |
# return 0 if gentoo=param was passed to the kernel |
45 |
# |