commit:     f9e1a26e5f6ed8f0df7fe16f5f3fe4c3aa5d69af
Author:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 13 02:16:00 2017 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Fri Oct 13 02:19:14 2017 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=f9e1a26e

sys-devel/crossdev: add fixes for several bugs and patches

* pull in EPREFIX/ROOT fixes from heroxbd on github
* includes portage patch for functions path
* add snippet to force multilib on for avr targets

see: https://github.com/heroxbd/crossdev
     https://bugs.gentoo.org/show_bug.cgi?id=378387
     http://forum.arduino.cc/index.php?topic=93672.0

Signed-off-by: Steve Arnold <nerdboy <AT> gentoo.org>

 crossdev | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/crossdev b/crossdev
index 5bb4b77..78d63da 100755
--- a/crossdev
+++ b/crossdev
@@ -1022,9 +1022,17 @@ set_portage() {
 
        [[ ${pkg} == "[none]" ]] && return 0
 
+       case ${CTARGET} in
+               # avr requires multilib, that provides
+               # libgcc for all sub-architectures #378387
+               avr*)      set_use_force ${pkg} multilib
+                       ;;
+               *)        set_use_force ${pkg} -multilib
+                       ;;
+       esac
+
        set_keywords ${pkg} ${ver}
        set_use ${pkg} ${use}
-       set_use_force ${pkg} -multilib
        set_use_mask ${pkg} -multilib
        set_links ${cat} ${pkg} "${ovl}"
        set_env ${l} ${pkg} "${env}"

Reply via email to