Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114603 - nvidia-settings needs modular X loving
Summary: nvidia-settings needs modular X loving
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 114649 114687 117197 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-06 01:31 UTC by Avuton Olrich
Modified: 2007-07-19 19:02 UTC (History)
13 users (show)

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


Attachments
Diff between r2 and new r3 for modular-x. (nvidia-settings-modular-x-changes.patch,2.84 KB, patch)
2006-01-11 00:45 UTC, Robin Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Avuton Olrich 2005-12-06 01:31:58 UTC
If building nvidia-settings it needs to depend on xmkmf: 
 
>>> Unpacking source... 
>>> Unpacking nvidia-settings-1.0.20051122.tar.gz 
to /var/tmp/portage/nvidia-settings-1.0.20051122/work 
>>> Source unpacked. 
 * Building libXNVCtrl... 
/mnt/shapeshifter/portage/media-video/nvidia-settings/nvidia-settings-1.0.20051122.ebuild: 
line 33: xmkmf: command not found 
 
!!! ERROR: media-video/nvidia-settings-1.0.20051122 failed.
Comment 1 Kris Kersey (RETIRED) gentoo-dev 2005-12-07 08:50:16 UTC
*** Bug 114687 has been marked as a duplicate of this bug. ***
Comment 2 Kris Kersey (RETIRED) gentoo-dev 2005-12-07 08:51:41 UTC
In my installation, xmkmf is installed by xorg-x11:

glacier ~ # equery belongs /usr/bin/xmkmf
[ Searching for file(s) /usr/bin/xmkmf in *... ]
x11-base/xorg-x11-6.8.2-r4 (/usr/bin/xmkmf)

Under what condition would xmkmf not be installed?

Anybody?
Comment 3 Joshua Baergen (RETIRED) gentoo-dev 2005-12-07 09:31:30 UTC
If modular (7.0) is installed, as the bug specifies :P

x11-misc/xmkmf

and 

http://dev.gentoo.org/~spyderous/xorg-x11/porting_to_modular_x_howto.txt
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2005-12-10 23:44:31 UTC
FYI, xmkmf is moving into imake package for the next RC.
Comment 5 Sandro Bonazzola (RETIRED) gentoo-dev 2005-12-24 10:50:14 UTC
after emerging xorg-x11-7.0 nvidia-settings should depend on:
x11-misc/imake
x11-misc/gccmakedep

and still fails with:
make: *** No rule to make target `src/libXNVCtrl/libXNVCtrl.a', needed by `nvidia-settings'.  Stop.
Comment 6 Sandro Bonazzola (RETIRED) gentoo-dev 2005-12-25 10:29:52 UTC
Headers ignored because they weren't found:

amigax.h
simx.h
in.h
in_systm.h
ip.h
cthreads.h
krb5.h
endian.h
netconfig.h
netdir.h
dnetdb.h
dn.h
errno.h
os2.h
prgpre.h
stdarg.h
synch.h
bsdtypes.h
byteorder.h
endian.h
sysent.h
filio.h
isa_defs.h
limits.h
ptms.h
stream.h
threadlib.h
Threads.tmpl
tis.h
tiuser.h
XvMClib.h

Absolute headers:

media-libs/fontconfig
media-libs/freetype
sys-libs/glibc
x11-libs/libdrm
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libXaw
x11-libs/libXfixes
x11-libs/libXfont
x11-libs/libXft
x11-libs/libxkbfile
x11-libs/libXmu
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXt
x11-libs/libXv
x11-libs/Xaw3d
x11-proto/compositeproto
x11-proto/damageproto
x11-proto/fixesproto
x11-proto/fontcacheproto
x11-proto/fontsproto
x11-proto/inputproto
x11-proto/kbproto
x11-proto/printproto
x11-proto/randrproto
x11-proto/recordproto
x11-proto/renderproto
x11-proto/scrnsaverproto
x11-proto/trapproto
x11-proto/videoproto
x11-proto/xextproto
x11-proto/xf86bigfontproto
x11-proto/xf86dgaproto
x11-proto/xf86driproto
x11-proto/xf86miscproto
x11-proto/xf86rushproto
x11-proto/xf86vidmodeproto
x11-proto/xproto

Relative headers:

app-emulation/wine
x11-base/xorg-server
x11-libs/libXt
x11-libs/openmotif
x11-libs/Xaw3d
x11-libs/xtrans
x11-proto/fontsproto
x11-proto/xextproto
x11-proto/xf86driproto
x11-proto/xproto
Comment 7 Sandro Bonazzola (RETIRED) gentoo-dev 2005-12-25 10:54:08 UTC
found XvMClib.h in x11-libs/libXvMC, still doesn't compile. 
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-12-30 07:19:13 UTC
*** Bug 117197 has been marked as a duplicate of this bug. ***
Comment 9 Matteo Azzali (RETIRED) gentoo-dev 2005-12-30 07:39:08 UTC
New stop error after emerging gccmakedep:

make: *** No rule to make target `src/libXNVCtrl/libXNVCtrl.a', needed by `nvidia-settings'.  Stop.
Comment 10 David Watzke 2006-01-01 10:42:50 UTC
nvidia-settings should depend on imake, because it fails without it...

 * Building libXNVCtrl...
/usr/portage/media-video/nvidia-settings/nvidia-settings-1.0.20051122-r2.ebuild: line 33: xmkmf: command not found

and after emerge imake it fails on well known error with libXNVCtrl ...
Comment 11 David Watzke 2006-01-01 10:44:02 UTC
Adding myself to CC... sorry I forgot to do it with that comment...
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-01-11 00:45:53 UTC
Created attachment 76817 [details, diff]
Diff between r2 and new r3 for modular-x.

