public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:catalyst_2 commit in: /, targets/support/
Date: Sat, 25 Jun 2011 17:52:09 +0000 (UTC)	[thread overview]
Message-ID: <7d6fb00a9d36767fa1f88e81f3e02dbdbdd8d8b3.mattst88@gentoo> (raw)

commit:     7d6fb00a9d36767fa1f88e81f3e02dbdbdd8d8b3
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 17:50:22 2011 +0000
Commit:     Matt Turner <mattst88 <AT> gmail <DOT> com>
CommitDate: Sat Jun 25 17:51:58 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=7d6fb00a

Use get_libdir instead of hard-coding lib for distcc

---
 ChangeLog                           |    4 ++++
 targets/support/chroot-functions.sh |   16 ++++++++--------
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 70681df..61dc5b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
 # $Id$
 
   25 Jun 2011; Matt Turner <mattst88@gentoo.org>
+  targets/support/chroot-functions.sh:
+  Use get_libdir instead of hard-coding lib for distcc
+
+  25 Jun 2011; Matt Turner <mattst88@gentoo.org>
   modules/catalyst/arch/mips.py: add multilib (and missing n64) classes
 
   25 Jun 2011; Matt Turner <mattst88@gentoo.org>

diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
index 72fee20..caaa576 100644
--- a/targets/support/chroot-functions.sh
+++ b/targets/support/chroot-functions.sh
@@ -92,11 +92,11 @@ setup_myfeatures(){
 		# This sets up automatic cross-distcc-fu according to
 		# http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
 		CHOST=$(portageq envvar CHOST)
-		# TODO: change to use get_libdir
-		cd /usr/lib/distcc/bin
+		LIBDIR=$(get_libdir)
+		cd /usr/${LIBDIR}/distcc/bin
 		rm cc gcc g++ c++ 2>/dev/null
-		echo -e '#!/bin/bash\nexec /usr/lib/distcc/bin/'${CHOST}'-g${0:$[-2]} "$@"' > ${CHOST}-wrapper
-		chmod a+x /usr/lib/distcc/bin/${CHOST}-wrapper
+		echo -e '#!/bin/bash\nexec /usr/'${LIBDIR}'/distcc/bin/'${CHOST}'-g${0:$[-2]} "$@"' > ${CHOST}-wrapper
+		chmod a+x /usr/${LIBDIR}/distcc/bin/${CHOST}-wrapper
 		for i in cc gcc g++ c++; do ln -s ${CHOST}-wrapper ${i}; done
 	fi
 
@@ -172,13 +172,13 @@ setup_pkgmgr(){
 }
 
 cleanup_distcc() {
+	LIBDIR=$(get_libdir)
 	rm -rf /etc/distcc/hosts
 	for i in cc gcc c++ g++; do
-		# TODO: change to use get_libdir
-		rm -f /usr/lib/distcc/bin/${i}
-		ln -s /usr/bin/distcc /usr/lib/distcc/bin/${i}
+		rm -f /usr/${LIBDIR}/distcc/bin/${i}
+		ln -s /usr/bin/distcc /usr/${LIBDIR}/distcc/bin/${i}
 	done
-	rm -f /usr/lib/distcc/bin/*-wrapper
+	rm -f /usr/${LIBDIR}/distcc/bin/*-wrapper
 }
 
 cleanup_icecream() {



             reply	other threads:[~2011-06-25 17:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-25 17:52 Matt Turner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-14  1:30 [gentoo-commits] proj/catalyst:catalyst_2 commit in: /, targets/support/ William Hubbs
2011-06-26 17:06 Matt Turner
2011-06-26 17:06 Matt Turner
2011-04-14 10:20 Raúl Porcel
2011-04-10 17:09 Raúl Porcel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7d6fb00a9d36767fa1f88e81f3e02dbdbdd8d8b3.mattst88@gentoo \
    --to=mattst88@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox