Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 4556] New: sorcery wrapper scripts for distcc/ccache cause errors and can be replaced

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 4556] New: sorcery wrapper scripts for distcc/ccache cause errors and can be replaced
  • Date: Mon, 20 Oct 2003 00:33:19 -0400

http://bugs.sourcemage.org/show_bug.cgi?id=4556

Summary: sorcery wrapper scripts for distcc/ccache cause errors
and can be replaced
Product: Sorcery
Version: All Versions
Platform: x86
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: games AT sourcemage.org
CC: josebernardo1 AT yahoo.com,rycee AT home.se


I managed to improve on the wrapper scripts for distcc/ccache.
they were causing recursion errors in perl, db, STLport and openoffice
configure
stages. (probably others too but these are the only ones I have installed that
have DISTCC_HOSTS= in details)
After reading the docs for both I found the preferable way to install the
distcc
and ccache binary is as a masquerade for cc, gcc,c++, g++.
So I modified my local spells to install the binary to /usr/lib/$SPELL/$binary
then add symlinks to cc gcc c++ g++ in the same dir, then add that dir to the
beginning of $PATH. Both ccache and distcc then remove their dir from $PATH to
avoid any recursion errors. ccache must come before distcc in $PATH but I
modified POST_INSTALL to handle this.
libsorcery needs minor modification and build/runcompiler has nearly
everything
removed. It could probably even be removed altogether and the exports added to
libsorcery immediately after the change i made there ( I am wary of changing
too
much in sorcery scripting, my success with bash is pure luck)
It would be nice to add support for CCACHE_DIR in sorcery, ATM ccache
makes/root/.ccache and stores all the cache info there, but the default size
is
only limited to 1GB so your / partition can be blown to pieces by adding 1GB
to it.
I think /etc/sorcery/compile_config should set this to some where in /var/*
Also support for CCACHE_DISABLE in details would be nice for things like
openoffice (otherwise 600MB of openoffice cache is created which wipes out
most
existing cache due to the 1GB limit)
Sorcery itself wouldn't "need" to support these two, but having values stored
in
/etc/sorcery/local/compile_config would be good so the run_compiler script
only
needs to export them for BUILD to work.
I will attach patches for sorcery, I am sure they could be improved I just
very
simply removed some lines and sourced other files
Also i will attach the new spells for distcc and ccache, which add to $PATH in
/etc/profile .
I have left the check for DISTCC_HOSTS in libsorcery so if it does need
turning
off you can still put DISTCC_HOSTS= in DETAILS and it runs locally. I have
rebuilt most of my packages since doing this and am failry confident it works
better but would really like extensive testing so when it does get put in it
doesn't bite anyone.
I have left the other binaries in /usr/bin so xinetd scripts and such still
work
seamlessly.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 4556] New: sorcery wrapper scripts for distcc/ccache cause errors and can be replaced, bugzilla-daemon, 10/20/2003

Archive powered by MHonArc 2.6.24.

Top of Page