Gentoo Archives: gentoo-dev

From: JR Boyens <jboyens@×××××××.edu>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] ebuild requiring user input
Date: Mon, 20 May 2002 08:56:54
Message-Id: 20020520135833.GA15411@fooninja.org
In Reply to: Re: [gentoo-dev] ebuild requiring user input by Scott J Garner
1 You probably going to have to patch the Makefile...
2
3 or
4
5 I believe that the ALSA ebuild has an optional shell var that says
6 what cards will be built, which would be similar to what you want. :)
7
8 On Mon, May 20, 2002 at 01:25:04AM -0500 or thereabouts, Scott J Garner wrote:
9 > Ok, I must not have explained this very well...
10 >
11 > It wasn't my intention to have the ebuild require
12 > user intervention by default, but as an option if
13 > need be (as indicated at the end of the message).
14 >
15 > The hardware in question is the ir controller for
16 > the remote to use which can be any number of
17 > external or onboard devices. There is a configure
18 > option for "any" driver which would allow for a
19 > automatic ebuild and would be default. The
20 > problem with that is that it doesn't build all of
21 > the drivers--specifically leaving out those that
22 > require a lirc kernel module.
23 >
24 > This problem seems beyond the scope of use vars to
25 > me...in my eyes the solution is to use the "any"
26 > driver by default and if this didn't sufficient
27 > allow the user to specify the proper options. The
28 > question then is, do I just allow for them to
29 > enter the required configure options by hand or
30 > provide someway to use the dialog based config
31 > util or both?
32 >
33 > I suppose it would be possible to store the ir
34 > related data someplace in etc, but it varies so
35 > much from system to system and would be used so
36 > rarely it seems overkill.
37 >
38 > It would be really nice if this problem was
39 > avoidable, but for some reason the authors of lirc
40 > decided one should tweak all of the settings
41 > before compile instead of after as usual.
42 >
43 >
44 >
45 > On Sun 19 May 2002 at 14:16 -0500,
46 > George Shapovalov wrote:
47 >
48 > > Hi
49 > >
50 > > On Sunday 19 May 2002 09:37, Scott J Garner wrote:
51 > > > What is the prefered way to handle an ebuild for
52 > > > software that requires some kind of user input to
53 > > > configure and compile?
54 > > Figuring out how to get around questions and supply default or tuned answers
55 > > :).
56 > >
57 > > > The package I am dealing with specifically is
58 > > > lirc. The recommended method for configuring it
59 > > > is to run a dialog based config util which
60 > > > generates the proper ./configure options. This
61 > > > could be skipped, but some of the options are very
62 > > > hardware specific.
63 > > Like what kind of hardware?
64 > > Architecture: use ARCH setting.
65 > > Sound: there are alsa/oss use vars,
66 > > etc.
67 > > General idea: use whatever is listed in use.desc to figure out what options to
68 > > pass to confgure. If you feel a need to introduce new use flag, you can make
69 > > that proposal. If you will be able to show that this usevar will be usefull
70 > > as well somewere else chances are good that usevar will be accepted.
71 > > Grep through ebuilds for "use " to see the examples. RTFM helps as well
72 > > (ebuild developer howto) :).
73 > >
74 > > George
75 > >
76 > > _______________________________________________
77 > > gentoo-dev mailing list
78 > > gentoo-dev@g.o
79 > > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
80 > >
81 >
82 > --
83 > - Scott J Garner -
84 > - Austin, TX - USA -
85 > - AIM: Jungalero OPN: MrFab -
86 > _______________________________________________
87 > gentoo-dev mailing list
88 > gentoo-dev@g.o
89 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
90 >