Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504932 - bash rc should import makeopts from portage configurations
Summary: bash rc should import makeopts from portage configurations
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-18 04:42 UTC by three sixes
Modified: 2014-03-20 13:18 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 three sixes 2014-03-18 04:42:34 UTC
/etc/bash/bashrc needs
MAKEOPTS=$(portageq envvar MAKEOPTS)

so https://wiki.gentoo.org/wiki/Kernel/Configuration#Setup

is just "make" not a circus.

Reproducible: Always

Steps to Reproduce:
1. install gentoo
Comment 1 Alex Xu (Hello71) 2014-03-18 13:26:58 UTC
It is unreasonable for all Gentoo installations to forcibly require Portage.

Moreover, this doesn't even work properly. MAKEOPTS is Portage-specific, and does not automatically affect all make processes on the system. Even if it wasn't, make cannot possibly read a variable that is not exported. And executing fat binaries is bad in bashrc.
Comment 2 SpanKY gentoo-dev 2014-03-20 06:27:42 UTC
except that `make` doesn't respect $MAKEOPTS, so exporting it wouldn't help in the first place.  only Gentoo's `emake` helper uses that.

if you want to get $NUMBER_CORES, then use `getconf`:
 make -j$(getconf _NPROCESSORS_ONLN)
Comment 3 Alex Xu (Hello71) 2014-03-20 13:18:45 UTC
(In reply to SpanKY from comment #2)
> except that `make` doesn't respect $MAKEOPTS, so exporting it wouldn't help
> in the first place.  only Gentoo's `emake` helper uses that.
> 
> if you want to get $NUMBER_CORES, then use `getconf`:
>  make -j$(getconf _NPROCESSORS_ONLN)

1. I said that already.

2. Oh god why. `make -j$(nproc)`