Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Alexander Kanavin <alexander.kanavin@linux.intel.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 11/11] package.bbclass: Restore functionality to detect RPM dependencies
Date: Thu, 15 Jun 2017 14:19:14 +0000	[thread overview]
Message-ID: <8dac07a1a0784c3380de49c17aee97fa@XBOX02.axis.com> (raw)
In-Reply-To: <485ef905-084f-6485-c45e-238177e72402@linux.intel.com>

> -----Original Message-----
> From: Alexander Kanavin [mailto:alexander.kanavin@linux.intel.com]
> Sent: den 15 juni 2017 16:03
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-
> core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 11/11] package.bbclass: Restore
> functionality to detect RPM dependencies
> 
> On 06/15/2017 04:53 PM, Peter Kjellerstedt wrote:
> > During the transition to dnf and rpm4, the functionality to
> > automatically make RPM determine dependencies was lost.
> >
> > Before the transition, an OE specific tool called rpmdeps-oecore had
> > been added to the rpm suit. It was based on the rpmdeps tool that is
> > part of rpm. For each file specified on its command line, it would
> > output the provides and requires that RPM could determine.
> >
> > During the transition to rpm4, rpmdeps-oecore was replaced with the
> > standard rpmdeps. However, what no one noticed was that unless
> rpmdeps
> > is given options, e.g., -P or -R, to tell it what it should output,
> it
> > will not output anything. Thus, it would do all the work to determine
> > the requirements, but would keep silent about it. And since no output
> > from rpmdeps is expected unless there are requirements, there were no
> > warnings indicating that everything was not working as expected.
> >
> > Porting the old rpmdeps-oecore to work with rpm4 is not really
> > possible since it relied on being able to access internals of RPM
> that
> > are no longer available. However, it turned out that rpmdeps had a
> > debug option, --rpmfcdebug, that would output exactly the information
> > that we need, albeit in a different format and to stderr. To make
> this
> > usable, rpmdeps has now received a new option, --alldeps, which sends
> > the information we need to stdout.
> 
> I'd like you to address my previous comment: how do you ensure this will
> continue to work going forward? Is it taken into use by default, and if
> it breaks, will we notice?
> 
> Alex

Yes, once the last commit that changes package.bbclass is integrated, it 
will be activated for all builds that use RPM. And given how red the 
autobuilders got when RP did it the first time, I do not think there is 
any chance we will miss problems due to it...

I do agree that some kind of tests for this would probably be good. 
However, I do not have any experience with the oe-selftests, and how to 
implement some tests for this, and I am pressed for time as I go on 
summer vacation next Friday and would very much like for this to be 
fixed before then. Especially as we need these changes to make it into 
Pyro as well...

//Peter



      reply	other threads:[~2017-06-15 14:19 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 13:53 [PATCH 00/11] More fixes for file dependency generation with RPM Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 01/11] gtk+3: Update the patches to work without PATCHTOOL = "git" Peter Kjellerstedt
2017-06-15 13:57   ` Burton, Ross
2017-06-15 14:00     ` Peter Kjellerstedt
2017-06-15 14:05       ` Alexander Kanavin
2017-06-15 14:11         ` Peter Kjellerstedt
2017-06-15 14:18           ` Alexander Kanavin
2017-06-15 14:22             ` Peter Kjellerstedt
2017-06-15 14:24               ` Alexander Kanavin
2017-06-15 15:33                 ` Peter Kjellerstedt
2017-06-15 20:44                   ` Alexander Kanavin
2017-07-03 23:56                     ` Peter Kjellerstedt
2017-07-04 14:30                       ` Burton, Ross
2017-06-15 14:25             ` Gary Thomas
2017-06-15 13:53 ` [PATCH 02/11] perl: Do not generate file dependencies for perl-ptest Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 03/11] rpm: Add dependencies on bash, perl and python3-core Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 04/11] linux-firmware: Avoid a dependency on python-core Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 05/11] texi2html: Add a dependency on perl Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 06/11] git: Add a dependency on perl for gitweb Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 07/11] git: Do not install git cvsserver and git svn Peter Kjellerstedt
2017-06-15 13:59   ` Burton, Ross
2017-06-15 14:01     ` Burton, Ross
2017-06-15 14:12       ` Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 08/11] texinfo: Avoid a problem with a dependency on perl(Locale::gettext_xs) Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 09/11] package_rpm.bbclass: Filter out unwanted file deps for nativesdk packages Peter Kjellerstedt
2017-06-15 14:00   ` Alexander Kanavin
2017-06-15 14:05     ` Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 10/11] insane.bbclass: Ignore perl as dependency " Peter Kjellerstedt
2017-06-15 13:53 ` [PATCH 11/11] package.bbclass: Restore functionality to detect RPM dependencies Peter Kjellerstedt
2017-06-15 14:02   ` Alexander Kanavin
2017-06-15 14:19     ` Peter Kjellerstedt [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=8dac07a1a0784c3380de49c17aee97fa@XBOX02.axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=alexander.kanavin@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox