All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Oberritter <obi@opendreambox.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Problem with dependencies in packages
Date: Mon, 14 Feb 2011 11:35:24 +0100	[thread overview]
Message-ID: <4D59056C.8000602@opendreambox.org> (raw)
In-Reply-To: <AANLkTikP8CNgvex==mnJY8McTouY0n-QzcUQjaFZRV8X@mail.gmail.com>

On 02/13/2011 11:50 PM, Filip Zyzniewski wrote:
> Hi,
> 
> I think I have found a problem with versioned dependencies (or I don't
> unserstand something).
> 
> I am trying to switch the jlime distribution from ipk to deb packages.
> When debugging do_rootfs problems I stumbled upon this:
> 
> The following packages have unmet dependencies:
>   libncursesw5: Depends: libtinfo5 (>= 5.7+20110115) but 5.7-r16 is to
> be installed
> E: Broken packages
> 
> The Depends line in deb package control file comes from
> classes/package_deb.bbclass:do_package_deb():
> 
> rdepends = explode_deps(unicode(bb.data.getVar("RDEPENDS", localdata, 1) or ""))
> [...]
> ctrlfile.write(u"Depends: %s\n" % ", ".join(rdepends))
> 
> 
> The dependency string comes from classes/package.bbclass:766:
> dep = "%s (>= %s)" % (dep_pkg, ver_needed)
> 
> ver_needed comes (in case of ncurses) from .ver files in the build
> tree, generated by the same function a bit earlier using pkgver
> variable set in lines 657-661:
> 
>                 pkgver = bb.data.getVar('PKGV_' + pkg, d, True)
>                 if not pkgver:
>                         pkgver = bb.data.getVar('PV_' + pkg, d, True)
>                 if not pkgver:
>                         pkgver = ver
> 
> and in ncurses_5.7.bb we have:
> 
> PATCHDATE = "20110115"
> PKGV = "${PV}+${PATCHDATE}"
> 
> 
> Isn't this an incosistency that ncurses_5.7-r16 depends on
> libtinfo5_5.7+20110115 ? Shouldn't it depend on libtinfo5_5.7-r16?
> 
> What's the reason for this situation? Does opkg somehow compare these
> versions in another way causing the problem to be invisible?

It looks like deb packages currently use PV where PKGV should be used
instead:

package_ipk.bbclass:
fields.append(["Version: %s:%s-%s\n", ['PE', 'PKGV', 'PKGR']])

package_deb.bbclass:
fields.append(["Version: %s:%s-%s%s\n", ['PE', 'PV', 'PR',  'DISTRO_PR']])

Maybe it's worth factoring out common code for deb and ipk into a new
file to avoid future bit rot.

Regards,
Andreas



  parent reply	other threads:[~2011-02-14 10:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-13 22:50 Problem with dependencies in packages Filip Zyzniewski
2011-02-14  0:29 ` Graham Gower
2011-02-14  0:51   ` Graham Gower
2011-02-14  8:41     ` Filip Zyzniewski
2011-02-14 10:35 ` Andreas Oberritter [this message]
2011-02-14 18:52   ` [PATCH] package_deb.bbclass: Use PKGV/PKGR variables where applicable Filip Zyzniewski
2011-02-14 19:57     ` [PATCH] package_deb.bbclass: remove double DISTRO_PR from the package version Filip Zyzniewski

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=4D59056C.8000602@opendreambox.org \
    --to=obi@opendreambox.org \
    --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 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.