Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359613 - x11-drivers/ati-drivers fails to install with >app-portage/portage-utils-0.?
Summary: x11-drivers/ati-drivers fails to install with >app-portage/portage-utils-0.?
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 13:51 UTC by Sergiusz M
Modified: 2011-12-18 03:03 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info,4.84 KB, text/plain)
2011-03-22 19:36 UTC, Sergiusz M
Details
ati-drivers emerge debug (ati-drivers,133.67 KB, text/plain)
2011-03-22 19:36 UTC, Sergiusz M
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergiusz M 2011-03-20 13:51:15 UTC
After system update (xorg-server 1.9.4 to 1.9.5 and gentoo-sources 2.6.37 to 2.6.38) I'm unable to install any version of ati-drivers (10.x, 11.x). Emerge hangs on "++ qatom x11-base/xorg-server-1.9.5".

Reproducible: Always

Steps to Reproduce:
1. emerge -av ati-drivers
Actual Results:  
emerge hangs on:

>>> Emerging (1 of 1) x11-drivers/ati-drivers-11.2 
 * ati-driver-installer-11-2-x86.x86_64.run RMD160 SHA1 SHA256 size ;-) ...                                                                           [ ok ] 
 * Package:    x11-drivers/ati-drivers-11.2 
 * Repository: gentoo 
 * Maintainer: lu_zero@gentoo.org enrico.tagliavini@gmail.com,x11@gentoo.org 
 * USE:        amd64 elibc_glibc kernel_linux modules multilib qt4 userland_GNU 
 * FEATURES:   preserve-libs sandbox 

Emerge with debuging flag:
+ local retval
+ pkg_setup
+ MODULE_DIR=/var/tmp/portage/x11-drivers/ati-drivers-11.2/work/common//lib/modules/fglrx/build_mod
++ cut -d ' ' -f 3
+++ best_version x11-base/xorg-server
+++ '[' setup == depend ']'
+++ [[ -n 1 ]]
+++ /usr/lib64/portage/bin/ebuild-ipc best_version / x11-base/xorg-server
+++ local retval=0
+++ case "${retval}" in
+++ return 0
++ qatom x11-base/xorg-server-1.9.5

Expected Results:  
Successful emerge ati-drivers

Emerge --info >> http://pastebin.com/MvGSKhtB
Full emerge ati-drivers debug information >> http://pastebin.com/fcCYuNQb

