All of lore.kernel.org
 help / color / mirror / Atom feed
* Clashing man pages
@ 2013-05-19 12:00 Paul Barker
  2013-05-19 12:54 ` Martin Jansa
  2013-05-20 16:13 ` Mark Hatle
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Barker @ 2013-05-19 12:00 UTC (permalink / raw)
  To: openembedded-core

I'm generating a rootfs image which I intend to be usable
interactively so I've added IMAGE_FEATURES += "doc-pkgs" to my image
recipe. do_rootfs fails with the following clashes:

|  * check_data_file_clashes: Package ncurses-doc wants to install
file /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man1/reset.1
| But that file is already provided by package  * util-linux-doc
|  * opkg_install_cmd: Cannot install package ncurses-doc.
|  * check_data_file_clashes: Package coreutils-doc wants to install
file /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man1/kill.1
| But that file is already provided by package  * util-linux-doc
|  * opkg_install_cmd: Cannot install package coreutils-doc.
|  * check_data_file_clashes: Package shadow-doc wants to install file
/home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man5/passwd.5
| But that file is already provided by package  * man-pages
|  * check_data_file_clashes: Package shadow-doc wants to install file
/home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man3/getspnam.3
| But that file is already provided by package  * man-pages
|  * opkg_install_cmd: Cannot install package shadow-doc.

I've explicitly said I want coreutils and man-pages, the rest is being
pulled in implicitly as dependencies of something. There's nothing in
qa.log or the bitbake output to suggest that installed files are
clashing so I'm not sure if this could have been reported earlier.

The best fix I can think of at the minute is to add a bbappend to my
layer which removes the clashing man pages from one of the packages in
each case, leaving the files just in the package I do want to take
precedence. If anyone has any better ideas let me know.

I know we have update-alternatives for executables but is there a way
to link this with the relevant man page? So for example when I select
kill from coreutils, kill.1 is provided by coreutils as well, when I
select kill from util-linux, kill.1 is provided by util-linux as well.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clashing man pages
  2013-05-19 12:00 Clashing man pages Paul Barker
@ 2013-05-19 12:54 ` Martin Jansa
  2013-05-20  9:07   ` Paul Barker
  2013-05-20 16:13 ` Mark Hatle
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2013-05-19 12:54 UTC (permalink / raw)
  To: Paul Barker; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2676 bytes --]

On Sun, May 19, 2013 at 01:00:24PM +0100, Paul Barker wrote:
> I'm generating a rootfs image which I intend to be usable
> interactively so I've added IMAGE_FEATURES += "doc-pkgs" to my image
> recipe. do_rootfs fails with the following clashes:
> 
> |  * check_data_file_clashes: Package ncurses-doc wants to install
> file /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man1/reset.1
> | But that file is already provided by package  * util-linux-doc
> |  * opkg_install_cmd: Cannot install package ncurses-doc.
> |  * check_data_file_clashes: Package coreutils-doc wants to install
> file /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man1/kill.1
> | But that file is already provided by package  * util-linux-doc
> |  * opkg_install_cmd: Cannot install package coreutils-doc.
> |  * check_data_file_clashes: Package shadow-doc wants to install file
> /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man5/passwd.5
> | But that file is already provided by package  * man-pages
> |  * check_data_file_clashes: Package shadow-doc wants to install file
> /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man3/getspnam.3
> | But that file is already provided by package  * man-pages
> |  * opkg_install_cmd: Cannot install package shadow-doc.
> 
> I've explicitly said I want coreutils and man-pages, the rest is being
> pulled in implicitly as dependencies of something. There's nothing in
> qa.log or the bitbake output to suggest that installed files are
> clashing so I'm not sure if this could have been reported earlier.
> 
> The best fix I can think of at the minute is to add a bbappend to my
> layer which removes the clashing man pages from one of the packages in
> each case, leaving the files just in the package I do want to take
> precedence. If anyone has any better ideas let me know.
> 
> I know we have update-alternatives for executables but is there a way
> to link this with the relevant man page? So for example when I select
> kill from coreutils, kill.1 is provided by coreutils as well, when I
> select kill from util-linux, kill.1 is provided by util-linux as well.

There was some discussion about this already
http://lists.linuxtogo.org/pipermail/openembedded-core/2013-January/034744.html
but only response I got was about conflicting /usr/share/info/dir :/

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clashing man pages
  2013-05-19 12:54 ` Martin Jansa
