right now I have no idea if it actually works because there are over 100 packages left to complete my xorg-x11. I've found the patch on [dri-devel] ( http://www.opensubscriber.com/message/dri-devel@lists.sourceforge.net/9399556.html ), patched the ebuild to include the patch and it build fine. patch and ebuild follow. Reproducible: Always Steps to Reproduce: 1. download the patch 2. modify ebuild to include the patch 3. emerge libdrm Actual Results: x11-libs/libdrm builds on ~x86-solaris Portage 2.2.00.12565-prefix (prefix/sunos/solaris/5.11/x86, gcc-4.2.4, unavailable, 5.11 i86pc) ================================================================= System uname: Solaris-2.11-i86pc-i386-32bit-ELF Timestamp of tree: Mon, 02 Feb 2009 19:14:00 +0000 app-shells/bash: 3.2_p48 dev-lang/python: 2.5.4-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2-r00.1 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r04.6 sys-devel/libtool: 1.5.26 ACCEPT_KEYWORDS="x86-solaris ~x86-solaris" CBUILD="i386-pc-solaris2.11" CFLAGS="-O2 -pipe" CHOST="i386-pc-solaris2.11" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/export/home/portage/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--usepkg" EPREFIX="/export/home/portage" FEATURES="buildpkg ccache collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs preserved-libs protect-owned sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE.UTF-8" LDFLAGS="" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/export/home/portage/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/export/home/portage/var/tmp" PORTDIR="/export/home/portage/usr/portage" PORTDIR_OVERLAY="/export/home/portage/usr/local/portage" SYNC="svn+http://overlays.gentoo.org/svn/proj/alt/trunk/prefix-overlay" USE="cracklib midi ncurses nls prefix readline socks5 ssl tordns unicode x86-solaris xcb zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vesa radeon none" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 180789 [details, diff] solaris-drm-port.patch here's the patch...
Created attachment 180790 [details] patched ebuild: libdrm-2.4.4-r1.ebuild ... and here comes the ebuild
so does it work?
no, didn't get my own X running by now. I've got some nasty linking problems (RPATH is not set correctly when binaries are build by portage) and probably X is also affected. I'll be back, I promise ;)
Ok, we don't mind adding something like this to the tree. I just don't want to add something that hasn't been tested. Thanks.
I just happened to find this and I'll just pipe in to point out that from xorg-server 1.5, libdrm is required to get the software opengl renderer. It is now built as a DRI driver and is no longer a special library (from the server's POV). So if you want X with software OpenGL/GLX support, you'll need libdrm :) Cheers
instead of thinking of single packages one should import the whole patchset from the"Fully Open X Project" project on http://opensolaris.org/os/project/fox/ . (...but first I have to get iSCSI working so I can access my ~100GB on a ext3 formated firefwire drive...)
(In reply to comment #5) > Ok, we don't mind adding something like this to the tree. I just don't want to > add something that hasn't been tested. Thanks. > still holds. thx