From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1311193-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 57E48139360
	for <garchives@archives.gentoo.org>; Mon,  9 Aug 2021 16:47:23 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 88D0FE085B;
	Mon,  9 Aug 2021 16:47:22 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 68C10E084E
	for <gentoo-commits@lists.gentoo.org>; Mon,  9 Aug 2021 16:47:22 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 3B45A342CCD
	for <gentoo-commits@lists.gentoo.org>; Mon,  9 Aug 2021 16:47:21 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D3012744
	for <gentoo-commits@lists.gentoo.org>; Mon,  9 Aug 2021 16:47:19 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1628527627.36ef228ff82661f1491b6c7e532df24755992bbc.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/udev/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-fs/udev/udev-249-r2.ebuild
X-VCS-Directories: sys-fs/udev/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 36ef228ff82661f1491b6c7e532df24755992bbc
X-VCS-Branch: master
Date: Mon,  9 Aug 2021 16:47:19 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3e10c74a-f09f-4be0-b714-3a408de2605a
X-Archives-Hash: b3547d1a25ba5932af73441d6bc8c0b3

commit:     36ef228ff82661f1491b6c7e532df24755992bbc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  9 16:46:44 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug  9 16:47:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36ef228f

sys-fs/udev: add message when switching from sys-fs/eudev

Helpful for the musl users who will end up hitting this
as a result of the unmasking of sys-fs/udev on their profiles.

Bug: https://bugs.gentoo.org/807193
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/udev/udev-249-r2.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/sys-fs/udev/udev-249-r2.ebuild b/sys-fs/udev/udev-249-r2.ebuild
index e6d857dcefb..5dbd7be0b71 100644
--- a/sys-fs/udev/udev-249-r2.ebuild
+++ b/sys-fs/udev/udev-249-r2.ebuild
@@ -279,6 +279,10 @@ multilib_src_install_all() {
 	einstalldocs
 }
 
+pkg_preinst() {
+	has_version 'sys-fs/eudev' && HAD_EUDEV=1
+}
+
 pkg_postinst() {
 	# Update hwdb database in case the format is changed by udev version.
 	if has_version 'sys-apps/hwids[udev]' ; then
@@ -287,4 +291,13 @@ pkg_postinst() {
 		# https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
 		[[ -z ${REPLACING_VERSIONS} ]] && udev_reload
 	fi
+
+	if [[ ${HAD_EUDEV} -eq 1 ]] ; then
+		ewarn
+		ewarn "${P} defaults to predictable interface renaming, as described in the URL below:"
+		ewarn "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
+		ewarn
+		ewarn "If you wish to disable this, please see the above documentation, or set"
+		ewarn "net.ifnames=0 on the kernel command line."
+	fi
 }