Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-ppc-dev
Navigation:
Lists: gentoo-ppc-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentooppc-dev@g.o
From: Mark Guertin <gerk@g.o>
Subject: ARCH checks
Date: Fri Jun 21 16:58:02 2002
Hello All

Something was brought to my attention today (along with a realization of how 
portage works fr some things) and i want to share it with you all.

For any/all PPC only ebuilds we should put a check so that it doesn't try to 
build on non PPC arches, and that check should be within the first function 
(i.e. src_compile() src_uncompress() or whatever it happens to be).

There were several PPC only builds tha didn't have it like this, and some 
tools being worked on for QA stuff right now check all the ebuilds 
(regardless of ARCH) for deps and the like, and having the check outside of a 
function causes problems as the build drops before it can report on the deps.

Here's an example of how it could look:

src_compile() {
        # if not ppc bail
        if [ ${ARCH} != "ppc" ] ; then
                einfo "Sorry, this is a PPC only utility"
                exit 1
        fi

<snip>

}

This is not the best solution IMHO as it still makes the x86 users dl the src 
tarballs, but it does allow portage to fully test the deps as needed 
currently :(

There should be a more elegant way with the upcoming USE additions, but for 
now this is the best way to do things.

Mark

Navigation:
Lists: gentoo-ppc-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gcc atexit() issue
Next by thread:
Bug reporting procedures
Previous by date:
gcc atexit() issue
Next by date:
Bug reporting procedures


Updated Jun 17, 2009

Summary: Archive of the gentoo-ppc-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.