Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 21618 Details for
Bug 18436
Scigraphica 0.80 segfaults on start
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
here is my environment info
environment (text/plain), 52.04 KB, created by
Pablo De Nápoli
on 2003-12-02 20:54:46 UTC
(
hide
)
Description:
here is my environment info
Filename:
MIME Type:
Creator:
Pablo De Nápoli
Created:
2003-12-02 20:54:46 UTC
Size:
52.04 KB
patch
obsolete
>A=scigraphica-0.8.0.tar.gz >AA=scigraphica-0.8.0.tar.gz >ACCEPT_KEYWORDS=x86 >ACCEPT_LICENSE= >ALLOWED_FLAGS='-O -mcpu -march -pipe -g' >ARCH=x86 >ARGS=compile >AUTOCLEAN=yes >BAD=$'\E[31;01m' >BASH=/bin/bash >BASH_ENV=/etc/portage/bashrc >BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") >BASH_VERSION='2.05b.0(1)-release' >BRACKET=$'\E[34;01m' >BUILDDIR=/var/tmp/portage/scigraphica-0.8.0 >BUILD_PREFIX=/var/tmp/portage >CATEGORY=app-sci >CC=gcc >CCACHE_DIR=/root/.ccache >CCACHE_SIZE=2G >CDEPEND=' ' >CFLAGS='-g -pipe' >CHOST=i686-pc-linux-gnu >CLASSPATH=/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:. >CLEAN_DELAY=5 >COLS=73 >COMPILER=gcc3 >CONFIG_PROTECT='/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config' >CONFIG_PROTECT_MASK='/etc/gconf /etc/env.d' >CVS_RSH=ssh >CXX=g++ >CXXFLAGS='-g -pipe' >D=/var/tmp/portage/scigraphica-0.8.0/image/ >DEPEND=$'>=x11-libs/gtk+extra-0.99.17\n\t>=dev-python/numeric-20.3\n\t>=dev-libs/libxml-1.8.16\n\tgnome? ( >=gnome-base/gnome-libs-1.4.1.2-r3 >=gnome-base/ORBit-0.5.12-r1 >=gnome-base/gnome-print-0.34 ) ' >DESCRIPTION='Scientific application for data analysis and technical graphics' >DESTTREE=/usr >DIROPTIONS=-m0755 >DIRSTACK=() >DISTCC_DIR=/.distcc >DISTDIR=/usr/portage/distfiles >DOCDESTTREE= >EBUILD=/hdc3/portage/app-sci/scigraphica/scigraphica-0.8.0.ebuild >ECLASSDIR=/usr/portage/eclass >ECLASS_DEPTH=0 >EDITOR=/usr/bin/joe >ENDCOL=$'\E[A\E[73G' >EPATCH_EXCLUDE= >EPATCH_FORCE=no >EPATCH_OPTS= >EPATCH_SINGLE_MSG= >EPATCH_SOURCE=/var/tmp/portage/scigraphica-0.8.0/work/patch >EPATCH_SUFFIX=patch.bz2 >EUID=0 >EXEDESTTREE= >EXEOPTIONS=-m0755 >FEATURES='ccache autoaddcvs sandbox usersandbos buildpkg' >FETCHCOMMAND='/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}' >FILESDIR=/hdc3/portage/app-sci/scigraphica/files >FUNCNAME=use >GDK_USE_XFT=1 >GENTOO_MIRRORS='http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo' >GNUSTEP_LOCAL_ROOT=/usr/lib/GNUstep >GOOD=$'\E[32;01m' >GROUPS=([0]="0") >GRP_STAGE23_USE='ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses' >G_BROKEN_FILENAMES=1 >HILITE=$'\E[36;01m' >HOME=/root >HOMEPAGE=http://scigraphica.sourceforge.net/ >HOSTNAME=Cleopatra >HOSTTYPE=i686 >IFS=$' \t\n' >INFODIR=/usr/share/info:/usr/X11R6/info >INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info >INPUTRC=/etc/inputrc >INSDESTTREE= >INSOPTIONS=-m0644 >IUSE=gnome >JAVAC=/opt/blackdown-jdk-1.4.1/bin/javac >JAVA_HOME=/opt/blackdown-jdk-1.4.1 >JDK_HOME=/opt/blackdown-jdk-1.4.1 >KDEDIR=/usr/kde/3.1 >KDEDIRS=/usr >KEYWORDS=x86 >KV= >KVERS=2.4.22 >LD_PRELOAD=/lib/libsandbox.so >LESS=-R >LESSOPEN='|lesspipe.sh %s' >LIBOPTIONS=-m0644 >LICENSE=GPL-2 >LOGNAME=root >MACHTYPE=i686-pc-linux-gnu >MAIL=/var/mail/root >MAKEOPTS=-j2 >MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/man:/usr/qt/3/doc/man >MOPREFIX=scigraphica >MOZILLA_FIVE_HOME=/usr/lib/mozilla >NOCOLOR=false >NORMAL=$'\E[0m' >O=/hdc3/portage/app-sci/scigraphica >OCC=gcc >OCXX=g++ >OLDPWD=/var/tmp/portage/scigraphica-0.8.0 >OPTERR=1 >OPTIND=1 >OSTYPE=linux-gnu >P=scigraphica-0.8.0 >PAGER=/usr/bin/less >PATH=/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin >PDEPEND=' ' >PF=scigraphica-0.8.0 >PIPESTATUS=([0]="0") >PKGDIR=/usr/portage/packages >PKG_TMPDIR=/var/tmp/portage-pkg >PN=scigraphica >PORTAGE_BINHOST_CHUNKSIZE=3000 >PORTAGE_CACHEDIR=/var/cache/edb/dep/ >PORTAGE_CALLER=ebuild >PORTAGE_GID=250 >PORTAGE_MASTER_PID=14939 >PORTAGE_TMPDIR=/var/tmp >PORTDIR=/usr/portage >PORTDIR_OVERLAY=/usr/local/portage >PPID=14992 >PR=r0 >PRELINK_PATH= >PRELINK_PATH_MASK= >PS4='+ ' >PV=0.8.0 >PVR=0.8.0 >PWD=/var/tmp/portage/scigraphica-0.8.0/build-info >PWORKDIR=/var/tmp/portage/scigraphica-0.8.0/work >PYTHONDOCS=/usr/share/doc/python-docs-2.2.3/html >QMAKESPEC=linux-g++ >QTDIR=/usr/qt/3 >RC_FAIL_ON_ZOMBIE=no >RC_GOT_FUNCTIONS=yes >RC_NET_STRICT_CHECKING=no >RC_NOCOLOR=false >RC_PARALLEL_STARTUP=no >RC_QUIET_STDOUT=no >RC_RETRY_COUNT=5 >RC_RETRY_KILL=yes >RC_RETRY_TIMEOUT=1 >RC_USE_CONFIG_PROFILE=yes >RDEPEND=$'>=x11-libs/gtk+extra-0.99.17\n\t>=dev-python/numeric-20.3\n\t>=dev-libs/libxml-1.8.16\n\tgnome? ( >=gnome-base/gnome-libs-1.4.1.2-r3 >=gnome-base/ORBit-0.5.12-r1 >=gnome-base/gnome-print-0.34 ) ' >RESTRICT= >RESUMECOMMAND='/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}' >ROOT=/ >ROOTPATH=/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin >RPMDIR=/usr/portage/rpm >RSYNC_RETRIES=3 >RSYNC_TIMEOUT=180 >S=/var/tmp/portage/scigraphica-0.8.0/work/scigraphica-0.8.0 >SANDBOX_ACTIVE=armedandready >SANDBOX_DEBUG_LOG=/tmp/sandbox-debug-.log >SANDBOX_DENY=/etc/ld.so.preload >SANDBOX_DIR='(null)/' >SANDBOX_DISABLED=0 >SANDBOX_LIB=/lib/libsandbox.so >SANDBOX_LOG=/tmp/sandbox-scigraphica-0.8.0-14992.log >SANDBOX_ON=1 >SANDBOX_PREDICT=/root/.:/usr/lib/python2.0/:/usr/lib/python2.1/:/usr/lib/python2.2/:/usr/lib/python2.3/ >SANDBOX_READ=/:/root/.ccache >SANDBOX_WRITE=/dev/zero:/dev/fd/:/dev/null:/dev/pts/:/dev/vc/:/dev/tty:/tmp/:/dev/shm/ngpt:/var/log/scrollkeeper.log:/root/.gconfd/lock:/root/.bash_history:/usr/tmp/conftest:/usr/lib/conftest:/usr/tmp/cf:/usr/lib/cf:/var/tmp:/tmp:/var/tmp:/tmp/:/var/tmp/:/root/.ccache:/.distcc >SGML_CATALOG_FILES=/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.0.cat >SHELL=/bin/bash >SHELLOPTS=braceexpand:hashall:interactive-comments >SHLVL=3 >SLOT=0 >SRC_URI=http://scigraphica.sourceforge.net/src/scigraphica-0.8.0.tar.gz >STARTDIR=/hdc3/portage/app-sci/scigraphica >SVCDIR=/var/lib/supervise >SYNC=rsync://rsync.gentoo.org/gentoo-portage >T=/var/tmp/portage/scigraphica-0.8.0/temp >TERM=linux >TMP=/var/tmp/portage/scigraphica-0.8.0/temp >TMPDIR=/var/tmp/portage/scigraphica-0.8.0/temp >UID=0 >USE='x86 oss apm encode gnome libg++ mad mikmod pdflib xmms xv slang java sdl libwww esd gtk mozilla X motif gtk2 kde jpeg gif tiff qt arts python perl oggvorbis opengl sld -postgres png truetype xml xml2 avi mpeg aalib mmx 3dnow cdr -cjk crypt cups nas ncurses nls plotutils quicktime readline svga spell -xinerama zlib gdbm foomaticdb berkdb -emacs -alsa ssl pam tcpd sse fbcon imlib doc tetex gpm directfb xchattext tcltk' >USER=root >USERLAND=GNU >USE_EXPAND='VIDEO_CARDS INPUT_DEVICES LINGUAS' >USE_ORDER=env:conf:auto:defaults >WARN=$'\E[33;01m' >WORKDIR=/var/tmp/portage/scigraphica-0.8.0/work >XARGS='xargs -r' >XINITRC=/etc/X11/xinit/xinitrc >_='x86 oss apm encode gnome libg++ mad mikmod pdflib xmms xv slang java sdl libwww esd gtk mozilla X motif gtk2 kde jpeg gif tiff qt arts python perl oggvorbis opengl sld -postgres png truetype xml xml2 avi mpeg aalib mmx 3dnow cdr -cjk crypt cups nas ncurses nls plotutils quicktime readline svga spell -xinerama zlib gdbm foomaticdb berkdb -emacs -alsa ssl pam tcpd sse fbcon imlib doc tetex gpm directfb xchattext tcltk' >deptypes='need use' >myarg=compile >ordtypes='before after' >svcdir=/var/lib/init.d >svcfstype=tmpfs >svclib=/lib/rcscripts >svcmount=no >svcsize=2048 >EXPORT_FUNCTIONS () >{ > if [ -z "$ECLASS" ]; then > echo "EXPORT_FUNCTIONS without a defined ECLASS" 1>&2; > exit 1; > fi; > while [ "$1" ]; do > debug-print "EXPORT_FUNCTIONS: ${1} -> ${ECLASS}_${1}"; > eval "$1() { ${ECLASS}_$1 ; }" >/dev/null; > shift; > done >} >KV_major () >{ > local KV=; > [ -z "$1" ] && return 1; > KV="$(echo "$1" | awk '{ tmp = $0; gsub(/^[0-9\.]*/, "", tmp); sub(tmp, ""); print }')"; > echo "${KV}" | awk -- 'BEGIN { FS = "." } { print $1 }'; > return 0 >} >KV_micro () >{ > local KV=; > [ -z "$1" ] && return 1; > KV="$(echo "$1" | awk '{ tmp = $0; gsub(/^[0-9\.]*/, "", tmp); sub(tmp, ""); print }')"; > echo "${KV}" | awk -- 'BEGIN { FS = "." } { print $3 }'; > return 0 >} >KV_minor () >{ > local KV=; > [ -z "$1" ] && return 1; > KV="$(echo "$1" | awk '{ tmp = $0; gsub(/^[0-9\.]*/, "", tmp); sub(tmp, ""); print }')"; > echo "${KV}" | awk -- 'BEGIN { FS = "." } { print $2 }'; > return 0 >} >KV_to_int () >{ > local KV_MAJOR=; > local KV_MINOR=; > local KV_MICRO=; > local KV_int=; > [ -z "$1" ] && return 1; > KV_MAJOR="$(KV_major "$1")"; > KV_MINOR="$(KV_minor "$1")"; > KV_MICRO="$(KV_micro "$1")"; > KV_int="$((KV_MAJOR * 65536 + KV_MINOR * 256 + KV_MICRO))"; > if [ "${KV_int}" -ge 131584 ]; then > echo "${KV_int}"; > return 0; > fi; > return 1 >} >abort_compile () >{ > abort_handler "src_compile" $1; > rm -f ${BUILDDIR}/.compiled; > exit 1 >} >abort_handler () >{ > local msg; > if [ "$2" != "fail" ]; then > msg="${EBUILD}: ${1} aborted; exiting."; > else > msg="${EBUILD}: ${1} failed; exiting."; > fi; > echo; > echo "$msg"; > echo; > eval ${3}; > trap SIGINT SIGQUIT >} >abort_install () >{ > abort_handler "src_install" $1; > rm -rf ${BUILDDIR}/image; > exit 1 >} >abort_package () >{ > abort_handler "dyn_package" $1; > rm -f ${BUILDDIR}/.packaged; > rm -f ${PKGDIR}/All/${PF}.t*; > exit 1 >} >abort_unpack () >{ > abort_handler "src_unpack" $1; > rm -f ${BUILDDIR}/.unpacked; > rm -rf ${BUILDDIR}/work; > exit 1 >} >add_suffix () >{ > if [ "${RC_USE_CONFIG_PROFILE}" = "yes" -a -e "$1.${DEFAULTLEVEL}" ]; then > echo "$1.${DEFAULTLEVEL}"; > else > echo "$1"; > fi; > return 0 >} >adddeny () >{ > export SANDBOX_DENY="$SANDBOX_DENY:$1" >} >addpredict () >{ > export SANDBOX_PREDICT="$SANDBOX_PREDICT:$1" >} >addread () >{ > export SANDBOX_READ="$SANDBOX_READ:$1" >} >addwrite () >{ > export SANDBOX_WRITE="$SANDBOX_WRITE:$1" >} >append-flags () >{ > CFLAGS="${CFLAGS} $1"; > CXXFLAGS="${CXXFLAGS} $1" >} >best_version () >{ > /usr/lib/portage/bin/portageq 'best_version' "${ROOT}" "$1" >} >check_KV () >{ > if [ -z "${KV}" ]; then > eerror ""; > eerror "Could not determine your kernel version."; > eerror "Make sure that you have /usr/src/linux symlink."; > eerror "And that said kernel has been configured."; > eerror "You can also simply run the following command"; > eerror "in the kernel referenced by /usr/src/linux:"; > eerror " make include/linux/version.h"; > eerror ""; > diefunc "$FUNCNAME" "$LINENO" "$?"; > fi >} >debug-print () >{ > [ -z "$T" ] && return 0; > while [ "$1" ]; do > if [ "$ECLASS_DEBUG_OUTPUT" == "on" ]; then > echo "debug: $1"; > else > if [ -n "$ECLASS_DEBUG_OUTPUT" ]; then > echo "debug: $1" >>$ECLASS_DEBUG_OUTPUT; > fi; > fi; > echo "$1" >>${T}/eclass-debug.log; > chmod g+w ${T}/eclass-debug.log >&/dev/null; > shift; > done >} >debug-print-function () >{ > str="$1: entering function"; > shift; > debug-print "$str, parameters: $*" >} >debug-print-section () >{ > debug-print "now in section $*" >} >diefunc () >{ > local funcname="$1" lineno="$2" exitcode="$3"; > shift 3; > echo 1>&2; > echo "!!! ERROR: $CATEGORY/$PF failed." 1>&2; > echo "!!! Function $funcname, Line $lineno, Exitcode $exitcode" 1>&2; > echo "!!! ${*:-(no error message)}" 1>&2; > echo 1>&2; > exit 1 >} >diropts () >{ > DIROPTIONS=""; > for x in $*; > do > DIROPTIONS="${DIROPTIONS} $x"; > done; > export DIROPTIONS >} >do_newdepend () >{ > debug-print-function do_newdepend $*; > [ -z "$1" ] && diefunc "$FUNCNAME" "$LINENO" "$?" "do_newdepend without arguments"; > [[ ${ECLASS_DEPTH} > 0 ]] && TARGET="E_$1"; > [[ ${ECLASS_DEPTH} > 0 ]] || TARGET="$1"; > shift; > while [ -n "$1" ]; do > eval export ${TARGET}=\"\${${TARGET}} $1\"; > shift; > done >} >docinto () >{ > if [ "$1" == "/" ]; then > export DOCDESTTREE=""; > else > export DOCDESTTREE="$1"; > if [ ! -d "${D}usr/share/doc/${PF}/${DOCDESTTREE}" ]; then > install -d "${D}usr/share/doc/${PF}/${DOCDESTTREE}"; > fi; > fi >} >dolisting () >{ > local x=; > local y=; > local tmpstr=; > local mylist=; > local mypath="${*}"; > if [ "${mypath%/\*}" != "${mypath}" ]; then > mypath="${mypath%/\*}"; > fi; > for x in ${mypath}; > do > [ ! -e "${x}" ] && continue; > if [ ! -d "${x}" ] && ( [ -L "${x}" -o -f "${x}" ] ); then > mylist="${mylist} $(ls "${x}" 2> /dev/null)"; > else > [ "${x%/}" != "${x}" ] && x="${x%/}"; > cd "${x}"; > tmpstr="$(ls)"; > for y in ${tmpstr}; > do > mylist="${mylist} ${x}/${y}"; > done; > fi; > done; > echo "${mylist}" >} >draw_line () >{ > STR="$*"; > echo ${STR//?/=}; > return 0 >} >dyn_clean () >{ > rm -rf ${BUILDDIR}/image; > rm -rf ${BUILDDIR}/build-info; > if ! has keeptemp $FEATURES; then > rm -rf ${T}/*; > else > mv ${T}/environment ${T}/environment.keeptemp; > fi; > if ! has keepwork $FEATURES; then > rm -rf ${BUILDDIR}/.compiled; > rm -rf ${BUILDDIR}/.unpacked; > rm -rf "${WORKDIR}"; > fi; > if [ -f ${BUILDDIR}/.unpacked ]; then > find ${BUILDDIR} -type d ! -regex "^${WORKDIR}" | sort -r | tr "\n" "\0" | $XARGS -0 rmdir >&/dev/null; > fi; > true >} >dyn_compile () >{ > trap "abort_compile" SIGINT SIGQUIT; > [ "${CFLAGS-unset}" != "unset" ] && export CFLAGS; > [ "${CXXFLAGS-unset}" != "unset" ] && export CXXFLAGS; > [ "${LIBCFLAGS-unset}" != "unset" ] && export LIBCFLAGS; > [ "${LIBCXXFLAGS-unset}" != "unset" ] && export LIBCXXFLAGS; > [ "${LDFLAGS-unset}" != "unset" ] && export LDFLAGS; > [ "${ASFLAGS-unset}" != "unset" ] && export ASFLAGS; > [ "${DISTCC_DIR-unset}" == "unset" ] && export DISTCC_DIR="${PORT_TMPDIR}/.distcc"; > [ ! -z "${DISTCC_DIR}" ] && addwrite "${DISTCC_DIR}"; > if has noauto $FEATURES >&/dev/null && [ ! -f ${BUILDDIR}/.unpacked ]; then > echo; > echo "!!! We apparently haven't unpacked... This is probably not what you"; > echo "!!! want to be doing... You are using FEATURES=noauto so I'll assume"; > echo "!!! that you know what you are doing... You have 5 seconds to abort..."; > echo; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0.25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > echo -ne "\a"; > sleep 0,25 >&/dev/null; > sleep 3; > fi; > cd ${BUILDDIR}; > if [ ! -e "build-info" ]; then > mkdir build-info; > fi; > cp ${EBUILD} build-info/${PF}.ebuild; > if [ ${BUILDDIR}/.compiled -nt "${WORKDIR}" ]; then > echo ">>> It appears that ${PN} is already compiled; skipping."; > echo ">>> (clean to force compilation)"; > trap SIGINT SIGQUIT; > return; > fi; > if [ -d "${S}" ]; then > cd "${S}"; > fi; > export S D; > export PWORKDIR="$WORKDIR"; > src_compile; > cd ${BUILDDIR}; > touch .compiled; > cd build-info; > echo "$CBUILD" >CBUILD; > echo "$CC" >CC; > echo "$CDEPEND" >CDEPEND; > echo "$CFLAGS" >CFLAGS; > echo "$CHOST" >CHOST; > echo "$CXX" >CXX; > echo "$CXXFLAGS" >CXXFLAGS; > echo "$DEPEND" >DEPEND; > echo "$IUSE" >IUSE; > echo "$LICENSE" >LICENSE; > echo "$CATEGORY" >CATEGORY; > echo "$PDEPEND" >PDEPEND; > echo "$PF" >PF; > echo "$PROVIDE" >PROVIDE; > echo "$RDEPEND" >RDEPEND; > echo "$SLOT" >SLOT; > echo "$USE" >USE; > set | bzip2 -9 - >environment.bz2; > cp ${EBUILD} ${PF}.ebuild; > if has nostrip $FEATURES $RESTRICT; then > touch DEBUGBUILD; > fi; > trap SIGINT SIGQUIT >} >dyn_help () >{ > echo; > echo "Portage"; > echo "Copyright 2002 Gentoo Technologies, Inc."; > echo; > echo "How to use the ebuild command:"; > echo; > echo "The first argument to ebuild should be an existing .ebuild file."; > echo; > echo "One or more of the following options can then be specified. If more"; > echo "than one option is specified, each will be executed in order."; > echo; > echo " setup : execute package specific setup actions"; > echo " fetch : download source archive(s) and patches"; > echo " unpack : unpack/patch sources (auto-fetch if needed)"; > echo " compile : compile sources (auto-fetch/unpack if needed)"; > echo " merge : merge image into live filesystem, recording files in db"; > echo " (auto-fetch/unpack/compile if needed)"; > echo " unmerge : remove package from live filesystem"; > echo " package : create tarball package of type ${PACKAGE}"; > echo " (will be stored in ${PKGDIR}/All)"; > echo " clean : clean up all source and temporary files"; > echo; > echo "The following settings will be used for the ebuild process:"; > echo; > echo " package : ${PF}"; > echo " slot : ${SLOT}"; > echo " category : ${CATEGORY}"; > echo " description : ${DESCRIPTION}"; > echo " system : ${CHOST}"; > echo " c flags : ${CFLAGS}"; > echo " c++ flags : ${CXXFLAGS}"; > echo " make flags : ${MAKEOPTS}"; > echo -n " build mode : "; > if has nostrip $FEATURES $RESTRICT; then > echo "debug (large)"; > else > echo "production (stripped)"; > fi; > echo " merge to : ${ROOT}"; > echo; > if [ -n "$USE" ]; then > echo "Additionally, support for the following optional features will be enabled:"; > echo; > echo " ${USE}"; > fi; > echo >} >dyn_install () >{ > trap "abort_install" SIGINT SIGQUIT; > rm -rf ${BUILDDIR}/image; > mkdir ${BUILDDIR}/image; > if [ -d "${S}" ]; then > cd "${S}"; > fi; > echo; > echo ">>> Install ${PF} into ${D} category ${CATEGORY}"; > export S D; > export PWORKDIR="$WORKDIR"; > src_install; > prepall; > cd ${D}; > declare -i UNSAFE=0; > for i in $(find ${D}/ -type f -perm -2002); > do > UNSAFE=$(($UNSAFE + 1)); > echo "UNSAFE SetGID: $i"; > done; > for i in $(find ${D}/ -type f -perm -4002); > do > UNSAFE=$(($UNSAFE + 1)); > echo "UNSAFE SetUID: $i"; > done; > if [[ $UNSAFE > 0 ]]; then > diefunc "$FUNCNAME" "$LINENO" "$?" "There are ${UNSAFE} unsafe files. Portage will not install them."; > fi; > if has sfperms $FEATURES; then > for i in $(find ${D}/ -type f -perm -4000); > do > ebegin ">>> SetUID: [chmod go-r] $i "; > chmod go-r $i; > eend $?; > done; > for i in $(find ${D}/ -type f -perm -2000); > do > ebegin ">>> SetGID: [chmod o-r] $i "; > chmod o-r $i; > eend $?; > done; > fi; > find ${D}/ -user portage -print0 | $XARGS -0 -n100 chown root; > if [ "$USERLAND" == "BSD" ]; then > find ${D}/ -group portage -print0 | $XARGS -0 -n100 chgrp wheel; > else > find ${D}/ -group portage -print0 | $XARGS -0 -n100 chgrp root; > fi; > if use selinux; then > if [ -x /usr/sbin/setfiles ]; then > if [ -f ${POLICYDIR}/file_contexts/file_contexts ]; then > cp -f ${POLICYDIR}/file_contexts/file_contexts ${T}; > else > make -C ${POLICYDIR} FC=${T}/file_contexts ${T}/file_contexts; > fi; > addwrite /selinux/context; > /usr/sbin/setfiles -r ${D} ${T}/file_contexts ${D}; > fi; > fi; > echo ">>> Completed installing into ${D}"; > echo; > cd ${BUILDDIR}; > trap SIGINT SIGQUIT >} >dyn_package () >{ > trap "abort_package" SIGINT SIGQUIT; > cd ${BUILDDIR}/image; > tar cpvf - ./ | bzip2 -f >../bin.tar.bz2 || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to create tarball"; > cd ..; > xpak build-info inf.xpak; > tbz2tool join bin.tar.bz2 inf.xpak ${PF}.tbz2; > mv ${PF}.tbz2 ${PKGDIR}/All || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to move tbz2 to ${PKGDIR}/All"; > rm -f inf.xpak bin.tar.bz2; > if [ ! -d ${PKGDIR}/${CATEGORY} ]; then > install -d ${PKGDIR}/${CATEGORY}; > fi; > ln -sf ../All/${PF}.tbz2 ${PKGDIR}/${CATEGORY}/${PF}.tbz2 || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to create symlink in ${PKGDIR}/${CATEGORY}"; > echo ">>> Done."; > cd ${BUILDDIR}; > touch .packaged || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to 'touch .packaged' in ${BUILDDIR}"; > trap SIGINT SIGQUIT >} >dyn_rpm () >{ > dyn_spec; > rpm -bb ${PF}.spec || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to integrate rpm spec file"; > install -D /usr/src/redhat/RPMS/i386/${PN}-${PV}-${PR}.i386.rpm ${RPMDIR}/${CATEGORY}/${PN}-${PV}-${PR}.rpm || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to move rpm" >} >dyn_setup () >{ > if [ "$USERLAND" == "Linux" ]; then > if [ "${DISABLE_GEN_GCC_WRAPPERS}" != "yes" ]; then > if [ -L /lib/cpp -o ! -e /lib/cpp ]; then > [ -L /lib/cpp ] && rm -f /lib/cpp; > gen_wrapper /lib/cpp cpp; > fi; > if [ -L /usr/bin/cc -o ! -e /usr/bin/cc ]; then > [ -L /usr/bin/cc ] && rm -f /usr/bin/cc; > gen_wrapper /usr/bin/cc gcc; > fi; > fi; > fi; > pkg_setup || diefunc "$FUNCNAME" "$LINENO" "$?" "pkg_setup function failed; exiting." >} >dyn_spec () >{ > tar czf /usr/src/redhat/SOURCES/${PF}.tar.gz ${O}/${PF}.ebuild ${O}/files || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to create base rpm tarball."; > cat >${PF}.spec <<__END1__ >Summary: ${DESCRIPTION} >Name: ${PN} >Version: ${PV} >Release: ${PR} >Copyright: GPL >Group: portage/${CATEGORY} >Source: ${PF}.tar.gz >Buildroot: ${D} >%description >${DESCRIPTION} > >${HOMEPAGE} > >%prep >%setup -c > >%build > >%install > >%clean > >%files >/ >__END1__ > >} >dyn_unpack () >{ > trap "abort_unpack" SIGINT SIGQUIT; > local newstuff="no"; > if [ -e "${WORKDIR}" ]; then > local x; > local checkme; > for x in ${AA}; > do > echo ">>> Checking ${x}'s mtime..."; > if [ "${DISTDIR}/${x}" -nt "${WORKDIR}" ]; then > echo ">>> ${x} has been updated; recreating WORKDIR..."; > newstuff="yes"; > rm -rf "${WORKDIR}"; > break; > fi; > done; > if [ ${EBUILD} -nt "${WORKDIR}" ]; then > echo ">>> ${EBUILD} has been updated; recreating WORKDIR..."; > newstuff="yes"; > rm -rf "${WORKDIR}"; > else > if [ ! -f "${BUILDDIR}/.unpacked" ]; then > echo ">>> Not marked as unpacked; recreating WORKDIR..."; > newstuff="yes"; > rm -rf "${WORKDIR}"; > fi; > fi; > fi; > if [ -e "${WORKDIR}" ]; then > if [ "$newstuff" == "no" ]; then > echo ">>> WORKDIR is up-to-date, keeping..."; > return 0; > fi; > fi; > install -m0700 -d "${WORKDIR}" || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to create dir '${WORKDIR}'"; > [ -d "$WORKDIR" ] && cd "${WORKDIR}"; > echo ">>> Unpacking source..."; > src_unpack; > touch ${BUILDDIR}/.unpacked || diefunc "$FUNCNAME" "$LINENO" "$?" "IO Failure -- Failed 'touch .unpacked' in BUILDIR"; > echo ">>> Source unpacked."; > cd $BUILDDIR; > trap SIGINT SIGQUIT >} >ebegin () >{ > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > if [ "${RC_NOCOLOR}" = "yes" ]; then > echo -ne " ${GOOD}*${NORMAL} ${*}..."; > else > echo -e " ${GOOD}*${NORMAL} ${*}..."; > fi; > fi; > return 0 >} >econf () >{ > if [ -x ./configure ]; then > if [ ! -z "${CBUILD}" ]; then > EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}"; > fi; > ./configure --prefix=/usr --host=${CHOST} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib ${EXTRA_ECONF} "$@" || diefunc "$FUNCNAME" "$LINENO" "$?" "econf failed"; > else > diefunc "$FUNCNAME" "$LINENO" "$?" "no configure script found"; > fi >} >edos2unix () >{ > for f in $@; > do > cp ${f} ${T}/edos2unix; > sed 's/\r$//' ${T}/edos2unix >${f}; > rm -f ${T}/edos2unix; > done >} >eend () >{ > local retval=; > if [ "$#" -eq 0 ] || ( [ -n "$1" ] && [ "$1" -eq 0 ] ); then > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > echo -e "${ENDCOL} ${BRACKET}[ ${GOOD}ok${BRACKET} ]${NORMAL}"; > fi; > else > retval="$1"; > if [ "$#" -ge 2 ]; then > shift; > eerror "${*}"; > fi; > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > echo -e "${ENDCOL} ${BRACKET}[ ${BAD}!!${BRACKET} ]${NORMAL}"; > echo; > fi; > return ${retval}; > fi; > return 0 >} >eerror () >{ > if [ "${RC_QUIET_STDOUT}" = "yes" ]; then > echo " ${*}" >/dev/stderr; > else > echo -e " ${BAD}*${NORMAL} ${*}"; > fi; > esyslog "daemon.err" "rc-scripts" "${*}"; > return 0 >} >einfo () >{ > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > echo -e " ${GOOD}*${NORMAL} ${*}"; > fi; > return 0 >} >einfon () >{ > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > echo -ne " ${GOOD}*${NORMAL} ${*}"; > fi; > return 0 >} >einstall () >{ > if [ -f ./[mM]akefile -o -f ./GNUmakefile ]; then > if [ ! -z "${PORTAGE_DEBUG}" ]; then > make -n prefix=${D}/usr datadir=${D}/usr/share infodir=${D}/usr/share/info localstatedir=${D}/var/lib mandir=${D}/usr/share/man sysconfdir=${D}/etc "$@" install; > fi; > make prefix=${D}/usr datadir=${D}/usr/share infodir=${D}/usr/share/info localstatedir=${D}/var/lib mandir=${D}/usr/share/man sysconfdir=${D}/etc "$@" install || diefunc "$FUNCNAME" "$LINENO" "$?" "einstall failed"; > else > diefunc "$FUNCNAME" "$LINENO" "$?" "no Makefile found"; > fi >} >enewgroup () >{ > local egroup="$1"; > shift; > if [ -z "${egroup}" ]; then > eerror "No group specified !"; > diefunc "$FUNCNAME" "$LINENO" "$?" "Cannot call enewgroup without a group"; > fi; > einfo "Adding group '${egroup}' to your system ..."; > if which mktemp >&/dev/null; then > local tmpfile="`mktemp -p ${T}`"; > touch ${tmpfile}; > chgrp ${egroup} ${tmpfile} 1>&/dev/null; > local realgroup="`ls -l ${tmpfile} | awk '{print $4}'`"; > if [ "${egroup}" == "${realgroup}" ]; then > einfo "${egroup} already exists on your system :)"; > return 0; > fi; > else > if egrep -q "^${egroup}:"; then > einfo "${egroup} already exists on your system :)"; > return 0; > fi; > fi; > local opts=""; > local egid="$1"; > shift; > if [ ! -z "${egid}" ]; then > if [ ${egid} -gt 0 ]; then > opts="${opts} -g ${egid}"; > else > eerror "Groupid given but is not greater than 0 !"; > diefunc "$FUNCNAME" "$LINENO" "$?" "${egid} is not a valid GID"; > fi; > else > egid="next available"; > fi; > einfo " - Groupid: ${egid}"; > local eextra="$@"; > opts="${opts} ${eextra}"; > local oldsandbox="${oldsandbox}"; > export SANDBOX_ON="0"; > groupadd ${opts} ${egroup} || diefunc "$FUNCNAME" "$LINENO" "$?" "enewgroup failed"; > export SANDBOX_ON="${oldsandbox}" >} >enewuser () >{ > local euser="$1"; > shift; > if [ -z "${euser}" ]; then > eerror "No username specified !"; > diefunc "$FUNCNAME" "$LINENO" "$?" "Cannot call enewuser without a username"; > fi; > einfo "Adding user '${euser}' to your system ..."; > if which mktemp >&/dev/null; then > local tmpfile="`mktemp -p ${T}`"; > touch ${tmpfile}; > chown ${euser} ${tmpfile} 1>&/dev/null; > local realuser="`ls -l ${tmpfile} | awk '{print $3}'`"; > fi; > if [ ! -z "${realuser}" ]; then > if [ "${euser}" == "${realuser}" ]; then > einfo "${euser} already exists on your system :)"; > return 0; > fi; > else > if id "${euser}"; then > einfo "${euser} already exists on your system :)"; > return 0; > fi; > fi; > local opts=""; > local euid="$1"; > shift; > if [ ! -z "${euid}" ] && [ "${euid}" != "-1" ]; then > if [ ${euid} -gt 0 ]; then > opts="${opts} -u ${euid}"; > else > eerror "Userid given but is not greater than 0 !"; > diefunc "$FUNCNAME" "$LINENO" "$?" "${euid} is not a valid UID"; > fi; > else > euid="next available"; > fi; > einfo " - Userid: ${euid}"; > local eshell="$1"; > shift; > if [ ! -z "${eshell}" ]; then > if [ ! -e ${eshell} ]; then > eerror "A shell was specified but it does not exist !"; > diefunc "$FUNCNAME" "$LINENO" "$?" "${eshell} does not exist"; > fi; > else > eshell=/bin/false; > fi; > einfo " - Shell: ${eshell}"; > opts="${opts} -s ${eshell}"; > local ehome="$1"; > shift; > if [ -z "${ehome}" ]; then > ehome=/dev/null; > fi; > einfo " - Home: ${ehome}"; > opts="${opts} -d ${ehome}"; > local egroups="$1"; > shift; > if [ ! -z "${egroups}" ]; then > local realgroup; > local oldifs="${IFS}"; > export IFS=","; > for g in ${egroups}; > do > if which mktemp >&/dev/null; then > chgrp ${g} ${tmpfile} 1>&/dev/null; > realgroup="`ls -l ${tmpfile} | awk '{print $4}'`"; > if [ "${g}" != "${realgroup}" ]; then > eerror "You must add ${g} to the system first"; > diefunc "$FUNCNAME" "$LINENO" "$?" "${g} is not a valid GID"; > fi; > else > if ! egrep -q "^${g}:"; then > eerror "You must add ${g} to the system first"; > diefunc "$FUNCNAME" "$LINENO" "$?" "${g} is not a valid GID"; > fi; > fi; > done; > export IFS="${oldifs}"; > opts="${opts} -g ${egroups}"; > else > egroups="(none)"; > fi; > einfo " - Groups: ${egroups}"; > local eextra="$@"; > local oldsandbox="${oldsandbox}"; > export SANDBOX_ON="0"; > if [ -z "${eextra}" ]; then > useradd ${opts} ${euser} -c "added by portage for ${PN}" || diefunc "$FUNCNAME" "$LINENO" "$?" "enewuser failed"; > else > einfo " - Extra: ${eextra}"; > useradd ${opts} ${euser} ${eextra} || diefunc "$FUNCNAME" "$LINENO" "$?" "enewuser failed"; > fi; > export SANDBOX_ON="${oldsandbox}"; > if [ ! -e ${ehome} ] && [ ! -e ${D}/${ehome} ]; then > einfo " - Creating ${ehome} in ${D}"; > dodir ${ehome}; > fperms ${euser} ${ehome}; > fi >} >epatch () >{ > local PIPE_CMD=""; > local STDERR_TARGET="${T}/$$.out"; > local PATCH_TARGET="${T}/$$.patch"; > local PATCH_SUFFIX=""; > local SINGLE_PATCH="no"; > local x=""; > if [ "$#" -gt 1 ]; then > eerror "Invalid arguments to epatch()"; > diefunc "$FUNCNAME" "$LINENO" "$?" "Invalid arguments to epatch()"; > fi; > if [ -n "$1" -a -f "$1" ]; then > SINGLE_PATCH="yes"; > local EPATCH_SOURCE="$1"; > local EPATCH_SUFFIX="${1##*\.}"; > else > if [ -n "$1" -a -d "$1" ]; then > if [ "${EPATCH_FORCE}" = "yes" ] && [ -z "${EPATCH_SUFFIX}" ]; then > local EPATCH_SOURCE="$1/*"; > else > local EPATCH_SOURCE="$1/*.${EPATCH_SUFFIX}"; > fi; > else > if [ ! -d ${EPATCH_SOURCE} ]; then > if [ -n "$1" -a "${EPATCH_SOURCE}" = "${WORKDIR}/patch" ]; then > EPATCH_SOURCE="$1"; > fi; > echo; > eerror "Cannot find \$EPATCH_SOURCE! Value for \$EPATCH_SOURCE is:"; > eerror; > eerror " ${EPATCH_SOURCE}"; > echo; > diefunc "$FUNCNAME" "$LINENO" "$?" "Cannot find \$EPATCH_SOURCE!"; > fi; > local EPATCH_SOURCE="${EPATCH_SOURCE}/*.${EPATCH_SUFFIX}"; > fi; > fi; > case ${EPATCH_SUFFIX##*\.} in > bz2) > PIPE_CMD="bzip2 -dc"; > PATCH_SUFFIX="bz2" > ;; > gz | Z | z) > PIPE_CMD="gzip -dc"; > PATCH_SUFFIX="gz" > ;; > ZIP | zip) > PIPE_CMD="unzip -p"; > PATCH_SUFFIX="zip" > ;; > *) > PIPE_CMD="cat"; > PATCH_SUFFIX="patch" > ;; > esac; > if [ "${SINGLE_PATCH}" = "no" ]; then > einfo "Applying various patches (bugfixes/updates)..."; > fi; > for x in ${EPATCH_SOURCE}; > do > if [ -f ${x} ] && ( [ "${SINGLE_PATCH}" = "yes" -o "${x/_all_}" != "${x}" -o "`eval echo \$\{x/_${ARCH}_\}`" != "${x}" ] || [ "${EPATCH_FORCE}" = "yes" ] ); then > local count=0; > local popts="${EPATCH_OPTS}"; > if [ -n "${EPATCH_EXCLUDE}" ]; then > if [ "`eval echo \$\{EPATCH_EXCLUDE/${x##*/}\}`" != "${EPATCH_EXCLUDE}" ]; then > continue; > fi; > fi; > if [ "${SINGLE_PATCH}" = "yes" ]; then > if [ -n "${EPATCH_SINGLE_MSG}" ]; then > einfo "${EPATCH_SINGLE_MSG}"; > else > einfo "Applying ${x##*/}..."; > fi; > else > einfo " ${x##*/}..."; > fi; > echo "***** ${x##*/} *****" >${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > echo >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > while [ "${count}" -lt 5 ]; do > draw_line "***** ${x##*/} *****" >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > echo >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > if [ "${PATCH_SUFFIX}" != "patch" ]; then > echo -n "PIPE_COMMAND: " >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > echo "${PIPE_CMD} ${x} > ${PATCH_TARGET}" >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > else > PATCH_TARGET="${x}"; > fi; > echo -n "PATCH COMMAND: " >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > echo "patch ${popts} -p${count} < ${PATCH_TARGET}" >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > echo >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > draw_line "***** ${x##*/} *****" >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > if [ "${PATCH_SUFFIX}" != "patch" ]; then > if ! ( ${PIPE_CMD} ${x} >${PATCH_TARGET} ) >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/} 2>&1; then > echo; > eerror "Could not extract patch!"; > count=5; > break; > fi; > fi; > if ( cat ${PATCH_TARGET} | patch ${popts} --dry-run -f -p${count} ) >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/} 2>&1; then > draw_line "***** ${x##*/} *****" >${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real; > echo >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real; > echo "ACTUALLY APPLYING ${x##*/}..." >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real; > echo >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real; > draw_line "***** ${x##*/} *****" >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real; > cat ${PATCH_TARGET} | patch ${popts} -p${count} >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real 2>&1; > if [ "$?" -ne 0 ]; then > cat ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real >>${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > echo; > eerror "A dry-run of patch command succeeded, but actually"; > eerror "applying the patch failed!"; > count=5; > fi; > rm -f ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real; > break; > fi; > count=$((count + 1)); > done; > if [ "${PATCH_SUFFIX}" != "patch" ]; then > rm -f ${PATCH_TARGET}; > fi; > if [ "${count}" -eq 5 ]; then > echo; > eerror "Failed Patch: ${x##*/}!"; > eerror; > eerror "Include in your bugreport the contents of:"; > eerror; > eerror " ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}"; > echo; > diefunc "$FUNCNAME" "$LINENO" "$?" "Failed Patch: ${x##*/}!"; > fi; > rm -f ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}; > eend 0; > fi; > done; > if [ "${SINGLE_PATCH}" = "no" ]; then > einfo "Done with patching"; > fi >} >esyslog () >{ > return 0 >} >ewarn () >{ > if [ "${RC_QUIET_STDOUT}" = "yes" ]; then > echo " ${*}"; > else > echo -e " ${WARN}*${NORMAL} ${*}"; > fi; > esyslog "daemon.warning" "rc-scripts" "${*}"; > return 0 >} >ewend () >{ > local retval=; > if [ "$#" -eq 0 ] || ( [ -n "$1" ] && [ "$1" -eq 0 ] ); then > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > echo -e "${ENDCOL} ${BRACKET}[ ${GOOD}ok${BRACKET} ]${NORMAL}"; > fi; > else > retval="$1"; > if [ "$#" -ge 2 ]; then > shift; > ewarn "${*}"; > fi; > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > echo -e "${ENDCOL} ${BRACKET}[ ${WARN}!!${BRACKET} ]${NORMAL}"; > echo; > fi; > return "${retval}"; > fi; > return 0 >} >exeinto () >{ > if [ "$1" == "/" ]; then > export EXEDESTTREE=""; > else > export EXEDESTTREE="$1"; > if [ ! -d "${D}${EXEDESTTREE}" ]; then > install -d "${D}${EXEDESTTREE}"; > fi; > fi >} >exeopts () >{ > EXEOPTIONS=""; > for x in $*; > do > if has nostrip $FEATURES $RESTRICT && [ "$x" == "-s" ]; then > continue; > else > EXEOPTIONS="$EXEOPTIONS $x"; > fi; > done; > export EXEOPTIONS >} >filter-flags () >{ > for x in $1; > do > export CFLAGS="${CFLAGS/${x}}"; > export CXXFLAGS="${CXXFLAGS/${x}}"; > done >} >gen_wrapper () >{ > cat >$1 <<END >#!/bin/sh > >$2 "\$@" >END > > chmod 0755 $1 >} >get-flag () >{ > local findflag="$1"; > for f in ${CFLAGS} ${CXXFLAGS}; > do > if [ "${f/${findflag}}" != "${f}" ]; then > echo "${f/-${findflag}=}"; > return; > fi; > done >} >get_KV () >{ > local KV="$(uname -r)"; > echo "$(KV_to_int "${KV}")"; > return $? >} >get_bootconfig () >{ > local copt=; > local newbootlevel=; > local newsoftlevel=; > for copt in $(< /proc/cmdline); > do > case "${copt%=*}" in > "bootlevel") > newbootlevel="${copt##*=}" > ;; > "softlevel") > newsoftlevel="${copt##*=}" > ;; > esac; > done; > if [ -n "${newbootlevel}" ]; then > export BOOTLEVEL="${newbootlevel}"; > else > export BOOTLEVEL="boot"; > fi; > if [ -n "${newsoftlevel}" ]; then > export DEFAULTLEVEL="${newsoftlevel}"; > else > export DEFAULTLEVEL="default"; > fi; > return 0 >} >get_bootparam () >{ > local x=; > local copt=; > local parms=; > local retval=1; > [ ! -e "/proc/cmdline" ] && return 1; > for copt in $(< /proc/cmdline); > do > if [ "${copt%=*}" = "gentoo" ]; then > params="$(gawk -v PARAMS="${copt##*=}" ' > BEGIN { > split(PARAMS, nodes, ",") > for (x in nodes) > print nodes[x] > }')"; > for x in ${params}; > do > if [ "${x}" = "$1" ]; then > retval=0; > fi; > done; > fi; > done; > return ${retval} >} >get_options () >{ > if [ -f "${svcdir}/options/${myservice}/$1" ]; then > echo "$(< ${svcdir}/options/${myservice}/$1)"; > fi; > return 0 >} >getcols () >{ > echo "$2" >} >has () >{ > local x; > local me=$1; > shift; > for x in "$@"; > do > if [ "${x}" == "${me}" ]; then > if [ -r /proc/self/fd/1 ]; then > tty --quiet </proc/self/fd/1 || echo "${x}"; > else > if [ -r /dev/fd/1 ]; then > echo "/dev/fd/1" 1>&2; > tty --quiet </dev/fd/1 || echo "${x}"; > else > if [ -r /dev/stdout ]; then > echo "/dev/stdout" 1>&2; > tty --quiet </dev/stdout || echo "${x}"; > else > echo "${x}"; > fi; > fi; > fi; > return 0; > fi; > done; > return 1 >} >has_version () >{ > if /usr/lib/portage/bin/portageq 'has_version' "${ROOT}" "$1"; then > return 0; > else > return 1; > fi >} >inherit () >{ > ECLASS_DEPTH=$(($ECLASS_DEPTH + 1)); > if [[ $ECLASS_DEPTH > 1 ]]; then > debug-print "*** Multiple Inheritence (Level: ${ECLASS_DEPTH})"; > fi; > local location; > while [ "$1" ]; do > location="${ECLASSDIR}/${1}.eclass"; > PECLASS="$ECLASS"; > export ECLASS="$1"; > if [ -n "$PORTDIR_OVERLAY" ]; then > local overlay; > for overlay in ${PORTDIR_OVERLAY}; > do > olocation="${overlay}/eclass/${1}.eclass"; > if [ -e "$olocation" ]; then > location="${olocation}"; > debug-print " eclass exists: ${location}"; > break; > fi; > done; > fi; > debug-print "inherit: $1 -> $location"; > set -f; > unset B_DEPEND B_RDEPEND B_CDEPEND B_PDEPEND; > [ "${DEPEND-unset}" != "unset" ] && B_DEPEND="${DEPEND}"; > [ "${RDEPEND-unset}" != "unset" ] && B_RDEPEND="${RDEPEND}"; > [ "${CDEPEND-unset}" != "unset" ] && B_CDEPEND="${CDEPEND}"; > [ "${PDEPEND-unset}" != "unset" ] && B_PDEPEND="${PDEPEND}"; > unset DEPEND RDEPEND CDEPEND PDEPEND; > set +f; > source "$location" || export ERRORMSG="died sourcing $location in inherit()"; > [ -z "${ERRORMSG}" ] || diefunc "$FUNCNAME" "$LINENO" "$?" "${ERRORMSG}"; > set -f; > [ "${DEPEND-unset}" != "unset" ] && export E_DEPEND="${E_DEPEND} ${DEPEND}"; > [ "${RDEPEND-unset}" != "unset" ] && export E_RDEPEND="${E_RDEPEND} ${RDEPEND}"; > [ "${CDEPEND-unset}" != "unset" ] && export E_CDEPEND="${E_CDEPEND} ${CDEPEND}"; > [ "${PDEPEND-unset}" != "unset" ] && export E_PDEPEND="${E_PDEPEND} ${PDEPEND}"; > [ "${B_DEPEND-unset}" != "unset" ] && DEPEND="${B_DEPEND}"; > [ "${B_DEPEND-unset}" != "unset" ] || unset DEPEND; > [ "${B_RDEPEND-unset}" != "unset" ] && RDEPEND="${B_RDEPEND}"; > [ "${B_RDEPEND-unset}" != "unset" ] || unset RDEPEND; > [ "${B_CDEPEND-unset}" != "unset" ] && CDEPEND="${B_CDEPEND}"; > [ "${B_CDEPEND-unset}" != "unset" ] || unset CDEPEND; > [ "${B_PDEPEND-unset}" != "unset" ] && PDEPEND="${B_PDEPEND}"; > [ "${B_PDEPEND-unset}" != "unset" ] || unset PDEPEND; > set +f; > has $1 $INHERITED || export INHERITED="$INHERITED $1"; > export ECLASS="$PECLASS"; > unset PECLASS; > shift; > done; > ECLASS_DEPTH=$(($ECLASS_DEPTH - 1)) >} >insinto () >{ > if [ "$1" == "/" ]; then > export INSDESTTREE=""; > else > export INSDESTTREE=$1; > if [ ! -d "${D}${INSDESTTREE}" ]; then > install -d "${D}${INSDESTTREE}"; > fi; > fi >} >insopts () >{ > INSOPTIONS=""; > for x in $*; > do > if has nostrip $FEATURES $RESTRICT && [ "$x" == "-s" ]; then > continue; > else > INSOPTIONS="$INSOPTIONS $x"; > fi; > done; > export INSOPTIONS >} >into () >{ > if [ $1 == "/" ]; then > export DESTTREE=""; > else > export DESTTREE=$1; > if [ ! -d "${D}${DESTTREE}" ]; then > install -d "${D}${DESTTREE}"; > fi; > fi >} >is-flag () >{ > for x in ${CFLAGS} ${CXXFLAGS}; > do > if [ "${x}" = "$1" ]; then > echo true; > return 0; > fi; > done; > return 1 >} >keepdir () >{ > dodir "$@"; > local x; > for x in "$@"; > do > touch ${D}/${x}/.keep || diefunc "$FUNCNAME" "$LINENO" "$?" "Failed to create .keep in ${D}/${x}"; > done >} >libopts () >{ > LIBOPTIONS=""; > for x in $*; > do > if has nostrip $FEATURES $RESTRICT && [ "$x" == "-s" ]; then > continue; > else > LIBOPTIONS="$LIBOPTIONS $x"; > fi; > done; > export LIBOPTIONS >} >newcdepend () >{ > debug-print-function newcdepend $*; > do_newdepend CDEPEND $1 >} >newdepend () >{ > debug-print-function newdepend $*; > debug-print "newdepend: E_DEPEND=$E_DEPEND E_RDEPEND=$E_RDEPEND"; > while [ -n "$1" ]; do > case $1 in > "/autotools") > do_newdepend DEPEND sys-devel/autoconf sys-devel/automake sys-devel/make > ;; > "/c") > do_newdepend DEPEND sys-devel/gcc virtual/glibc; > do_newdepend RDEPEND virtual/glibc > ;; > *) > do_newdepend DEPEND $1 > ;; > esac; > shift; > done >} >newpdepend () >{ > debug-print-function newpdepend $*; > do_newdepend PDEPEND $1 >} >newrdepend () >{ > debug-print-function newrdepend $*; > do_newdepend RDEPEND $1 >} >pkg_nofetch () >{ > [ -z "${SRC_URI}" ] && return; > echo "!!! The following are listed in SRC_URI for ${PN}:"; > for MYFILE in `echo ${SRC_URI}`; > do > echo "!!! $MYFILE"; > done >} >pkg_postinst () >{ > return >} >pkg_postrm () >{ > return >} >pkg_preinst () >{ > return >} >pkg_prerm () >{ > return >} >pkg_setup () >{ > return >} >replace-flags () >{ > CFLAGS="${CFLAGS/${1}/${2} }"; > CXXFLAGS="${CXXFLAGS/${1}/${2} }" >} >save_options () >{ > local myopts="$1"; > shift; > if [ ! -d "${svcdir}/options/${myservice}" ]; then > install -d -m0755 "${svcdir}/options/${myservice}"; > fi; > echo "$*" >"${svcdir}/options/${myservice}/${myopts}"; > return 0 >} >setup_defaultlevels () >{ > get_bootconfig; > if get_bootparam "noconfigprofile"; then > export RC_USE_CONFIG_PROFILE="no"; > else > if get_bootparam "configprofile"; then > export RC_USE_CONFIG_PROFILE="yes"; > fi; > fi; > if [ "${RC_USE_CONFIG_PROFILE}" = "yes" -a -n "${DEFAULTLEVEL}" ] && [ -d "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" -o -L "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" ]; then > export BOOTLEVEL="${BOOTLEVEL}.${DEFAULTLEVEL}"; > fi; > if [ -z "${SOFTLEVEL}" ]; then > if [ -f "${svcdir}/softlevel" ]; then > export SOFTLEVEL="$(< ${svcdir}/softlevel)"; > else > export SOFTLEVEL="${BOOTLEVEL}"; > fi; > fi; > return 0 >} >src_compile () >{ > local myconf=""; > use gnome || myconf="${myconf} --without-gnome"; > cp sg.desktop sg.desktop.orig; > sed -e 's:\(Exec=\)sga:\1scigraphica:' sg.desktop.orig >sg.desktop; > cp configure configure.orig; > sed -e 's:-ltermcap:-lncurses:' configure.orig >configure; > ./configure --host=${CHOST} --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man ${myconf} || diefunc "$FUNCNAME" "$LINENO" "$?" "Configuration Failed"; > emake || diefunc "$FUNCNAME" "$LINENO" "$?" "Parallel Make Failed" >} >src_install () >{ > make DESTDIR=${D} install || diefunc "$FUNCNAME" "$LINENO" "$?" "Installation Failed"; > dodoc AUTHORS ChangeLog FAQ.compile INSTALL NEWS README TODO >} >src_unpack () >{ > if [ "${A}" != "" ]; then > unpack ${A}; > fi >} >strip-flags () >{ > local NEW_CFLAGS=""; > local NEW_CXXFLAGS=""; > set -f; > for x in ${CFLAGS}; > do > for y in ${ALLOWED_FLAGS}; > do > if [ "${x/${y}}" != "${x}" ]; then > if [ -z "${NEW_CFLAGS}" ]; then > NEW_CFLAGS="${x}"; > else > NEW_CFLAGS="${NEW_CFLAGS} ${x}"; > fi; > fi; > done; > done; > for x in ${CXXFLAGS}; > do > for y in ${ALLOWED_FLAGS}; > do > if [ "${x/${y}}" != "${x}" ]; then > if [ -z "${NEW_CXXFLAGS}" ]; then > NEW_CXXFLAGS="${x}"; > else > NEW_CXXFLAGS="${NEW_CXXFLAGS} ${x}"; > fi; > fi; > done; > done; > set +f; > export CFLAGS="${NEW_CFLAGS}"; > export CXXFLAGS="${NEW_CXXFLAGS}" >} >try () >{ > env "$@"; > if [ "$?" != "0" ]; then > echo; > echo '!!! '"ERROR: the $1 command did not complete successfully."; > echo '!!! '"(\"$*\")"; > echo '!!! '"Since this is a critical task, ebuild will be stopped."; > echo; > exit 1; > fi >} >unpack () >{ > local x; > local y; > local myfail; > local tarvars; > if [ "$USERLAND" == "BSD" ]; then > tarvars=""; > else > tarvars="--no-same-owner"; > fi; > for x in "$@"; > do > myfail="failure unpacking ${x}"; > echo ">>> Unpacking ${x} to $(pwd)"; > y="$(echo $x | sed 's:.*\.\(tar\)\.[a-zA-Z0-9]*:\1:')"; > case "${x##*.}" in > tar) > tar ${tarvars} -xf ${DISTDIR}/${x} || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail" > ;; > tgz) > tar ${tarvars} -xzf ${DISTDIR}/${x} || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail" > ;; > tbz2) > bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf - || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail" > ;; > ZIP | zip) > unzip -qo ${DISTDIR}/${x} || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail" > ;; > gz | Z | z) > if [ "${y}" == "tar" ]; then > tar ${tarvars} -xzf ${DISTDIR}/${x} || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail"; > else > gzip -dc ${DISTDIR}/${x} >${x%.*} || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail"; > fi > ;; > bz2) > if [ "${y}" == "tar" ]; then > bzip2 -dc ${DISTDIR}/${x} | tar ${tarvars} -xf - || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail"; > else > bzip2 -dc ${DISTDIR}/${x} >${x%.*} || diefunc "$FUNCNAME" "$LINENO" "$?" "$myfail"; > fi > ;; > *) > echo "unpack ${x}: file format not recognized. Ignoring." > ;; > esac; > done >} >use () >{ > local x; > for x in ${USE}; > do > if [ "${x}" == "${1}" ]; then > if [ -r /dev/fd/1 ]; then > tty --quiet </dev/stdout || echo "${x}"; > else > echo "${x}"; > fi; > return 0; > fi; > done; > return 1 >} >use_enable () >{ > if [ -z "$1" ]; then > echo "!!! use_enable() called without a parameter." 1>&2; > echo "!!! use_enable <USEFLAG> [<flagname> [value]]" 1>&2; > return; > fi; > local UE_SUFFIX=""; > if [ ! -z "${3}" ]; then > UE_SUFFIX="=${3}"; > fi; > local UWORD="$2"; > if [ -z "${UWORD}" ]; then > UWORD="$1"; > fi; > if use $1 >&/dev/null; then > echo "--enable-${UWORD}${UE_SUFFIX}"; > return 0; > else > echo "--disable-${UWORD}"; > return 1; > fi >} >use_with () >{ > if [ -z "$1" ]; then > echo "!!! use_with() called without a parameter." 1>&2; > echo "!!! use_with <USEFLAG> [<flagname> [value]]" 1>&2; > return; > fi; > local UW_SUFFIX=""; > if [ ! -z "${3}" ]; then > UW_SUFFIX="=${3}"; > fi; > local UWORD="$2"; > if [ -z "${UWORD}" ]; then > UWORD="$1"; > fi; > if use $1 >&/dev/null; then > echo "--with-${UWORD}${UW_SUFFIX}"; > return 0; > else > echo "--without-${UWORD}"; > return 1; > fi >} >wrap_rcscript () >{ > local retval=1; > local myservice="${1##*/}"; > ( echo "function test_script() {"; > cat "$1"; > echo "}" ) >"${svcdir}/${myservice}-$$"; > if source "${svcdir}/${myservice}-$$" >&/dev/null; then > test_script >&/dev/null; > retval=0; > fi; > rm -f "${svcdir}/${myservice}-$$"; > return "${retval}" >}
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 18436
:
10297
|
11672
|
21617
| 21618