Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401261 - dev-python/pyatspi-2.2.1 - Requested 'atk >= 2.1.0' but version of Atk is 1.32.0
Summary: dev-python/pyatspi-2.2.1 - Requested 'atk >= 2.1.0' but version of Atk is 1.32.0
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gnome Accessibility (OBSOLETE)
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
: 404947 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-29 07:03 UTC by Göktürk Yüksek
Modified: 2012-02-26 09:49 UTC (History)
1 user (show)

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


Attachments
build log (build.log,8.13 KB, text/plain)
2012-01-29 07:04 UTC, Göktürk Yüksek
Details
emerge --info (emerge_info,15.36 KB, text/plain)
2012-01-29 07:04 UTC, Göktürk Yüksek
Details
Patch for configure.ac to disable tests properly (pyatspi-2.2.1-configure_ac-tests-fix.patch,474 bytes, patch)
2012-02-12 02:05 UTC, Göktürk Yüksek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Göktürk Yüksek archtester gentoo-dev 2012-01-29 07:03:49 UTC
Failed at src_configure with:
  Requested 'atk >= 2.1.0' but version of Atk is 1.32.0

I don't know if this is a dependency issue or a parallel build issue. The merge order seems correct:

[ebuild     U ~] dev-libs/atk-2.2.0 [1.32.0-r1] USE="introspection nls -doc" 587 kB [0]
[ebuild  N    ~] dev-python/pyatspi-2.2.1  USE="-test" 260 kB [0]

However when actually merging in parallel:

>>> Emerging (23 of 145) dev-libs/atk-2.2.0
>>> Emerging (56 of 145) dev-python/pyatspi-2.2.1
>>> Failed to emerge dev-python/pyatspi-2.2.1
>>> Installing (23 of 145) dev-libs/atk-2.2.0

I was trying to merge gnome-3.2.1 with autounmask enabled. The build log for pyatspi as well as the output of emerge --info is attached.


Reproducible: Always
Comment 1 Göktürk Yüksek archtester gentoo-dev 2012-01-29 07:04:14 UTC
Created attachment 300221 [details]
build log
Comment 2 Göktürk Yüksek archtester gentoo-dev 2012-01-29 07:04:35 UTC
Created attachment 300223 [details]
emerge --info
Comment 3 Zac Medico gentoo-dev 2012-01-30 13:42:56 UTC
The dep looks like this:

  DEPEND="test? ( >=dev-libs/atk-2.1.0 )"

Your build log shows this:

  USE:        elibc_glibc kernel_linux userland_GNU x86

Since you don't have USE=test enabled, according to DEPEND, you don't need dev-libs/atk. So, either the dependency is wrong, or src_configure needs to be fixed to handle it correctly.
Comment 4 Pacho Ramos gentoo-dev 2012-01-31 09:27:15 UTC
Looks like tests are always enabled :O

checking pkg-config is at least version 0.9.0... yes
checking whether tests are enabled... yes
Comment 5 Göktürk Yüksek archtester gentoo-dev 2012-02-05 05:37:12 UTC
pkg_setup() {
    G2CONF="${G2CONF} $(use_enable test tests)"
    python_pkg_setup
}

Could this be the reason?
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2012-02-11 12:43:59 UTC
what happens with FEATURES=-test or conversely -test listed in FEATURES in /etc/make.conf ?
Comment 7 Göktürk Yüksek archtester gentoo-dev 2012-02-12 02:04:20 UTC
(In reply to comment #6)
> what happens with FEATURES=-test or conversely -test listed in FEATURES in
> /etc/make.conf ?

$ FEATURES="-test" ebuild /usr/portage/dev-python/pyatspi/pyatspi-2.2.1.ebuild configure
  [...]
  ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu 
    --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
    --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking 
    --disable-tests
  [...]
  checking whether tests are enabled... yes
  [...]
  configure: error: Package requirements (atk >= 2.1.0) were not met:
  Requested 'atk >= 2.1.0' but version of Atk is 1.32.0

The configure.ac entry for tests is as follows:
AC_ARG_ENABLE(tests,
              [AS_HELP_STRING([--enable-tests], [Build with testing enabled])],
              enable_tests=yes,
              enable_tests=no)
According to [0], "If the user gave configure the option --enable-feature or --disable-feature, run shell commands action-if-given". So, '--disable-tests' triggers action-if-given, which then does 'enable_tests=yes'.

Not specifying '--disable-tests' actually disables tests. I've also attached a patch for configure.ac that seems to fix the problem.

[0] http://www.gnu.org/software/autoconf/manual/autoconf.html#index-AC_005fARG_005fENABLE-1869
Comment 8 Göktürk Yüksek archtester gentoo-dev 2012-02-12 02:05:31 UTC
Created attachment 301619 [details, diff]
Patch for configure.ac to disable tests properly
Comment 9 Pacho Ramos gentoo-dev 2012-02-26 09:49:45 UTC
+  26 Feb 2012; Pacho Ramos <pacho@gentoo.org>
+  +files/pyatspi-2.2.1-configure-check.patch, -pyatspi-2.0.2.ebuild,
+  pyatspi-2.2.1.ebuild:
+  Fix configure to disable tests properly, upstream bug #670823 by gokturk. Drop
+  old.
+
Comment 10 Pacho Ramos gentoo-dev 2012-02-26 09:49:57 UTC
*** Bug 404947 has been marked as a duplicate of this bug. ***