Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335394 - dev-perl/PDL does not build TriD module despite presence of opengl
Summary: dev-perl/PDL does not build TriD module despite presence of opengl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 12:06 UTC by is
Modified: 2012-06-16 20:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description is 2010-08-31 12:06:46 UTC
I would like to install PDL with the triD graphics extensions, but it won't build the module despite the presence of the dependencies. PDL works fine otherwise.

Reproducible: Always

Steps to Reproduce:
1. emerge PDL
2.
3.




There are these lines in the ebuild:

        # This 'fix' breaks compiles for non-opengl users
        #if ! use opengl ; then
        #       sed -e "s:WITH_3D => undef:WITH_3D => 0:" \
        #               ${FILESDIR}/perldl.conf > ${S}/perldl.conf
        #fi

It would be great if this could be fixed or is there some workaround, at least?
Comment 1 is 2010-08-31 12:08:03 UTC
emerge --info 
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.33-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r2-x86_64-Intel-R-_Xeon-R-_CPU_W3520_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 31 Aug 2010 09:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer -msse4 -msse4.1 -msse4.2   -mcx16 -msahf"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer -msse4 -msse4.1 -msse4.2   -mcx16 -msahf"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.wheel.sk/ http://gentoo.supp.name/ ftp://gentoo.wheel.sk/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de pt es"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 badval bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups custom-cflags cxx dbus dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gdbm gif gimp gnutls gpm gsl gtk gtk2 hal iconv imagemagick ipv6 ithreads jpeg kpathsea kqemu kvm latex lcms libffi libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf pdl perl png postgres postgresql ppds pppd python qt3support quota readline reflection rpc sdl session spell spl sse sse2 ssh ssl startup-notification svg sysfs syslog tcpd threads tiff truetype ucps unicode usb vorbis wxwidgets x x264 xcb xcomposite xfig xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de pt es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2010-09-01 13:31:31 UTC
I think the problem was packaging http://search.cpan.org/dist/OpenGL/
Comment 3 Juergen Rose 2010-09-03 18:54:02 UTC
I have the same issue. opengl is set as USE flag in /etc/make.conf.  root@moose:/usr/local/portage/sci-physics/swamis(82)# grep -C2 opengl /etc/make.conf
     ocaml octave odbc ogdi ogg ole
     openexr
     opengl
     overview
     pae
PDL-2.4.7.tar.gz contains TriD.pm but it is not installed:
root@moose:/usr/local/portage/sci-physics/swamis(84)# equery f PDL | grep TriD
/usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/PDL/Demos/TkTriD_demo.pm
/usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/PDL/Demos/TriD1.pm
/usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/PDL/Demos/TriD2.pm
/usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi/PDL/Demos/TriDGallery.pm

I would also like to ask, if there is a workaround?
Comment 4 is 2010-09-07 12:48:43 UTC
Ok, I found an issue:

g-cpan -i OpenGL does not install. 

>>> Emerging (1 of 1) perl-gcpan/OpenGL-0.63 from unknown repo
 * OpenGL-0.63.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                          [ ok ]
 * CPV:  perl-gcpan/OpenGL-0.63
 * REPO: 
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
>>> Unpacking source...
>>> Unpacking OpenGL-0.63.tar.gz to /var/tmp/portage/perl-gcpan/OpenGL-0.63/work
>>> Source unpacked in /var/tmp/portage/perl-gcpan/OpenGL-0.63/work
>>> Preparing source in /var/tmp/portage/perl-gcpan/OpenGL-0.63/work/OpenGL-0.63 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/perl-gcpan/OpenGL-0.63/work/OpenGL-0.63 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/perl-gcpan/OpenGL-0.63/image/
No protocol specified
freeglut (./glversion): failed to open display ':0.0'
make: *** [glversion.txt] Error 1
>>> Source configured.
>>> Compiling source in /var/tmp/portage/perl-gcpan/OpenGL-0.63/work/OpenGL-0.63 ...
>>> Source compiled.
>>> Test phase [not enabled]: perl-gcpan/OpenGL-0.63

>>> Install OpenGL-0.63 into /var/tmp/portage/perl-gcpan/OpenGL-0.63/image/ category perl-gcpan
>>> Completed installing OpenGL-0.63 into /var/tmp/portage/perl-gcpan/OpenGL-0.63/image/


>>> Installing (1 of 1) perl-gcpan/OpenGL-0.63


Instead of terminating, it apparently completed the merge successfully, although nothing is installed.

Something went silently wrong, obviously, without complaining. I compiled it mannually, and I can load OpenGL and make test works. 

However, it does not install PDL with 3D support.
Comment 5 is 2011-03-08 13:20:35 UTC
bump, it's about 6 months old and still no comment.
Comment 6 is 2011-03-08 14:03:33 UTC
(In reply to comment #5)
> bump, it's about 6 months old and still no comment.

to update:

The reason was sandbox and permissions to access X. I had to disable access control and FEATURES="-sandbox -usersandbox -userpriv". Finally I had OpenGL.

TriD is disabled in the ebuild, I hacked it and set WITH_3D=1, but that is as unsatisfactory as the current state.
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2012-06-16 20:14:16 UTC
done in PDL-2.4.11, with a dependency on dev-perl/OpenGL