First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 148572
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo X packagers <x11@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Javier Villavicencio <the_paya@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
x11-drm-20060608-r1.ebuild x11-drm-20060608-r1.ebuild patch Javier Villavicencio 2006-09-21 13:09 0000 8.03 KB Details | Diff
x11-drm.diff x11-drm.diff patch Javier Villavicencio 2006-09-21 13:09 0000 6.76 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 148572 depends on: Show dependency tree
Show dependency graph
Bug 148572 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-09-21 13:08 0000
Following the changes to Mesa, new drm modules are required for DRI to work
properly.
I'm attaching what i've come up so far for x11-drm ebuild with g/fbsd support,
the only catch here is i'm not able to build dristat and drmstat. So far they
don't seem to be built either on vanilla freebsd.

------- Comment #1 From Javier Villavicencio 2006-09-21 13:09:00 0000 -------
Created an attachment (id=97690) [edit]
x11-drm-20060608-r1.ebuild

This is the whole ebuild, for easy looking at the big picture.

------- Comment #2 From Javier Villavicencio 2006-09-21 13:09:46 0000 -------
Created an attachment (id=97691) [edit]
x11-drm.diff

And this is the big patch to the current ebuild.

------- Comment #3 From Donnie Berkholz 2006-09-21 13:21:53 0000 -------
I'm not really happy with the organization of the code. I'll try to hack it
around some when I find a little time.

------- Comment #4 From Javier Villavicencio 2006-09-21 13:31:00 0000 -------
(In reply to comment #3)
> I'm not really happy with the organization of the code. I'll try to hack it
> around some when I find a little time.
> 
I'm glad that i'm not the only one.


And this is how dr{i,m}stat fails:
QA Notice: USE Flag 'kernel_FreeBSD' not in IUSE for
x11-base/x11-drm-20060608-r1
cc -march=pentium3 -O2 -frename-registers -pipe -g -ansi -pedantic
-DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE -I. -I../libdrm -I../shared-core dristat.c -o dristat
In file included from dristat.c:36:
../libdrm/xf86drm.c: In function 'drmOpenDevice':
../libdrm/xf86drm.c:295: error: 'S_IFCHR' undeclared (first use in this
function)
../libdrm/xf86drm.c:295: error: (Each undeclared identifier is reported only
once
../libdrm/xf86drm.c:295: error: for each function it appears in.)
dristat.c: In function 'main':
dristat.c:248: error: 'optarg' undeclared (first use in this function)
gmake: *** [dristat] Error 1

!!! ERROR: x11-base/x11-drm-20060608-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  x11-drm-20060608-r1.ebuild, line 166:   Called die

!!! Building dristat failed.
!!! If you need support, post the topmost build error, and the call stack if
relevant.


However, S_IFCHR is already defined in these places:

sys/stat.h:#define      S_IFCHR  0020000                /* character special */
xorg/xf86_libc.h:#define XF86_S_IFCHR 0020000
xorg/xf86_libc.h:#undef S_IFCHR
xorg/xf86_libc.h:#define S_IFCHR XF86_S_IFCHR

And sys/stat.h is already being included by 
../libdrm/xf86drm.c:58:# include <sys/stat.h>

------- Comment #5 From Diego E. 'Flameeyes' Pettenò 2006-09-21 13:42:35 0000 -------
Misses an include of sys/stat.h

------- Comment #6 From Javier Villavicencio 2006-09-21 14:47:11 0000 -------
The dristat/drmstat issue is solved by removing -D_POSIX_SOURCE from the CFLAGS
in tests/Makefile.

Little piece of the ebuild with the fix:
[...]
        elif use kernel_FreeBSD
        then
                cd "${S}/tests"
                # -D_POSIX_SOURCE skips the definition of several things we
need
                # for these two to compile
                sed -i -e "s/-D_POSIX_SOURCE//" Makefile
                make dristat || die "Building dristat failed."
                make drmstat || die "Building drmstat failed."
                mv dristat drmstat ${SRC_BUILD}
        fi
[...]

------- Comment #7 From Donnie Berkholz 2006-09-24 00:59:01 0000 -------
Still needs patches to get looked at.

------- Comment #8 From Javier Villavicencio 2006-10-30 14:52:55 0000 -------
I've comitted a less ugly ebuild to the transition overlay:
http://overlays.gentoo.org/proj/alt/browser/trunk/transition-overlay/x11-base/x11-drm/x11-drm-20060608-r1.ebuild
[sorry big url]

------- Comment #9 From Donnie Berkholz 2006-10-31 18:04:09 0000 -------
Sorry, I forgot about this. Keep bugging me.

------- Comment #10 From Jerome Asselin 2006-11-20 19:08:28 0000 -------
In the hope this ebuild would resolve my DRI issues with mach64 driver, I've
installed the candidate ebuild but DRI still doesn't work.

My video card is:
ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c)

$ glxinfo | grep rendering
direct rendering: No

------- Comment #11 From Javier Villavicencio 2006-11-23 15:22:51 0000 -------
(In reply to comment #10)
> In the hope this ebuild would resolve my DRI issues with mach64 driver, I've
> installed the candidate ebuild but DRI still doesn't work.

May you open a new bug with all the relevant information please? With some more
information we can help a little more.

Tip: Make sure you're loading "/boot/modules" 'modules' instead of those in
"/boot/kernel".

Donnie: Any news on this ebuild before i forget as well ^_^?

------- Comment #12 From Donnie Berkholz 2006-11-23 20:22:44 0000 -------
(In reply to comment #11)
> Donnie: Any news on this ebuild before i forget as well ^_^?

No -- the problem is that I will need a somewhat large, single chunk of time to
do this, and that time has not existed yet. I've just had sporadic minutes to
work on Gentoo.

------- Comment #13 From Javier Villavicencio 2006-12-20 09:05:43 0000 -------
Donnie: spam ping, *poke in the eye*

------- Comment #14 From Donnie Berkholz 2006-12-20 10:04:08 0000 -------
I committed a masked revision, based on the overlay ebuild. Check it out.

------- Comment #15 From Donnie Berkholz 2007-01-18 16:09:24 0000 -------
Fixed, thanks for your work and patience.

First Last Prev Next    No search results available      Search page      Enter new bug