Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476998 - (prefix) dev-lang/ghc-7.6.3 - src_prepare(): sed: can't read /tmp/portage/dev-lang/ghc-7.6.3/work/usr/lib/ghc-7.6.3/package.conf.d/*: No such file or directory
Summary: (prefix) dev-lang/ghc-7.6.3 - src_prepare(): sed: can't read /tmp/portage/dev...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 01:57 UTC by Christoph Junghans (RETIRED)
Modified: 2013-07-19 16:00 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 Christoph Junghans (RETIRED) gentoo-dev 2013-07-16 01:57:46 UTC
>>> Failed to emerge dev-lang/ghc-7.6.3, Log file:
>>>  '/tmp/portage/dev-lang/ghc-7.6.3/temp/build.log'
>>> Jobs: 81 of 117 complete, 1 failed              Load avg: 0.86, 0.41, 0.86
 * Package:    dev-lang/ghc-7.6.3
 * Repository: gentoo_prefix
 * Maintainer: haskell@gentoo.org
 * USE:        amd64 elibc_glibc gmp kernel_linux prefix userland_GNU
 * FEATURES:   preserve-libs
>>> Unpacking source...
>>> Unpacking ghc-7.6.3-src.tar.bz2 to /tmp/portage/dev-lang/ghc-7.6.3/work
>>> Unpacking ghc-bin-7.6.3-amd64.tbz2 to /tmp/portage/dev-lang/ghc-7.6.3/work

bzip2: /tmp/portage/dev-lang/ghc-7.6.3/distdir/ghc-bin-7.6.3-amd64.tbz2: trailing garbage after EOF ignored
>>> Source unpacked in /tmp/portage/dev-lang/ghc-7.6.3/work
>>> Preparing source in /tmp/portage/dev-lang/ghc-7.6.3/work/ghc-7.6.3 ...
 * Fallback PaX marking -m with scanelf
 *      /tmp/portage/dev-lang/ghc-7.6.3/work/usr/lib/ghc-7.6.3/ghc
