Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392017 - pkgconfig-0.26 circular depends on glib:2 making bootstrap extremely hard
Summary: pkgconfig-0.26 circular depends on glib:2 making bootstrap extremely hard
Status: RESOLVED DUPLICATE of bug 385561
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal blocker (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-26 21:52 UTC by Benda Xu
Modified: 2012-05-10 11:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2011-11-26 21:52:45 UTC
pkgconfig-0.26 is python's dependence to find libffi in the system. It depends on glib:2 which depends on libffi, which cannot be found unless pkgconfig is installed.

please keep a version of pkgconfig-0.25 for bootstrap.

Actually, former versions of pkgconfig-0.26 should not be removed because a glib:2 dependence is a huge bump!

Reproducible: Always

Steps to Reproduce:
1. bootstrap....
2. at emerge --oneshot sys-apps/portage, libxml2 jumps up, it predepends on python
3. nightmare begins, may new things depends on python
4. emerge -1O python fails, because it can't find libffi, which is feed by pkgconfig
Comment 1 Fabian Groffen gentoo-dev 2011-11-27 17:53:34 UTC
pkg-config comes from gx86, so we can't really restore 0.25, unfortunately.

Freedesktop people, what do you think?
Comment 2 Pacho Ramos gentoo-dev 2011-11-27 19:23:04 UTC
glib can be built without pkgconfig, look at this in src_configure inside glib ebuild:

        # Avoid circular depend with dev-util/pkgconfig
        if ! has_version dev-util/pkgconfig; then
                if has_version sys-apps/dbus; then
                        export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
                        export DBUS1_LIBS="-ldbus-1"
                fi
                export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
                export LIBFFI_LIBS="-lffi"
        fi
Comment 3 Fabian Groffen gentoo-dev 2011-11-27 19:36:49 UTC
I synced glib now, so that fix should be available, but I'm not sure if that fixes anything, since glib is a hefty dependency for a bootstrap indeed.  We'll have to find out.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-11-28 00:14:27 UTC
(In reply to comment #3)
> I synced glib now, so that fix should be available, but I'm not sure if that
> fixes anything, since glib is a hefty dependency for a bootstrap indeed.  We'll
> have to find out.

FYI, the reason that pkgconfig-0.25 and earlier did not depend on glib is because it contained a bundled copy of glib-1. For 0.26, pkgconfig developers rightly decided to remove the bundled library and rely on system's glib-2 instead.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2011-11-28 14:46:02 UTC
(In reply to comment #3)
> I synced glib now, so that fix should be available, but I'm not sure if that
> fixes anything, since glib is a hefty dependency for a bootstrap indeed.  We'll
> have to find out.

Fixes went also to libgamin and gam-server related to this. Also, I'm not sure if the code block is missing ${EPREFIX} in the -I paths...
Comment 6 Fabian Groffen gentoo-dev 2011-12-01 21:11:39 UTC
bootstrapping succeed with todays snapshot, so this is luckily not a problem
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-05-10 11:52:21 UTC

*** This bug has been marked as a duplicate of bug 385561 ***