diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-28 03:03:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-28 03:03:20 +0100 |
commit | 0b1f53c54388382ff701d00d3f5eb981ed040f2a (patch) | |
tree | ec5c4665c03dbae83c878cb536837e611a8584a6 /sys-libs/musl | |
parent | 59fb67b05708a525b33b4a84de896b3b1ae34012 (diff) |
gentoo auto-resync : 28:07:2022 - 03:03:20
Diffstat (limited to 'sys-libs/musl')
-rw-r--r-- | sys-libs/musl/Manifest | 1 | ||||
-rw-r--r-- | sys-libs/musl/files/musl-1.2.2-gethostid.patch | 43 |
2 files changed, 0 insertions, 44 deletions
diff --git a/sys-libs/musl/Manifest b/sys-libs/musl/Manifest index f5f9bbb4ca51..0d6f74d610ac 100644 --- a/sys-libs/musl/Manifest +++ b/sys-libs/musl/Manifest @@ -1,5 +1,4 @@ AUX ldconfig.in-r3 3093 BLAKE2B 146374fe711c660a61e4a23f89ae066e78b8bca6884719c058981069ab92833d7f660b7bd78e7c8b86112944706823f0260d7c63f19d64960f27f44b4e95a6a3 SHA512 ba021cf7d52c001d6ef9a54a91de93240cd7eef9f7a6d7a48ae0c58f934aaea6796979ce80e1cfa9bdc6008023108f3c226440360f8e3134fc23f7fdac0e55b1 -AUX musl-1.2.2-gethostid.patch 1028 BLAKE2B fbe554e681c8f0e4bff6ec6fe97c88fd3c7f84ac07580b5f6cfef13b6b27c985f4f0e1d7722f397c59e655b8cd864fa845f9af2aa0eaa9287349f41e71f7a257 SHA512 d2959ef272e3a2742efec3983a41705cfa6424110dbc1eb53a912492cf067881cdbcb8cd864757e6450dda9b47e0cca7dbe3a86d3e6e74e7f33fb7d1723edfde AUX stack_chk_fail_local.c 1798 BLAKE2B 380bcbb920bd40a5185246621ba93716f27d61cd0077cd796ff267e10c534c9cc64982b2a66c89b61395dc93d67dae77e8c59908f65f2903f16016180cf94bbb SHA512 bb0bdd7f205d57771920c7ea898c1f84a55d6f90ddd1f8203bfeed98d13ccefa6f68d5fd1c0761321b2732ca928ca81b425e3fe8321c936d1316dea6f1930091 DIST getconf.c 11614 BLAKE2B ba49a573fc16d51780a0b0b81fbf7b64a1142f1dbad203c9609a59b6b07e7404f676c415383ae88c0aede95694821f6ee381bffd93cc3330501e17dc07d122bd SHA512 0d80f37b34a35e3d14b012257c50862dfeb9d2c81139ea2dfa101d981d093b009b9fa450ba27a708ac59377a48626971dfc58e20a3799084a65777a0c32cbc7d DIST iconv.c 2577 BLAKE2B 070ca87b30c90ab98c27d5faf7a2fcb64ff7c67ca212ee6072165b2146979c551f714954dbd465462a171837c59b6ea027e0206458a2df0f977e45f01be3ce48 SHA512 9d42d66fb1facce2b85dad919be5be819ee290bd26ca2db00982b2f8e055a0196290a008711cbe2b18ec9eee8d2270e3b3a4692c5a1b807013baa5c2b70a2bbf diff --git a/sys-libs/musl/files/musl-1.2.2-gethostid.patch b/sys-libs/musl/files/musl-1.2.2-gethostid.patch deleted file mode 100644 index 96c799cfca29..000000000000 --- a/sys-libs/musl/files/musl-1.2.2-gethostid.patch +++ /dev/null @@ -1,43 +0,0 @@ -Subject: [musl] [PATCH] extend gethostid beyond a stub -Archived-At: <https://inbox.vuxu.org/musl/20210420191519.23822-3-ericonr@disroot.org/> -List-Archive: <https://inbox.vuxu.org/musl/> -List-Post: <mailto:musl@inbox.vuxu.org> - -From: Érico Rolim <erico.erc@gmail.com> - -Implement part of the glibc behavior, where the 32-bit identifier stored -in /etc/hostid, if the file exists, is returned. If this file doesn't -contain at least 32 bits or can't be opened for some reason, return 0. ---- - src/misc/gethostid.c | 15 ++++++++++++++- - 1 file changed, 14 insertions(+), 1 deletion(-) - -diff --git a/src/misc/gethostid.c b/src/misc/gethostid.c -index 25bb35db..d529de9c 100644 ---- a/src/misc/gethostid.c -+++ b/src/misc/gethostid.c -@@ -1,6 +1,19 @@ - #include <unistd.h> -+#include <stdio.h> -+#include <stdint.h> - - long gethostid() - { -- return 0; -+ FILE *f; -+ int32_t rv = 0; -+ -+ f = fopen("/etc/hostid", "reb"); -+ if (f) { -+ if (fread(&rv, sizeof(rv), 1, f) == 0) { -+ rv = 0; -+ } -+ fclose(f); -+ } -+ -+ return rv; - } --- -2.31.1 - - |