diff options
author | Michael Imhof <tantive@gentoo.org> | 2006-06-21 18:46:54 +0000 |
---|---|---|
committer | Michael Imhof <tantive@gentoo.org> | 2006-06-21 18:46:54 +0000 |
commit | 17f5ce42ebdcd92611739fae310334aa42034caf (patch) | |
tree | 3ec41d72ca873c1b15ef23143562871dec64cb86 /sys-devel/icecream/files | |
parent | Release to address bugs #136585 and #137251. (diff) | |
download | gentoo-2-17f5ce42ebdcd92611739fae310334aa42034caf.tar.gz gentoo-2-17f5ce42ebdcd92611739fae310334aa42034caf.tar.bz2 gentoo-2-17f5ce42ebdcd92611739fae310334aa42034caf.zip |
Version bumped. Closes #115977.
(Portage version: 2.1.1_pre1-r1)
Diffstat (limited to 'sys-devel/icecream/files')
6 files changed, 264 insertions, 0 deletions
diff --git a/sys-devel/icecream/files/digest-icecream-0.6.20050413 b/sys-devel/icecream/files/digest-icecream-0.6.20050413 new file mode 100644 index 000000000000..d77c1bcb1320 --- /dev/null +++ b/sys-devel/icecream/files/digest-icecream-0.6.20050413 @@ -0,0 +1,3 @@ +MD5 eb304444a47d6b144dbc76b5638020d0 icecream-0.6-20050413.tar.bz2 594135 +RMD160 dca34e902610ad887e926c27f2f4bc21f8416e7c icecream-0.6-20050413.tar.bz2 594135 +SHA256 f47aaa70044342f046a8ca356ae5ec553ac01c940f48e7bf045b91a6ee3517b2 icecream-0.6-20050413.tar.bz2 594135 diff --git a/sys-devel/icecream/files/icecream b/sys-devel/icecream/files/icecream new file mode 100644 index 000000000000..cb831ded5a1b --- /dev/null +++ b/sys-devel/icecream/files/icecream @@ -0,0 +1,60 @@ +#!/sbin/runscript + +#NB: Config is in /etc/conf.d/icecream + +depend() { + need net +} + +start() { + + netname= + if test -n "$ICECREAM_NETNAME"; then + netname="-n $ICECREAM_NETNAME" + fi + if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then + logfile="" + if test -z "$ICECREAM_SCHEDULER_LOG_FILE"; then + ICECREAM_SCHEDULER_LOG_FILE="/var/log/icecc_scheduler" + fi + logfile="-l $ICECREAM_SCHEDULER_LOG_FILE" + : > $ICECREAM_SCHEDULER_LOG_FILE + chown icecream:icecream $ICECREAM_SCHEDULER_LOG_FILE + + ebegin "Starting Distributed Compiler Scheduler" + start-stop-daemon -u icecream --start --quiet --exec /usr/sbin/scheduler -- -d $logfile $netname + eend ${?} + fi + logfile="" + if test -n "$ICECREAM_LOG_FILE"; then + logfile="-l $ICECREAM_LOG_FILE" + : > $ICECREAM_LOG_FILE + chown icecream:icecream $ICECREAM_LOG_FILE + fi + nice= + if test -n "$ICECREAM_NICE_LEVEL"; then + nice="--nice $ICECREAM_NICE_LEVEL" + fi + scheduler= + if test -n "$ICECREAM_SCHEDULER_HOST"; then + scheduler="-s $ICECREAM_SCHEDULER_HOST" + fi + maxjobs= + if test -n "$ICECREAM_MAX_JOBS"; then + maxjobs="-m $ICECREAM_MAX_JOBS" + fi + ebegin "Starting Distributed Compiler Daemon" + start-stop-daemon --start --quiet --exec /usr/sbin/iceccd -- -d $logfile $nice $scheduler $netname -u icecream -b "$ICECREAM_BASEDIR" $maxjobs + eend ${?} +} + +stop() { + ebegin "Stopping Distributed Compiler Daemon" + start-stop-daemon --stop --quiet --name iceccd + eend ${?} + if test "$ICECREAM_RUN_SCHEDULER" == "yes"; then + ebegin "Stopping Distributed Compiler Scheduler" + start-stop-daemon --stop --quiet --name scheduler + eend ${?} + fi +} diff --git a/sys-devel/icecream/files/icecream-0.6-20050413-add-disable-option.patch b/sys-devel/icecream/files/icecream-0.6-20050413-add-disable-option.patch new file mode 100644 index 000000000000..8852ef789b56 --- /dev/null +++ b/sys-devel/icecream/files/icecream-0.6-20050413-add-disable-option.patch @@ -0,0 +1,28 @@ +--- icecream/client/main.cpp.dist 2005-12-18 10:20:11.000000000 -0500 ++++ icecream/client/main.cpp 2005-12-18 10:24:29.000000000 -0500 +@@ -72,6 +72,7 @@ + " --help explain usage and exit\n" + " --version show version and exit\n" + "Environment Variables:\n" ++" ICECC_DISABLE if set the local compiler is used.\n" + " ICECC_VERSION use a specific icecc environment, see create-env\n" + " ICECC_REPEAT_RATE the number of jobs out of 1000 that should be\n" + " compiled on multiple hosts to ensure that they're\n" +@@ -117,6 +118,7 @@ + int main(int argc, char **argv) + { + char *env = getenv( "ICECC_DEBUG" ); ++ char *icecc_disable = getenv( "ICECC_DISABLE" ); + int debug_level = Error; + if ( env ) { + if ( !strcasecmp( env, "info" ) ) { +@@ -161,6 +163,9 @@ + CompileJob job; + local = analyse_argv( argv, job ); + ++ if(icecc_disable != NULL) ++ local = true; ++ + pid_t pid = 0; + + /* for local jobs, we fork off a child that tells the scheduler that we got something diff --git a/sys-devel/icecream/files/icecream-0.6-20050413-dont-create-symlinks.patch b/sys-devel/icecream/files/icecream-0.6-20050413-dont-create-symlinks.patch new file mode 100644 index 000000000000..c7790f3778ad --- /dev/null +++ b/sys-devel/icecream/files/icecream-0.6-20050413-dont-create-symlinks.patch @@ -0,0 +1,28 @@ +diff -urN icecream/client/Makefile.am icecream.new/client/Makefile.am +--- icecream/client/Makefile.am 2004-08-30 09:00:56.000000000 +0100 ++++ icecream.new/client/Makefile.am 2006-05-31 19:29:02.000000000 +0100 +@@ -15,10 +15,6 @@ + + install-exec-local: + $(mkinstalldirs) $(DESTDIR)$(bindir) +- for link in g++ gcc c++ cc; do \ +- rm -f $(DESTDIR)$(bindir)/$$link ;\ +- $(LN_S) icecc $(DESTDIR)$(bindir)/$$link ;\ +- done + + uninstall-local: + for link in g++ gcc c++ cc; do \ +diff -urN icecream/client/Makefile.in icecream.new/client/Makefile.in +--- icecream/client/Makefile.in 2005-04-13 08:30:07.000000000 +0100 ++++ icecream.new/client/Makefile.in 2006-05-31 19:29:13.000000000 +0100 +@@ -680,10 +680,6 @@ + + install-exec-local: + $(mkinstalldirs) $(DESTDIR)$(bindir) +- for link in g++ gcc c++ cc; do \ +- rm -f $(DESTDIR)$(bindir)/$$link ;\ +- $(LN_S) icecc $(DESTDIR)$(bindir)/$$link ;\ +- done + + uninstall-local: + for link in g++ gcc c++ cc; do \ diff --git a/sys-devel/icecream/files/icecream-0.6-20050413-no-kde.patch b/sys-devel/icecream/files/icecream-0.6-20050413-no-kde.patch new file mode 100644 index 000000000000..6ae3031bf3e7 --- /dev/null +++ b/sys-devel/icecream/files/icecream-0.6-20050413-no-kde.patch @@ -0,0 +1,76 @@ +--- icecream.orig/configure.in 2005-04-13 03:29:41.000000000 -0400 ++++ icecream/configure.in 2005-12-18 14:02:24.000000000 -0500 +@@ -156,13 +156,13 @@ + dnl === END LZO + + UIC_NOT_NEEDED=1 +-KDE_CHECK_FINAL ++#KDE_CHECK_FINAL + dnl ======================================================= + dnl FILE: ./mon/configure.in.in + dnl ======================================================= + +-KDE_SET_PREFIX +-AC_PATH_KDE ++#KDE_SET_PREFIX ++#AC_PATH_KDE + + dnl ======================================================= + dnl FILE: ./services/configure.in.in +@@ -193,9 +193,9 @@ + AC_CONFIG_FILES([ client/Makefile ]) + AC_CONFIG_FILES([ daemon/Makefile ]) + AC_CONFIG_FILES([ minilzo/Makefile ]) +-AC_CONFIG_FILES([ mon/Makefile ]) +-AC_CONFIG_FILES([ mon/doc/Makefile ]) +-AC_CONFIG_FILES([ mon/doc/icemon/Makefile ]) ++#AC_CONFIG_FILES([ mon/Makefile ]) ++#AC_CONFIG_FILES([ mon/doc/Makefile ]) ++#AC_CONFIG_FILES([ mon/doc/icemon/Makefile ]) + AC_CONFIG_FILES([ services/Makefile ]) + if test "$prefix" = NONE; then + prefix=$ac_default_prefix +@@ -206,22 +206,22 @@ + + AC_OUTPUT + # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure +-if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then ++#if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then + # And if so, warn when they don't match +- if test "$kde_libs_prefix" != "$given_prefix"; then ++# if test "$kde_libs_prefix" != "$given_prefix"; then + # And if kde doesn't know about the prefix yet +- echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null +- if test $? -ne 0; then +- echo "" +- echo "Warning: you chose to install this package in $given_prefix," +- echo "but KDE was found in $kde_libs_prefix." +- echo "For this to work, you will need to tell KDE about the new prefix, by ensuring" +- echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix" +- echo "Then restart KDE." +- echo "" +- fi +- fi +-fi ++# echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null ++# if test $? -ne 0; then ++# echo "" ++# echo "Warning: you chose to install this package in $given_prefix," ++# echo "but KDE was found in $kde_libs_prefix." ++# echo "For this to work, you will need to tell KDE about the new prefix, by ensuring" ++# echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix" ++# echo "Then restart KDE." ++# echo "" ++# fi ++# fi ++#fi + + if test "$all_tests" = "bad"; then + if test ! "$cache_file" = "/dev/null"; then +--- icecream.orig/subdirs 2004-08-04 04:49:45.000000000 -0400 ++++ icecream/subdirs 2005-12-18 14:11:36.000000000 -0500 +@@ -2,4 +2,3 @@ + services + client + daemon +-mon diff --git a/sys-devel/icecream/files/icecream-config b/sys-devel/icecream/files/icecream-config new file mode 100644 index 000000000000..fefc1c65f4a8 --- /dev/null +++ b/sys-devel/icecream/files/icecream-config @@ -0,0 +1,69 @@ +#!/bin/bash +# +# icecream-config - helper script for icecream and its ebuild +# +# Copyright 2003 Superlucidity Services, LLC +# This program licensed under the GNU GPL version 2. +# +# This script developed by Zachary T Welch at Superlucidity Services, LLC +# it was cloned from the distcc-config script to make ccache-config +# and then modified by Marcus Furlong to configure icecream too. +# +# Additional features to come; this provides a starting point + +# this should be getopt'd someday (override with ICEC_QUIET=1) +ICEC_VERBOSE=1 + +icec_echo() { + [ -z "${ICEC_QUIET}" -a -n "${ICEC_VERBOSE}" ] && echo "$*" +} + +### +# the following functions manage the icecream symlinks +# they allow the user or other scripts (namely gcc-config) to +# automatically update iceceam's links when upgrading toolchains +# +icec_remove_link() { + local t="/usr/lib/icecream/bin/${1}" + if [ -L ${t} ]; then + icec_echo "Removing ${t}..." + rm -f "${t}" + fi +} +icec_install_link() { + # Search the PATH for the specified compiler + # then create shadow link in /usr/lib/icecream/bin to icecc + + if [ -n "$(type -p ${1})" ]; then + # first be sure any old link is removed + ICEC_QUIET=1 icec_remove_link "${1}" + + # then create the new link + local t="/usr/lib/icecream/bin/${1}" + icec_echo "Creating icecream shadow link: ${t}..." + ln -s /usr/bin/icecc "${t}" + fi +} +icec_links() { + local a + for a in gcc cc c++ g++ ; do + [ -n "${2}" ] && a="${2}-${a}" + eval "icec_${1}_link" "${a}" + done +} + +### +# main routine + +case "${1}" in + --install-links ) + icec_links install "${2}" + ;; + --remove-links ) + icec_links remove "${2}" + ;; + * ) + echo "usage: ${0} {--install-links|--remove-links} [ CHOST ]" + ;; +esac + |