Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: "John Willis" <John.Willis@Distant-earth.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: Re: Heads up: stricter package checking with newer opkg versions
Date: Wed, 2 Dec 2009 16:53:47 -0000	[thread overview]
Message-ID: <015a01ca7370$04e972e0$0ebc58a0$@Willis@Distant-earth.com> (raw)
In-Reply-To: <hf5ruf$cr3$1@ger.gmane.org>

Koen,

Thanks for the mail. Looks like the error handling that pushes the issues up
to the surface came in rev 394/395 of OPKG.

> Opkg > r387 propagates all errors, so if your package is broken it
> might
> have installed before, but won't anymore.
> 
> Things like creating a symlink over an existing dir (e.g. udev 141
> after
> another package installed a udev rule already) or creating a dir with
> the insufficient permissions and installing a file into it (adobe-
> fonts)
> now fail.

Yep, there are a good handful of occurrences' of these recently exposed
recipe bugs.

Some that have come to light in the last day or so are below.

(offline root mode: not running xorg-minimal-fonts.preinst)
opkg: Cannot create symlink from ./usr/lib/X11/fonts to
'/usr/share/fonts/X11/': File exists

(offline root mode: not running devicekit-power.preinst)
opkg: /someoedir/lib/udev/rules.d/95-devkit-power-battery-recall-ibm.rules:
Permission denied

(offline root mode: not running networkmanager.preinst)
opkg: /someoedir/lib/udev/rules.d/77-nm-zte-port-types.rules: Permission
denied

(offline root mode: not running udev.preinst)
opkg: Cannot create symlink from ./lib/udev/rules.d to '/etc/udev/rules.d':
File exists

(offline root mode: not running font-adobe-75dpi.preinst)
opkg: /someoedir/usr/lib/X11/fonts/75dpi/ncenBI10.pcf.gz: Permission denied

I am sure there will be a lot more but let's just get fixes in, better error
propagation can't really be a bad thing.

> If building an image suddenly starts failing, have a look at the log
> and
> see what's wrong. Most likely the package is trying to do something
> wrong and we need to fix that.
> 
> I'm testing a fix for the udev symlink currently.

Yep, a quick and dirty way of seeing any/all OPKG errors in the rootfs build
is to grep for 'opkg:' in the log file, you will see multiple instances
message of the error but that's normal.

These errors used to also be logged but opkg passed them over as non
critical, it now seems to not be the case. So checking existing rootfs logs
may show up other packages with snags.

Thanks,

John





      reply	other threads:[~2009-12-02 17:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 14:00 Heads up: stricter package checking with newer opkg versions Koen Kooi
2009-12-02 16:53 ` John Willis [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='015a01ca7370$04e972e0$0ebc58a0$@Willis@Distant-earth.com' \
    --to=john.willis@distant-earth.com \
    --cc=openembedded-devel@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