sys-devel/icecream: removal
Reasons: unmaintained in ::src_prepare-overlay; retired maintainer upstream development of distcc (alternative) is more active Propositions: use the versin from ::poly-c move to sys-devel/distcc Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
7f0448ab10
commit
4eafd84004
@ -1 +0,0 @@
|
|||||||
DIST icecc-1.3.1.tar.xz 507412 BLAKE2B 21208ae7476ee0f363beb9f269e998b45e351070058f3840b8508a7b0e40c41166f606b94211039a93261f3ad4b34f3b4c797d10c86b13b0558b47e566b99014 SHA512 16e8f47b440111c5f8ebd76ea83a0658d59a4f929b921e460ab0159f375a5dd5b81853979def1b30dc758f3ea238f4f63c98c1756eb960cb3a64ff276699acd8
|
|
@ -1,43 +0,0 @@
|
|||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
local basedir=${ICECREAM_BASEDIR:-"/var/cache/icecream"}
|
|
||||||
local netname=${ICECREAM_NETNAME:+"-n ${ICECREAM_NETNAME}"}
|
|
||||||
local logfile=${ICECREAM_LOG_FILE:+"-l ${ICECREAM_LOG_FILE}"}
|
|
||||||
local nice=${ICECREAM_NICE_LEVEL:+"--nice ${ICECREAM_NICE_LEVEL}"}
|
|
||||||
local scheduler=${ICECREAM_SCHEDULER_HOST:+"-s ${ICECREAM_SCHEDULER_HOST}"}
|
|
||||||
local maxjobs=${ICECREAM_MAX_JOBS:+"-m ${ICECREAM_MAX_JOBS}"}
|
|
||||||
local verbosity=${ICECREAM_VERBOSITY:-"-v"}
|
|
||||||
|
|
||||||
if [[ "${ICECREAM_RUN_SCHEDULER}" == "yes" ]]; then
|
|
||||||
local slogfile=${ICECREAM_SCHEDULER_LOG_FILE:-"/var/log/icecc_scheduler"}
|
|
||||||
touch ${slogfile} && chown icecream:icecream ${slogfile}
|
|
||||||
slogfile=${slogfile:+"-l ${slogfile}"}
|
|
||||||
ebegin "Starting Distributed Compiler Scheduler"
|
|
||||||
start-stop-daemon -u icecream --start --quiet --exec /usr/sbin/scheduler -- -d ${slogfile} ${netname} ${verbosity}
|
|
||||||
eend ${?}
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ! -d ${basedir} ]] && mkdir -p ${basedir} && chown icecream:icecream ${basedir}
|
|
||||||
ebegin "Starting Distributed Compiler Daemon"
|
|
||||||
start-stop-daemon --start --quiet --exec /usr/sbin/iceccd -- -d ${logfile} ${nice} ${scheduler} ${netname} -u icecream -b "${basedir}" ${maxjobs} ${verbosity}
|
|
||||||
eend ${?}
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping Distributed Compiler Daemon"
|
|
||||||
start-stop-daemon --stop --quiet --name iceccd
|
|
||||||
eend ${?}
|
|
||||||
|
|
||||||
if [[ "${ICECREAM_RUN_SCHEDULER}" == "yes" ]]; then
|
|
||||||
ebegin "Stopping Distributed Compiler Scheduler"
|
|
||||||
start-stop-daemon --stop --quiet --name scheduler
|
|
||||||
eend ${?}
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,69 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# icecream-config - helper script for icecream and its ebuild
|
|
||||||
#
|
|
||||||
# Copyright 2003-2010 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)
|
|
||||||
ICECC_VERBOSE=1
|
|
||||||
|
|
||||||
icecc_echo() {
|
|
||||||
[ -z "${ICECC_QUIET}" -a -n "${ICECC_VERBOSE}" ] && echo "$*"
|
|
||||||
}
|
|
||||||
|
|
||||||
###
|
|
||||||
# the following functions manage the icecream symlinks
|
|
||||||
# they allow the user or other scripts (namely gcc-config) to
|
|
||||||
# automatically update icecream's links when upgrading toolchains
|
|
||||||
#
|
|
||||||
icecc_remove_link() {
|
|
||||||
local t="/usr/lib/icecc/bin/${1}"
|
|
||||||
if [ -L ${t} ]; then
|
|
||||||
icecc_echo "Removing ${t}..."
|
|
||||||
rm -f "${t}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
icecc_install_link() {
|
|
||||||
# Search the PATH for the specified compiler
|
|
||||||
# then create shadow link in /usr/lib/icecc/bin to icecc
|
|
||||||
|
|
||||||
if [ -n "$(type -p ${1})" ]; then
|
|
||||||
# first be sure any old link is removed
|
|
||||||
ICECC_QUIET=1 icecc_remove_link "${1}"
|
|
||||||
|
|
||||||
# then create the new link
|
|
||||||
local t="/usr/lib/icecc/bin/${1}"
|
|
||||||
icecc_echo "Creating icecream shadow link: ${t}..."
|
|
||||||
ln -s /usr/bin/icecc "${t}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
icecc_links() {
|
|
||||||
local a
|
|
||||||
for a in gcc cc c++ g++ ; do
|
|
||||||
[ -n "${2}" ] && a="${2}-${a}"
|
|
||||||
eval "icecc_${1}_link" "${a}"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
###
|
|
||||||
# main routine
|
|
||||||
|
|
||||||
case "${1}" in
|
|
||||||
--install-links )
|
|
||||||
icecc_links install "${2}"
|
|
||||||
;;
|
|
||||||
--remove-links )
|
|
||||||
icecc_links remove "${2}"
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
echo "usage: ${0} {--install-links|--remove-links} [ CHOST ]"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# icecream-create-env - helper script to create icecc environments(mostly for cross-compiling)
|
|
||||||
#
|
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
#
|
|
||||||
# Please note, this script has been designed to work with Gentoo's crossdev, it may or may
|
|
||||||
# not work with cross-toolchains that were build differently.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Usage: "./icecream-create-env" creates a native environment(similar to icecc --build-native)
|
|
||||||
# "./icecream-create-env prefix" creates a cross-compile environment using the cross-toolchain created by crossdev
|
|
||||||
# Example:
|
|
||||||
# "emerge crossdev && crossdev -t sparc-unknown-linux-gnu && icecream-create-env sparc-unknown-linux"
|
|
||||||
|
|
||||||
if [ `id -u` -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "Only the superuser can execute this script."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# param 1 = CHOST
|
|
||||||
prefix="${1}"
|
|
||||||
|
|
||||||
if [ -z "${prefix}" ]
|
|
||||||
then
|
|
||||||
prefix="`gcc -dumpmachine`"
|
|
||||||
fi
|
|
||||||
|
|
||||||
gccbin=`which ${prefix}-gcc 2>/dev/null`
|
|
||||||
if [ ! -e "${gccbin}" ]
|
|
||||||
then
|
|
||||||
echo "Can't find ${prefix}-gcc!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
gxxbin=`which ${prefix}-g++ 2>/dev/null`
|
|
||||||
if [ ! -e "${gxxbin}" ]
|
|
||||||
then
|
|
||||||
echo "Can't find ${prefix}-g++!"
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
version="`${prefix}-gcc -dumpversion`"
|
|
||||||
|
|
||||||
tmpdir=`mktemp -d`
|
|
||||||
tmpfile=`mktemp`
|
|
||||||
|
|
||||||
target=`gcc -dumpmachine`
|
|
||||||
if [ "x${target}" = "x${prefix}" ]
|
|
||||||
then
|
|
||||||
/usr/libexec/icecc/icecc-create-env \
|
|
||||||
/usr/${prefix}/gcc-bin/${version}/gcc \
|
|
||||||
/usr/${prefix}/gcc-bin/${version}/g++ \
|
|
||||||
| tee ${tmpfile}
|
|
||||||
else
|
|
||||||
/usr/libexec/icecc/icecc-create-env \
|
|
||||||
/usr/${target}/${prefix}/gcc-bin/${version}/${prefix}-gcc \
|
|
||||||
/usr/${target}/${prefix}/gcc-bin/${version}/${prefix}-g++ \
|
|
||||||
| tee ${tmpfile}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# figure out the name of the archive
|
|
||||||
icecc_envname=`grep "creating" ${tmpfile} | awk '{print $2}'`
|
|
||||||
|
|
||||||
echo "Testing icecc environment..."
|
|
||||||
tar -x -z -f ${icecc_envname} -C ${tmpdir}
|
|
||||||
touch ${tmpdir}/empty.c
|
|
||||||
chroot ${tmpdir}/ /usr/bin/gcc -c /empty.c
|
|
||||||
tested=${?}
|
|
||||||
rm ${tmpdir}/empty.c
|
|
||||||
|
|
||||||
if [ "${tested}" -ne 0 ]
|
|
||||||
then
|
|
||||||
echo ""
|
|
||||||
echo "Creating icecc environment failed. Please see error message(s) above! The temporary directory is: ${tmpdir}/"
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
echo "Icecc environment has been created. It has been saved as ${icecc_envname}!"
|
|
||||||
fi
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
#!/sbin/openrc-run
|
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
depend() {
|
|
||||||
need net
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
local basedir=${ICECREAM_BASEDIR:-"/var/cache/icecream"}
|
|
||||||
local netname=${ICECREAM_NETNAME:+"-n ${ICECREAM_NETNAME}"}
|
|
||||||
local logfile=${ICECREAM_LOG_FILE:+"-l ${ICECREAM_LOG_FILE}"}
|
|
||||||
local nice=${ICECREAM_NICE_LEVEL:+"--nice ${ICECREAM_NICE_LEVEL}"}
|
|
||||||
local scheduler=${ICECREAM_SCHEDULER_HOST:+"-s ${ICECREAM_SCHEDULER_HOST}"}
|
|
||||||
local maxjobs=${ICECREAM_MAX_JOBS:+"-m ${ICECREAM_MAX_JOBS}"}
|
|
||||||
local verbosity=${ICECREAM_VERBOSITY:-"-v"}
|
|
||||||
|
|
||||||
[[ ! -d /var/log/icecream/ ]] && mkdir -p /var/log/icecream/ && chown icecream:icecream /var/log/icecream/
|
|
||||||
if [[ "${ICECREAM_RUN_SCHEDULER}" == "yes" ]]; then
|
|
||||||
local slogfile=${ICECREAM_SCHEDULER_LOG_FILE:-"/var/log/icecc_scheduler"}
|
|
||||||
touch ${slogfile} && chown icecream:icecream ${slogfile}
|
|
||||||
slogfile=${slogfile:+"-l ${slogfile}"}
|
|
||||||
ebegin "Starting Distributed Compiler Scheduler"
|
|
||||||
start-stop-daemon -u icecream --start --quiet --exec /usr/sbin/icecc-scheduler -- -d ${slogfile} ${netname} ${verbosity}
|
|
||||||
eend ${?}
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ! -d ${basedir} ]] && mkdir -p ${basedir} && chown icecream:icecream ${basedir}
|
|
||||||
ebegin "Starting Distributed Compiler Daemon"
|
|
||||||
start-stop-daemon --start --quiet --exec /usr/sbin/iceccd -- -d ${logfile} ${nice} ${scheduler} ${netname} -u icecream -b "${basedir}" ${maxjobs} ${verbosity}
|
|
||||||
eend ${?}
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
ebegin "Stopping Distributed Compiler Daemon"
|
|
||||||
start-stop-daemon --stop --quiet --name iceccd
|
|
||||||
eend ${?}
|
|
||||||
|
|
||||||
if [[ "${ICECREAM_RUN_SCHEDULER}" == "yes" ]]; then
|
|
||||||
ebegin "Stopping Distributed Compiler Scheduler"
|
|
||||||
start-stop-daemon --stop --quiet --name icecc-scheduler
|
|
||||||
eend ${?}
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Icecream Distributed Compiler Scheduler
|
|
||||||
After=network.target nss-lookup.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
# Set SHELL so that icecc-create-env does not have to attempt to detect its
|
|
||||||
# value by reading /etc/passwd. The SELinux policy does not need to allow it.
|
|
||||||
Environment=SHELL=/bin/bash
|
|
||||||
SyslogIdentifier=icecc-scheduler
|
|
||||||
ExecStart=/usr/sbin/icecc-scheduler -u icecream -v
|
|
||||||
Nice=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -1,16 +0,0 @@
|
|||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Icecream Distributed Compiler
|
|
||||||
After=network.target nss-lookup.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
# Set SHELL so that icecc-create-env does not have to attempt to detect its
|
|
||||||
# value by reading /etc/passwd. The SELinux policy does not need to allow it.
|
|
||||||
Environment=SHELL=/bin/bash
|
|
||||||
SyslogIdentifier=iceccd
|
|
||||||
ExecStart=/usr/sbin/iceccd -u icecream -b /var/cache/icecream -v
|
|
||||||
Nice=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -1,69 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit user systemd
|
|
||||||
|
|
||||||
MY_P="${P/icecream/icecc}"
|
|
||||||
|
|
||||||
DESCRIPTION="Distributed compiling of C(++) code across several machines; based on distcc"
|
|
||||||
HOMEPAGE="https://github.com/icecc/icecream"
|
|
||||||
SRC_URI="https://github.com/icecc/icecream/releases/download/${PV}/${MY_P}.tar.xz"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
sys-libs/libcap-ng
|
|
||||||
"
|
|
||||||
RDEPEND="
|
|
||||||
${DEPEND}
|
|
||||||
dev-util/shadowman
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
#PATCHES=(
|
|
||||||
# "${FILESDIR}/${P}-libcap-ng.patch"
|
|
||||||
#)
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup icecream
|
|
||||||
enewuser icecream -1 -1 /var/cache/icecream icecream
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
--enable-shared --disable-static \
|
|
||||||
--enable-clang-wrappers \
|
|
||||||
--enable-clang-rewrite-includes
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
|
|
||||||
newconfd suse/sysconfig.icecream icecream
|
|
||||||
newinitd "${FILESDIR}"/icecream-r2 icecream
|
|
||||||
systemd_newunit "${FILESDIR}/icecream-scheduler.service" 'icecream-scheduler.service'
|
|
||||||
systemd_newunit "${FILESDIR}/icecream.service" 'icecream.service'
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
newins suse/logrotate icecream
|
|
||||||
|
|
||||||
insinto /usr/share/shadowman/tools
|
|
||||||
newins - icecc <<<'/usr/libexec/icecc/bin'
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_prerm() {
|
|
||||||
if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then
|
|
||||||
eselect compiler-shadow remove icecc
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ${ROOT} == / ]]; then
|
|
||||||
eselect compiler-shadow update icecc
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">icecc/icecream</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
Loading…
Reference in New Issue
Block a user