Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xf86-video-nouveau-9999 ebuild (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 417
Location: France

PostPosted: Wed Aug 24, 2011 11:25 am    Post subject: xf86-video-nouveau-9999 ebuild (solved) Reply with quote

Hi there.
I don't know how writing ebuilds, and I'm a bit too lazy to learn it now, so I'm making it as I can :-)

It's based on nouveau ebuilds which are in the portage tree, here's the code :
Code:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-nouveau/xf86-video-nouveau-0.0.16_pre20110801.ebuild,v 1.1 2011/08/20 18:31:39 chithanh Exp $

EAPI=4
XORG_EAUTORECONF="yes"
XORG_DRI="always"
inherit linux-info xorg-2

DESCRIPTION="Accelerated Open Source driver for nVidia cards"
HOMEPAGE="http://nouveau.freedesktop.org/"
if [[ ${PV} = "9999" ]] ; then
   EGIT_REPO_URI="git://cgit.freedesktop.org/nouveau/xf86-video-nouveau/"
   inherit git
else
   SRC_URI="mirror://gentoo/${P}.tar.bz2"
fi

KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""

RDEPEND=">=x11-libs/libdrm-2.4.24[video_cards_nouveau]"
DEPEND="${RDEPEND}
   x11-proto/glproto
   x11-proto/xf86driproto
   x11-proto/dri2proto"

pkg_postinst() {
   xorg-2_pkg_postinst
   if ! has_version x11-base/nouveau-drm; then
      if ! linux_config_exists || ! linux_chkconfig_present DRM_NOUVEAU; then
         ewarn "Nouveau DRM not detected. If you want any kind of"
         ewarn "acceleration with nouveau, enable CONFIG_DRM_NOUVEAU"
         ewarn "in the kernel."
      fi
   fi
}


It fails with this error :
Code:
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/work/xf86-video-nouveau-9999 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/work/xf86-video-nouveau-9999_build"
>>> Source compiled.
>>> Test phase [not enabled]: x11-drivers/xf86-video-nouveau-9999

>>> Install xf86-video-nouveau-9999 into /var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/image/ category x11-drivers
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/work/xf86-video-nouveau-9999_build"
make -j3 DESTDIR=/var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/image/ docdir=/usr/share/doc/xf86-video-nouveau-9999 install
make: *** No rule to make target `install'.  Stop.
 * ERROR: x11-drivers/xf86-video-nouveau-9999 failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =x11-drivers/xf86-video-nouveau-9999',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/xf86-video-nouveau-9999'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/xf86-video-nouveau-9999/work/xf86-video-nouveau-9999'


I think portage cannot execute make install, but I really don't know why… Does someone could help please?

Thanks in advance :)
_________________
Save the penguins, burn the flags!


Last edited by barul on Wed Aug 24, 2011 11:58 am; edited 1 time in total
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Wed Aug 24, 2011 11:49 am    Post subject: Reply with quote

There is a 9999 version of the nouveau drivers in the x11 overlay. Any reason that doesn't work for you?
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 417
Location: France

PostPosted: Wed Aug 24, 2011 11:57 am    Post subject: Reply with quote

Well I just didn't know :-)

Thanks, so topic solved
_________________
Save the penguins, burn the flags!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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