Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443466 - x11-drivers/ati-drivers revdep-rebuild reports about broken binary if opencl AMD is not enabled
Summary: x11-drivers/ati-drivers revdep-rebuild reports about broken binary if opencl ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: opencl-tracker
  Show dependency tree
 
Reported: 2012-11-16 01:53 UTC by Anton Bolshakov
Modified: 2012-11-28 00:41 UTC (History)
2 users (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 Anton Bolshakov 2012-11-16 01:53:33 UTC
*   broken /opt/bin/clinfo (no version information available)

you can probably add it to the SEARCH_DIRS_MASK variable.

emerge --info
Portage 2.1.11.31 (hardened/linux/amd64, gcc-4.5.4, glibc-2.15-r3, 3.5.4-pentoo x86_64)
=================================================================
System uname: Linux-3.5.4-pentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sun, 11 Nov 2012 04:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5-r1::pentoo
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories:

gentoo
    location: /usr/portage
    sync: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 0

ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
ANDROID_SWT="/usr/share/swt-3.7/lib"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode multilib hardened pax_kernel pic -jit -orc"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -mtune=nocona -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CG_COMPILER_EXE="/usr/bin/cgc"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co]"
COLORTERM="Terminal"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Os -mtune=nocona -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-Bx9zhp6Ckk,guid=ed865ed0562d92d0cec9590050a59c46"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="xfce"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS=" --ask-enter-invalid --keep-going=y --binpkg-respect-use=y --tree --verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -pipe -frecord-gcc-switches"
Comment 1 Anton Bolshakov 2012-11-16 01:55:33 UTC
My current opencl settings:

eselect opencl list
Available OpenCL implementations:
  [1]   amd
  [2]   nvidia *
pentoo@pentoo ~ $
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-16 02:09:50 UTC
Or do not install /opt/bin/clinfo at all when opencl is disabled.
Comment 3 Rick Farina (Zero_Chaos) gentoo-dev 2012-11-16 09:35:47 UTC
(In reply to comment #2)
> Or do not install /opt/bin/clinfo at all when opencl is disabled.

This is an issue on my livecd which intel, amd, and nvidia opencl toolkits are all installed.  If you have anything but amd selected it causes constant revdep-rebuild of ati-drivers.  Please don't remove tools I want, just add a mask for revdep rebuild to ignore it.
Comment 4 emil karlson 2012-11-18 14:46:04 UTC
Greetings

what does
ldd /opt/bin/clinfo say

What libs do nVidia/intel provide?
/usr/lib64/libOpenCL.so* ?

SEARCH_DIRS_MASK is probably good, just wondering whether nVidia/intel should also provide those libs... I should check khronos standards, recommendations.
Comment 5 Anton Bolshakov 2012-11-18 17:39:35 UTC
Please forgive me my laziness, here is the screenshot with the answers
http://img42.imageshack.us/img42/3539/screenshotfrom201211190.png
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2012-11-26 15:52:19 UTC
Creating a file /etc/revdep-rebuild/ati-drivers containing SEARCH_DIRS_MASK="/opt/bin/clinfo" fixes this issue (thanks to fuzzyray for helping).

Anyone see an issue with just masking this one file?
Comment 7 emil karlson 2012-11-26 23:34:21 UTC
I masked the clinfo binary in x11 overlay for now, perhaps this problem will be fixed properly later.
Comment 8 Rick Farina (Zero_Chaos) gentoo-dev 2012-11-27 02:18:04 UTC
No one seems to be arguing again this fix, so fixed in the tree:

+  27 Nov 2012; Rick Farina <zerochaos@gentoo.org> ati-drivers-12.10.ebuild,
+  ati-drivers-12.11_beta.ebuild, ati-drivers-12.4.ebuild,
+  ati-drivers-12.6.ebuild, ati-drivers-12.6_beta_pre897.ebuild,
+  ati-drivers-12.8.ebuild:
+  masking clinfo for revdep-rebuild, see bug #443466


Feel free to reopen and yell at me if need be but this should fix the bug and I really can't see a downside.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-28 00:41:30 UTC
No need to CC: me, as I am already on the x11 alias.

As we are only proxying for Emil Karlson, feel free to commit any updates to ati-drivers that he makes in the x11 overlay.