Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336435 - dev-lang/lua-5.1.4-r[46] won't find packages in ${EPREFIX}/usr
Summary: dev-lang/lua-5.1.4-r[46] won't find packages in ${EPREFIX}/usr
Status: RESOLVED FIXED
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: 2010-09-08 12:23 UTC by Florian Ermisch
Modified: 2010-09-08 13:20 UTC (History)
0 users

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


Attachments
mentioned patch for dev-lang/lua/lua-5.1.4-r6.ebuild (lua-5.1.4-r6_search_prefix.patch,580 bytes, patch)
2010-09-08 12:27 UTC, Florian Ermisch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Ermisch 2010-09-08 12:23:20 UTC
the ebuild only modifies etc/lua.pc to make lua find packages in ${EPREFIX}/usr ("# We want packages to find our things...").
I had to extend this section in the ebuild to also modify src/luaconf.h on my opensolaris machines because $EPREFIX/usr/bin/lua was still looking in /usr/local instead of $EPREFIX/usr.
patch follows.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-lang/lua-5.1.4-r[46]
2. ${EPREFIX}/usr/bin/lua -l foo

Actual Results:  
$EPREFIX/usr/bin/lua: module 'foo' not found:
        no field package.preload['socket']
        no file './socket.lua'
        no file '/usr/local/share/lua/5.1/socket.lua'
        no file '/usr/local/share/lua/5.1/socket/init.lua'
        no file '/usr/local/lib/lua/5.1/socket.lua'
        no file '/usr/local/lib/lua/5.1/socket/init.lua'
        no file './socket.so'
        no file '/usr/local/lib/lua/5.1/socket.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: ?
        [C]: ?


Expected Results:  
/opt/gentoo/usr/bin/lua -l foo
/opt/gentoo/usr/bin/lua: module 'foo' not found:
        no field package.preload['foo']
        no file './foo.lua'
        no file '/opt/gentoo/usr/share/lua/5.1/foo.lua'
        no file '/opt/gentoo/usr/share/lua/5.1/foo/init.lua'
        no file '/opt/gentoo/usr/lib/lua/5.1/foo.lua'
        no file '/opt/gentoo/usr/lib/lua/5.1/foo/init.lua'
        no file '/usr/share/lua/5.1/foo.lua'
        no file '/usr/share/lua/5.1/foo/init.lua'
        no file './foo.so'
        no file '/opt/gentoo/usr/lib/lua/5.1/foo.so'
        no file '/usr/lib/lua/5.1/foo.so'
        no file '/opt/gentoo/usr/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: ?
        [C]: ?


Portage 2.2.01.15553-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, 23 Aug 2010 09:09:48 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1, 2.20.51.0.4
sys-devel/gcc:       4.2.4-r01.2, 4.4.3-r2, 4.4.4-r1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
ACCEPT_KEYWORDS="~x86-solaris"
ACCEPT_LICENSE="* -@EULA"
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="/opt/gentoo/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg"
FEATURES="assume-digests buildpkg collision-protect distlocks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS=""
LINGUAS="de en"
MAKEOPTS="-j4"
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
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="/opt/gentoo/tmp"
PORTDIR="/opt/gentoo/usr/portage"
PORTDIR_OVERLAY="/opt/gentoo/local/portage/etalas_prefix"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="cracklib crypt cxx encode logrotate lua lzma modules multislot ncurses nls openssl prefix readline ssl threads unicode x86-solaris 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 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="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Florian Ermisch 2010-09-08 12:27:14 UTC
Created attachment 246450 [details, diff]
mentioned patch for dev-lang/lua/lua-5.1.4-r6.ebuild
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-09-08 13:20:48 UTC
fixed, thanks.