commit: 8442cf3a86d5af1458541664bfd156b4cde6beae Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Tue Oct 22 16:40:50 2024 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Tue Oct 22 16:50:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8442cf3a
x11-drivers/nvidia-drivers: silence realpath errors One path does not exist on systemd systems and it's noisy. Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild | 4 ++-- x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild | 4 ++-- x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild | 4 ++-- x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild | 4 ++-- x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild | 4 ++-- x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild | 4 ++-- x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild | 4 ++-- x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild index 275d920a47af..5245c34c4a82 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.256.02-r1.ebuild @@ -472,8 +472,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild index 01a2151532d0..b4f1801cfdf9 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.147.05-r1.ebuild @@ -555,8 +555,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild index 88c464ba67aa..5c95af31807c 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.183.01-r1.ebuild @@ -555,8 +555,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild index 3f3a793e9960..39be92964955 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.120.ebuild @@ -546,8 +546,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild index a38e5cb6eaf5..f7a0adc69ccb 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.127.05.ebuild @@ -546,8 +546,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild index 3d6eb1baaf8d..91f9b1aa066e 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.40.76.ebuild @@ -549,8 +549,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild index 3d81beee2a90..9a3cb1ef33e3 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-560.35.03-r1.ebuild @@ -562,8 +562,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild index 910fdc5bc84d..f9ce1a16cbf2 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-565.57.01.ebuild @@ -571,8 +571,8 @@ pkg_postinst() { ewarn "installed by the ebuild to handle sleep using the official upstream" ewarn "script. It is recommended to disable the option." fi - if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep | sort | uniq | \ - xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] + if [[ $(realpath "${EROOT}"{/etc,{/usr,}/lib*}/elogind/system-sleep 2>/dev/null | \ + sort | uniq | xargs -d'\n' grep -Ril nvidia 2>/dev/null | wc -l) -gt 2 ]] then ewarn ewarn "!!! WARNING !!!"