Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 13142] /var/lib/sorcery/build should have $HOST-gcc/g++/c++

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 13142] /var/lib/sorcery/build should have $HOST-gcc/g++/c++
  • Date: 29 Aug 2009 15:52:59 -0000

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





--- Comment #1 from David Brown <dmlb2000 AT gmail.com> 2009-08-29 10:52:57 ---
So here's a patch for the install file for sorcery to do this.

This is the best way I could figure out how to do it without trying to source
anything bash, since you may have to assume something is broken when this
script is run.

--- install.orig 2009-08-29 08:37:54.398281004 +0000
+++ install 2009-08-29 08:51:19.071280935 +0000
@@ -63,7 +63,22 @@
echo "Setting up build symlinks"
BUILD_DIR=${INSTALL_ROOT}/var/lib/sorcery/build
pushd $BUILD_DIR &> /dev/null || exit 1
-for COMPILER in "cc" "gcc" "c++" "g++"; do
+# optionally put in HOST style compilers
+ARCHITECTURE=$(grep ARCHITECTURE /etc/sorcery/local/config | sed
's/.*-\(.*\)}.*/\1/')
+HOST_COMPILE=""
+if [[ $ARCHITECTURE ]]
+then
+ archspec=$(find /usr/share/archspecs -type f -name $ARCHITECTURE)
+ if [[ -f $archspec ]]
+ then
+ HOST=$(grep HOST $archspec | sed 's/.*"\(.*\)".*/\1/')
+ for COMPILER in "c++" "g++" "gcc"
+ do
+ HOST_COMPILE="$HOST_COMPILE $HOST-$COMPILER"
+ done
+ fi
+fi
+for COMPILER in "cc" "gcc" "c++" "g++" $HOST_COMPILE; do
ln -sf "run_compiler" "$COMPILER"
echo $BUILD_DIR/$COMPILER >> $SORCERY_INSTALL_LOG
done

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



  • [SM-Sorcery-Bugs] [Bug 13142] /var/lib/sorcery/build should have $HOST-gcc/g++/c++, bugzilla-daemon, 08/29/2009

Archive powered by MHonArc 2.6.24.

Top of Page