[oe] util-linux: Data file clash for lastb with sysvinit

Bryan Evenson bevenson at melinkcorp.com
Fri Apr 17 13:34:31 UTC 2015


Khem,

> -----Original Message-----
> From: openembedded-devel-bounces at lists.openembedded.org
> [mailto:openembedded-devel-bounces at lists.openembedded.org] On
> Behalf Of Khem Raj
> Sent: Friday, April 17, 2015 12:24 AM
> To: openembedded-devel at 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 at 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 at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list