Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347701 - toolchain-funcs.eclass: add function to detect 64 bitness
Summary: toolchain-funcs.eclass: add function to detect 64 bitness
Status: RESOLVED DUPLICATE of bug 328401
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-04 09:36 UTC by Dennis Schridde
Modified: 2010-12-04 12:54 UTC (History)
1 user (show)

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 Dennis Schridde 2010-12-04 09:36:33 UTC
I would like to have a function to figure out whether the target architecture is 32 or 64bit. The following would probably work for most cases:
---
tc-is_64bit() {
    [[ "${ARCH%64}" != "${ARCH}" ]]
}
---

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2010-12-04 12:54:09 UTC
yeah, no.  fix your package to use appropriate size/whatever checks.  changing behavior based on "64 bitness" is almost always wrong.

*** This bug has been marked as a duplicate of bug 328401 ***