I have tried downgrade xorg-server and gentoo-sources but without success...
Comment 1 Andreas Klauer 2011-03-20 19:50:36 UTC
Same problem here, q / qatom hangs with 100% CPU. Noticed when trying to update to 2.6.38 (last kernel was 2.6.37). I don't think it is related to ati-drivers actually, since the same hang occurs on a emerge --sync (q-reinitialize).
Comment 2 Andreas Klauer 2011-03-20 19:59:15 UTC
Worked around by downgrading portage-utils.
Comment 3 Sergiusz M 2011-03-20 20:38:42 UTC
Comfirmed that downgrading portage-utils fixes the problem...
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-22 02:46:22 UTC
(In reply to comment #0)
> Emerge --info >> http://pastebin.com/MvGSKhtB
> Full emerge ati-drivers debug information >> http://pastebin.com/fcCYuNQb

Please attach that as files.
Comment 5 Sergiusz M 2011-03-22 19:36:08 UTC
Created attachment 266915 [details]
emerge --info
Comment 6 Sergiusz M 2011-03-22 19:36:32 UTC
Created attachment 266917 [details]
ati-drivers emerge debug
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-29 21:57:53 UTC
Looks like sys-apps/portage-2.2.2 which Gentoo doesn't have. And apparently that uses portage-utils somehow, which Gentoo's doesn't. I've never seen anything like this but it looks like you're a funtoo user.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-29 22:01:32 UTC
Oh wait - ati-drivers /does/ DEPEND on portage-utils. How weird.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-29 22:04:24 UTC
Still don't know which version it is that fails, but it's rather strange that it wants qatom just to figure out a version of another installed package.
Comment 10 Enrico Tagliavini 2011-03-30 08:19:22 UTC
Not an ati-drivers issue, I reassigned it to bug wranglers.
Comment 11 Serchio 2011-03-30 09:10:47 UTC
(In reply to comment #9)
> Still don't know which version it is that fails, but it's rather strange that
> it wants qatom just to figure out a version of another installed package.

portage-utils-5.0, but not < 5.0
Comment 12 Enrico Tagliavini 2011-03-30 09:14:41 UTC
(In reply to comment #9)
> Still don't know which version it is that fails, but it's rather strange that
> it wants qatom just to figure out a version of another installed package.

The answer is simple: AMD catalyst linux package used to provide different binaries for different Xorg versions. Lastest versions now have a unified binary which should work with all recent Xorg version (they just dropped 6.8 support). If this policy will last i will remove the qatom check in the future :)
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-01 15:09:05 UTC
Why should bug-wranglers solve this? ati-drivers uses qatom, and if there's a problem in qatom, then you reassign to portage-utils@gentoo.org or CC them.
Comment 14 Enrico Tagliavini 2011-04-01 15:25:17 UTC
you are right, i'm sorry i was really in hurry, then my laptop died and i was cutted off :(
Comment 15 Serchio 2011-04-01 21:18:39 UTC
sys-auth/pambase also hangs up on qatom with portage-utils-5.0, but not in earlier version
Comment 16 Enrico Tagliavini 2011-11-22 15:49:29 UTC
ati-drivers depends no more on portage-utils from version 11.11 (but qatom is no more used from many versions, i can't rember which one exactly and i'm lazy sorry ;) )
Comment 17 SpanKY gentoo-dev 2011-11-29 06:20:45 UTC
there is no portage-utils-5.0.  there is a 0.5 version, and current unstable is 0.6.  however, that works just fine for me:

$ qatom --version
portage-utils-0.6: compiled on Oct  2 2011
$Id: qatom.c,v 1.8 2011/02/21 01:33:47 vapier Exp $
atom written for Gentoo by <solar and vapier @ gentoo.org>
$ qatom x11-base/xorg-server-1.9.5
x11-base xorg-server 1.9.5

as for the ebuild usage, it really doesn't seem necessary.  that sort of dependency checking should be handled with DEPEND/RDEPEND.
http://sources.gentoo.org/x11-drivers/ati-drivers/ati-drivers-11.2.ebuild?revision=1.1
Comment 18 Enrico Tagliavini 2011-11-29 07:48:17 UTC
(In reply to comment #17)
> as for the ebuild usage, it really doesn't seem necessary.  that sort of
> dependency checking should be handled with DEPEND/RDEPEND.
> http://sources.gentoo.org/x11-drivers/ati-drivers/ati-drivers-11.2.ebuild?revision=1.1

In the past releases of ati-drivers i had no other way to make a single ebuild able to install on different xorg-server versions. It is a binary blob, and it was providing different binaries for different xorg version. In short i had to check the xorg version at ebuild runtime and install the right binaries for the current installed xorg. Now AMD provides unified binaries which works on all xorg version :)
Comment 19 Enrico Tagliavini 2011-11-29 07:52:08 UTC
I just kept the qatom usage a bit couse i was worried AMD was going back to provide a different binary blob for the next xorg-server, but they didn't. The original work where qatom was needed for example is here http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-10.10.ebuild?hideattic=0&view=markup
Comment 20 SpanKY gentoo-dev 2011-12-01 00:33:53 UTC
(In reply to comment #18)

you should have been able to use `has_version`:
  if has_version =x11-base/xorg-server-1.9* ; then
    ... 1.9 stuff ...
  elif has_version =x11-base/xorg-server-1.8* ; then
    ... 1.8 stuff ...
  ... etc ...

also, latest ati-drivers ebuild still depends on portage-utils even though it no longer uses qatom ?
Comment 21 Enrico Tagliavini 2011-12-01 07:56:50 UTC
It doesn't
Comment 22 SpanKY gentoo-dev 2011-12-18 03:03:03 UTC
well, once someone can show me the failing example like in Comment #17, we can move forward in debugging ...