public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ebuild question
@ 2003-06-10 14:25 MAL
  2003-06-10 15:40 ` [gentoo-dev] A nice idea to improve portage MooktaKiNG
  2003-06-12 11:34 ` [gentoo-dev] ebuild question Amiel Martin
  0 siblings, 2 replies; 24+ messages in thread
From: MAL @ 2003-06-10 14:25 UTC (permalink / raw
  To: gentoo-dev

I'm writing an ebuild for ZoneMinder, and I have a few problems/queries..

The program is a bunch of php and a few cgi apps.  After configuring, 
the package asks you to run a perl script which interactively asks you 
for initial configuration, then updates the .php files with this info. 
'make install' then installs the .php files into your document root, 
(and the cgi into your cgi-bin dir).

Now, I don't want to break the non-interactivity of portage, but I can't 
just leave an 'einfo' message to the user after install, asking them to 
run the perl script, because this must be done before install.

So, do I either:

* Use expect to answer the perl script's questions with some sensible 
defaults, then leave a message to the user on how to change these 
defaults after install, (in which case, should I add expect to the 
DEPEND line?)

* Re-package the software entirely, (there is a compiled part and a 
non-compiled php part.. maybe separate the php part out).  I'm kinda 
loathed to do this, as it seems like unnecessary maintenance.

* Modify the perl script to automatically set certain defaults.


Additionally, what do I do about the location of apache, and the 
user/group to set the php files as? :)
I noticed the recent eclass submission, but I'm assuming I can't use 
that just yet, so /home/httpd/htdocs and apache:apache ?

Cheers,
MAL


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 24+ messages in thread
* RE: [gentoo-dev] A nice idea to improve portage
@ 2003-06-10 18:16 Balaji Srinivasan
  2003-06-10 18:36 ` Marius Mauch
  2003-06-10 18:46 ` John Robinson
  0 siblings, 2 replies; 24+ messages in thread
From: Balaji Srinivasan @ 2003-06-10 18:16 UTC (permalink / raw
  To: 'strider@aravir.net', gentoo-dev

A better idea would be if portage wrote those messages to a file and we
could view it when we wanted. ie. We could have a showEbuildMessages or some
such program that showed all those messages and allowed you to ack each one.
I think this would be pretty useful as normally when i am fixing things i
dont have time to fix all of it in one shot...
Balaji

-----Original Message-----
From: John Robinson [mailto:strider@aravir.net]
Sent: Tuesday, June 10, 2003 11:05 AM
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] A nice idea to improve portage


> I know i know. there are some text at the end of the emerge that
> says what you should do.
> 
> But when your doind multiple emerge's one after the other and you
> leave gentoo todo its thing. You don't see the text.
> 
> So if there was a nice README file that explain the 'extra' setting
> needed on each dir in portage then it would make things a LOT easier
> and would be very helpful.

Honestly, I think I'd much prefer if portage just queued all of those
messages and displayed them at the end of the emerge. If that
information was in a README, you'd have to go, find, and read the README
for every package and dependency that you install. That's a lot of work.
Since portage is supposed to be non-interactive, it shouldn't assume
that you're gonna stick around watching the terminal while it does its
thing. ;)

- John

-- 

Love justice; desire mercy.


--
gentoo-dev@gentoo.org mailing list

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 24+ messages in thread
* RE: [gentoo-dev] A nice idea to improve portage
@ 2003-06-10 20:15 Balaji Srinivasan
  0 siblings, 0 replies; 24+ messages in thread
From: Balaji Srinivasan @ 2003-06-10 20:15 UTC (permalink / raw
  To: 'tberman@gentoo.org', gentoo-dev

I agree too...having this in etc-update would be good.
Balaji

-----Original Message-----
From: Todd Berman [mailto:tberman@gentoo.org]
Sent: Tuesday, June 10, 2003 1:03 PM
To: gentoo-dev@gentoo.org
Subject: RE: [gentoo-dev] A nice idea to improve portage



On Tue, 2003-06-10 at 14:46, John Robinson wrote:
> On Tue, 2003-06-10 at 14:16, Balaji Srinivasan wrote:
> > A better idea would be if portage wrote those messages to a file and
we
> > could view it when we wanted. ie. We could have a showEbuildMessages
or some
> > such program that showed all those messages and allowed you to ack
each one.
> > I think this would be pretty useful as normally when i am fixing
things i
> > dont have time to fix all of it in one shot...
> 
> I agree; that would be an excellent idea. I would, however, at least
be
> in favor of portage printing something in red at the end of an emerge
> stating that the file had been updated and needed to be looked at;
> better, if it would print the (newly added) contents of the file. Some
> of the messages printed are about crucial things that need to be done,
> often configuration changes; leaving them to be read only if one feels
> like it might leave people thinking that the messages there don't
apply
> to them.
> 
> - John
Just a quick note. I agree completely that portage must somehow output
this information after a massive emerge, or store it somewhere, however,
I question the sanity of yet another small utility. We already have
etc-update, env-update, modules-update and a host of other 'small'
applications. In my experience helping people on #gentoo, one of the
most common problems is the average new gentoo user's lack of awareness
of the existence of these small helper applications.

Integrating this with etc-update or another -update application seems
like a far better idea than just writing another script.

In fact, the idea of replacing all of said applications with ONE
gentoo-update seems like something that should be approached in the near
future. Even if gentoo-update is just a shell script that calls other
shell scripts.

--Todd



--
gentoo-dev@gentoo.org mailing list

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2003-06-12 11:34 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-10 14:25 [gentoo-dev] ebuild question MAL
2003-06-10 15:40 ` [gentoo-dev] A nice idea to improve portage MooktaKiNG
2003-06-10 16:07   ` Matthew Kennedy
2003-06-10 18:05   ` John Robinson
2003-06-10 20:20     ` Philippe Lafoucrière
2003-06-11  3:18       ` Luke Graham
2003-06-11  5:10         ` Bill Kenworthy
2003-06-10 21:56     ` MooktaKiNG
2003-06-10 21:42       ` Zach Forrest
2003-06-10 23:26         ` Kumba
2003-06-11 11:52   ` [gentoo-dev] Readme files for portage (was: A nice idea to improve portage) Svyatogor
2003-06-11 10:37     ` MooktaKiNG
2003-06-11 10:10       ` Michael Cummings
2003-06-11 10:44         ` Paul de Vrieze
2003-06-11 13:24         ` [gentoo-dev] " D. Tuinstra
2003-06-11 15:47           ` oford
2003-06-11 17:06         ` [gentoo-dev] " MooktaKiNG
2003-06-12 11:34 ` [gentoo-dev] ebuild question Amiel Martin
  -- strict thread matches above, loose matches on Subject: below --
2003-06-10 18:16 [gentoo-dev] A nice idea to improve portage Balaji Srinivasan
2003-06-10 18:36 ` Marius Mauch
2003-06-10 18:46 ` John Robinson
2003-06-10 20:02   ` Todd Berman
     [not found]   ` <1055271494.8194.8.camel@devweb>
2003-06-10 20:11     ` John Robinson
2003-06-10 20:15 Balaji Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox