Gentoo Archives: gentoo-embedded

From: Ned Ludd <solar@g.o>
To: gentoo-embedded@l.g.o
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-embedded] Interactive command
Date: Thu, 14 Jul 2005 12:00:32
Message-Id: 1121342280.10953.20.camel@localhost
In Reply to: Re: [gentoo-embedded] Interactive command by Kristian Benoit
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

Replies

Subject Author
Re: [gentoo-dev] Re: [gentoo-embedded] Interactive command Kristian Benoit <kbenoit@×××××××.com>