All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: Alex Stewart <alex.stewart@ni.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 1/2] package_manager: ipk: add OPKG_MAKE_INDEX_EXTRA_PARAMS variable
Date: Sat, 3 Feb 2024 00:17:18 +0100	[thread overview]
Message-ID: <202402022317188735e05d@mail.local> (raw)
In-Reply-To: <CA+chaQeksKOt81g0egdANw4r6r7uP9PqVSkVz29ftUL4vmpobw@mail.gmail.com>

On 02/02/2024 17:06:12+0100, Martin Jansa wrote:
> Alex: thanks for review
> 
> I'll send v2 shortly, because now while testing without this variable set
> at all it fails with:
> opkg-make-index: error: unrecognized arguments: None
> so will add weak assignment to empty before the use.

Yes, I just hit that one too..

> 
> On Fri, Feb 2, 2024 at 4:40 PM Alex Stewart <alex.stewart@ni.com> wrote:
> 
> > ACK from me.
> >
> > It's a little strange that we wouldn't just have a
> > PACKAGE_FEED_PRESERVE_USER_FIELDS variable. But I understand that
> > wouldn't work as well for how the RPM version of this parameter is defined.
> >
> > On 2/2/24 08:24, Martin Jansa via lists.openembedded.org wrote:
> > > * can be used to pass e.g. -f param to preserve user-defined fields
> > >    in the index as added in:
> > >
> > https://git.yoctoproject.org/opkg-utils/commit/opkg-make-index?id=13f6281d24e17199e0fef6c2984419372ea0f86f
> > >
> > > * otherwise it will show a lot of messages like:
> > >    "Lost field Author <value>"
> > >    for every package in the feed
> > >
> > > Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> > > ---
> > >   meta/lib/oe/package_manager/ipk/__init__.py | 5 +++--
> > >   1 file changed, 3 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/meta/lib/oe/package_manager/ipk/__init__.py
> > b/meta/lib/oe/package_manager/ipk/__init__.py
> > > index 8fcbad56aa..c35c90ce42 100644
> > > --- a/meta/lib/oe/package_manager/ipk/__init__.py
> > > +++ b/meta/lib/oe/package_manager/ipk/__init__.py
> > > @@ -16,6 +16,7 @@ class OpkgIndexer(Indexer):
> > >                        ]
> > >
> > >           opkg_index_cmd = bb.utils.which(os.getenv('PATH'),
> > "opkg-make-index")
> > > +        opkg_index_cmd_extra_params =
> > self.d.getVar('OPKG_MAKE_INDEX_EXTRA_PARAMS')
> > >           if self.d.getVar('PACKAGE_FEED_SIGN') == '1':
> > >               signer = get_signer(self.d,
> > self.d.getVar('PACKAGE_FEED_GPG_BACKEND'))
> > >           else:
> > > @@ -41,8 +42,8 @@ class OpkgIndexer(Indexer):
> > >                   if not os.path.exists(pkgs_file):
> > >                       open(pkgs_file, "w").close()
> > >
> > > -                index_cmds.add('%s --checksum md5 --checksum sha256 -r
> > %s -p %s -m %s' %
> > > -                                  (opkg_index_cmd, pkgs_file,
> > pkgs_file, pkgs_dir))
> > > +                index_cmds.add('%s --checksum md5 --checksum sha256 -r
> > %s -p %s -m %s %s' %
> > > +                                  (opkg_index_cmd, pkgs_file,
> > pkgs_file, pkgs_dir, opkg_index_cmd_extra_params))
> > >
> > >                   index_sign_files.add(pkgs_file)
> > >
> > >
> > > 
> > >
> >
> > --
> > Alex Stewart
> > Software Engineer - NI Real-Time OS
> > NI (National Instruments)
> >
> > alex.stewart@ni.com
> >
> >

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#194806): https://lists.openembedded.org/g/openembedded-core/message/194806
> Mute This Topic: https://lists.openembedded.org/mt/104118971/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


      reply	other threads:[~2024-02-02 23:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-02 13:24 [PATCH 1/2] package_manager: ipk: add OPKG_MAKE_INDEX_EXTRA_PARAMS variable Martin Jansa
2024-02-02 13:24 ` [PATCH 2/2] package_rpm: add RPMBUILD_EXTRA_PARAMS variable Martin Jansa
2024-02-02 16:44   ` [OE-core] " Alexandre Belloni
2024-02-02 15:40 ` [OE-core] [PATCH 1/2] package_manager: ipk: add OPKG_MAKE_INDEX_EXTRA_PARAMS variable Alex Stewart
2024-02-02 16:06   ` Martin Jansa
2024-02-02 23:17     ` Alexandre Belloni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202402022317188735e05d@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=alex.stewart@ni.com \
    --cc=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.