commit:     63cc74065040bb3cb3f538867883226a303f4f53
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Wed Jul 27 16:30:07 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Wed Jul 27 19:00:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63cc7406

sys-libs/musl: remove unused patch

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Portage 3.0.34 / pkgdev 0.2.1 / pkgcheck 0.10.11
Closes: https://github.com/gentoo/gentoo/pull/26624
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 sys-libs/musl/files/musl-1.2.2-gethostid.patch | 43 --------------------------
 1 file changed, 43 deletions(-)

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/[email protected]/>
-List-Archive: <https://inbox.vuxu.org/musl/>
-List-Post: <mailto:[email protected]>
-
-From: Érico Rolim <[email protected]>
-
-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
-
-

Reply via email to