All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vincent <freesilicon@gmail.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: "Plascencia, Daniela" <daniela.plascencia@intel.com>,
	OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v7] rootfs: Modify RPM installation
Date: Tue, 17 Jan 2017 10:00:08 +0100	[thread overview]
Message-ID: <2216495.QWYccC7yTY@crde-port-20.cahors.local> (raw)
In-Reply-To: <CAJTo0LaA8i2sVcXm+5J=Y_VMFCbp=kpaLtd+B9ypCpCx5e068Q@mail.gmail.com>

On lundi 16 janvier 2017 17:39:45 CET Burton, Ross wrote:
> On 12 January 2017 at 09:08, David Vincent <freesilicon@gmail.com> wrote:
> > When using a custom RPM data directory instead of the default dir
> > '/var/lib/rpm', the final image did not contain any of the database
> > files in the expected location. This commit takes into account the
> > 'rpmlibdir' variable set into 'rootfs_rpm.bbclass'.
> 
> Something changed and this is now breaking rootfs generation for me:

It becomes weirder and weirder...

> 
> File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
>      0001:
>  *** 0002:license_create_manifest(d)
>      0003:
> File:
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/meta/cl
> asses/license.bbclass', lineno: 48, function: license_create_manifest
>      0044:    pkg_dic = {}
>      0045:    for pkg in sorted(image_list_installed_packages(d)):
>      0046:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR'),
>      0047:                                'runtime-reverse', pkg)
>  *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))
>      0049:
>      0050:        pkg_dic[pkg_name] =
> oe.packagedata.read_pkgdatafile(pkg_info)
>      0051:        if not "LICENSE" in pkg_dic[pkg_name].keys():
>      0052:            pkg_lic_name = "LICENSE_" + pkg_name
> Exception: FileNotFoundError: [Errno 2] No such file or directory:
> '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/build/t
> mp/sysroots/qemux86-64/pkgdata/runtime-reverse/error:'
> 
> Note how pkg is set to "error:".

I found that the RpmPkgsList is also using 'rpmlibdir'. Could it be possible 
that it must be defined for class-native and class-target ? Therefore, maybe 
setting a default value in each case could solve the problem ?
I'm using this patch on a daily basis and I don't have problems but, in my 
case, I set a default value for rpmlibdir at the distro level which I override 
for class-target in some of my BSP layers.

I can fall back to v6 and set a default value using a weak assignment for 
rpmlibdir.

> 
> Clearly the error handling in image_list_installed_packages() needs work,
> but I can make this problem appear/disappear by adding/removing this patch.
> 
> Ross

David


      reply	other threads:[~2017-01-17  9:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08  7:57 [PATCH][jethro] rootfs: Modify RPM installation David Vincent
2016-07-21 19:50 ` Burton, Ross
2016-09-30 20:03 ` Leonardo Sandoval
2016-11-24 10:49 ` [PATCH v3] " David Vincent
2016-11-25 18:17   ` Burton, Ross
2016-11-25 19:09     ` Mark Hatle
2016-11-28 10:59       ` David Vincent
2016-12-12 15:59   ` [PATCH v4] " David Vincent
2016-12-20  9:51     ` [PATCH v5] " David Vincent
2016-12-20 17:44       ` Burton, Ross
2016-12-22  8:22         ` David Vincent
2016-12-22 10:23       ` [PATCH v6] " David Vincent
2016-12-22 14:09         ` Burton, Ross
2016-12-22 14:45           ` David Vincent
2017-01-06 11:37             ` David Vincent
2017-01-06 14:46             ` Burton, Ross
2017-01-12  9:08         ` [PATCH v7] " David Vincent
2017-01-16 17:39           ` Burton, Ross
2017-01-17  9:00             ` David Vincent [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=2216495.QWYccC7yTY@crde-port-20.cahors.local \
    --to=freesilicon@gmail.com \
    --cc=daniela.plascencia@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /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.