sed: can't read /tmp/portage/dev-lang/ghc-7.6.3/work/usr/lib/ghc-7.6.3/package.conf.d/*: No such file or directory
 * ERROR: dev-lang/ghc-7.6.3 failed (prepare phase):
 *   path relocation failed for '/tmp/portage/dev-lang/ghc-7.6.3/work/usr/lib/ghc-7.6.3/package.conf.d/*'
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called call-ebuildshell 'src_prepare'
 *   environment, line  945:  Called src_prepare
 *   environment, line 4186:  Called relocate_ghc '/tmp/portage/dev-lang/ghc-7.6.3/work'
 *   environment, line 3900:  Called relocate_path '/usr' '/tmp/portage/dev-lang/ghc-7.6.3/work/usr' '/tmp/portage/dev-lang/ghc-7.6.3/work/usr/bin/ghc-7.6.3' '/tmp/portage/dev-lang/ghc-7.6.3/work/usr/bin/ghci-7.6.3' '/tmp/portage/dev-lang/ghc-7.6.3/work/usr/bin/ghc-pkg-7.6.3' '/tmp/portage/dev-lang/ghc-7.6.3/work/usr/bin/hsc2hs' '/tmp/portage/dev-lang/ghc-7.6.3/work/usr/lib/ghc-7.6.3/package.conf.d/*'
 *   environment, line 3917:  Called die
 * The specific snippet of code:
 *           sed -i -e "s|$from|$to|g" "$file" || die "path relocation failed for '$file'";
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/ghc-7.6.3'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ghc-7.6.3'`.
 * The complete build log is located at '/tmp/portage/dev-lang/ghc-7.6.3/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-lang/ghc-7.6.3/temp/environment'.
 * Working directory: '/tmp/portage/dev-lang/ghc-7.6.3/work/ghc-7.6.3'
 * S: '/tmp/portage/dev-lang/ghc-7.6.3/work/ghc-7.6.3'


long story short, get_libdir = lib on prefix, but on ghc-bin-7.6.3-amd64.tbz2 contains /usr/lib64.
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2013-07-16 01:57:57 UTC
Portage 2.2.01.22124-prefix (prefix/linux/amd64, gcc-4.7.2, unavailable, 3.8.13-gentoo x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:     7872900 total,    104116 free
KiB Swap:    8912892 total,   8912892 free
Timestamp of tree: Mon, 15 Jul 2013 00:06:21 +0000
ld GNU ld (GNU Binutils) 2.23
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p39-r1
dev-lang/python:          2.7.5, 3.2.3-r2, 3.3.2
dev-util/pkgconfig:       0.28
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8-r00.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
Repositories:

gentoo_prefix
    location: /home/christoph/prefix/usr/portage
    sync: rsync://rsync.prefix.freens.org/gentoo-portage-prefix
    priority: -1000
    aliases: gentoo

cj-overlay
    location: /var/lib/overlays/christoph
    masters: gentoo_prefix
    priority: 0

science
    location: /var/lib/overlays/science
    masters: gentoo_prefix
    priority: 1

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA @EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ALSA_CARDS="hda-intel"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode python_targets_python3_2 python_targets_python2_7 multilib multilib"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class"
CONFIGURE_EPREFIX="/home/christoph/prefix"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DEFAULT_ABI="amd64"
DEFAULT_PATH="/home/christoph/prefix/usr/sbin:/home/christoph/prefix/usr/bin:/home/christoph/prefix/sbin:/home/christoph/prefix/bin"
DISTDIR="/home/christoph/prefix/usr/portage/distfiles"
ECHANGELOG_USER="Christoph Junghans <ottxor@gentoo.org>"
EDITOR="/home/christoph/prefix/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose --with-bdeps=y --jobs=5 --load-average=5 --autounmask-write=y"
EMERGE_WARNING_DELAY="10"
EPREFIX="/home/christoph/prefix"
EROOT="/home/christoph/prefix/"
EXTRA_PATH="/usr/bin:/bin"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp -P \${port} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
GPG_AGENT_INFO="/tmp/gpg-2rw9Uv/S.gpg-agent:3475:1"
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"
GRUB_PLATFORMS=""
HOME="/home/christoph"
INFOPATH="/home/christoph/prefix/usr/share/info:/home/christoph/prefix/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.2/info:/home/christoph/prefix//usr/share/binutils-data/x86_64-pc-linux-gnu/2.23/info"
INPUT_DEVICES="evdev"
IUSE_IMPLICIT="prefix"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_n32="lib32"
LIBDIR_n64="lib64"
LIBDIR_o32="lib"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MACOSSANDBOX_PATHS="/dev/fd/ /private/tmp/ /private/var/tmp/ @@PORTAGE_BUILDDIR@@/ @@PORTAGE_ACTUAL_DISTDIR@@/"
MACOSSANDBOX_PATHS_CONTENT_ONLY="/dev/null /dev/dtracehelper /dev/tty /private/var/run/syslog"
MAKEOPTS="-j5"
MANPAGER="vimmanless"
MANPATH="/home/christoph/prefix/usr/local/share/man:/home/christoph/prefix/usr/share/man:/home/christoph/prefix/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.2/man:/home/christoph/prefix//usr/share/binutils-data/x86_64-pc-linux-gnu/2.23/man:/usr/share/man"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OFFICE_IMPLEMENTATION="libreoffice"
PAGER="vimless"
PATH="/home/christoph/bin:/home/christoph/prefix/usr/local/bin:/home/christoph/prefix/usr/bin:/home/christoph/prefix/bin:/home/christoph/prefix/opt/bin:/home/christoph/prefix/usr/sbin:/home/christoph/prefix/sbin:/home/christoph/prefix/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2:/usr/bin:/bin"
PERLDOC_PAGER="vimmanless"
PHP_TARGETS="php5-4"
PKGDIR="/home/christoph/prefix/usr/portage/packages"
PKG_CONFIG_PATH="/home/christoph/prefix/usr/lib/pkgconfig:/home/christoph/prefix/usr/share/pkgconfig"
PORTAGE_ARCHLIST="hppa-hpux hppa x86-cygwin x64-macos x64-openbsd mips ppc-macos amd64 amd64-linux x86-macos alpha sh x86 amd64-fbsd x64-freebsd ppc64 sparc64-freebsd x86-netbsd x86-fbsd ia64-hpux ppc-openbsd x64-solaris m68k-mint sparc-fbsd ppc s390 sparc64-solaris x86-solaris ppc-aix x86-linux ppc64-linux arm-linux ia64-linux x86-winnt m68k x86-freebsd sparc-solaris sparc x86-interix arm ia64 x86-openbsd"
PORTAGE_BIN_PATH="/home/christoph/prefix/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/home/christoph/prefix/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/home/christoph/prefix/var/cache/edb/dep"
PORTAGE_ELOG_CLASS="warn error info log qa"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="christoph@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="christoph"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="100"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_GROUP="users"
PORTAGE_INST_GID="100"
PORTAGE_INST_UID="1000"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_NICENESS="19"
PORTAGE_OVERRIDE_EPREFIX="/home/christoph/prefix"
PORTAGE_PYM_PATH="/home/christoph/prefix/usr/lib/portage/pym"
PORTAGE_ROOT_USER="christoph"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/home/christoph/prefix/var/tmp"
PORTAGE_USER="christoph"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="security.*"
PORTDIR="/home/christoph/prefix/usr/portage"
PORTDIR_OVERLAY="/var/lib/overlays/christoph /var/lib/overlays/science"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PWD="/home/christoph"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_2"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/home/christoph/prefix/opt/bin:/home/christoph/prefix/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2"
RPMDIR="/home/christoph/prefix/usr/portage/rpm"
RUBY_TARGETS="ruby19 ruby18"
SHELL="/home/christoph/prefix/bin/bash"
SHLVL="1"
SSH_AGENT_PID="3635"
SSH_AUTH_SOCK="/tmp/ssh-UnIXqzPh3634/agent.3634"
SYMLINK_LIB=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
TERM="xterm"
UNINSTALL_IGNORE="/lib/modules/*"
USE="X amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap ncurses nls nptl openmp pcre prefix readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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"
USER="christoph"
USERLAND="GNU"
USE_EXPAND="ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MISDN_CARDS MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_X86 CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Cygwin Darwin FreeBSD freemint HPUX Interix linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
VIDEO_CARDS="intel"
XDG_DATA_DIRS="/home/christoph/prefix/usr/share"
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"
_="/home/christoph/prefix/usr/bin/emerge"
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2013-07-16 16:19:48 UTC
It's a known issue of broken USE=-ghcbootstrap
due to $(get_libdir) being different on amd64 and amd64-prefix.

We heed to plug a workaround for it to ghc ebuild.
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2013-07-16 23:32:09 UTC
(In reply to Sergei Trofimovich from comment #2)
> It's a known issue of broken USE=-ghcbootstrap
> due to $(get_libdir) being different on amd64 and amd64-prefix.
> 
> We heed to plug a workaround for it to ghc ebuild.
Couldn't be force ghcbootstrap on prefix?

Or we just add a hack like:
[[ $(echo /usr/lib*) != /usr/$(get_libdir) ]] && ln -s /usr/lib* /usr/$(get_libdir)
(This assumes that there is only one lib*, but that should be true anyhow.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2013-07-17 05:35:41 UTC
(In reply to Christoph Junghans from comment #3)
> (In reply to Sergei Trofimovich from comment #2)
> > It's a known issue of broken USE=-ghcbootstrap
> > due to $(get_libdir) being different on amd64 and amd64-prefix.
> > 
> > We heed to plug a workaround for it to ghc ebuild.
> Couldn't be force ghcbootstrap on prefix?



> Or we just add a hack like:
> [[ $(echo /usr/lib*) != /usr/$(get_libdir) ]] && ln -s /usr/lib*
> /usr/$(get_libdir)
> (This assumes that there is only one lib*, but that should be true anyhow.

The problem is with our ghc's binary, which has a few of hardcoded paths
to ${WORKDIR}/usr/$(get_libdir) from non-prefix host it is built. (relocalte_ghc() function)

symlink somewhere in ${WORKDIR}/usr/lib* -> ${WORKDIR}/usr/$(get_libdir)
right after unpack might work for building from source,
but not for USE=binary case (when we install unpacked binary as-is)

I'll try to post a patch today to unbreak at least "USE=-binary" case.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2013-07-18 12:05:26 UTC
Seems it was not that scary in the end.
I've pushed fiddling with lib / lib64 to haskell overlay first:

    https://github.com/gentoo-haskell/gentoo-haskell/commit/6f21be00f131b79363552a6c2a1602152b5a6726

It seems to work fine for both USE=binary and stock builds here on fresh amd64-linux.

If it happens to work for you I'll pull it to gx86 as well.

Thanks!
Comment 6 Christoph Junghans (RETIRED) gentoo-dev 2013-07-19 01:30:50 UTC
(In reply to Sergei Trofimovich from comment #5)
> If it happens to work for you I'll pull it to gx86 as well.
Works for me.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2013-07-19 10:22:49 UTC
(In reply to Christoph Junghans from comment #6)
> (In reply to Sergei Trofimovich from comment #5)
> > If it happens to work for you I'll pull it to gx86 as well.
> Works for me.

Pushed as:

> 19 Jul 2013; Sergei Trofimovich <slyfox@gentoo.org> ghc-7.6.3.ebuild:
> Fix building on systems where libdir differs from the one we have built GHC
> (it case of bug #476998 it was an amd64-linux). Thanks to tamiko and Christoph
> Junghans.

Thank you!
Comment 8 Christoph Junghans (RETIRED) gentoo-dev 2013-07-19 16:00:51 UTC
Btw, I realized ghc needs more than 3GB to build, so I guess a check using check-reqs.eclass should be added.