]> code.ossystems Code Review - openembedded-core.git/commit
package-deb: Ignore circular dependencies
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Thu, 10 Mar 2016 13:47:09 +0000 (14:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Mar 2016 22:11:21 +0000 (22:11 +0000)
commitd8bf148c3b740254ed23d52cf244f0f6e9c7a4ab
treee03b15e3049ca517c35f15949ed77da1ce27b12d
parent04aa40be126e00e2eb97311510e4d3ea90bfe7eb
package-deb: Ignore circular dependencies

If a package depends on itself apt-get fails to install it with the
error attached to this patch.

This patch checks for this conditions and notifies the user so the
recipe maintainer can fix his RDEPENDS variable.

root@qt5022:~# apt-get install perl-module-cpan
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  perl-module-cpan
0 upgraded, 640 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5964 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
E: Internal error: MaxLoopCount reached in SmartUnPack (2) for
perl-module-cpan:amd64, aborting
E: Internal error, packages left unconfigured. perl-module-cpan:amd64
root@qt5022:~# apt-get install perl-modules

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package_deb.bbclass