Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257473 - patch to make x11-libs/libdrm build (maybe even work) on solaris
Summary: patch to make x11-libs/libdrm build (maybe even work) on solaris
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Solaris
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 10:46 UTC by Florian Ermisch
Modified: 2010-01-27 15:07 UTC (History)
0 users

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


Attachments
solaris-drm-port.patch (solaris-drm-port.patch,8.95 KB, patch)
2009-02-03 10:48 UTC, Florian Ermisch
Details | Diff
patched ebuild: libdrm-2.4.4-r1.ebuild (libdrm-2.4.4-r1.ebuild,995 bytes, text/plain)
2009-02-03 10:49 UTC, Florian Ermisch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Ermisch 2009-02-03 10:46:00 UTC
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
Comment 1 Florian Ermisch 2009-02-03 10:48:18 UTC
Created attachment 180789 [details, diff]
solaris-drm-port.patch

here's the patch...
Comment 2 Florian Ermisch 2009-02-03 10:49:30 UTC
Created attachment 180790 [details]
patched ebuild: libdrm-2.4.4-r1.ebuild

... and here comes the ebuild
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-13 15:31:10 UTC
so does it work?
Comment 4 Florian Ermisch 2009-02-14 09:51:54 UTC
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 ;)
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-19 23:02:14 UTC
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.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2009-02-25 12:50:32 UTC
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
Comment 7 Florian Ermisch 2009-03-10 07:34:51 UTC
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...)
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-01-27 15:07:23 UTC
(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