Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 168242 Details for
Bug 241680
x11-misc/revelation-0.4.11 - configure: error: failed to find module bonobo
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The ebuild environment file
environment (text/plain), 56.20 KB, created by
Zhang Weiwu
on 2008-10-13 02:16:03 UTC
(
hide
)
Description:
The ebuild environment file
Filename:
MIME Type:
Creator:
Zhang Weiwu
Created:
2008-10-13 02:16:03 UTC
Size:
56.20 KB
patch
obsolete
>ALSA_CARDS='aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx' >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' >ANT_HOME=/usr/share/ant-core >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' >ARCH=ppc >CBUILD=powerpc-unknown-linux-gnu >CDEFINE_default=__unix__ >CFLAGS='-O2 -mcpu=G3 -fno-strict-aliasing -pipe' >CFLAGS_default= >CHOST=powerpc-unknown-linux-gnu >CHOST_default=powerpc-unknown-linux-gnu >CLASSPATH=. >CTARGET_default=powerpc-unknown-linux-gnu >CVS_RSH=ssh >CXXFLAGS='-O2 -mcpu=G3 -fno-strict-aliasing -pipe' >DEFAULT_ABI=default >DEPEND=$'dev-python/gnome-python-desktop\n\tdev-python/pygtk\n\tdev-python/pycrypto\n\tsys-libs/cracklib\n\tdev-python/gnome-python-extras >=sys-apps/sed-4' >DESCRIPTION='A password manager for GNOME' >DESTTREE=/usr >DIROPTIONS=-m0755 >EAPI= >ELIBC=glibc >ELIBTOOL_VERSION=2.0.2 >ELTCONF= >ELT_APPLIED_PATCHES= >ELT_LTMAIN_SH= >ELT_PATCH_DIR=/usr/portage/eclass/ELT-patches >EXEOPTIONS=-m0755 >FEATURES='distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch' >G2CONF= >GCC_SPECS= >GCONFTOOL_BIN=/usr/bin/gconftool-2 >GDK_USE_XFT=1 >GENERATION=2 >GNOME_TARBALL_SUFFIX=bz2 >GUILE_LOAD_PATH=/usr/share/guile/1.8 >HOMEPAGE=http://oss.codepoet.no/revelation/ >INHERITED='toolchain-funcs python multilib alternatives gnome2-utils gnome2 gnome.org fdo-mime libtool' >INPUT_DEVICES='joystick synaptics keyboard mouse evdev' >INSDESTTREE= >INSOPTIONS=-m0644 >IUSE=' debug' >JAVAC=/opt/ibm-jdk-bin-1.4.2.11/bin/javac >JAVA_HOME=/opt/ibm-jdk-bin-1.4.2.11 >JDK_HOME=/opt/ibm-jdk-bin-1.4.2.11 >KERNEL=linux >KERNEL_ABI=default >KEYWORDS='amd64 ppc x86' >KV=2.6.26-gentoo-r1 >LANG=en_US.UTF-8 >LCD_DEVICES='bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text' >LC_CTYPE=en_US.UTF-8 >LDFLAGS_default= >LIBDIR_default=lib >LIBOPTIONS=-m0644 >LICENSE=GPL-2 >LINGUAS='de en_US' >MULTILIB_ABIS=default >OPENGL_PROFILE=xorg-x11 >PDEPEND=' ' >PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig >PRELINK_PATH_MASK='/usr/lib/gstreamer-0.10:/lib/modules:/usr/lib/locale:/usr/lib/wine:/usr/lib/valgrind:*.la:*.png:*.py:*.pl:*.pm:*.sh:*.xml:*.xslt:*.a:*.js' >PROFILE_ONLY_VARIABLES='ARCH ELIBC KERNEL USERLAND' >PROVIDE= >PVP=([0]="0" [1]="4" [2]="11") >PYTHONPATH=/usr/lib/portage/pym >PYTHON_DONTCOMPILE=1 >QMAKESPEC=linux-g++ >QTDIR=/usr/qt/3 >RDEPEND=$'dev-python/gnome-python-desktop\n\tdev-python/pygtk\n\tdev-python/pycrypto\n\tsys-libs/cracklib\n\tdev-python/gnome-python-extras ' >RESTRICT= >R_HOME=/usr/lib/R >S=/home/tmp/portage/x11-misc/revelation-0.4.11/work/revelation-0.4.11 >SANDBOX_DENY=/etc/ld.so.preload >SANDBOX_PREDICT=:/dev/console:/dev/random:/home/tmp/portage/x11-misc/revelation-0.4.11/homedir/.:/proc/self/maps:/usr/lib/portage/pym:/usr/lib/python2.0/:/usr/lib/python2.1/:/usr/lib/python2.2/:/usr/lib/python2.3/:/usr/lib/python2.4/:/usr/lib/python2.5/:/usr/lib/python3.0/:/var/cache/edb/dep:/var/db/aliases.db:/var/db/ethers.db:/var/db/group.db:/var/db/hosts.db:/var/db/netgroup.db:/var/db/netmasks.db:/var/db/networks.db:/var/db/passwd.db:/var/db/protocols.db:/var/db/rpc.db:/var/db/services.db: >SANDBOX_READ=:/:/dev/shm:/dev/stdin:/home/tmp: >SANDBOX_WRITE=:/dev/console:/dev/fd:/dev/null:/dev/pts/:/dev/pty:/dev/shm:/dev/shm/ngpt:/dev/stderr:/dev/stdout:/dev/tts:/dev/tty:/dev/vc/:/dev/zero:/home/tmp:/home/tmp/portage/x11-misc/revelation-0.4.11/homedir/.bash_history:/home/tmp/portage/x11-misc/revelation-0.4.11/homedir/.gconfd/lock:/proc/self/fd:/tmp:/tmp/:/usr/lib32/cf:/usr/lib32/conftest:/usr/lib64/cf:/usr/lib64/conftest:/usr/lib/cf:/usr/lib/conftest:/usr/tmp/cf:/usr/tmp/conftest:/var/log/scrollkeeper.log:/var/tmp:/var/tmp/: >SANE_CONFIG_DIR=/etc/sane.d >SCHEME_LIBRARY_PATH=/usr/share/slib/ >SCROLLKEEPER_DIR=/var/lib/scrollkeeper >SCROLLKEEPER_UPDATE=1 >SCROLLKEEPER_UPDATE_BIN=/usr/bin/scrollkeeper-update >SGML_CATALOG_FILES=/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/xml-docbook-4.4.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/xml-docbook-4.1.2.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/dsssl-docbook-stylesheets.cat >SLOT=0 >SRC_URI=ftp://oss.codepoet.no/revelation/revelation-0.4.11.tar.bz2 >STAGE1_USE='nptl nptlonly unicode' >SUDO_COMMAND='/usr/bin/emerge revelation' >SUDO_GID=100 >SUDO_UID=1005 >SUDO_USER=zhangweiwu >USB_DEVFS_PATH=/dev/bus/usb >USE='elibc_glibc kernel_linux ppc userland_GNU' >USERLAND=GNU >USERNAME=root >USE_EINSTALL= >VIDEO_CARDS=radeon >VMHANDLE=ibm-jdk-bin-1.4 >_=_RC_GET_KV_CACHE >_E_DOCDESTTREE_= >_E_EXEDESTTREE_= >___ECLASS_RECUR_MULTILIB=yes >___ECLASS_RECUR_TOOLCHAIN_FUNCS=yes >_pipestatus='0 0' >conf=revelation-0.4.11-r0 >omf=./src/wrap/Makefile.in >ELT_find_ltmain_sh () >{ > local x=; > local dirlist=; > for x in $(find "${S}" -name 'ltmain.sh'); > do > dirlist="${dirlist} ${x%/*}"; > done; > echo "${dirlist}" >} >ELT_libtool_version () >{ > local ltmain_sh=$1; > local version=; > version=$(eval $(grep -e '^[[:space:]]*VERSION=' "${ltmain_sh}"); echo "${VERSION}"); > [[ -z ${version} ]] && version="0"; > echo "${version}" >} >ELT_try_and_apply_patch () >{ > local ret=0; > local file=$1; > local patch=$2; > if patch -p0 --dry-run "${file}" "${patch}" >&"${T}/elibtool.log"; then > einfo " Applying $(basename "$(dirname "${patch}")")-${patch##*/}.patch ..."; > patch -p0 -g0 --no-backup-if-mismatch "${file}" "${patch}" >&"${T}/elibtool.log"; > ret=$?; > export ELT_APPLIED_PATCHES="${ELT_APPLIED_PATCHES} ${patch##*/}"; > else > ret=1; > fi; > return "${ret}" >} >ELT_walk_patches () >{ > local x=; > local y=; > local ret=1; > local file=$1; > local patch_set=$2; > local patch_dir=; > local rem_int_dep=$3; > if [[ -n ${patch_set} ]]; then > if [[ -d ${ELT_PATCH_DIR}/${patch_set} ]]; then > patch_dir="${ELT_PATCH_DIR}/${patch_set}"; > else > return "${ret}"; > fi; > for x in $(ls -d "${patch_dir}"/* 2> /dev/null | grep -v 'CVS' | sort -r); > do > if [[ -n ${x} && -f ${x} ]]; then > if [[ -n ${rem_int_dep} ]]; then > sed -e "s|@REM_INT_DEP@|${rem_int_dep}|g" ${x} > "${T}/$$.rem_int_deps.patch"; > x="${T}/$$.rem_int_deps.patch"; > fi; > if ELT_try_and_apply_patch "${file}" "${x}"; then > ret=0; > break; > fi; > fi; > done; > fi; > return "${ret}" >} >VER_major () >{ > [[ -z $1 ]] && return 1; > local VER=$@; > echo "${VER%%[^[:digit:]]*}" >} >VER_micro () >{ > [[ -z $1 ]] && return 1; > local VER=$@; > VER=${VER#*.*.}; > echo "${VER%%[^[:digit:]]*}" >} >VER_minor () >{ > [[ -z $1 ]] && return 1; > local VER=$@; > VER=${VER#*.}; > echo "${VER%%[^[:digit:]]*}" >} >VER_to_int () >{ > [[ -z $1 ]] && return 1; > local VER_MAJOR=$(VER_major "$1"); > local VER_MINOR=$(VER_minor "$1"); > local VER_MICRO=$(VER_micro "$1"); > local VER_int=$(( VER_MAJOR * 65536 + VER_MINOR * 256 + VER_MICRO )); > if [[ ${VER_int} -ge 65536 ]]; then > echo "${VER_int}"; > return 0; > fi; > echo 1; > return 1 >} >__python_eclass_test () >{ > __python_version_extract 2.3; > echo -n "2.3 -> PYVER: $PYVER PYVER_MAJOR: $PYVER_MAJOR"; > echo " PYVER_MINOR: $PYVER_MINOR PYVER_MICRO: $PYVER_MICRO"; > __python_version_extract 2.3.4; > echo -n "2.3.4 -> PYVER: $PYVER PYVER_MAJOR: $PYVER_MAJOR"; > echo " PYVER_MINOR: $PYVER_MINOR PYVER_MICRO: $PYVER_MICRO"; > __python_version_extract 2.3.5; > echo -n "2.3.5 -> PYVER: $PYVER PYVER_MAJOR: $PYVER_MAJOR"; > echo " PYVER_MINOR: $PYVER_MINOR PYVER_MICRO: $PYVER_MICRO"; > __python_version_extract 2.4; > echo -n "2.4 -> PYVER: $PYVER PYVER_MAJOR: $PYVER_MAJOR"; > echo " PYVER_MINOR: $PYVER_MINOR PYVER_MICRO: $PYVER_MICRO"; > __python_version_extract 2.5b3; > echo -n "2.5b3 -> PYVER: $PYVER PYVER_MAJOR: $PYVER_MAJOR"; > echo " PYVER_MINOR: $PYVER_MINOR PYVER_MICRO: $PYVER_MICRO" >} >__python_version_extract () >{ > local verstr=$1; > export PYVER_MAJOR=${verstr:0:1}; > export PYVER_MINOR=${verstr:2:1}; > if [ "${verstr:3}x" = ".x" ]; then > export PYVER_MICRO=${verstr:4}; > fi; > export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}" >} >_gcc-install-dir () >{ > echo "$(LC_ALL=C $(tc-getCC) -print-search-dirs 2> /dev/null | awk '$1=="install:" {print $2}')" >} >_gcc-specs-directive_raw () >{ > local cc=$(tc-getCC); > local specfiles=$(LC_ALL=C ${cc} -v 2>&1 | awk '$1=="Reading" {print $NF}'); > ${cc} -dumpspecs 2> /dev/null | cat - ${specfiles} | awk -v directive=$1 'BEGIN { pspec=""; spec=""; outside=1 } >$1=="*"directive":" { pspec=spec; spec=""; outside=0; next } > outside || NF==0 || ( substr($1,1,1)=="*" && substr($1,length($1),1)==":" ) { outside=1; next } > spec=="" && substr($0,1,1)=="+" { spec=pspec " " substr($0,2); next } > { spec=spec $0 } >END { print spec }'; > return 0 >} >_gcc-specs-exists () >{ > [[ -f $(_gcc-install-dir)/$1 ]] >} >alternatives_auto_makesym () >{ > local SYMLINK REGEX ALT myregex; > SYMLINK=$1; > REGEX=$2; > if [ "${REGEX:0:1}" != "/" ]; then > myregex="${SYMLINK%/*}/${REGEX}"; > else > myregex=${REGEX}; > fi; > ALT="$(for i in $(echo ${ROOT}${myregex}); do echo ${i#${ROOT}}; done | sort -r)"; > alternatives_makesym ${SYMLINK} ${ALT} >} >alternatives_makesym () >{ > local ALTERNATIVES=""; > local SYMLINK=""; > local alt pref; > SYMLINK=$1; > pref=$(echo ${ROOT} | sed 's:/$::'); > shift; > ALTERNATIVES=$@; > for alt in ${ALTERNATIVES}; > do > if [ -f "${pref}${alt}" ]; then > if [ "${alt%/*}" = "${SYMLINK%/*}" ]; then > einfo "Linking ${alt} to ${pref}${SYMLINK} (relative)"; > ln -sf ${alt##*/} ${pref}${SYMLINK}; > else > einfo "Linking ${alt} to ${pref}${SYMLINK} (absolute)"; > ln -sf ${pref}${alt} ${pref}${SYMLINK}; > fi; > break; > fi; > done; > if [ ! -L ${pref}${SYMLINK} ]; then > ewarn "Unable to establish ${pref}${SYMLINK} symlink"; > else > if [ ! -f "`dirname ${pref}${SYMLINK}`/`readlink ${pref}${SYMLINK}`" -a ! -f "`readlink ${pref}${SYMLINK}`" ]; then > ewarn "Removing dead symlink ${pref}${SYMLINK}"; > rm -f ${pref}${SYMLINK}; > fi; > fi >} >alternatives_pkg_postinst () >{ > if [ -n "${ALTERNATIVES}" -a -n "${SOURCE}" ]; then > alternatives_makesym ${SOURCE} ${ALTERNATIVES}; > fi >} >alternatives_pkg_postrm () >{ > if [ -n "${ALTERNATIVES}" -a -n "${SOURCE}" ]; then > alternatives_makesym ${SOURCE} ${ALTERNATIVES}; > fi >} >create_ml_includes () >{ > local dest=$1; > shift; > local basedirs=$(create_ml_includes-listdirs "$@"); > create_ml_includes-makedestdirs ${dest} ${basedirs}; > local file; > for file in $(create_ml_includes-allfiles ${basedirs}); > do > ( echo "/* Autogenerated by create_ml_includes() in multilib.eclass */"; > local dir; > for dir in ${basedirs}; > do > if [[ -f ${D}/${dir}/${file} ]]; then > echo ""; > local sym=$(create_ml_includes-sym_for_dir ${dir} "$@"); > if [[ ${sym/=} != "${sym}" ]]; then > echo "#if ${sym}"; > else > if [[ ${sym::1} == "!" ]]; then > echo "#ifndef ${sym:1}"; > else > echo "#ifdef ${sym}"; > fi; > fi; > echo "# include <$(create_ml_includes-absolute ${dir}/${file})>"; > echo "#endif /* ${sym} */"; > fi; > done ) > "${D}/${dest}/${file}"; > done >} >create_ml_includes-absolute () >{ > local dst="$(create_ml_includes-tidy_path $1)"; > dst=(${dst//\// }); > local i; > for ((i=0; i<${#dst[*]}; i++)) > do > [ "${dst[i]}" == "include" ] && break; > done; > local strip_upto=$i; > for ((i=strip_upto+1; i<${#dst[*]}-1; i++)) > do > echo -n ${dst[i]}/; > done; > echo -n ${dst[i]} >} >create_ml_includes-allfiles () >{ > local basedir file; > for basedir in "$@"; > do > for file in $(find "${D}"/${basedir} -type f); > do > echo ${file/${D}\/${basedir}\//}; > done; > done | sort | uniq >} >create_ml_includes-listdirs () >{ > local dirs; > local data; > for data in "$@"; > do > dirs="${dirs} ${data/*:/}"; > done; > echo ${dirs:1} >} >create_ml_includes-makedestdirs () >{ > local dest=$1; > shift; > local basedirs=$@; > dodir ${dest}; > local basedir; > for basedir in ${basedirs}; > do > local dir; > for dir in $(find ${D}/${basedir} -type d); > do > dodir ${dest}/${dir/${D}\/${basedir}/}; > done; > done >} >create_ml_includes-sym_for_dir () >{ > local dir=$1; > shift; > local data; > for data in "$@"; > do > if [[ ${data} == *:${dir} ]]; then > echo ${data/:*/}; > return 0; > fi; > done; > echo "Shouldn't be here -- create_ml_includes-sym_for_dir $1 $@"; > exit 1 >} >create_ml_includes-tidy_path () >{ > local removed=$1; > if [ -n "${removed}" ]; then > while [ "${removed}" != "${removed/\/\//\/}" ]; do > removed=${removed/\/\//\/}; > done; > while [ "${removed}" != "${removed//\/.\//\/}" ]; do > removed=${removed//\/.\//\/}; > done; > [ "${removed##*/}" = "." ] && removed=${removed%/*}; > while [ "${removed}" != "${removed//\/..\/}" ]; do > local p1="${removed%%\/..\/*}"; > local p2="${removed#*\/..\/}"; > removed="${p1%\/*}/${p2}"; > done; > [ "${removed##*/}" = ".." ] && removed=${removed%/*/*}; > [ "${removed##*/}" = "" ] && removed=${removed%/*}; > echo ${removed}; > fi >} >darwintoolize () >{ > ewarn "darwintoolize() is deprecated, please just use elibtoolize()!"; > elibtoolize >} >elibtoolize () >{ > local x=; > local y=; > local do_portage="no"; > local do_reversedeps="no"; > local do_only_patches="no"; > local do_uclibc="yes"; > local deptoremove=; > local my_dirlist=; > local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp"; > local start_dir=${PWD}; > my_dirlist=$(ELT_find_ltmain_sh); > for x in "$@"; > do > case "${x}" in > "--portage") > do_portage="yes" > ;; > "--reverse-deps") > do_reversedeps="yes"; > elt_patches="${elt_patches} fix-relink" > ;; > "--patch-only") > do_only_patches="yes" > ;; > "^--remove-internal-dep="*) > deptoremove=$(echo "${x}" | sed -e 's|--remove-internal-dep=||'); > [[ -n ${deptoremove} ]] && elt_patches="${elt_patches} rem-int-dep" > ;; > "--shallow") > if [[ -f ${S}/ltmain.sh ]]; then > my_dirlist=${S}; > else > my_dirlist=; > fi > ;; > "--no-uclibc") > do_uclibc="no" > ;; > *) > eerror "Invalid elibtoolize option: ${x}"; > die "elibtoolize called with ${x} ??" > ;; > esac; > done; > [[ ${do_uclibc} == "yes" ]] && elt_patches="${elt_patches} uclibc-conf uclibc-ltconf"; > [[ ${CHOST} == *"-freebsd"* ]] && elt_patches="${elt_patches} fbsd-conf fbsd-ltconf"; > [[ ${CHOST} == *"-darwin"* ]] && elt_patches="${elt_patches} darwin-ltconf darwin-ltmain"; > for x in ${my_dirlist}; > do > local tmp=$(echo "${x}" | sed -e "s|${WORKDIR}||"); > export ELT_APPLIED_PATCHES=; > export ELT_LTMAIN_SH="${x}/ltmain.sh"; > [[ -f ${x}/.elibtoolized ]] && continue; > cd ${x}; > einfo "Running elibtoolize in: $(echo "/${tmp}" | sed -e 's|//|/|g; s|^/||')"; > for y in ${elt_patches}; > do > local ret=0; > case "${y}" in > "portage") > if [[ -z $(grep 'We do not want portage' "${x}/ltmain.sh") ]]; then > ELT_walk_patches "${x}/ltmain.sh" "${y}"; > ret=$?; > fi > ;; > "rem-int-dep") > ELT_walk_patches "${x}/ltmain.sh" "${y}" "${deptoremove}"; > ret=$? > ;; > "fix-relink") > if [[ -n $(grep 'inst_prefix_dir' "${x}/ltmain.sh") ]]; then > ELT_walk_patches "${x}/ltmain.sh" "${y}"; > ret=$?; > fi > ;; > "max_cmd_len") > if [[ -n $(grep 'max_cmd_len' "${x}/ltmain.sh") ]]; then > ELT_walk_patches "${x}/ltmain.sh" "${y}"; > ret=$?; > fi > ;; > "uclibc-conf") > if [[ -e ${x}/configure && -n $(grep 'Transform linux' "${x}/configure") ]]; then > ELT_walk_patches "${x}/configure" "${y}"; > ret=$?; > else > if [[ ! -e ${x}/configure && -e ${x}/../configure && -n $(grep 'Transform linux' "${x}/../configure") ]]; then > ELT_walk_patches "${x}/../configure" "${y}"; > ret=$?; > fi; > fi > ;; > "uclibc-ltconf") > if [[ -s ${x}/ltconfig ]]; then > ELT_walk_patches "${x}/ltconfig" "${y}"; > ret=$?; > fi > ;; > "fbsd-conf") > if [[ -e ${x}/configure && -n $(grep 'version_type=freebsd-' "${x}/configure") ]]; then > ELT_walk_patches "${x}/configure" "${y}"; > ret=$?; > else > if [[ ! -e ${x}/configure && -e ${x}/../configure && -n $(grep 'version_type=freebsd-' "${x}/../configure") ]]; then > ELT_walk_patches "${x}/../configure" "${y}"; > ret=$?; > fi; > fi > ;; > "fbsd-ltconf") > if [[ -s ${x}/ltconfig ]]; then > ELT_walk_patches "${x}/ltconfig" "${y}"; > ret=$?; > fi > ;; > "darwin-ltconf") > if [[ -s ${x}/ltconfig ]]; then > ELT_walk_patches "${x}/ltconfig" "${y}"; > ret=$?; > fi > ;; > "install-sh") > ELT_walk_patches "${x}/install-sh" "${y}"; > ret=$? > ;; > *) > ELT_walk_patches "${x}/ltmain.sh" "${y}"; > ret=$? > ;; > esac; > if [[ ${ret} -ne 0 ]]; then > case ${y} in > "relink") > local version=$(ELT_libtool_version "${x}/ltmain.sh"); > if [[ -z $(grep 'inst_prefix_dir' "${x}/ltmain.sh") && $(VER_to_int "${version}") -ge $(VER_to_int "1.4.0") ]]; then > ewarn " Could not apply relink.patch!"; > fi > ;; > "portage") > if [[ ${do_portage} == "yes" ]]; then > if [[ -z $(grep 'We do not want portage' "${x}/ltmain.sh") ]]; then > echo; > eerror "Portage patch requested, but failed to apply!"; > eerror "Please bug azarah or vapier to add proper patch."; > die "Portage patch requested, but failed to apply!"; > fi; > else > if [[ -n $(grep 'We do not want portage' "${x}/ltmain.sh") ]]; then > :; > else > local version=$( eval $(grep -e '^[[:space:]]*VERSION=' "${x}/ltmain.sh"); echo "${VERSION}"); > echo; > eerror "Portage patch failed to apply (ltmain.sh version ${version})!"; > eerror "Please bug azarah or vapier to add proper patch."; > die "Portage patch failed to apply!"; > fi; > ELT_APPLIED_PATCHES="portage"; > fi > ;; > "uclibc-"*) > [[ ${CHOST} == *"-uclibc" ]] && ewarn " uClibc patch set '${y}' failed to apply!" > ;; > "fbsd-"*) > if [[ ${CHOST} == *"-freebsd"* ]]; then > if [[ -z $(grep 'Handle Gentoo/FreeBSD as it was Linux' "${x}/configure" "${x}/../configure" 2>/dev/null) ]]; then > eerror " FreeBSD patch set '${y}' failed to apply!"; > die "FreeBSD patch set '${y}' failed to apply!"; > fi; > fi > ;; > "darwin-"*) > [[ ${CHOST} == *"-darwin"* ]] && ewarn " Darwin patch set '${y}' failed to apply!" > ;; > esac; > fi; > done; > if [[ -z ${ELT_APPLIED_PATCHES} ]]; then > if [[ ${do_portage} == "no" && ${do_reversedeps} == "no" && ${do_only_patches} == "no" && ${deptoremove} == "" ]]; then > ewarn "Cannot apply any patches, please file a bug about this"; > die; > fi; > fi; > [[ -f ${x}/libtool ]] && rm -f "${x}/libtool"; > >> "${x}/.elibtoolized"; > done; > cd "${start_dir}" >} >fdo-mime_desktop_database_update () >{ > if [ -x "${ROOT}/usr/bin/update-desktop-database" ]; then > einfo "Updating desktop mime database ..."; > "${ROOT}/usr/bin/update-desktop-database" -q "${ROOT}/usr/share/applications"; > fi >} >fdo-mime_mime_database_update () >{ > if [ -x "${ROOT}/usr/bin/update-mime-database" ]; then > einfo "Updating shared mime info database ..."; > "${ROOT}/usr/bin/update-mime-database" "${ROOT}/usr/share/mime"; > fi >} >gcc-fullversion () >{ > $(tc-getCC "$@") -dumpversion >} >gcc-major-version () >{ > gcc-version "$@" | cut -f1 -d. >} >gcc-micro-version () >{ > gcc-fullversion "$@" | cut -f3 -d. | cut -f1 -d- >} >gcc-minor-version () >{ > gcc-version "$@" | cut -f2 -d. >} >gcc-specs-directive () >{ > local directive subdname subdirective; > directive="$(_gcc-specs-directive_raw $1)"; > while [[ ${directive} == *%\(*\)* ]]; do > subdname=${directive/*%\(}; > subdname=${subdname/\)*}; > subdirective="$(_gcc-specs-directive_raw ${subdname})"; > directive="${directive//\%(${subdname})/${subdirective}}"; > done; > echo "${directive}"; > return 0 >} >gcc-specs-now () >{ > local directive; > directive=$(gcc-specs-directive link_command); > return $([[ ${directive/\{!nonow:} != ${directive} ]]) >} >gcc-specs-pie () >{ > local directive; > directive=$(gcc-specs-directive cc1); > return $([[ ${directive/\{!nopie:} != ${directive} ]]) >} >gcc-specs-relro () >{ > local directive; > directive=$(gcc-specs-directive link_command); > return $([[ ${directive/\{!norelro:} != ${directive} ]]) >} >gcc-specs-ssp () >{ > local directive; > directive=$(gcc-specs-directive cc1); > return $([[ ${directive/\{!fno-stack-protector:} != ${directive} ]]) >} >gcc-specs-ssp-to-all () >{ > local directive; > directive=$(gcc-specs-directive cc1); > return $([[ ${directive/\{!fno-stack-protector-all:} != ${directive} ]]) >} >gcc-version () >{ > gcc-fullversion "$@" | cut -f1,2 -d. >} >gen_usr_ldscript () >{ > local lib libdir=$(get_libdir) output_format=""; > dodir /usr/${libdir}; > output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p'); > [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )"; > for lib in "$@"; > do > if [[ ${USERLAND} == "Darwin" ]]; then > ewarn "Not creating fake dynamic library for $lib on Darwin;"; > ewarn "making a symlink instead."; > dosym "/${libdir}/${lib}" "/usr/${libdir}/${lib}"; > else > cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT >/* GNU ld script > Since Gentoo has critical dynamic libraries > in /lib, and the static versions in /usr/lib, > we need to have a "fake" dynamic lib in /usr/lib, > otherwise we run into linking problems. > > See bug http://bugs.gentoo.org/4411 for more info. > */ >${output_format} >GROUP ( /${libdir}/${lib} ) >END_LDSCRIPT > > fi > fperms a+x "/usr/${libdir}/${lib}" || die "could not change perms on ${lib}"; > done >} >get_abi_ASFLAGS () >{ > get_abi_var ASFLAGS "$@" >} >get_abi_CDEFINE () >{ > get_abi_var CDEFINE "$@" >} >get_abi_CFLAGS () >{ > get_abi_var CFLAGS "$@" >} >get_abi_CHOST () >{ > get_abi_var CHOST "$@" >} >get_abi_CTARGET () >{ > get_abi_var CTARGET "$@" >} >get_abi_FAKE_TARGETS () >{ > get_abi_var FAKE_TARGETS "$@" >} >get_abi_LDFLAGS () >{ > get_abi_var LDFLAGS "$@" >} >get_abi_LIBDIR () >{ > get_abi_var LIBDIR "$@" >} >get_abi_var () >{ > local flag=$1; > local abi; > if [ $# -gt 1 ]; then > abi=${2}; > else > if [ -n "${ABI}" ]; then > abi=${ABI}; > else > if [ -n "${DEFAULT_ABI}" ]; then > abi=${DEFAULT_ABI}; > else > abi="default"; > fi; > fi; > fi; > local var="${flag}_${abi}"; > echo ${!var} >} >get_all_abis () >{ > local order=""; > if [[ -z ${MULTILIB_ABIS} ]]; then > echo "default"; > return 0; > fi; > for x in ${MULTILIB_ABIS}; > do > if [[ ${x} != ${DEFAULT_ABI} ]]; then > order="${order:+${order} }${x}"; > fi; > done; > order="${order:+${order} }${DEFAULT_ABI}"; > echo ${order}; > return 0 >} >get_all_libdirs () >{ > local libdirs="lib"; > local abi; > local dir; > for abi in ${MULTILIB_ABIS}; > do > [ "$(get_abi_LIBDIR ${abi})" != "lib" ] && libdirs="${libdirs} $(get_abi_LIBDIR ${abi})"; > done; > echo "${libdirs}" >} >get_install_abis () >{ > local order=""; > if [[ -z ${MULTILIB_ABIS} ]]; then > echo "default"; > return 0; > fi; > if [[ ${EMULTILIB_PKG} == "true" ]]; then > for x in ${MULTILIB_ABIS}; > do > if [[ ${x} != "${DEFAULT_ABI}" ]]; then > hasq ${x} ${ABI_DENY} || ordera="${ordera} ${x}"; > fi; > done; > hasq ${DEFAULT_ABI} ${ABI_DENY} || order="${ordera} ${DEFAULT_ABI}"; > if [[ -n ${ABI_ALLOW} ]]; then > local ordera=""; > for x in ${order}; > do > if hasq ${x} ${ABI_ALLOW}; then > ordera="${ordera} ${x}"; > fi; > done; > order=${ordera}; > fi; > else > order=${DEFAULT_ABI}; > fi; > if [[ -z ${order} ]]; then > die "The ABI list is empty. Are you using a proper multilib profile? Perhaps your USE flags or MULTILIB_ABIS are too restrictive for this package."; > fi; > echo ${order}; > return 0 >} >get_libdir () >{ > local CONF_LIBDIR; > if [ -n "${CONF_LIBDIR_OVERRIDE}" ]; then > echo ${CONF_LIBDIR_OVERRIDE}; > else > get_abi_LIBDIR; > fi >} >get_libdir_override () >{ > if has_multilib_profile; then > eerror "get_libdir_override called, but it shouldn't be needed with the new multilib approach. Please file a bug at http://bugs.gentoo.org and assign it to eradicator@gentoo.org"; > exit 1; > fi; > CONF_LIBDIR="$1"; > CONF_LIBDIR_OVERRIDE="$1"; > LIBDIR_default="$1" >} >get_libname () >{ > local libname; > local ver=$1; > case ${CHOST} in > mingw* | *-mingw*) > libname="dll" > ;; > *-darwin*) > libname="dylib" > ;; > *) > libname="so" > ;; > esac; > if [[ -z $* ]]; then > echo ".${libname}"; > else > for ver in "$@"; > do > case ${CHOST} in > *-darwin*) > echo ".${ver}.${libname}" > ;; > *) > echo ".${libname}.${ver}" > ;; > esac; > done; > fi >} >get_ml_incdir () >{ > local dir=/usr/include; > if [[ $# -gt 0 ]]; then > incdir=$1; > shift; > fi; > if [[ -z "${MULTILIB_ABIS}" ]]; then > echo ${incdir}; > return 0; > fi; > local abi=${ABI-${DEFAULT_ABI}}; > if [[ $# -gt 0 ]]; then > abi=$1; > shift; > fi; > if [[ -d "${dir}/gentoo-multilib/${abi}" ]]; then > echo ${dir}/gentoo-multilib/${abi}; > else > echo ${dir}; > fi >} >get_multilibdir () >{ > if has_multilib_profile; then > eerror "get_multilibdir called, but it shouldn't be needed with the new multilib approach. Please file a bug at http://bugs.gentoo.org and assign it to eradicator@gentoo.org"; > exit 1; > fi; > echo ${CONF_MULTILIBDIR:=lib32} >} >gnome2_gconf_install () >{ > local F; > if [[ ! -x "${GCONFTOOL_BIN}" ]]; then > return; > fi; > if [[ -z "${GNOME2_ECLASS_SCHEMAS}" ]]; then > einfo "No GNOME 2 GConf schemas found"; > return; > fi; > unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL; > export GCONF_CONFIG_SOURCE="$("${GCONFTOOL_BIN}" --get-default-source)"; > einfo "Installing GNOME 2 GConf schemas"; > for F in ${GNOME2_ECLASS_SCHEMAS}; > do > if [[ -e "${ROOT}${F}" ]]; then > "${GCONFTOOL_BIN}" --makefile-install-rule "${ROOT}${F}" > /dev/null; > fi; > done; > pids=$(pgrep -x gconfd-2); > if [[ $? == 0 ]]; then > ebegin "Reloading GConf schemas"; > kill -HUP ${pids}; > eend $?; > fi >} >gnome2_gconf_savelist () >{ > pushd "${D}" >&/dev/null; > export GNOME2_ECLASS_SCHEMAS=$(find 'etc/gconf/schemas/' -name '*.schemas' 2> /dev/null); > popd >&/dev/null >} >gnome2_gconf_uninstall () >{ > local F; > if [[ ! -x "${GCONFTOOL_BIN}" ]]; then > return; > fi; > if [[ -z "${GNOME2_ECLASS_SCHEMAS}" ]]; then > einfo "No GNOME 2 GConf schemas found"; > return; > fi; > unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL; > export GCONF_CONFIG_SOURCE=$("${GCONFTOOL_BIN}" --get-default-source); > einfo "Uninstalling GNOME 2 GConf schemas"; > for F in ${GNOME2_ECLASS_SCHEMAS}; > do > if [[ -e "${ROOT}${F}" ]]; then > "${GCONFTOOL_BIN}" --makefile-uninstall-rule "${ROOT}${F}" > /dev/null; > fi; > done; > pids=$(pgrep -x gconfd-2); > if [[ $? == 0 ]]; then > ebegin "Reloading GConf schemas"; > kill -HUP ${pids}; > eend $?; > fi >} >gnome2_icon_cache_update () >{ > local updater="$(type -p gtk-update-icon-cache 2> /dev/null)"; > if [[ ! -x "${updater}" ]]; then > debug-print "${updater} is not executable"; > return; > fi; > if [[ -z "${GNOME2_ECLASS_ICONS}" ]]; then > return; > fi; > ebegin "Updating icons cache"; > local retval=0; > local fails=(); > for dir in ${GNOME2_ECLASS_ICONS}; > do > if [[ -f "${ROOT}${dir}/index.theme" ]]; then > local rv=0; > "${updater}" -qf "${ROOT}${dir}"; > rv=$?; > if [[ ! $rv -eq 0 ]]; then > debug-print "Updating cache failed on ${ROOT}${dir}"; > fails[$(( ${#fails[@]} + 1 ))]="${ROOT}${dir}"; > retval=2; > fi; > fi; > done; > eend ${retval}; > for f in "${fails[@]}"; > do > eerror "Failed to update cache with icon $f"; > done >} >gnome2_icon_savelist () >{ > pushd "${D}" >&/dev/null; > export GNOME2_ECLASS_ICONS=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null); > popd >&/dev/null >} >gnome2_omf_fix () >{ > local omf_makefiles filename; > omf_makefiles="$@"; > if [[ -f ${S}/omf.make ]]; then > omf_makefiles="${omf_makefiles} ${S}/omf.make"; > fi; > for filename in $(find ./ -name "Makefile.in" -o -name "Makefile.am" |sort); > do > omf_makefiles="${omf_makefiles} ${filename}"; > done; > ebegin "Fixing OMF Makefiles"; > local retval=0; > local fails=(); > for omf in ${omf_makefiles}; > do > local rv=0; > sed -i -e 's:scrollkeeper-update:true:' "${omf}"; > retval=$?; > if [[ ! $rv -eq 0 ]]; then > debug-print "updating of ${omf} failed"; > fails[$(( ${#fails[@]} + 1 ))]=$omf; > retval=2; > fi; > done; > eend $retval; > for f in "${fails[@]}"; > do > eerror "Failed to update OMF Makefile $f"; > done >} >gnome2_pkg_postinst () >{ > gnome2_gconf_install; > fdo-mime_desktop_database_update; > fdo-mime_mime_database_update; > gnome2_icon_cache_update; > if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then > gnome2_scrollkeeper_update; > fi >} >gnome2_pkg_postrm () >{ > fdo-mime_desktop_database_update; > fdo-mime_mime_database_update; > gnome2_icon_cache_update; > if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then > gnome2_scrollkeeper_update; > fi >} >gnome2_pkg_preinst () >{ > gnome2_gconf_savelist; > gnome2_icon_savelist >} >gnome2_scrollkeeper_update () >{ > if [[ -x "${SCROLLKEEPER_UPDATE_BIN}" ]]; then > einfo "Updating scrollkeeper database ..."; > "${SCROLLKEEPER_UPDATE_BIN}" -q -p "${SCROLLKEEPER_DIR}"; > fi >} >gnome2_src_compile () >{ > gnome2_src_configure "$@"; > emake || die "compile failure" >} >gnome2_src_configure () >{ > if [[ ${GCONF_DEBUG} != 'no' ]]; then > if use debug; then > G2CONF="${G2CONF} --enable-debug=yes"; > fi; > fi; > if hasq doc ${IUSE}; then > G2CONF="${G2CONF} $(use_enable doc gtk-doc)"; > fi; > addwrite "/root/.gnome2"; > GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die "configure failed" >} >gnome2_src_install () >{ > local sk_tmp_dir="/var/lib/scrollkeeper"; > dodir "${sk_tmp_dir}"; > export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"; > if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then > debug-print "Installing with 'make install'"; > emake DESTDIR="${D}" "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" install || die "install failed"; > else > debug-print "Installing with 'einstall'"; > einstall "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" || die "einstall failed"; > fi; > unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL; > [[ -n "${DOCS}" ]] && dodoc ${DOCS}; > if [[ -z "$(find "${D}" -name '*.omf')" ]]; then > export SCROLLKEEPER_UPDATE="0"; > fi; > rm -rf "${D}${sk_tmp_dir}"; > rm -fr "${D}/usr/share/applications/mimeinfo.cache" >} >gnome2_src_unpack () >{ > unpack ${A}; > cd "${S}"; > gnome2_omf_fix; > elibtoolize ${ELTCONF} >} >has_multilib_profile () >{ > [ -n "${MULTILIB_ABIS}" -a "${MULTILIB_ABIS}" != "${MULTILIB_ABIS/ /}" ] >} >is_final_abi () >{ > has_multilib_profile || return 0; > local ALL_ABIS=$(get_install_abis); > local LAST_ABI=${ALL_ABIS/* /}; > [[ ${LAST_ABI} == ${ABI} ]] >} >multilib_env () >{ > local CTARGET=${1:-${CTARGET}}; > case ${CTARGET} in > x86_64*) > export CFLAGS_x86=${CFLAGS_x86--m32}; > export CHOST_x86=${CTARGET/x86_64/i686}; > export CTARGET_x86=${CHOST_x86}; > export CDEFINE_x86="__i386__"; > export LIBDIR_x86="lib"; > export CFLAGS_amd64=${CFLAGS_amd64--m64}; > export CHOST_amd64=${CTARGET}; > export CTARGET_amd64=${CHOST_amd64}; > export CDEFINE_amd64="__x86_64__"; > export LIBDIR_amd64="lib64"; > export MULTILIB_ABIS="amd64 x86"; > export DEFAULT_ABI="amd64" > ;; > mips64*) > export CFLAGS_o32=${CFLAGS_o32--mabi=32}; > export CHOST_o32=${CTARGET/mips64/mips}; > export CTARGET_o32=${CHOST_o32}; > export CDEFINE_o32="_MIPS_SIM == _ABIO32"; > export LIBDIR_o32="lib"; > export CFLAGS_n32=${CFLAGS_n32--mabi=n32}; > export CHOST_n32=${CTARGET}; > export CTARGET_n32=${CHOST_n32}; > export CDEFINE_n32="_MIPS_SIM == _ABIN32"; > export LIBDIR_n32="lib32"; > export CFLAGS_n64=${CFLAGS_n64--mabi=64}; > export CHOST_n64=${CTARGET}; > export CTARGET_n64=${CHOST_n64}; > export CDEFINE_n64="_MIPS_SIM == _ABI64"; > export LIBDIR_n64="lib64"; > export MULTILIB_ABIS="n64 n32 o32"; > export DEFAULT_ABI="n32" > ;; > powerpc64*) > export CFLAGS_ppc=${CFLAGS_ppc--m32}; > export CHOST_ppc=${CTARGET/powerpc64/powerpc}; > export CTARGET_ppc=${CHOST_ppc}; > export CDEFINE_ppc="!__powerpc64__"; > export LIBDIR_ppc="lib"; > export CFLAGS_ppc64=${CFLAGS_ppc64--m64}; > export CHOST_ppc64=${CTARGET}; > export CTARGET_ppc64=${CHOST_ppc64}; > export CDEFINE_ppc64="__powerpc64__"; > export LIBDIR_ppc64="lib64"; > export MULTILIB_ABIS="ppc64 ppc"; > export DEFAULT_ABI="ppc64" > ;; > s390x*) > export CFLAGS_s390=${CFLAGS_s390--m31}; > export CHOST_s390=${CTARGET/s390x/s390}; > export CTARGET_s390=${CHOST_s390}; > export CDEFINE_s390="!__s390x__"; > export LIBDIR_s390="lib"; > export CFLAGS_s390x=${CFLAGS_s390x--m64}; > export CHOST_s390x=${CTARGET}; > export CTARGET_s390x=${CHOST_s390x}; > export CDEFINE_s390x="__s390x__"; > export LIBDIR_s390x="lib64"; > export MULTILIB_ABIS="s390x s390"; > export DEFAULT_ABI="s390x" > ;; > sparc*) > export CFLAGS_sparc32=${CFLAGS_sparc32}; > export CHOST_sparc32=${CTARGET/sparc64/sparc}; > export CTARGET_sparc32=${CHOST_sparc32}; > export CDEFINE_sparc32="!__arch64__"; > export LIBDIR_sparc32="lib"; > export CFLAGS_sparc64=${CFLAGS_sparc64--m64}; > export CHOST_sparc64=${CTARGET}; > export CTARGET_sparc64=${CHOST_sparc64}; > export CDEFINE_sparc64="__arch64__"; > export LIBDIR_sparc64="lib64"; > export MULTILIB_ABIS="${MULTILIB_ABIS-sparc64 sparc32}"; > export DEFAULT_ABI="${DEFAULT_ABI-sparc64}" > ;; > *) > export MULTILIB_ABIS="default"; > export DEFAULT_ABI="default" > ;; > esac >} >multilib_toolchain_setup () >{ > export ABI=$1; > if has_version app-admin/eselect-compiler; then > export LD="ld $(get_abi_LDFLAGS $1)"; > export AS="as $(get_abi_ASFLAGS $1)"; > export CHOST=$(get_abi_CHOST $1); > export CBUILD=$(get_abi_CHOST $1); > else > tc-export CC; > fi >} >number_abis () >{ > get_install_abis | wc -w >} >pkg_nofetch () >{ > [ -z "${SRC_URI}" ] && return; > echo "!!! The following are listed in SRC_URI for ${PN}:"; > local x; > for x in $(echo ${SRC_URI}); > do > echo "!!! ${x}"; > done >} >pkg_postinst () >{ > gnome2_pkg_postinst; > python_version; > python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN} >} >pkg_postrm () >{ > gnome2_pkg_postrm; > python_mod_cleanup >} >pkg_preinst () >{ > gnome2_pkg_preinst $@ >} >prep_ml_includes () >{ > if [[ $(number_abis) -gt 1 ]]; then > local dir; > local dirs; > local base; > if [[ $# -eq 0 ]]; then > dirs=/usr/include; > else > dirs="$@"; > fi; > for dir in ${dirs}; > do > base=${T}/gentoo-multilib/${dir}/gentoo-multilib; > mkdir -p "${base}"; > [[ -d ${base}/${ABI} ]] && rm -rf "${base}/${ABI}"; > mv "${D}/${dir}" "${base}/${ABI}"; > done; > if is_final_abi; then > base=${T}/gentoo-multilib; > pushd "${base}"; > find . | tar -c -T - -f - | tar -x --no-same-owner -f - -C ${D}; > popd; > set --; > for dir in ${dirs}; > do > set -- "$@" "${dir}"; > local abi; > for abi in $(get_install_abis); > do > set -- "$@" "$(get_abi_CDEFINE ${abi}):${dir}/gentoo-multilib/${abi}"; > done; > create_ml_includes "$@"; > done; > fi; > fi >} >python_disable_pyc () >{ > export PYTHON_DONTCOMPILE=1 >} >python_enable_pyc () >{ > unset PYTHON_DONTCOMPILE >} >python_get_libdir () >{ > python_version; > echo "/usr/$(get_libdir)/python${PYVER}" >} >python_get_sitedir () >{ > echo "$(python_get_libdir)/site-packages" >} >python_makesym () >{ > alternatives_auto_makesym "/usr/bin/python" "python[0-9].[0-9]"; > alternatives_auto_makesym "/usr/bin/python2" "python2.[0-9]" >} >python_mod_cleanup () >{ > local SEARCH_PATH myroot; > [[ ${EBUILD_PHASE} != postrm ]] && die "${FUNCNAME} should only be run in pkg_postrm()"; > myroot="${ROOT%/}"; > if [ $# -gt 0 ]; then > for path in $@; > do > SEARCH_PATH="${SEARCH_PATH} ${myroot}/${path#/}"; > done; > else > for path in ${myroot}/usr/lib*/python*/site-packages; > do > SEARCH_PATH="${SEARCH_PATH} ${path}"; > done; > fi; > for path in ${SEARCH_PATH}; > do > einfo "Cleaning orphaned Python bytecode from ${path} .."; > for obj in $(find ${path} -name '*.py[co]'); > do > src_py="${obj%[co]}"; > if [ ! -f "${src_py}" ]; then > einfo "Purging ${src_py}[co]"; > rm -f ${src_py}[co]; > fi; > done; > for dir in $(find ${path} -type d | sort -r); > do > rmdir ${dir} 2> /dev/null; > done; > done >} >python_mod_compile () >{ > local f myroot; > [[ ${EBUILD_PHASE} != postinst ]] && die "${FUNCNAME} should only be run in pkg_postinst()"; > if [ -n "${PYTHON_OVERRIDE_PYVER}" ]; then > PYVER=${PYTHON_OVERRIDE_PYVER}; > else > python_version; > fi; > myroot="${ROOT%/}"; > for f in $@; > do > [ -f "${myroot}/${f}" ] && myfiles="${myfiles} ${myroot}/${f}"; > done; > if [ -n "${myfiles}" ]; then > python${PYVER} ${myroot}/usr/$(get_libdir)/python${PYVER}/py_compile.py ${myfiles}; > python${PYVER} -O ${myroot}/usr/$(get_libdir)/python${PYVER}/py_compile.py ${myfiles}; > else > ewarn "No files to compile!"; > fi >} >python_mod_exists () >{ > [ -z "$1" ] && die "${FUNCTION} requires an argument!"; > if ! python -c "import $1" > /dev/null 2>&1; then > return 1; > fi; > return 0 >} >python_mod_optimize () >{ > local mydirs myfiles myroot myopts; > [[ ${EBUILD_PHASE} != postinst ]] && die "${FUNCNAME} should only be run in pkg_postinst()"; > myroot="${ROOT%/}"; > while [ $# -gt 0 ]; do > case $1 in > -l | -f | -q) > myopts="${myopts} $1" > ;; > -d | -x) > myopts="${myopts} $1 $2"; > shift > ;; > -*) > ewarn "${FUNCNAME}: Ignoring compile option $1" > ;; > *) > [ ! -e "${myroot}/${1}" ] && ewarn "${myroot}/${1} doesn't exist!"; > [ -d "${myroot}/${1#/}" ] && mydirs="${mydirs} ${myroot}/${1#/}"; > [ -f "${myroot}/${1}" ] && myfiles="${myfiles} ${1}" > ;; > esac; > shift; > done; > if [ -n "${PYTHON_OVERRIDE_PYVER}" ]; then > PYVER=${PYTHON_OVERRIDE_PYVER}; > else > python_version; > fi; > myopts="${myopts} -q"; > ebegin "Byte compiling python modules for python-${PYVER} .."; > if [ -n "${mydirs}" ]; then > python${PYVER} ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py ${myopts} ${mydirs}; > python${PYVER} -O ${myroot}/usr/$(get_libdir)/python${PYVER}/compileall.py ${myopts} ${mydirs}; > fi; > if [ -n "${myfiles}" ]; then > python_mod_compile ${myfiles}; > fi; > eend $? >} >python_tkinter_exists () >{ > if ! python -c "import Tkinter" > /dev/null 2>&1; then > eerror "You need to recompile python with Tkinter support."; > eerror "Try adding: 'dev-lang/python tk'"; > eerror "in to /etc/portage/package.use"; > echo; > die "missing tkinter support with installed python"; > fi >} >python_version () >{ > [[ -n "${PYVER}" ]] && return 0; > local tmpstr; > python=${python:-/usr/bin/python}; > tmpstr="$(${python} -V 2>&1 )"; > export PYVER_ALL="${tmpstr#Python }"; > __python_version_extract $PYVER_ALL >} >src_compile () >{ > gnome2_src_compile --disable-dependency-tracking --disable-desktop-update --disable-mime-update >} >src_install () >{ > DOCS="AUTHORS ChangeLog NEWS README TODO" gnome2_src_install >} >src_test () >{ > if emake -j1 check -n >&/dev/null; then > vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"; > if ! emake -j1 check; then > hasq test $FEATURES && die "Make check failed. See above for details."; > hasq test $FEATURES || eerror "Make check failed. See above for details."; > fi; > else > if emake -j1 test -n >&/dev/null; then > vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"; > if ! emake -j1 test; then > hasq test $FEATURES && die "Make test failed. See above for details."; > hasq test $FEATURES || eerror "Make test failed. See above for details."; > fi; > else > vecho ">>> Test phase [none]: ${CATEGORY}/${PF}"; > fi; > fi >} >src_unpack () >{ > gnome2_src_unpack; > ln -sf /bin/true py-compile >} >tc-arch () >{ > tc-ninja_magic_to_arch portage "$@" >} >tc-arch-kernel () >{ > tc-ninja_magic_to_arch kern "$@" >} >tc-endian () >{ > local host=$1; > [[ -z ${host} ]] && host=${CTARGET:-${CHOST}}; > host=${host%%-*}; > case ${host} in > alpha*) > echo big > ;; > arm*b*) > echo big > ;; > arm*) > echo little > ;; > cris*) > echo little > ;; > hppa*) > echo big > ;; > i?86*) > echo little > ;; > ia64*) > echo little > ;; > m68*) > echo big > ;; > mips*l*) > echo little > ;; > mips*) > echo big > ;; > powerpc*) > echo big > ;; > s390*) > echo big > ;; > sh*b*) > echo big > ;; > sh*) > echo little > ;; > sparc*) > echo big > ;; > x86_64*) > echo little > ;; > *) > echo wtf > ;; > esac >} >tc-export () >{ > local var; > for var in "$@"; > do > [[ $(type -t tc-get${var}) != "function" ]] && die "tc-export: invalid export variable '${var}'"; > eval tc-get${var} > /dev/null; > done >} >tc-getAR () >{ > tc-getPROG AR ar "$@" >} >tc-getAS () >{ > tc-getPROG AS as "$@" >} >tc-getBUILD_CC () >{ > local v; > for v in CC_FOR_BUILD BUILD_CC HOSTCC; > do > if [[ -n ${!v} ]]; then > export BUILD_CC=${!v}; > echo "${!v}"; > return 0; > fi; > done; > local search=; > if [[ -n ${CBUILD} ]]; then > search=$(type -p ${CBUILD}-gcc); > search=${search##*/}; > fi; > search=${search:-gcc}; > export BUILD_CC=${search}; > echo "${search}" >} >tc-getCC () >{ > tc-getPROG CC gcc "$@" >} >tc-getCPP () >{ > tc-getPROG CPP cpp "$@" >} >tc-getCXX () >{ > tc-getPROG CXX g++ "$@" >} >tc-getF77 () >{ > tc-getPROG F77 f77 "$@" >} >tc-getFC () >{ > tc-getPROG FC gfortran "$@" >} >tc-getGCJ () >{ > tc-getPROG GCJ gcj "$@" >} >tc-getLD () >{ > tc-getPROG LD ld "$@" >} >tc-getNM () >{ > tc-getPROG NM nm "$@" >} >tc-getPROG () >{ > local var=$1; > local prog=$2; > if [[ -n ${!var} ]]; then > echo "${!var}"; > return 0; > fi; > local search=; > [[ -n $3 ]] && search=$(type -p "$3-${prog}"); > [[ -z ${search} && -n ${CHOST} ]] && search=$(type -p "${CHOST}-${prog}"); > [[ -n ${search} ]] && prog=${search##*/}; > export ${var}=${prog}; > echo "${!var}" >} >tc-getRANLIB () >{ > tc-getPROG RANLIB ranlib "$@" >} >tc-getSTRIP () >{ > tc-getPROG STRIP strip "$@" >} >tc-is-cross-compiler () >{ > return $([[ ${CBUILD:-${CHOST}} != ${CHOST} ]]) >} >tc-is-softfloat () >{ > case ${CTARGET} in > bfin* | h8300*) > echo "only" > ;; > *) > [[ ${CTARGET//_/-} == *-softfloat-* ]] && echo "yes" || echo "no" > ;; > esac >} >tc-ninja_magic_to_arch () >{ > function ninj () > { > [[ ${type} == "kern" ]] && echo $1 || echo $2 > }; > local type=$1; > local host=$2; > [[ -z ${host} ]] && host=${CTARGET:-${CHOST}}; > case ${host} in > alpha*) > echo alpha > ;; > arm*) > echo arm > ;; > avr*) > ninj avr32 avr > ;; > bfin*) > ninj blackfin bfin > ;; > cris*) > echo cris > ;; > hppa*) > ninj parisc hppa > ;; > i?86*) > if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -lt $(KV_to_int 2.6.24) || ${host} == *freebsd* ]]; then > echo i386; > else > echo x86; > fi > ;; > ia64*) > echo ia64 > ;; > m68*) > echo m68k > ;; > mips*) > echo mips > ;; > nios2*) > echo nios2 > ;; > nios*) > echo nios > ;; > powerpc*) > if [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.16) ]] && [[ ${type} == "kern" ]]; then > echo powerpc; > else > if [[ $(KV_to_int ${KV}) -eq $(KV_to_int 2.6.15) ]] && [[ ${type} == "kern" ]]; then > if [[ ${host} == powerpc64* ]] || [[ ${PROFILE_ARCH} == "ppc64" ]]; then > echo powerpc; > else > echo ppc; > fi; > else > if [[ ${host} == powerpc64* ]]; then > echo ppc64; > else > if [[ ${PROFILE_ARCH} == "ppc64" ]]; then > ninj ppc64 ppc; > else > echo ppc; > fi; > fi; > fi; > fi > ;; > s390*) > echo s390 > ;; > sh64*) > ninj sh64 sh > ;; > sh*) > echo sh > ;; > sparc64*) > ninj sparc64 sparc > ;; > sparc*) > [[ ${PROFILE_ARCH} == "sparc64" ]] && ninj sparc64 sparc || echo sparc > ;; > vax*) > echo vax > ;; > x86_64*) > if [[ ${type} == "kern" ]] && [[ $(KV_to_int ${KV}) -ge $(KV_to_int 2.6.24) ]]; then > echo x86; > else > ninj x86_64 amd64; > fi > ;; > *) > echo unknown > ;; > esac >} >uclibctoolize () >{ > ewarn "uclibctoolize() is deprecated, please just use elibtoolize()!"; > elibtoolize >} >declare -x ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" >declare -x 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" >declare -x ANT_HOME="/usr/share/ant-core" >declare -x 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" >declare -x ARCH="ppc" >declare -x CBUILD="powerpc-unknown-linux-gnu" >declare -x CDEFINE_default="__unix__" >declare -x CFLAGS="-O2 -mcpu=G3 -fno-strict-aliasing -pipe" >declare -x CFLAGS_default="" >declare -x CHOST="powerpc-unknown-linux-gnu" >declare -x CHOST_default="powerpc-unknown-linux-gnu" >declare -x CLASSPATH="." >declare -x CTARGET_default="powerpc-unknown-linux-gnu" >declare -x CVS_RSH="ssh" >declare -x CXXFLAGS="-O2 -mcpu=G3 -fno-strict-aliasing -pipe" >declare -x DEFAULT_ABI="default" >declare -x DESTTREE="/usr" >declare -x DIROPTIONS="-m0755" >declare -x ELIBC="glibc" >declare -x EXEOPTIONS="-m0755" >declare -x FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" >declare -x GCC_SPECS="" >declare -x GDK_USE_XFT="1" >declare -x GENERATION="2" >declare -x GNOME_TARBALL_SUFFIX="bz2" >declare -x GUILE_LOAD_PATH="/usr/share/guile/1.8" >declare -x INHERITED="toolchain-funcs python multilib alternatives gnome2-utils gnome2 gnome.org fdo-mime libtool" >declare -x INPUT_DEVICES="joystick synaptics keyboard mouse evdev" >declare -x INSDESTTREE="" >declare -x INSOPTIONS="-m0644" >declare -x IUSE=" debug" >declare -x JAVAC="/opt/ibm-jdk-bin-1.4.2.11/bin/javac" >declare -x JAVA_HOME="/opt/ibm-jdk-bin-1.4.2.11" >declare -x JDK_HOME="/opt/ibm-jdk-bin-1.4.2.11" >declare -x KERNEL="linux" >declare -x KERNEL_ABI="default" >declare -x KV="2.6.26-gentoo-r1" >declare -x LANG="en_US.UTF-8" >declare -x LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" >declare -x LC_CTYPE="en_US.UTF-8" >declare -x LDFLAGS_default="" >declare -x LIBDIR_default="lib" >declare -x LIBOPTIONS="-m0644" >declare -x LINGUAS="de en_US" >declare -x MULTILIB_ABIS="default" >declare -x OPENGL_PROFILE="xorg-x11" >declare -x PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig" >declare -x PRELINK_PATH_MASK="/usr/lib/gstreamer-0.10:/lib/modules:/usr/lib/locale:/usr/lib/wine:/usr/lib/valgrind:*.la:*.png:*.py:*.pl:*.pm:*.sh:*.xml:*.xslt:*.a:*.js" >declare -x PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND" >declare -x PYTHONPATH="/usr/lib/portage/pym" >declare -x PYTHON_DONTCOMPILE="1" >declare -x QMAKESPEC="linux-g++" >declare -x QTDIR="/usr/qt/3" >declare -x RDEPEND="dev-python/gnome-python-desktop > dev-python/pygtk > dev-python/pycrypto > sys-libs/cracklib > dev-python/gnome-python-extras " >declare -x RESTRICT="" >declare -x R_HOME="/usr/lib/R" >declare -x S="/home/tmp/portage/x11-misc/revelation-0.4.11/work/revelation-0.4.11" >declare -x SANDBOX_DENY="/etc/ld.so.preload" >declare -x SANDBOX_PREDICT=":/dev/console:/dev/random:/home/tmp/portage/x11-misc/revelation-0.4.11/homedir/.:/proc/self/maps:/usr/lib/portage/pym:/usr/lib/python2.0/:/usr/lib/python2.1/:/usr/lib/python2.2/:/usr/lib/python2.3/:/usr/lib/python2.4/:/usr/lib/python2.5/:/usr/lib/python3.0/:/var/cache/edb/dep:/var/db/aliases.db:/var/db/ethers.db:/var/db/group.db:/var/db/hosts.db:/var/db/netgroup.db:/var/db/netmasks.db:/var/db/networks.db:/var/db/passwd.db:/var/db/protocols.db:/var/db/rpc.db:/var/db/services.db:" >declare -x SANDBOX_READ=":/:/dev/shm:/dev/stdin:/home/tmp:" >declare -x SANDBOX_WRITE=":/dev/console:/dev/fd:/dev/null:/dev/pts/:/dev/pty:/dev/shm:/dev/shm/ngpt:/dev/stderr:/dev/stdout:/dev/tts:/dev/tty:/dev/vc/:/dev/zero:/home/tmp:/home/tmp/portage/x11-misc/revelation-0.4.11/homedir/.bash_history:/home/tmp/portage/x11-misc/revelation-0.4.11/homedir/.gconfd/lock:/proc/self/fd:/tmp:/tmp/:/usr/lib32/cf:/usr/lib32/conftest:/usr/lib64/cf:/usr/lib64/conftest:/usr/lib/cf:/usr/lib/conftest:/usr/tmp/cf:/usr/tmp/conftest:/var/log/scrollkeeper.log:/var/tmp:/var/tmp/:" >declare -x SANE_CONFIG_DIR="/etc/sane.d" >declare -x SCHEME_LIBRARY_PATH="/usr/share/slib/" >declare -x SGML_CATALOG_FILES="/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/xml-docbook-4.4.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/xml-docbook-4.1.2.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/dsssl-docbook-stylesheets.cat" >declare -x SLOT="0" >declare -x STAGE1_USE="nptl nptlonly unicode" >declare -x SUDO_COMMAND="/usr/bin/emerge revelation" >declare -x SUDO_GID="100" >declare -x SUDO_UID="1005" >declare -x SUDO_USER="zhangweiwu" >declare -x USB_DEVFS_PATH="/dev/bus/usb" >declare -x USE="elibc_glibc kernel_linux ppc userland_GNU" >declare -x USERLAND="GNU" >declare -x USERNAME="root" >declare -x VIDEO_CARDS="radeon" >declare -x VMHANDLE="ibm-jdk-bin-1.4" >declare -x _E_DOCDESTTREE_="" >declare -x _E_EXEDESTTREE_=""
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 241680
:
168238
| 168242 |
168264