gentoo-alt  

Re: [gentoo-alt] ebuild shell

Jeremy Olexa
Fri, 20 Nov 2009 06:50:31 -0800

On Fri, 20 Nov 2009 15:37:55 +0100, Ramon van Alteren
<ra...@vanalteren.nl>
wrote:
> All,
> 
> Recent question on IRC about a ebuild shell which can drop you in a
ebuild
> environment on prefix in any stage of the ebuild revealed that we
actually
> have such a thing. Originally made by haubi...
> 
> Is there any docs on how to use this ?
> 
> I would dearly love using it, it would help hone my newly developing
> ebuild writing skills
> Any pointers to source or docs would be very appreciated.
> 
> Regards
> 
> Ramon

Yea, it could be documented better. But don't expect much unless this bug
is resolved and added to portage proper http://bugs.gentoo.org/155161

Until then, just emerge something with FEATURES=ebuildhsell

%% FEATURES=ebuildshell emerge -av bash

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-shells/bash-4.0_p35  USE="net nls -afs -bashlogger
-examples (-i6fork) -plugins -vanilla" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-shells/bash-4.0_p35
 * checking ebuild checksums ;-) ...                                     [
ok ]
 * checking auxfile checksums ;-) ...                                    [
ok ]
 * checking miscfile checksums ;-) ...                                   [
ok ]
bash: no job control in this shell
pkg_setup is a function
pkg_setup () 
{ 
    if is-flag -malign-double; then
        eerror "Detected bad CFLAGS '-malign-double'.  Do not use this";
        eerror "as it breaks LFS (struct stat64) on x86.";
        die "remove -malign-double from your CFLAGS mr ricer";
    fi
}
WANTED: pkg_setup
EBUILD bash pkg_setup $