@ 2013-05-20  9:07   ` Paul Barker
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Barker @ 2013-05-20  9:07 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

On 19 May 2013 13:54, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Sun, May 19, 2013 at 01:00:24PM +0100, Paul Barker wrote:
>> I'm generating a rootfs image which I intend to be usable
>> interactively so I've added IMAGE_FEATURES += "doc-pkgs" to my image
>> recipe. do_rootfs fails with the following clashes:
>>
>> <snip>
>>
>> The best fix I can think of at the minute is to add a bbappend to my
>> layer which removes the clashing man pages from one of the packages in
>> each case, leaving the files just in the package I do want to take
>> precedence. If anyone has any better ideas let me know.
>>
>> I know we have update-alternatives for executables but is there a way
>> to link this with the relevant man page? So for example when I select
>> kill from coreutils, kill.1 is provided by coreutils as well, when I
>> select kill from util-linux, kill.1 is provided by util-linux as well.
>
> There was some discussion about this already
> http://lists.linuxtogo.org/pipermail/openembedded-core/2013-January/034744.html
> but only response I got was about conflicting /usr/share/info/dir :/
>

Just looked at the recipe for util-linux and there's already some
update-alternatives stuff for man pages so it should be possible to
add entries for kill.1 and reset.1. Will put this onto my todo list.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clashing man pages
  2013-05-19 12:00 Clashing man pages Paul Barker
  2013-05-19 12:54 ` Martin Jansa
@ 2013-05-20 16:13 ` Mark Hatle
  2013-05-20 17:39   ` Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Hatle @ 2013-05-20 16:13 UTC (permalink / raw)
  To: openembedded-core

On 5/19/13 7:00 AM, Paul Barker wrote:
> I'm generating a rootfs image which I intend to be usable
> interactively so I've added IMAGE_FEATURES += "doc-pkgs" to my image
> recipe. do_rootfs fails with the following clashes:
>
> |  * check_data_file_clashes: Package ncurses-doc wants to install
> file /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man1/reset.1
> | But that file is already provided by package  * util-linux-doc
> |  * opkg_install_cmd: Cannot install package ncurses-doc.
> |  * check_data_file_clashes: Package coreutils-doc wants to install
> file /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man1/kill.1
> | But that file is already provided by package  * util-linux-doc
> |  * opkg_install_cmd: Cannot install package coreutils-doc.
> |  * check_data_file_clashes: Package shadow-doc wants to install file
> /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man5/passwd.5
> | But that file is already provided by package  * man-pages
> |  * check_data_file_clashes: Package shadow-doc wants to install file
> /home/pbarker/build/20130518_wych/build/tmp/work/qemuarm-wych-linux-gnueabi/wych-image-full/1.0-r0/rootfs/usr/share/man/man3/getspnam.3
> | But that file is already provided by package  * man-pages
> |  * opkg_install_cmd: Cannot install package shadow-doc.
>
> I've explicitly said I want coreutils and man-pages, the rest is being
> pulled in implicitly as dependencies of something. There's nothing in
> qa.log or the bitbake output to suggest that installed files are
> clashing so I'm not sure if this could have been reported earlier.
>
> The best fix I can think of at the minute is to add a bbappend to my
> layer which removes the clashing man pages from one of the packages in
> each case, leaving the files just in the package I do want to take
> precedence. If anyone has any better ideas let me know.
>
> I know we have update-alternatives for executables but is there a way
> to link this with the relevant man page? So for example when I select
> kill from coreutils, kill.1 is provided by coreutils as well, when I
> select kill from util-linux, kill.1 is provided by util-linux as well.

What we have advocated is the update-alternatives approach.  When the levels are 
set the same for the docs as the primary components (and renaming as well) then 
it makes the system much easier to deal with.

I.e. if you have:

kill.busybox
kill.coreutils
kill.util-linux

I want to be able to try man on each of those names, as well as 'kill' and get 
the right man page.

Also, with the RPM package manager, if the contents of the two files are the 
same no conflict is generated.  I don't know in this case if that is true or 
not.  But that could be an alternative approach for some of these packages -- 
ensure the files are the same and use RPM (or adapt ipk to compare file contents 
before reporting a conflict.)

--Mark


> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Clashing man pages
  2013-05-20 16:13 ` Mark Hatle
@ 2013-05-20 17:39   ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2013-05-20 17:39 UTC (permalink / raw)
  To: Mark Hatle; +Cc: openembedded-core


On May 20, 2013, at 9:13 AM, Mark Hatle <mark.hatle@windriver.com> wrote:

> Also, with the RPM package manager, if the contents of the two files are the same no conflict is generated.  I don't know in this case if that is true or not.  But that could be an alternative approach for some of these packages -- ensure the files are the same and use RPM (or adapt ipk to compare file contents before reporting a conflict.)

you forgot dpkg :). Well I guess general solution independent of package manager behavior would be best.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-20 18:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-19 12:00 Clashing man pages Paul Barker
2013-05-19 12:54 ` Martin Jansa
2013-05-20  9:07   ` Paul Barker
2013-05-20 16:13 ` Mark Hatle
2013-05-20 17:39   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.