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.
*** Bug 114687 has been marked as a duplicate of this bug. ***
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?
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
FYI, xmkmf is moving into imake package for the next RC.
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.
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
found XvMClib.h in x11-libs/libXvMC, still doesn't compile.
*** Bug 117197 has been marked as a duplicate of this bug. ***
New stop error after emerging gccmakedep: make: *** No rule to make target `src/libXNVCtrl/libXNVCtrl.a', needed by `nvidia-settings'. Stop.
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 ...
Adding myself to CC... sorry I forgot to do it with that comment...
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.
*** Bug 114649 has been marked as a duplicate of this bug. ***
Patch is fine, now it works. Well done! :)
Patch to r3 works fine here too.
(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
Does the r3 ebuild works also for non-modular-X??
Can we get this into portage, please? Been over a month.
patch works here... maybe add gccmakedep and imake as deps
merwan kashouty: imake+gccmakedep are already in the deps in the patch.
Driver guys, can somebody get this in? We're the x11 people, we should be setting an example for everyone else.
Done. Sorry for the delay. nvidia-settings-1.0.20051122-r3.ebuild checked in to CVS.
It would probably be a good thing to add dependencies for imake and gccmakedep, or else it will not compile.
(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.
I see imake and gccmakedep in the DEPEND section. Do these have the wrong conditions on them?
(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?
Robin, Why were the DEPENDs done that way?
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.
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