diff options
| author | Ross Burton <ross@burtonini.com> | 2020-12-01 15:23:00 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-06 23:17:27 +0000 |
| commit | 126f03845583f112006401472ad2845583bc6436 (patch) | |
| tree | a4259f5ff90290ffbc225b9dd7eedbf3d83c8e57 /meta | |
| parent | 7d7197b28226a9ab39babf5be5c4aa92473a2e60 (diff) | |
| download | poky-126f03845583f112006401472ad2845583bc6436.tar.gz | |
ldconfig-native: don't write auxiliary cache
The auxiliary cache written by ldconfig is only useful for speeding up
future runs of ldconfig, and as it contains inode numbers as the keys
in a dictionary it is entirely pointless to generate on the build host.
(From OE-Core rev: 67c1ceb193130fcb30853c2cd1a6ef33a814886e)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/glibc/ldconfig-native-2.12.1/no-aux-cache.patch | 19 | ||||
| -rw-r--r-- | meta/recipes-core/glibc/ldconfig-native_2.12.1.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/ldconfig-native-2.12.1/no-aux-cache.patch b/meta/recipes-core/glibc/ldconfig-native-2.12.1/no-aux-cache.patch new file mode 100644 index 0000000000..c6765ba00d --- /dev/null +++ b/meta/recipes-core/glibc/ldconfig-native-2.12.1/no-aux-cache.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | The ldconfig auxiliary cache is a dictionary where the keys include inode, so | ||
| 2 | there is no point in writing these files on the build host. | ||
| 3 | |||
| 4 | Upstream-Status: Inappropriate | ||
| 5 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 6 | |||
| 7 | diff --git a/ldconfig.c b/ldconfig.c | ||
| 8 | index 2c4eb57..2d6dc92 100644 | ||
| 9 | --- a/ldconfig.c | ||
| 10 | +++ b/ldconfig.c | ||
| 11 | @@ -1399,8 +1399,6 @@ main (int argc, char **argv) | ||
| 12 | if (opt_build_cache) | ||
| 13 | { | ||
| 14 | save_cache (cache_file); | ||
| 15 | - if (aux_cache_file) | ||
| 16 | - save_aux_cache (aux_cache_file); | ||
| 17 | } | ||
| 18 | |||
| 19 | return 0; | ||
diff --git a/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb b/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb index 93c0b18671..919d11417d 100644 --- a/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb +++ b/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb | |||
| @@ -14,6 +14,7 @@ SRC_URI = "file://ldconfig-native-2.12.1.tar.bz2 \ | |||
| 14 | file://ldconfig-default-to-all-multilib-dirs.patch \ | 14 | file://ldconfig-default-to-all-multilib-dirs.patch \ |
| 15 | file://endian-ness_handling_fix.patch \ | 15 | file://endian-ness_handling_fix.patch \ |
| 16 | file://add-64-bit-flag-for-ELF64-entries.patch \ | 16 | file://add-64-bit-flag-for-ELF64-entries.patch \ |
| 17 | file://no-aux-cache.patch \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | PR = "r2" | 20 | PR = "r2" |