This attachment allows nvidia-settings to build in modular-X systems. A minor tweak was needed to the Imakefile to ensure that the library built correctly.
Additionally, I cleaned up the ebuild to follow more Gentoo best practices. src_unpack is used for things that should only be done once before compiling. CDEBUGFLAGS is used instead of CCOPTIONS to avoid Xorg CFLAGS affecting the CFLAGS for nvidia-settings.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-01-11 00:49:23 UTC
*** Bug 114649 has been marked as a duplicate of this bug. ***
Comment 14 David Watzke 2006-01-11 05:14:36 UTC
Patch is fine, now it works. Well done! :)
Comment 15 Jonathan Heaney 2006-01-12 11:02:13 UTC
Patch to r3 works fine here too.
Comment 16 Mike Doty (RETIRED) gentoo-dev 2006-01-14 09:27:14 UTC
(In reply to comment #12)
> Created an attachment (id=76817) [edit]
> Diff between r2 and new r3 for modular-x.
patch applies and works on amd64

Comment 17 Matteo Azzali (RETIRED) gentoo-dev 2006-01-14 09:47:07 UTC
Does the r3 ebuild works also for non-modular-X??
Comment 18 FieldySnuts 2006-01-14 09:49:07 UTC
Can we get this into portage, please? Been over a month.
Comment 19 merwan kashouty 2006-01-14 18:39:33 UTC
patch works here... maybe add gccmakedep and imake as deps
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-01-14 18:52:56 UTC
merwan kashouty: imake+gccmakedep are already in the deps in the patch.
Comment 21 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-18 15:39:34 UTC
Driver guys, can somebody get this in? We're the x11 people, we should be setting an example for everyone else.
Comment 22 Kris Kersey (RETIRED) gentoo-dev 2006-01-18 16:19:32 UTC
Done.  Sorry for the delay.

nvidia-settings-1.0.20051122-r3.ebuild checked in to CVS.
Comment 23 robustah 2006-01-18 21:17:22 UTC
It would probably be a good thing to add dependencies for imake and gccmakedep, or else it will not compile. 
Comment 24 Jose daLuz 2006-01-18 22:08:16 UTC
(In reply to comment #23)
> It would probably be a good thing to add dependencies for imake and gccmakedep,
> or else it will not compile.  

Which is exactly what just happened to me.  I'm emerging imake and gccmakedep now, thanks.
Comment 25 Kris Kersey (RETIRED) gentoo-dev 2006-01-22 13:13:47 UTC
I see imake and gccmakedep in the DEPEND section.  Do these have the wrong conditions on them?
Comment 26 Jose daLuz 2006-01-22 13:27:32 UTC
(In reply to comment #25)
> I see imake and gccmakedep in the DEPEND section.  Do these have the wrong
> conditions on them?
> 

I'm not a developer, but doesn't the check for x11 packages happen only if the check for gtk+ >= version 2 fails?
Comment 27 Kris Kersey (RETIRED) gentoo-dev 2006-02-02 21:48:33 UTC
Robin,

Why were the DEPENDs done that way?
Comment 28 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-02-03 01:01:02 UTC
jdaluz: Nope, the || comes after the gtk+ dep.

augustus: what are you talking about in particular?
In the DEPEND, I added this:
|| ( 
(  x11-base/xorg-server x11-libs/libXt x11-proto/xf86driproto x11-misc/imake x11-misc/gccmakedep )
virtual/x11
)
This simply states that either: virtual/x11 needs to be present
OR you need the following set of packages (I've added the why):
x11-base/xorg-server - headers and libraries
x11-libs/libXt - libraries
x11-proto/xf86driproto - headers
x11-misc/imake - build tool
x11-misc/gccmakedep - build tool

Only the libs packages out of this are also needing in the RDEPEND, hence the others are dropped.

Strictly speaking I could actually leave out libXt as well, as gtk+ RDEPEND+DEPENDS on it, but I left it here for clarity.
Comment 29 dark_mail 2006-06-29 10:02:40 UTC
Unfortunately, media-video/nvidia-settings-1.0.20060516 seems to fail with non-modular X11.

>>> checking ebuild checksums ;-)
>>> checking auxfile checksums
!!! A file listed in the Manifest could not be found: '/usr/portage/media-video/nvidia-settings/files/libXNVCtrl.a'

xorg-x11 is 6.8.2-r8

emerge --info:

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17 i686
)
=================================================================
System uname: 2.6.17 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.15
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/sha
re/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/gen
eric/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sand
box sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://gent
oo.inode.at/source/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ rsync://mirrors.
sec.informatik.tu-darmstadt.de/gentoo"
LANG="de_DE"
LC_ALL="de_DE"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress                                             --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d                                            istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 acpi alsa apache2 apm avi berkdb bitmap-fonts bzlib cdr cli                                             crypt cups divx4linux dri dv dvd dvdread eds emboss encode fame flac foomaticdb                                             fortran ftp gdbm gif gimpprint gpg gpm gstreamer gtk gtk2 imagemagick imlib ipv                                            6 isdnlog jpeg kde libg++ libwww lirc lm_sensors mad mikmod mmx mng motif mozill                                            a mp3 mpeg mythtv ncurses nptl nvidia ogg opengl oss other_var1 other_var2 pam p                                            cre pdflib perl pic png ppds pppd python qt qt3 qt4 quicktime readline reflectio                                            n scanner sdl session spell spl sse ssl subtitles svg swat tcpd tetex truetype t                                            ruetype-fonts type1-fonts udev usb vorbis win32codecs xine xml xmms xorg xv xvid                                             zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA                                            _OPTS