Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461614 - dev-util/trinity should depend on kernel headers
Summary: dev-util/trinity should depend on kernel headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 09:55 UTC by Toralf Förster
Modified: 2013-03-14 17:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2013-03-13 09:55:39 UTC
otherwise it (at least w/ the current git tree) can't be compiled.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-13 16:19:07 UTC
Also, tx-export CC doesn't appear to work as intended.
Comment 2 Tim Harder gentoo-dev 2013-03-13 16:29:02 UTC
(In reply to comment #1)
> Also, tx-export CC doesn't appear to work as intended.

It's working fine here, attaching the regular information instead of just making statements can be helpful.
Comment 3 Tim Harder gentoo-dev 2013-03-13 16:33:18 UTC
Fixed in CVS.
Comment 4 Toralf Förster gentoo-dev 2013-03-13 18:31:22 UTC
(In reply to comment #3)
> Fixed in CVS.

Thx - unfortunately it seems not to solve my compilation problem.

The maintainer from trinity (Dave Johns) told me :



 > [*] Checking linux/vfio.h exists...  [YES] 
 > [*] Checking drm/exynos_drm.h exists...  [NO] 
 > >>> Source configured.
 > >>> Compiling source in /var/tmp/portage/dev-util/trinity-9999/work/trinity-9999 ...
 > make -j4 
 > ...
 >   CC    ioctls/drm.o
 >   CC    ioctls/loop.o
 > ioctls/drm.c:4:21: fatal error: drm/drm.h: No such file or directory

Do you have kernel headers installed ? That's been around forever.

	Dave




I do have installed the package sys-kernel/linux-headers, but it does not contain the file drm.h :
$> equery f sys-kernel/linux-headers | grep drm
$>
Hhm - is this a issue of trinity or of the headers ?
Comment 5 Tim Harder gentoo-dev 2013-03-14 03:07:30 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Fixed in CVS.
> 
> Thx - unfortunately it seems not to solve my compilation problem.
> 
> The maintainer from trinity (Dave Johns) told me :
> 
> 
> 
>  > [*] Checking linux/vfio.h exists...  [YES] 
>  > [*] Checking drm/exynos_drm.h exists...  [NO] 
>  > >>> Source configured.
>  > >>> Compiling source in
> /var/tmp/portage/dev-util/trinity-9999/work/trinity-9999 ...
>  > make -j4 
>  > ...
>  >   CC    ioctls/drm.o
>  >   CC    ioctls/loop.o
>  > ioctls/drm.c:4:21: fatal error: drm/drm.h: No such file or directory

Yep, this is an issue with the current git tree of trinity (so it's technically not a bug for Gentoo yet, although I'll probably put a live ebuild for it in the tree soon enough or a new release will happen.

> I do have installed the package sys-kernel/linux-headers, but it does not
> contain the file drm.h :
> $> equery f sys-kernel/linux-headers | grep drm
> $>
> Hhm - is this a issue of trinity or of the headers ?

This is an issue of gentoo removing the drm subfolder before installing the kernel headers in favor using the headers from libdrm (see the ebuilds).
Comment 6 Toralf Förster gentoo-dev 2013-03-14 15:18:06 UTC
Having an official live ebuild would be really helpful.

I'm struggling around with such an ebuild - but w/o success.
I'm suffering currently from the missing kernel headers (and symlinking /usr/inlude/libdrm to /usr/include/drm) won't help - i810.h is missing nevertheless, that file probably is only in the kernel headers, but not in libdrm.

IMO therefore there's a non-trivial issue with the linxu-headers package too.
Comment 7 Toralf Förster gentoo-dev 2013-03-14 17:54:39 UTC
FWIW after commenting oiut the deletion of the drm directory in the linux-headers ebuild I run into this :

  CC    ioctls/snd.o
ioctls/snd.c:6:26: fatal error: sound/asound.h: No such file or directory
compilation terminated.

which points to media-sound/alsa-headers 

Installing that package too I could compile trinity-9999 ia chroot env of an almost stable Gentoo x86.