When trying to emerge MPlayer (with USE="matrox") when using the 2.6.x kernel, it complains about not having the correct drivers for mga (matrox). This is a known bug by the mplayer dev team, and they have provided a patch, which can be found here: http://mplayerhq.hu/pipermail/mplayer-dev-eng/2003-July/019775.html Can you please add it so it patches automatically when you try to emerge mplayer with the matrox use flag? Reproducible: Always Steps to Reproduce: 1. Have a 2.6.x kernel 2. Emerge Mplayer with USE="matrox" flag 3. Actual Results: fails to emerge complaining about mga driver missing. Expected Results: emerged successfully Applying this patch fixes the problem. So please, just add it to the patch list for the matrox USE flag. http://mplayerhq.hu/pipermail/mplayer-dev-eng/2003-July/019775.html
This bug is still in mplayer-1.0_pre3-r5. Why isn't the patch included in the mplayer ebuild?
because this was just a security update, nothing else was changed.
Please! WHY takes it *2* month to include this patch??? If this patch really solves the problem - PLEASE INCLUDE IT or change USE-FLAG to matrox_2.4!!! You may also tell me how to do and I WILL HELP YOU BY DOING IT!!!
First, PLEASE STOP SHOUTING since this does not help anyone. Thanks. For the case you didn't notice, there are more open bugs for media-video than this one, and nearly 30 of them are older than this report. If there's a patch for mplayer-1.0_pre3 that solves your problem, it would be very kind of you to attach it here. Copy+paste from the page you mentioned gives patching file drivers/mga_vid.c Hunk #1 succeeded at 147 (offset -1 lines). Hunk #2 FAILED at 287. Hunk #3 succeeded at 1401 with fuzz 2 (offset 93 lines). Hunk #4 FAILED at 1437. Hunk #5 FAILED at 1452. Hunk #6 succeeded at 1500 with fuzz 2 (offset -55 lines). Hunk #7 FAILED at 1528. Hunk #8 FAILED at 1581. Hunk #9 FAILED at 1589. Hunk #10 FAILED at 1600. Hunk #11 succeeded at 1808 (offset 94 lines). 7 out of 11 hunks FAILED Thank you very much in advance!
Hi. I didn't want to shout... (I was not aware that people interpret it as shouting... I use big capitals just for more expression but not in an agressive or offending way...) so its no prob that I stop 'shouting'... :-) O.k. so for the mga problem: I found what you asked for at the following site: http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2004-02/msg00402.html I tested the second patch-link: http://www.linuxops.net/~pw/mga_vid/mga_vid-2.6.patch and it works (! :-) with or without the addition of Fr
Hi. I didn't want to shout... (I was not aware that people interpret it as shouting... I use big capitals just for more expression but not in an agressive or offending way...) so its no prob that I stop 'shouting'... :-) O.k. so for the mga problem: I found what you asked for at the following site: http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2004-02/msg00402.html I tested the second patch-link: http://www.linuxops.net/~pw/mga_vid/mga_vid-2.6.patch and it works (! :-) with or without the addition of Frédéric LESPEZ: mga_vid-2.6-fred.patch: http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2004-02/txt00038.txt I used the original source file for MPlayer-1.0pre3try2 from the mplayer website. So long. Hope this helps and hope the patch can be included though... ?!
Created attachment 28863 [details, diff] the mga_vid patch worx with mplayer source v1.0pre3try2 for 2.6.5-rc3-mm4 kernel the mga_vid patch worx with mplayer source v1.0pre3try2 for 2.6.5-rc3-mm4 kernel
Created attachment 28864 [details, diff] patch to apply after the patch for mplayer 1.0pre3try2 on 2.6er kernel Fr
Created attachment 28864 [details, diff] patch to apply after the patch for mplayer 1.0pre3try2 on 2.6er kernel Frédéric LESPEZ added a patch: I have just made a little modification so that the module doesn't allocate automatically a major number for the device (See the attached file which is a patch to be applied after the mga_vid-2.6.patch above). Hope it helps. Regards, Fred.
mplayer-1.0_pre4-r2.ebuild should fix this... was quite some fight, the patch needed to be modified slightly to make sure we get the right kernel version and I had to learn that cd has options in order to stop the sandbox violations. Give it a try when it hits your rsync mirrors.
*** Bug 26552 has been marked as a duplicate of this bug. ***
It's been a week now, and mplayer-1.0_pre4-r2.ebuild does not seem to be in cvs yet. Is this still going to happen? I just got a G550 so I am eagerly waiting for the -r2 ebuild.
You see me quite ashamed... I had everything ready, just forgot to commit.
I reckoned. Still, I did not dare to tap you on the nose and ask "have you simply forgotten to commit?". Developers are usually very busy and have very good reasons for everything :) Anyway, it's there now, and it works. Thanks :)
The patch also worked for me! Thanks.
Not fixed for me. Output below: gcc -shared -Wl,-soname,libpostproc.so.0 \ -o libpostproc.so postprocess_pic.o make mga_vid.ko mga_vid_test make[1]: Entering directory `/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers' make -C /lib/modules/2.6.5/build SUBDIRS=/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers modules make[2]: Entering directory `/usr/src/linux-2.6.5' *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies MKELF scripts/elfconfig.h ACCESS DENIED open_wr: /usr/src/linux-2.6.5/scripts/elfconfig.h /bin/sh: line 1: scripts/elfconfig.h: Permission denied make[3]: *** [scripts/elfconfig.h] Error 1 make[2]: *** [scripts] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.5' make[1]: *** [mga_vid.ko] Error 2 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers' make: *** [all] Error 2 !!! ERROR: media-video/mplayer-1.0_pre4-r2 failed. !!! Function src_compile, Line 282, Exitcode 2 !!! Failed to build matrox driver! --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-video_-_mplayer-1.0_pre4-r2-13445.log" open_wr: /usr/src/linux-2.6.5/scripts/elfconfig.h --------------------------------------------------------------------------------
gtaluvit: I'd really like to find out why this happens on your system since I'd rather prefer not to make the whole kernel tree writable from the mplayer build process. Did you compile your kernel/kernel modules before trying to emerge mplayer?
Yes. /usr/src/linux points to /usr/src/linux-2.6.5 and its the currently active and last built kernel. I ran make just to make sure that hadn't run make clean or anything like that in the meantime and get this: gtaluvit linux # make MKELF scripts/elfconfig.h HOSTCC scripts/file2alias.o HOSTCC scripts/modpost.o HOSTCC scripts/sumversion.o HOSTLD scripts/modpost CC arch/i386/kernel/asm-offsets.s CHK include/asm-i386/asm_offsets.h CHK include/linux/compile.h Kernel: arch/i386/boot/bzImage is ready Building modules, stage 2. MODPOST So it looks like something internally MAY have changed though I don't know what. I'm going to retry mplayer when I get to work. Also, to date I have been using the manual process with mplayer to get this to work by manually patching the ebuild with the source patch, and symlinking x86 and i386 directories, and running with FEATURES=-sandbox. Since those symlinks still exist, i'm wondering if a past run borked my kernel tree. If mplayer doesn't compile when I try at work, I'll destroy my kernel tree, reemerge it, rebuild, and see if it works then.
OK, failed again in a different place. I'm going to have to rebuild my kernel tree and give that a shot. make[2]: Entering directory `/usr/src/linux-2.6.5' *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies make[3]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/asm-i386/asm_offsets.h ACCESS DENIED open_wr: /usr/src/linux-2.6.5/include/asm-i386/asm_offsets.h.tmp /bin/sh: line 1: include/asm-i386/asm_offsets.h.tmp: Permission denied UPD include/asm-i386/asm_offsets.h mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': No such file or directory make[2]: *** [include/asm-i386/asm_offsets.h] Error 1 make[2]: Leaving directory `/usr/src/linux-2.6.5' make[1]: *** [mga_vid.ko] Error 2 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre4-r2/work/MPlayer-1.0pre4/drivers' make: *** [all] Error 2 !!! ERROR: media-video/mplayer-1.0_pre4-r2 failed. !!! Function src_compile, Line 282, Exitcode 2 !!! Failed to build matrox driver! --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-video_-_mplayer-1.0_pre4-r2-18673.log" open_wr: /usr/src/linux-2.6.5/include/asm-i386/asm_offsets.h.tmp --------------------------------------------------------------------------------
YAY! Reemerge dev sources, made the kernel, and then reemerge mplayer and this time it worked. Looks like the old patch with FEATURES=-sandbox borked my kernel for the newer version. You might want to put a note about that in the ebuild if someone has matrox enabled.
There seems to be a cleaner solution, I just didn't get it working yet - see bug #51903
Gack! Looks like -r3 broke things again. -o libpostproc.so postprocess_pic.o matrox make mga_vid.ko mga_vid_test make[1]: Entering directory `/var/tmp/portage/mplayer-1.0_pre4-r3/work/MPlayer-1.0pre4/drivers' make -C /lib/modules/2.6.5/build O=/var/tmp/portage/mplayer-1.0_pre4-r3/temp SUBDIRS=/var/tmp/portage/mplayer-1.0_pre4-r3/work/MPlayer-1.0pre4/drivers modules make[2]: Entering directory `/usr/src/linux-2.6.5' Using /usr/src/linux-2.6.5 as source for kernel /usr/src/linux-2.6.5 is not clean, please run 'make mrproper' in the '/usr/src/linux-2.6.5' directory. make[3]: *** [prepare1] Error 1 make[2]: *** [modules] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.5' make[1]: *** [mga_vid.ko] Error 2 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre4-r3/work/MPlayer-1.0pre4/drivers' make: *** [all] Error 2 !!! ERROR: media-video/mplayer-1.0_pre4-r3 failed. !!! Function src_compile, Line 283, Exitcode 2 !!! Failed to build matrox driver! Now it said to make mrproper, so I did, and it still broke. I deleted all the sources and reemerged, remade, still have the same issue.
Hmpf. This works fine for 2.6.6 and I can reproduce your problem with 2.6.5 - this is really annoying. Investigating...
There's an explicit check in the 2.6.5 Makefile in line 591+ which causes this problem and which was removed in 2.6.6... I've added a workaround to CVS. Let's see where it breaks with untested versions :-/
*** Bug 52971 has been marked as a duplicate of this bug. ***