On Fri, Nov 16, 2007 at 10:34:59AM +0100, Xavier wrote:
> On Thu, Nov 01, 2007 at 06:15:09PM +0200, Roman Kyrylych wrote:
> > 2007/11/1, Aaron Griffin <[EMAIL PROTECTED]>:
> > > Forwarding to the dev list in case people don't read the arch list.
> > >
> > > ---------- Forwarded message ----------
> > > From: Mister Dobalina <[EMAIL PROTECTED]>
> > > Date: Nov 1, 2007 10:27 AM
> > > Subject: [arch] circular dependence in core
> > > To: General Discusson about Arch Linux <[email protected]>
> > >
> > >
> > > coreutils 6.9-3 -> depends on bash
> > >
> > > bash 3.2.025-1 -> depends on readline>=5.2
> > >
> > > readline 5.2-4 -> depends on ncurses
> > >
> > > ncurses 5.6-4 -> depends on coreutils -> oops!
> > >
> > 
> > This was caused by this commit:
> > http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/ncurses/PKGBUILD.diff?r1=1.24&r2=1.25&cvsroot=Core&only_with_tag=CURRENT
> > I think we should revert it (because dependencies of other packages
> > are fine and make more sense).
> > 
> 
> With the recent big rebuild in testing, pacman 3.1 detected a dependency
> cycle again, which reminded me of this mail.
> The cycle wasn't only caused by the commit above, because there was already
> another cycle there before.
> 
> bash 3.2.025-2 -> depends on readline>=5.2
> readline 5.2-5 -> depends on ncurses
> ncurses 5.6-6 -> depends on glibc
> glibc 2.7-7 -> depends on bash -> oops!
> 
> But it looks like there are other ones as well.

Hm, there is already a script for detecting these, made by stonecrest after
the first cycle found above :
http://www.archlinux.org/pipermail/pacman-dev/2007-November/009811.html

I ran it on the core repo only :
> python check_pkgbuilds.py                                                     
>                                                                    ~

WARNING: Please make sure you have a clean $ABSROOT when running this
         script; custom PKGBUILDs, etc. can cause false positives.

Ignoring the following paths:
/var/abs/local
/var/abs/testing
/var/abs/extra
/var/abs/unstable
/var/abs/community
/var/abs/.sup


PKGBUILD not found in dir /var/abs/core/base/slocate
Cannot find dependency in package: iputils>jade
Cannot find dependency in package: madwifi>sharutils
Cannot find dependency in package: eventlog>libol
Cannot find dependency in package: syslog-ng>glib2
Cannot find dependency in package: pacman>doxygen
Cannot find dependency in package: madwifi-utils>sharutils
Cannot find dependency in package: e2fsprogs>bc
Circular dependency found for db
  --> db>coreutils>pam>db
Circular dependency found for shadow
  --> shadow>pam>db>coreutils>shadow
Circular dependency found for glibc
  --> glibc>tzdata>glibc
Circular dependency found for bash
  --> bash>readline>glibc>bash
Circular dependency found for binutils
  --> binutils>glibc>gcc>binutils
Circular dependency found for gcc-libs
  --> gcc-libs>gcc>gcc-libs
Circular dependency found for tzdata
  --> tzdata>glibc>tzdata
Circular dependency found for ncurses
  --> ncurses>glibc>bash>readline>ncurses *
Circular dependency found for texinfo
  --> texinfo>ncurses>glibc>gcc>binutils>texinfo
Circular dependency found for coreutils
  --> coreutils>pam>db>coreutils
Circular dependency found for pam
  --> pam>db>coreutils>pam
Circular dependency found for gcc
  --> gcc>gcc-libs>gcc
Circular dependency found for readline
  --> readline>glibc>bash>readline

* It does detect the cycle I found manually.

_______________________________________________
arch mailing list
[email protected]
http://archlinux.org/mailman/listinfo/arch

Reply via email to