* util-linux: Data file clash for lastb with sysvinit
@ 2015-04-16 15:55 Bryan Evenson
2015-04-17 4:23 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Bryan Evenson @ 2015-04-16 15:55 UTC (permalink / raw)
To: Openembedded-devel
All,
I've been working through several issues in order to get a clean upgrade and I'm down to my last couple. I found a conflict between sysvinit and util-linux that I have no idea how to handle and I'm looking for some help. I'm using sysvinit for init and opkg for package management.
I am upgrading a system that is on poky/dylan-1.4.4 up to poky/dizzy-1.7.1. One of the errors I see during upgrade is the following:
* check_data_file_clashes: Package util-linux wants to install file /usr/bin/lastb
But that file is already provided by package * sysvinit
The chain I've found for the files on my system are:
/usr/bin/lastb -> last
/usr/bin/last -> /usr/bin/last.sysvinit
When I check which package owns lastb ("opkg search /usr/bin/lastb") opkg says util-linux has that file. However, I don't see anything in the util-linux recipe that mentions lastb. I don't know how this softlink is getting created or how util-linux is the owner.
Any ideas on how util-linux is getting ownership of lastb and how to resolve this conflict with sysvinit?
Regards,
Bryan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: util-linux: Data file clash for lastb with sysvinit
2015-04-16 15:55 util-linux: Data file clash for lastb with sysvinit Bryan Evenson
@ 2015-04-17 4:23 ` Khem Raj
2015-04-17 13:34 ` Bryan Evenson
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2015-04-17 4:23 UTC (permalink / raw)
To: openembedded-devel
On Apr 16, 2015 11:29 AM, "Bryan Evenson" <bevenson@melinkcorp.com> wrote:
>
> All,
>
> I've been working through several issues in order to get a clean upgrade
and I'm down to my last couple. I found a conflict between sysvinit and
util-linux that I have no idea how to handle and I'm looking for some
help. I'm using sysvinit for init and opkg for package management.
>
> I am upgrading a system that is on poky/dylan-1.4.4 up to
poky/dizzy-1.7.1. One of the errors I see during upgrade is the following:
>
> * check_data_file_clashes: Package util-linux wants to install file
/usr/bin/lastb
> But that file is already provided by package * sysvinit
>
> The chain I've found for the files on my system are:
> /usr/bin/lastb -> last
> /usr/bin/last -> /usr/bin/last.sysvinit
>
> When I check which package owns lastb ("opkg search /usr/bin/lastb") opkg
says util-linux has that file. However, I don't see anything in the
util-linux recipe that mentions lastb. I don't know how this softlink is
getting created or how util-linux is the owner.
>
> Any ideas on how util-linux is getting ownership of lastb and how to
resolve this conflict with sysvinit?
Look for this file in your build tree it should be clear then who provides
it.
>
> Regards,
> Bryan
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: util-linux: Data file clash for lastb with sysvinit
2015-04-17 4:23 ` Khem Raj
@ 2015-04-17 13:34 ` Bryan Evenson
0 siblings, 0 replies; 3+ messages in thread
From: Bryan Evenson @ 2015-04-17 13:34 UTC (permalink / raw)
To: openembedded-devel
Khem,
> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> Behalf Of Khem Raj
> Sent: Friday, April 17, 2015 12:24 AM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] util-linux: Data file clash for lastb with sysvinit
>
> On Apr 16, 2015 11:29 AM, "Bryan Evenson" <bevenson@melinkcorp.com>
> wrote:
> >
> > All,
> >
> > I've been working through several issues in order to get a clean
> > upgrade
> and I'm down to my last couple. I found a conflict between sysvinit and util-
> linux that I have no idea how to handle and I'm looking for some help. I'm
> using sysvinit for init and opkg for package management.
> >
> > I am upgrading a system that is on poky/dylan-1.4.4 up to
> poky/dizzy-1.7.1. One of the errors I see during upgrade is the following:
> >
> > * check_data_file_clashes: Package util-linux wants to install file
> /usr/bin/lastb
> > But that file is already provided by package * sysvinit
> >
> > The chain I've found for the files on my system are:
> > /usr/bin/lastb -> last
> > /usr/bin/last -> /usr/bin/last.sysvinit
> >
> > When I check which package owns lastb ("opkg search /usr/bin/lastb")
> > opkg
> says util-linux has that file. However, I don't see anything in the util-linux
> recipe that mentions lastb. I don't know how this softlink is getting created
> or how util-linux is the owner.
> >
> > Any ideas on how util-linux is getting ownership of lastb and how to
> resolve this conflict with sysvinit?
>
> Look for this file in your build tree it should be clear then who provides it.
I started a devshell for both util-linux and for sysvinit. Both create the softlink lastb in a Makefile. I added lastb to the ALTERNATIVE_${PN} list for both util-linux and for sysvinit. After that util-linux installed without conflict, however neither package claims ownership to /usr/bin/lastb. "opkg search /usr/bin/lastb" produces no results, although each package created their own alternative link for lastb. Here is what is now installed on my system:
/usr/bin/last -> /usr/bin/last.sysvinit
/usr/bin/last.sysvinit
/usr/bin/last.util-linux
/usr/bin/lastb -> /usr/bin/lastb.sysvinit
/usr/bin/lastb.sysvinit -> last.sysvinit
/usr/bin/lastb.util-linux -> last.util-linux
It works, but I still don't fully understand how the update-alternatives class works so I don't know if there is a better way to do this. If you have any suggestions let me know.
Thanks,
Bryan
> >
> > Regards,
> > Bryan
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-17 13:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-16 15:55 util-linux: Data file clash for lastb with sysvinit Bryan Evenson
2015-04-17 4:23 ` Khem Raj
2015-04-17 13:34 ` Bryan Evenson
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.