1 |
On Thu, 2005-07-14 at 01:13 -0400, Kristian Benoit wrote: |
2 |
> On Wed, 2005-07-13 at 20:02 -0400, Ned Ludd wrote: |
3 |
> > On Wed, 2005-07-13 at 18:44 -0400, Kristian Benoit wrote: |
4 |
> > > I'm trying to add a new command to ebuild (preconfig) for packages like |
5 |
|
6 |
|
7 |
> But anyway, the question is not whether the idea is good or not, but how |
8 |
> to get a menuconfig that works within ebuild.sh (called from spawn in |
9 |
> portage_exec ... called from the user with ebuild or emerge)? |
10 |
|
11 |
Well portage is a non-interactive tool and it's staying that way. |
12 |
For what you want you will need to edit the busybox/-sources/uClibc |
13 |
ebuild and manually add in a call to make menuconfig. |
14 |
Or add something like this untested example to your |
15 |
local /etc/portage/bashrc |
16 |
|
17 |
if [[ $EBUILD_PHASE == compile ]]; then |
18 |
case "$PN" in |
19 |
busybox) |
20 |
uclibc) |
21 |
*-sources) |
22 |
echo "we are at the stage where portage has unpacked the " |
23 |
echo "ebuild and is getting ready to compile." |
24 |
echo "being that no portage dev in his/her right mind would ever" |
25 |
echo "allow interactive code in an ebuild we use bashrc tricks" |
26 |
echo "here to get what Kristian is after" |
27 |
/usr/bin/make menuconfig || exit 1 |
28 |
;; |
29 |
esac |
30 |
fi |
31 |
|
32 |
|
33 |
-- |
34 |
Ned Ludd <solar@g.o> |
35 |
|
36 |
-- |
37 |
gentoo-embedded@g.o mailing list |