commit: 23efd39c28c06163b403ad8beb2392b27a7f5128 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Sun Oct 5 20:29:29 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sun Oct 5 20:29:29 2025 +0000 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=23efd39c
sys-auth/nss-myhostname: treeclean Already masked for musl profiles in ::gentoo Link: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf34230c Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> sys-auth/nss-myhostname/Manifest | 1 - ...tname-Check-for-nss.h-presense-before-use.patch | 53 ---------------------- sys-auth/nss-myhostname/metadata.xml | 22 --------- .../nss-myhostname/nss-myhostname-0.3-r1.ebuild | 41 ----------------- 4 files changed, 117 deletions(-) diff --git a/sys-auth/nss-myhostname/Manifest b/sys-auth/nss-myhostname/Manifest deleted file mode 100644 index 8672af19..00000000 --- a/sys-auth/nss-myhostname/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST nss-myhostname-0.3.tar.gz 330031 BLAKE2B 99b9cc42c8dc5a73afe9dddfad6c05d175246ffb7985fb90b3f1bab96c8b5afde012e41f5770d2671eefd1f86be81b576637994bffb5e00adab7ac2c986c09b7 SHA512 8f14091f887991532bc3cedcdee607c89f403c7869063919c299cdd7ee8207a9759ab9105093bae151a79e08944053598104a59e9987949ee146d742a12e8c34 diff --git a/sys-auth/nss-myhostname/files/0001-nss-myhostname-Check-for-nss.h-presense-before-use.patch b/sys-auth/nss-myhostname/files/0001-nss-myhostname-Check-for-nss.h-presense-before-use.patch deleted file mode 100644 index 82f25743..00000000 --- a/sys-auth/nss-myhostname/files/0001-nss-myhostname-Check-for-nss.h-presense-before-use.patch +++ /dev/null @@ -1,53 +0,0 @@ -From d1345871b992f9a055c968963967e728da1a7ffb Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 30 Jan 2016 20:29:06 +0000 -Subject: [PATCH] nss-myhostname: Check for nss.h presense before use - -We do not have nss.h on musl e.g. and configury is already checking for -nss.h presence, use this to define needed data structures if nss.h is -missing on a given libc implementation on a platform - -include stdint.h for uint32_h definition - -Signed-off-by: Khem Raj <[email protected]> ---- -Upstream-Status: Pending - - nss-myhostname.c | 20 ++++++++++++++++++++ - 1 file changed, 20 insertions(+) - -diff --git a/nss-myhostname.c b/nss-myhostname.c -index 293166c..6f287f5 100644 ---- a/nss-myhostname.c -+++ b/nss-myhostname.c -@@ -21,7 +21,27 @@ - ***/ - - #include <limits.h> -+#include <stdint.h> -+#ifdef HAVE_NSS_H - #include <nss.h> -+#else -+enum nss_status { -+ NSS_STATUS_TRYAGAIN = -2, -+ NSS_STATUS_UNAVAIL, -+ NSS_STATUS_NOTFOUND, -+ NSS_STATUS_SUCCESS, -+ NSS_STATUS_RETURN -+}; -+/* Data structure used for the 'gethostbyname4_r' function. */ -+struct gaih_addrtuple -+ { -+ struct gaih_addrtuple *next; -+ char *name; -+ int family; -+ uint32_t addr[4]; -+ uint32_t scopeid; -+ }; -+#endif - #include <sys/types.h> - #include <netdb.h> - #include <errno.h> --- -2.7.0 - diff --git a/sys-auth/nss-myhostname/metadata.xml b/sys-auth/nss-myhostname/metadata.xml deleted file mode 100644 index d9144c66..00000000 --- a/sys-auth/nss-myhostname/metadata.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>[email protected]</email> - <name>Gentoo Freedesktop Project</name> -</maintainer> -<longdescription lang="en"> -nss-myhostname is a plugin for the GNU Name Service Switch (NSS) functionality -of the GNU C Library (glibc) providing host name resolution for the locally -configured system hostname as returned by gethostname(2). Various software -relies on an always resolvable local host name. When using dynamic hostnames -this is usually achieved by patching /etc/hosts at the same time as changing -the host name. This however is not ideal since it requires a writable /etc -file system and is fragile because the file might be edited by the -administrator at the same time. nss-myhostname simply returns all locally -configure public IP addresses, or -- if none are configured -- the IPv4 -address 127.0.0.2 (wich is on the local loopback) and the IPv6 address ::1 -(which is the local host) for whatever system hostname is configured locally. -Patching /etc/hosts is thus no longer necessary. -</longdescription> -</pkgmetadata> diff --git a/sys-auth/nss-myhostname/nss-myhostname-0.3-r1.ebuild b/sys-auth/nss-myhostname/nss-myhostname-0.3-r1.ebuild deleted file mode 100644 index 1198a951..00000000 --- a/sys-auth/nss-myhostname/nss-myhostname-0.3-r1.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -DESCRIPTION="Name Service Switch module for resolving the local hostname" -HOMEPAGE="https://0pointer.de/lennart/projects/nss-myhostname/" -SRC_URI="https://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2.1+" -SLOT="0" -KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86" -IUSE="" - -COMMON_DEPEND="" -RDEPEND="${COMMON_DEPEND} - !>=sys-apps/systemd-197" -DEPEND="${COMMON_DEPEND}" - -PATCHES=( "${FILESDIR}"/0001-nss-myhostname-Check-for-nss.h-presense-before-use.patch ) - -src_prepare() { - # The documentation in doc/ is just the README file in other formats - sed -e 's:SUBDIRS *= *doc:SUBDIRS =:' -i Makefile.{am,in} || - die "sed failed" - default -} - -src_configure() { - econf --disable-lynx -} - -pkg_postinst() { - elog "You must modify your name service switch lookup file to enable" - elog "nss-myhostname. To do so, add 'myhostname' to the hosts line in" - elog "/etc/nsswitch.conf" - elog - elog "An example hosts line looks like this:" - elog "hosts: files dns myhostname" - elog -}
