fix various doc pkg conflicts at do_rootfs time
cover fix various doc pkg conflicts at do_rootfs time
Not sure what changed recently to cause all these to show up, but here we are. There are several others outside of oe-core that I need to also send.
Error: Transaction check error:
file /usr/share/man/man1/which.1 conflicts between attempted installs of debianutils-doc-4.8.1-r0.core2_64 and which-doc-2.21-r3.core2_64 file /usr/share/man/man1/dnsdomainname.1 conflicts between attempted installs of inetutils-doc-1.9.4-r0.core2_64 and net-tools-doc-1.60+26-r0.core2_64 file /usr/share/man/man8/syslogd.8 conflicts between attempted installs of inetutils-doc-1.9.4-r0.core2_64 and sysklogd-doc-1.5.1-r0.core2_64 file /usr/share/info/bfd.info conflicts between attempted installs of gdb-doc-7.12.1-r0.core2_64 and binutils-doc-2.28-r0.core2_64 file /usr/share/man/man1/eject.1 conflicts between attempted installs of util-linux-doc-2.29.1-r0.core2_64 and eject-doc-2.1.5-r1.core2_64 file /usr/share/man/man1/logger.1 conflicts between attempted installs of util-linux-doc-2.29.1-r0.core2_64 and inetutils-doc-1.9.4-r0.core2_64
Paul Gortmaker (5):
gdb: don't bundle bfd.info -- leave that to binutils.
which: fix it so the manpage will respect alternatives
util-linux: use update-alternatives for more manpages
net-tools: use update-alternatives for more manpages
sysklogd: use update-alternatives for more manpages
meta/recipes-core/util-linux/util-linux.inc | 4 +++- meta/recipes-devtools/gdb/gdb-common.inc | 3 ++- meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 3 ++- meta/recipes-extended/sysklogd/sysklogd.inc | 3 +++ meta/recipes-extended/which/which_2.21.bb | 3 +++ meta/recipes-support/debianutils/debianutils_4.8.1.bb | 3 +++ 6 files changed, 16 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/5 gdb: don't bundle bfd.info -- leave that to binutils.
We see:
file /usr/share/info/bfd.info conflicts between attempted installs of gdb-doc-7.12.1-r0.core2_64 and binutils-doc-2.28-r0.core2_64
You can't really have gdb and not binutils, so there is no need to do alternatives here ; just clobber the one from gdb and let the binutils one be the default.
--- meta/recipes-devtools/gdb/gdb-common.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/gdb/gdb-common.inc +2 -1
@@ -47,11 +47,12 @@ do_configure () { } # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the -# right bits installed by binutils. +# right bits installed by binutils. Same for bfd.info -- also from binutils. do_install_append() { rm -rf ${D}${libdir} rm -rf ${D}${includedir} rm -rf ${D}${datadir}/locale + rm -f ${D}${infodir}/bfd.info } RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
Signature · 1 line
2.7.4
PATCH 2/5 which: fix it so the manpage will respect alternatives
In reply to Paul GortmakerTo fix:
file /usr/share/man/man1/which.1 conflicts between attempted installs of debianutils-doc-4.8.1-r0.core2_64 and which-doc-2.21-r3.core2_64
--- meta/recipes-extended/which/which_2.21.bb | 3 +++ meta/recipes-support/debianutils/debianutils_4.8.1.bb | 3 +++ 2 files changed, 6 insertions(+)
meta/recipes-extended/which/which_2.21.bb +3 -0
@@ -30,3 +30,6 @@ do_configure_prepend() { ALTERNATIVE_${PN} = "which" ALTERNATIVE_PRIORITY = "100" + +ALTERNATIVE_${PN}-doc = "which.1" +ALTERNATIVE_LINK_NAME[which.1] = "${mandir}/man1/which.1"
meta/recipes-support/debianutils/debianutils_4.8.1.bb +3 -0
@@ -40,6 +40,9 @@ ALTERNATIVE_PRIORITY="30" ALTERNATIVE_${PN} = "add-shell installkernel remove-shell savelog tempfile which" ALTERNATIVE_${PN}-run-parts = "run-parts" +ALTERNATIVE_${PN}-doc = "which.1" +ALTERNATIVE_LINK_NAME[which.1] = "${mandir}/man1/which.1" + ALTERNATIVE_LINK_NAME[add-shell]="${sbindir}/add-shell" ALTERNATIVE_LINK_NAME[installkernel]="${sbindir}/installkernel" ALTERNATIVE_LINK_NAME[remove-shell]="${sbindir}/remove-shell"
Signature · 1 line
2.7.4
PATCH 3/5 util-linux: use update-alternatives for more manpages
In reply to Paul GortmakerTo fix:
file /usr/share/man/man1/eject.1 conflicts between attempted installs of util-linux-doc-2.29.1-r0.core2_64 and eject-doc-2.1.5-r1.core2_64
and
file /usr/share/man/man1/logger.1 conflicts between attempted installs of util-linux-doc-2.29.1-r0.core2_64 and inetutils-doc-1.9.4-r0.core2_64
--- meta/recipes-core/util-linux/util-linux.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/util-linux/util-linux.inc +3 -1
@@ -205,7 +205,7 @@ ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root" ALTERNATIVE_LINK_NAME[switch_root] = "${base_sbindir}/switch_root" ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" -ALTERNATIVE_${PN}-doc = "mountpoint.1 last.1 lastb.1 mesg.1 wall.1 nologin.8 sulogin.8 utmpdump.1 reset.1 kill.1 libblkid.3 blkid.8 findfs.8 fsck.8 uuid.3" +ALTERNATIVE_${PN}-doc = "mountpoint.1 last.1 lastb.1 mesg.1 wall.1 nologin.8 sulogin.8 utmpdump.1 reset.1 kill.1 libblkid.3 blkid.8 findfs.8 fsck.8 uuid.3 eject.1 logger.1" ALTERNATIVE_LINK_NAME[last.1] = "${mandir}/man1/last.1" ALTERNATIVE_LINK_NAME[lastb.1] = "${mandir}/man1/lastb.1"
@@ -222,6 +222,8 @@ ALTERNATIVE_LINK_NAME[blkid.8] = "${mandir}/man8/blkid.8" ALTERNATIVE_LINK_NAME[findfs.8] = "${mandir}/man8/findfs.8" ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8" ALTERNATIVE_LINK_NAME[uuid.3] = "${mandir}/man3/uuid.3" +ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1" +ALTERNATIVE_LINK_NAME[logger.1] = "${mandir}/man1/logger.1" ALTERNATIVE_util-linux-hwclock = "hwclock" ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock"
Signature · 1 line
2.7.4
PATCH 4/5 net-tools: use update-alternatives for more manpages
In reply to Paul GortmakerTo fix:
file /usr/share/man/man1/dnsdomainname.1 conflicts between attempted installs of inetutils-doc-1.9.4-r0.core2_64 and net-tools-doc-1.60+26-r0.core2_64
--- meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-extended/net-tools/net-tools_1.60-26.bb +2 -1
@@ -101,8 +101,9 @@ base_sbindir_progs = "arp ifconfig ipmaddr iptunnel mii-tool nameif plipconfig r base_bindir_progs = "dnsdomainname domainname hostname netstat nisdomainname ypdomainname" ALTERNATIVE_${PN} = "${base_sbindir_progs} ${base_bindir_progs}" -ALTERNATIVE_${PN}-doc += "hostname.1" +ALTERNATIVE_${PN}-doc += "hostname.1 dnsdomainname.1" ALTERNATIVE_LINK_NAME[hostname.1] = "${mandir}/man1/hostname.1" +ALTERNATIVE_LINK_NAME[dnsdomainname.1] = "${mandir}/man1/dnsdomainname.1" ALTERNATIVE_PRIORITY[hostname.1] = "10" python __anonymous() {
Signature · 1 line
2.7.4
PATCH 5/5 sysklogd: use update-alternatives for more manpages
In reply to Paul GortmakerTo fix:
file /usr/share/man/man8/syslogd.8 conflicts between attempted installs of inetutils-doc-1.9.4-r0.core2_64 and sysklogd-doc-1.5.1-r0.core2_64
--- meta/recipes-extended/sysklogd/sysklogd.inc | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-extended/sysklogd/sysklogd.inc +3 -0
@@ -64,6 +64,9 @@ ALTERNATIVE_PRIORITY = "${@bb.utils.contains('DISTRO_FEATURES','systemd','10','1 ALTERNATIVE_${PN} = "syslogd klogd syslog-conf \ ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','syslog-init','',d)}" +ALTERNATIVE_${PN}-doc = "syslogd.8" +ALTERNATIVE_LINK_NAME[syslogd.8] = "${mandir}/man8/syslogd.8" + ALTERNATIVE_LINK_NAME[syslogd] = "${base_sbindir}/syslogd" ALTERNATIVE_LINK_NAME[klogd] = "${base_sbindir}/klogd" ALTERNATIVE_LINK_NAME[syslog-init] = "${sysconfdir}/init.d/syslog"
Signature · 1 line
2.7.4