Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430844 - sci-visualization/grace finds wrong X11 during configure
Summary: sci-visualization/grace finds wrong X11 during configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 23:34 UTC by Johan Hattne
Modified: 2012-09-30 10:54 UTC (History)
0 users

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 Johan Hattne 2012-08-10 23:34:14 UTC
While configuring sci-visualization/grace in prefix running on a RHEL 5.8 system, the configure script picks the host system's X11 installation, and--in this particular instance--subsequently fails due to missing Motif implementation

...
checking for X... libraries /usr/lib64, headers checking whether -R must be followed by a space... neither workschecking for gethostbyname... yeschecking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for _XEditResCheckMessages in -lXmu... yes
checking for main in -lXp... nochecking for XpmCreatePixmapFromData in -lXpm... yes
checking xpm.h usability... nochecking xpm.h presence... no
checking for xpm.h... nochecking X11/xpm.h usability... yes
checking X11/xpm.h presence... yeschecking for X11/xpm.h... yes
checking for a Motif >= 1002 compatible API... noconfigure: error: M*tif has not been found
...

This can be fixed by adding these two lines to the econf invocation in src_configure()

  --x-includes="${EPREFIX}"/usr/include \
  --x-libraries="${EPREFIX}"/usr/$(get_libdir) \

emerge --info as follows

Portage 2.2.01.20796-prefix (prefix/linux/amd64, gcc-4.6.3, unavailable, 2.6.18-308.8.2.el5 x86_64)
=================================================================
System uname: Linux-2.6.18-308.8.2.el5-x86_64-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-redhat-5.8-Tikanga
Timestamp of tree: Fri, 10 Aug 2012 17:26:09 +0000
app-shells/bash:          4.2_p36::gentoo_prefix
dev-lang/python:          2.7.3-r2::gentoo_prefix
dev-util/cmake:           2.8.8-r3::gentoo_prefix
dev-util/pkgconfig:       0.27::gentoo_prefix
sys-devel/autoconf:       2.69::gentoo_prefix
sys-devel/automake:       1.12.2::gentoo_prefix
sys-devel/binutils:       2.22-r1::gentoo_prefix
sys-devel/gcc:            4.6.3::gentoo_prefix
sys-devel/gcc-config:     1.5-r2::gentoo_prefix
sys-devel/libtool:        2.4.2::gentoo_prefix
sys-devel/make:           3.82::gentoo_prefix
sys-kernel/linux-headers: 3.5::gentoo_prefix (virtual/os-headers)
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/reg/neh/home/hattne/gentoo/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j16"
PKGDIR="/reg/neh/home/hattne/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/reg/neh/home/hattne/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/hattne"
PORTDIR="/reg/neh/home/hattne/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl openmp pcre pppd prefix readline session sse sse2 ssl tcpd unicode 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fabian Groffen gentoo-dev 2012-09-30 10:54:25 UTC
committed, thanks