Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359095 - >=x11-drivers/ati-drivers-10.12 wont work with sys-kernel/gentoo-sources-2.6.38
Summary: >=x11-drivers/ati-drivers-10.12 wont work with sys-kernel/gentoo-sources-2.6.38
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
: 359439 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-15 21:31 UTC by Thomas Lercher
Modified: 2011-03-22 22:31 UTC (History)
7 users (show)

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


Attachments
New ebuild, including patch (ati-drivers-11.2-r2.ebuild,19.19 KB, text/plain)
2011-03-15 21:33 UTC, Thomas Lercher
Details
Patch for 2.6.38 (ati-drivers-2.6.38.patch,1.61 KB, patch)
2011-03-15 21:34 UTC, Thomas Lercher
Details | Diff
no version checking (ati-drivers-2.6.38.patch,1.20 KB, patch)
2011-03-15 22:26 UTC, Ryan Lucchese
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Lercher 2011-03-15 21:31:40 UTC
After installing 2.6.38 i cant compile ati-drivers (Some errors about implicit declaration). I've found a patch for this in the AUR from Archlinux (http://aur.archlinux.org/packages.php?ID=40834)

With this Patch fglrx works good with 2.6.38

Reproducible: Always

Steps to Reproduce:
1. Install 2.6.38 (sys-kernel/gentoo-sources)
2. Install x11-drivers/ati-drivers
Actual Results:  
No X11-Server after reboot

Expected Results:  
Working X11

Portage 2.1.9.43 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 15 Mar 2011 20:15:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.2_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ALSA_CARDS=""
ALSA_PCM_PLUGINS="*"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES=""
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CAMERAS=""
CBUILD="x86_64-pc-linux-gnu"
CCACHE_SIZE="1G"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=native -mabm -msse4a -pipe -O2 -fomit-frame-pointer"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS=""
COLLISION_IGNORE="/lib/modules"
COLORTERM="rxvt-xpm"
CONFIG_PROTECT="/etc /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-march=native -mabm -msse4a -pipe -O2 -fomit-frame-pointer"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vi"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec sftp -P \${port} \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
FFLAGS=""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
GPSD_PROTOCOLS=""
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HG="/usr/bin/hg"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/info"
INPUT_DEVICES="evdev"
KERNEL="linux"
LANG="en_US.UTF-8"
LCD_DEVICES=""
LC_COLLATE="C"
LC_CTYPE="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LIBGL_DRIVERS_PATH="/usr/lib64/dri:/usr/lib32/dri"
LINGUAS="en de"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/root"
MAKEOPTS="-j10"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.2/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.3/man/"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OLDPWD="/home/thomas"
OPENGL_PROFILE="ati"
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
PHP_TARGETS="php5-3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="16"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/eva /var/lib/layman/multimedia /var/lib/layman/arduino /usr/local/portage"
PRELINK_PATH_MASK="/usr/lib64/klibc:/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/usr/portage/x11-drivers/ati-drivers"
PYTHONDONTWRITEBYTECODE="1"
RESUMECOMMAND="/usr/bin/wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/avr/gcc-bin/4.4.5:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2"
RPMDIR="/usr/portage/rpm"
RUBYOPT="-rauto_gem"
RUBY_TARGETS=""
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="multilib nptl nptlonly unicode"
SUDO_COMMAND="/bin/su"
SUDO_GID="100"
SUDO_UID="1000"
SUDO_USER="thomas"
SYMLINK_LIB="yes"
SYNC="rsync://129.143.116.10/gentoo-portage"
TERM="rxvt-unicode-256color"
USE="3dnow 3dnowext X aacs acpi alsa amd64 archive async avahi bash-completion bzip2 cisco colordiff compress concurrentmodphp css cuda curl cvs de devfs-compat dhclient dhcpcd directfb dvd en fbcondecor ffmpeg flac fontconfig ftp gd geoip gif git hddtemp iconv id3 imagemagick imap innodb ipv6 jabber java jbig jpeg jpeg2k lm_sensors lzma midi milter mime mmx mp3 multilib ncurses netboot network ogg opencl opengl openmp pam pch pcre perl php png ppds python raw samba semantic-desktop sharedext sharedmem simplexml smp snmp sockets source sql sqlite sqlite3 sse sse2 ssl svg symlink syslog szip taglib tcl threads tidy tiff tokenizer truetype udev unicode usb v4l v4l2 vim-pager vim-syntax vorbis webkit x264 xml xsl zlib" ALSA_PCM_PLUGINS="*" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en de" PHP_TARGETS="php5-3" USERLAND="GNU" VIDEO_CARDS="radeon" 
USER="root"
USERLAND="GNU"
USERNAME="root"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DRACUT_MODULES DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="radeon"
XAUTHORITY="/root/.xauthIQ0B8L"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XTABLES_ADDONS=""
XZ_OPT="--memory=max"
_="/usr/bin/emerge"
Comment 1 Thomas Lercher 2011-03-15 21:33:34 UTC
Created attachment 266037 [details]
New ebuild, including patch
Comment 2 Thomas Lercher 2011-03-15 21:34:13 UTC
Created attachment 266039 [details, diff]
Patch for 2.6.38
Comment 3 Thomas Lercher 2011-03-15 21:34:59 UTC
I've added the patch and a ebuild that works for me (and i hope for some others).
Comment 4 Jouni Kosonen 2011-03-15 22:21:33 UTC
(In reply to comment #3)
> I've added the patch and a ebuild that works for me (and i hope for some
> others).

The actual patch does not seem to appear on the Archlinux link, but the same patch can be found from e.g. debian ( http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/3b716dfe326fef23 , http://paste.debian.net/106284 ) 

I understand that the preferred way to provide ebuild updates is by a diff, so here's that:

--- x11-drivers/ati-drivers/ati-drivers-11.2.ebuild	2011-02-18 15:46:03.000000000 +0200
+++ x11-drivers/ati-drivers/ati-drivers-11.2.ebuild	2011-03-16 00:15:09.000000000 +0200
@@ -294,6 +294,10 @@
 	if use modules; then
 		# version patches
 		# epatch "${FILESDIR}"/kernel/${PV}-*.patch
+
+	if kernel_is -ge 2 6 38; then
+		epatch "${FILESDIR}"/ati-drivers-2.6.38.patch
+	fi
 		if use debug; then
 			sed -i '/^#define DRM_DEBUG_CODE/s/0/1/' \
 				"${MODULE_DIR}/firegl_public.c" \


A question, though: is it even necessary to user kernel_is -condition here? All four changes are "#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)" -blocks themselves.
Comment 5 Ryan Lucchese 2011-03-15 22:26:45 UTC
Created attachment 266055 [details, diff]
no version checking

Here's my patch without version checking. I agree with the previous poster. Tested on ati-drivers-10.12 linux-2.6.38
Comment 6 Ryan Lucchese 2011-03-15 23:36:58 UTC
I mean to say, I agree with the ebuild changes proposed by Jouni, instead of checking in the patch itself. It's more consistent with the already existing ati-drivers-2.6.3x patches. Here's an ebuild diff for ati-drivers-10.12

--- x11-drivers/ati-drivers/ati-drivers-10.12.ebuild   2011-03-15 17:33:02.000000000 -0600
+++ x11-drivers/ati-drivers/ati-drivers-10.12.ebuild       2011-03-15 15:01:16.000000000 -0600
@@ -312,6 +312,11 @@
                epatch "${FILESDIR}"/ati-drivers-2.6.37.patch || \
                        die "epatch ati-drivers-2.6.37.patch failed"
        fi
+       # Patch for 2.6.38 kernel
+       if kernel_is ge 2 6 38 ; then
+               epatch "${FILESDIR}"/ati-drivers-2.6.38.patch || \
+                       die "epatch ati-drivers-2.6.38.patch failed"
+       fi

        # These are the userspace utilities that we also have source for.
        # We rebuild these later.
Comment 7 Thomas Lercher 2011-03-16 06:36:09 UTC
I agree with you, changes in the ebuild are enough.

I also updated the title. (>=10.12 instead of only 11.2)
Comment 8 Enrico Tagliavini 2011-03-16 07:56:54 UTC
Thank you everybody. I will apply this to the main tree in the weekend i hope.
Comment 9 Agostino Sarubbo gentoo-dev 2011-03-19 07:14:16 UTC
*** Bug 359439 has been marked as a duplicate of this bug. ***
Comment 10 Luca Barbato gentoo-dev 2011-03-22 22:31:16 UTC
Pushed in cvs, thank you for the help