Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ati-drivers-14.12-r3 on kernel 3.19-rc7 compilation fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
42n4
n00b
n00b


Joined: 10 Feb 2015
Posts: 9

PostPosted: Tue Feb 10, 2015 5:27 pm    Post subject: ati-drivers-14.12-r3 on kernel 3.19-rc7 compilation fails Reply with quote

I have seen patches for kernel 3.19 8O :
https://forum.manjaro.org/index.php?topic=18974.0
https://github.com/manjaro/packages-extra/commit/f90e5661042399d0ff218aec71fe75b2e4a2200d

But after applying them I have a new error that __this_cpu_write is not found.
How to utilise these simple patches on Gentoo? :evil:

I have managed to apply to run nvidia-drivers on kernel 3.19-rc7,
https://devtalk.nvidia.com/default/topic/783364/343-22-driver-incompatible-with-linux-3-18-/
but here with ati-drivers I have a problem...
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Feb 11, 2015 12:47 pm    Post subject: Reply with quote

patches only work on the stuff they were build against it, afaik

and why are patches are simple?

just do not use unsupported kernels with binary drivers. OR !! edit the kernel accordingly as you can see on the patches where they need to be edited.

But do not expect that a patch will apply when you a different version which it was not build against it.

Quote:
How to utilise these simple patches on Gentoo? :evil:


write an ebuild and apply the patches by hand, than run a diff on those, and name them accordingly for the ebuild.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Wed Feb 11, 2015 1:59 pm    Post subject: Reply with quote

Or you can report a bug at https://bugs.gentoo.org/ and let the maintainer figure it out (if he is willing).
Back to top
View user's profile Send private message
42n4
n00b
n00b


Joined: 10 Feb 2015
Posts: 9

PostPosted: Fri Feb 13, 2015 7:10 pm    Post subject: Reply with quote

Patches are short and works in Arch Manjaro, but do not work in Gentoo under the same kernel. I think this bug report is a good idea.
_________________
gentoo gcc 8.3.0 lto graphite, arm rpi3 7.4.0,
http://bit.ly/gen2ls
Back to top
View user's profile Send private message
Hotblack
n00b
n00b


Joined: 28 Dec 2004
Posts: 41

PostPosted: Sat Feb 14, 2015 4:52 pm    Post subject: Reply with quote

This works for me (with local overlay PORTDIR_OVERLAY=/usr/local/portage in /etc/portage/make.conf)

copy
Code:
manjaro_fglrx_319.patch
into
Code:
/etc/portage/patches/x11-drivers/ati-drivers

copy the whole directory
Code:
/usr/portage/x11-drivers/ati-drivers
in
Code:
/usr/local/portage/x11-drivers/ati-drivers

delete all the ebuilds except ati-drivers-14.12-r3.ebuild from the local directory

edit the ebuild and add epatch_user at the end of the src_prepare() {} section
Code:

src_prepare() {
   .
   .
   .
   epatch_user
}

Code:
# ebuild ati-drivers-14.12-r3.ebuild digest

Code:
# emerge ati-drivers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum