Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430566 - sys-devel/crossdev installed bashrc doesn't run cross-fix-root when it should
Summary: sys-devel/crossdev installed bashrc doesn't run cross-fix-root when it should
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 10:54 UTC by John Keeping
Modified: 2025-01-04 00:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Keeping 2012-08-09 10:54:42 UTC
It looks like crossdev sets up make.conf to have ROOT=/usr/${CHOST}/ but the wrapper scripts use SYSROOT=/usr/${CHOST} (note the trailing slash), which means that the check in the bashrc for "$SYSROOT == $ROOT" fails.

I've changed my bashrc to use ${ROOT%/} in the comparison, which fixes this.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-04 00:04:46 UTC
commit a4ab14acf5522e3ced4d71d535657d6f241c23c0
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Dec 22 22:08:43 2013 -0500

    wrappers: drop custom bashrc/e_machine logic

    Cross-compiling logic has largely stabilized enough now that we don't need
    this post-install hack to keep things sane.  Plus, if you install a package
    that doesn't cross-compile properly, you'll notice pretty quickly.

    Signed-off-by: Mike Frysinger <vapier@gentoo.org>