Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40314 - xfree-drm-4.3.0-r7 drm-ioremap patch failure with mach64
Summary: xfree-drm-4.3.0-r7 drm-ioremap patch failure with mach64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords: EBUILD, Inclusion
Depends on:
Blocks: 39172
  Show dependency tree
 
Reported: 2004-02-03 13:43 UTC by Jordi Picalló
Modified: 2006-02-04 06:04 UTC (History)
1 user (show)

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


Attachments
xfree-drm-4.3.0-r7.ebuild.patch (xfree-drm-4.3.0-r7.ebuild.patch,419 bytes, patch)
2004-02-03 13:50 UTC, Donnie Berkholz (RETIRED)
Details | Diff
distfiles/xfree-drm-4.3.0-r7-gentoo-0.4.tar.bz2 (xfree-drm-4.3.0-r7-gentoo-0.4.tar.bz2,8.02 KB, application/octet-stream)
2004-02-15 12:39 UTC, David Holm (RETIRED)
Details
xfree-drm-4.3.0-r7.ebuild (xfree-drm-4.3.0-r7.ebuild,6.50 KB, text/plain)
2004-02-15 12:39 UTC, David Holm (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jordi Picalló 2004-02-03 13:43:58 UTC
Book xfree-drm # emerge ./xfree-drm-4.3.0-r7.ebuild 
Calculating dependencies ...done! 
>>> emerge (1 of 1) x11-base/xfree-drm-4.3.0-r7 to / 
>>> md5 src_uri  xfree-drm-4.3.0-r7-gentoo-0.3.tar.bz2 
>>> md5 src_uri  linux-drm-4.3.0-kernelsource-20031202.tar.bz2 
>>> md5 src_uri  linux-drm-mach64-4.3.0-kernelsource-20031202.tar.bz2 
video_cards_mach64 
video_cards_mach64 
video_cards_mach64 
>>> Unpacking source... 
video_cards_mach64 
>>> Unpacking linux-drm-mach64-4.3.0-kernelsource-20031202.tar.bz2 to /var/tmp/portage/xfree-drm-4.3.0-r7/work 
>>> Unpacking xfree-drm-4.3.0-r7-gentoo-0.3.tar.bz2 to /var/tmp/portage/xfree-drm-4.3.0-r7/work 
video_cards_mach64 
* Updating for mach64 build... 
* Applying various patches (bugfixes/updates)... 
* 001_ppc_drm-ioremap-agp.patch... 

* Failed Patch: 001_ppc_drm-ioremap-agp.patch! 
* 
* Include in your bugreport the contents of: 
* 
* /var/tmp/portage/xfree-drm-4.3.0-r7/temp/001_ppc_drm-ioremap-agp.patch-17214.out 


!!! ERROR: x11-base/xfree-drm-4.3.0-r7 failed. 
!!! Function epatch, Line 322, Exitcode 0 
!!! Failed Patch: 001_ppc_drm-ioremap-agp.patch! 


next ... /var/tmp/portage/xfree-drm-4.3.0-r7/temp/001_ppc_drm-ioremap-agp.patch-17214.out 

***** 001_ppc_drm-ioremap-agp.patch ***** 

========================================= 

PATCH COMMAND: patch -g0 -p0 < /var/tmp/portage/xfree-drm-4.3.0-r7/work/patch/001_ppc_drm-ioremap-agp.patch 

========================================= 
can't find file to patch at input line 4 
Perhaps you used the wrong -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|diff -urN drm-old/drmP.h drm/drmP.h 
|--- drm-old/drmP.h 2003-10-14 19:20:55.000000000 -0400 
|+++ drm/drmP.h 2003-10-14 19:22:18.000000000 -0400 
-------------------------- 
No file to patch. Skipping patch. 
2 out of 2 hunks ignored 
patching file drm/drmP.h.orig 
can't find file to patch at input line 1062 
Perhaps you used the wrong -p or --strip option? 
The text leading up to this was: 

and a lot of more... same that ^^
Comment 1 Jordi Picalló 2004-02-03 13:49:34 UTC
When I try to emerge it the portage are updated, but the rest of the "world" not. (Xfree-4.3.0-r3) now is updating...

I try to emerge 20 times, with the same result :(

How I can do??
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-03 13:50:06 UTC
Created attachment 24903 [details, diff]
xfree-drm-4.3.0-r7.ebuild.patch

cd /usr/portage/x11-base/xfree-drm
patch -p0 /path/to/xfree-drm-4.3.0-r7.ebuild.patch

Note: while this should enable you to compile it, it may not work because the
I/O-remapping will be gone. I've heard a rumor that it may work anyway, but I'd
like to some feedback.
Comment 3 David Holm (RETIRED) gentoo-dev 2004-02-10 04:38:54 UTC
I have the same problem with radeon on ppc. I'm trying it without the remap patch now.
Comment 4 David Holm (RETIRED) gentoo-dev 2004-02-10 05:06:50 UTC
It works for me without the remap patch on my Radeon 9100. BUT, I do not use AGP-mode as there is no working AGP driver available for my platform yet (Pegasos II).

I'm gonna give it a shot on the powerbook (AGP + Rage128)... gotta build a 2.4 kernel first though.
Comment 5 David Holm (RETIRED) gentoo-dev 2004-02-10 06:11:04 UTC
Ok, I gave it a shot on the PowerBook. I couldn't get either -r6 or -r7 to work in AGP mode though :(. Both, however, worked just fine if I forced PCI mode. That machine is rather old though so it would be great if someone on a newer Mac could test it as well.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-10 08:18:36 UTC
Committed my patch from comment #2 to fix mach64 ppc unpack. It's still not apparent, however, whether anything will work on mach64.

David, did you mean to post those to the 4.3.0-r7 testing bug? Also, things are a little unclear: are you saying the ioremap patch won't apply for radeon/r128 etc as well as mach64?
Comment 7 David Holm (RETIRED) gentoo-dev 2004-02-10 08:34:48 UTC
That is correct. The patch failed on both r128 and radeon on my PowerPCs. I'll check why and get back on the matter.
Comment 8 David Holm (RETIRED) gentoo-dev 2004-02-10 08:48:24 UTC
The io-remap patch seems to contain some garbage. It seems the patch was created without first removing the *.orig files. Therefore it passes a dry run but when it is applied for real it will first create drmP.h.orig during the first subpatch, then the next step it tries to create drmP.h.orig from the original patch-dir (when the patch was created) which will of course fail.

The *.orig entries should be removed from the patch. Then it'll work.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-10 09:00:52 UTC
K, I'll throw up a new patchset later today or so.
Comment 10 Jordi Picalló 2004-02-10 09:24:01 UTC
I read all about it, I'm the first writer of this bug :P

Now I d a grep -e WW -e EE and find this

         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(WW) ATI(0): Cannot shadow an accelerated frame buffer.
(WW) ATI(0): Extraneous XF86Config HorizSync specification(s) ignored.
(WW) ATI(0): Extraneous XF86Config VertRefresh specification(s) ignored.
(WW) ATI(0): [agp] AGP not available
(WW) ATI(0): [agp] AGP failed to initialize -- falling back to PCI mode.
(WW) ATI(0): [agp] Make sure you have the agpgart kernel module loaded.

AGP not really works, but DRM works as PCI... It's ioremap problem? ;)

I'm very happy with my gentoo Linux on my little iBook (1st generation) with DRM working :D
Comment 11 David Holm (RETIRED) gentoo-dev 2004-02-15 01:47:12 UTC
I fixed the broken patch and uploaded a new patchset to distfiles-local. Please test it as soon as it's been seeded to the servers. (I placed xfree-drm-4.3.0-r7 in ~ppc as well)
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-15 10:35:21 UTC
David when you change what's inside the patchset you ALSO need to bump the PATCH_VER, otherwise it breaks everything for people who already download the old patchset because it's the same file name with a different digest.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-15 10:35:39 UTC
BTW, I'll fix this.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-15 11:41:20 UTC
David, maybe I'm missing something but it still doesn't apply cleanly to mach64. Help me out here? `VIDEO_CARDS=mach64 emerge xfree-drm`
Comment 15 David Holm (RETIRED) gentoo-dev 2004-02-15 12:39:03 UTC
Created attachment 25682 [details]
distfiles/xfree-drm-4.3.0-r7-gentoo-0.4.tar.bz2

Try this new patchset please
Comment 16 David Holm (RETIRED) gentoo-dev 2004-02-15 12:39:57 UTC
Created attachment 25683 [details]
xfree-drm-4.3.0-r7.ebuild
Comment 17 David Holm (RETIRED) gentoo-dev 2004-02-15 12:40:55 UTC
Still b0rked on mach64, hopefully fixed by this new patchset. I haven't added it to portage though.
Comment 18 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-15 13:09:14 UTC
I'm gonna change the patch number of the 000 patch, make one additional change to the ebuild (excluding 001 for USE=gatos because it fails, and I have no clue whether gatos stuff works for ppc), and commit this stuff.
Comment 19 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-21 15:22:20 UTC
OK finally got this fixed.