Skip to contentSkip to conversation

coreutils: Avoid warnings due to update-alternatives for man pages

PATCH In review Peter Kjellerstedt 2 participants 2 messages Apr 23, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coreutils: Avoid warnings due to update-alternatives for man pages

The man pages for this package was disabled in 46349e1a with the result that the following warnings appeared:

WARNING: coreutils-6.9-r0 do_package: coreutils: alternative target (/usr/share/man/man1/su.1 or /usr/share/man/man1/su.1.coreutils) does not exist, skipping...
WARNING: coreutils-6.9-r0 do_package: coreutils: alternative target (/usr/share/man/man1/hostname.1 or /usr/share/man/man1/hostname.1.coreutils) does not exist, skipping...
WARNING: coreutils-6.9-r0 do_package: coreutils: NOT adding alternative provide /usr/share/man/man1/su.1:
/usr/share/man/man1/su.1.coreutils does not exist
WARNING: coreutils-6.9-r0 do_package: coreutils: NOT adding alternative provide /usr/share/man/man1/hostname.1:
/usr/share/man/man1/hostname.1.coreutils does not exist
WARNING: coreutils-6.9-r0 do_package: coreutils: alt_link ==
alt_target: /usr/share/man/man1/su.1 == /usr/share/man/man1/su.1
WARNING: coreutils-6.9-r0 do_package: coreutils: alt_link ==
alt_target: /usr/share/man/man1/hostname.1 == /usr/share/man/man1/hostname.1

This change removes the update-alternatives for the man pages that no longer exists.

Change-Id If79bb634e05db48462265c6e65291db27169fa51
---
 recipes-core/coreutils/coreutils_6.9.bb | 4 ----
 1 file changed, 4 deletions(-)
recipes-core/coreutils/coreutils_6.9.bb +0 -4
index 31e5c7e..0d236b2 100644
@@ -90,10 +90,6 @@ ALTERNATIVE_PRIORITY = "100"
 
 ALTERNATIVE_${PN} = "lbracket ${bindir_progs} ${base_bindir_progs} ${sbindir_progs}"
 
-ALTERNATIVE_${PN}-doc = "su.1 hostname.1"
-ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1"
-ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1"
-
 ALTERNATIVE_PRIORITY[uptime] = "10"
 ALTERNATIVE_PRIORITY[hostname] = "10"
 
Signature · 1 line
2.12.0
#1 lore raw

Pushed, thanks.

Quoted 53 lines · Peter Kjellerstedt

The man pages for this package was disabled in 46349e1a with the result that the following warnings appeared:

WARNING: coreutils-6.9-r0 do_package: coreutils: alternative target (/usr/share/man/man1/su.1 or /usr/share/man/man1/su.1.coreutils) does not exist, skipping...
WARNING: coreutils-6.9-r0 do_package: coreutils: alternative target (/usr/share/man/man1/hostname.1 or /usr/share/man/man1/hostname.1.coreutils) does not exist, skipping...
WARNING: coreutils-6.9-r0 do_package: coreutils: NOT adding alternative provide /usr/share/man/man1/su.1:
/usr/share/man/man1/su.1.coreutils does not exist
WARNING: coreutils-6.9-r0 do_package: coreutils: NOT adding alternative provide /usr/share/man/man1/hostname.1:
/usr/share/man/man1/hostname.1.coreutils does not exist
WARNING: coreutils-6.9-r0 do_package: coreutils: alt_link ==
alt_target: /usr/share/man/man1/su.1 == /usr/share/man/man1/su.1
WARNING: coreutils-6.9-r0 do_package: coreutils: alt_link ==
alt_target: /usr/share/man/man1/hostname.1 == /usr/share/man/man1/hostname.1

This change removes the update-alternatives for the man pages that no longer exists.

Change-Id If79bb634e05db48462265c6e65291db27169fa51
---
 recipes-core/coreutils/coreutils_6.9.bb | 4 ----
 1 file changed, 4 deletions(-)
recipes-core/coreutils/coreutils_6.9.bb +0 -5
index 31e5c7e..0d236b2 100644
@@ -90,10 +90,6 @@ ALTERNATIVE_PRIORITY = "100"
 
 ALTERNATIVE_${PN} = "lbracket ${bindir_progs} ${base_bindir_progs} ${sbindir_progs}"
 
-ALTERNATIVE_${PN}-doc = "su.1 hostname.1"
-ALTERNATIVE_LINK_NAME[su.1] = "${mandir}/man1/su.1"
-ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1"
-
 ALTERNATIVE_PRIORITY[uptime] = "10"
 ALTERNATIVE_PRIORITY[hostname] = "10"
 
--

2.12.0

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto