[OE-core] opkg --prefer-arch-to-version (was: Re: [PATCH 1/1] autoconf-archive: inherit allarch and fix package splitting)

Martin Jansa martin.jansa at gmail.com
Mon Nov 13 12:05:19 UTC 2017


I don't remember the details, but IIRC it was libdrm or something like that
for some MACHINE which was providing older version of libdrm with
MACHINE_ARCH with better support for that MACHINE.

So this controversial patch was implemented for opkg to support that
use-case and the default behavior was changed ignoring complains from me
and Koen that this behavior is wrong.

I've tried to find some e-mail threads about it, part of that discussion is
in:
https://patchwork.openembedded.org/patch/37461/

On Mon, Nov 13, 2017 at 11:34 AM, André Draszik <git at andred.net> wrote:

> Only during do_rootfs indeed (I don't ever do upgrades on the target using
> opkg).
>
> Is there a reason to still specify prefer-arch-to-version? I'd actually
> expect the exact opposite compared to the original commit message's
> statement, unless the version numbers are identical.
>
> Also, I would argue that the defaults during do_rootfs and when using opkg
> on the target should be the same...
>
> Cheers,
> Andre'
>
>
> On Mon, 2017-11-13 at 11:12 +0100, Martin Jansa wrote:
> > Is this during do_rootfs or are you seeing this issue when upgrading on
> > the
> > target as well?
> >
> > I haven't found the bug for this but IIRC it's because do_rootfs is using
> > --prefer-arch-to-version parameter.
> > meta/classes/package_ipk.bbclass:OPKG_ARGS += "--force_postinstall
> > --prefer-arch-to-version"
> > which causes this undesired behavior.
> >
> > On Mon, Nov 13, 2017 at 9:54 AM, André Draszik <git at andred.net> wrote:
> >
> > > Hi,
> > >
> > > On Mon, 2017-11-13 at 13:26 +0800, Chen Qi wrote:
> > > > autoconf-archive is a set of common m4 macros, it should be allarch,
> > > > just like it is on other distros.
> > >
> > > I have found previously that when changing a recipe to produce more
> > > generic
> > > output, like in this case, and the old binary package is still in
> > > deploy/,
> > > then the package manager would always pick the more specific version,
> > > even
> > > if a more recent (by package version) exists in deploy. In my case I
> was
> > > moving from PACKAGE_ARCH=${MACHINE_ARCH} to
> > > PACKAGE_ARCH=${TUNE_PKGARCH},
> > > but I guess it'll be the same here.
> > >
> > > What is the correct way to deal with that other that cleansstate?
> > >
> > > Cheers,
> > > Andre'
> > >
> > > --
> > > _______________________________________________
> > > Openembedded-core mailing list
> > > Openembedded-core at lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> > >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20171113/8765ff38/attachment-0002.html>


More information about the Openembedded-core mailing list