Re: [pkg-discuss] Regarding IPS custom actions

2007-12-11 Thread Danek Duvall
On Tue, Dec 11, 2007 at 06:22:37PM +0530, Gerard Jesudoss wrote:

 Once thing we noticed is that the new custom action should also be known 
 to the server at the time of publishing the packages(ie, pkgsend).
 Since this custom action is required to be run during install time, we 
 are trying to see if this server dependency can be avoided during 
 package publishing time?
 
 Can anyone let us know if this is the expected behavior or its a 
 bug(server requiring to know about custom action at package publishing time)

It's not a bug at the moment, but it'd be rerally nice to get rid fo the
dependency.  Could you file an RFE to track this?

Thanks,
Danek
___
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss


Re: [pkg-discuss] Regarding IPS custom actions

2007-12-11 Thread Bart Smaalders
Joe Di Pol wrote:
 OK, I'll jump in here with an example.
 
 When my product's package is installed I want to put an entry in
 the user's Start/Launch menu. Constraints:
 
 o My product is an unbundled application
 o The package is being installed into a user image by a non-root user.
So I can't just plop files in a well known location.
 o I need to support multiple platforms, and some desktops
may require different mechanisms for populating the Start menu
other than just dropping files into well known locations.
 o I need to support multiple platforms so I can't rely on SMF.
 o I can't defer this to application start-up since the start menu
items should be there to start the application in the first place.
 
 Is it reasonable to create an action for this?
 

No.

Actions should be confined to those things needed to either
install files (such as adding a usr to the local db) or boot
successfully.  The packaging system should not embed knowledge
about populating start menus.

What we still need to write is the generic do this on live
image after successful install when prerequisites are met action,
which is what you need.  It maps pretty well to SMF on Solaris.

- Bart

-- 
Bart Smaalders  Solaris Kernel Performance
[EMAIL PROTECTED]   http://blogs.sun.com/barts
___
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss


Re: [pkg-discuss] Regarding IPS custom actions

2007-12-11 Thread Danek Duvall
On Tue, Dec 11, 2007 at 06:08:05PM -0800, Joe Di Pol wrote:

 Danek Duvall wrote:
 On Tue, Dec 11, 2007 at 06:22:37PM +0530, Gerard Jesudoss wrote:

 Once thing we noticed is that the new custom action should also be known 
 to the server at the time of publishing the packages(ie, pkgsend).
 Since this custom action is required to be run during install time, we 
 are trying to see if this server dependency can be avoided during package 
 publishing time?

 Can anyone let us know if this is the expected behavior or its a 
 bug(server requiring to know about custom action at package publishing 
 time)

 It's not a bug at the moment, but it'd be rerally nice to get rid fo the
 dependency.  Could you file an RFE to track this?

 Isn't this really more than a nice to? Isn't it really a pretty bad bug?

It's annoying if you're adding new actions, yes.  That's not a particularly
common operation at the moment, though.  Though honestly, I don't care too
much whether it comes in as an rfe or a bug.

 One common response to no scripting is we can added new actions when
 we need to. In the future when the world is running thousands of IPS
 repositories then this bug makes it pretty impractical to add a new
 action.

It's a common response, but we tend to preferentially present other
possibilities -- we'd like to limit the number of actions if we can.
Operations which can be deferred until after installation probably should
be.  The points you raise in your other message are valid, but I don't
think they require the creation of a new action.

Danek
___
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss


Re: [pkg-discuss] Regarding IPS custom actions

2007-12-11 Thread Joe Di Pol


Danek Duvall wrote:
 On Tue, Dec 11, 2007 at 06:22:37PM +0530, Gerard Jesudoss wrote:
 
 Once thing we noticed is that the new custom action should also be known 
 to the server at the time of publishing the packages(ie, pkgsend).
 Since this custom action is required to be run during install time, we 
 are trying to see if this server dependency can be avoided during 
 package publishing time?

 Can anyone let us know if this is the expected behavior or its a 
 bug(server requiring to know about custom action at package publishing time)
 
 It's not a bug at the moment, but it'd be rerally nice to get rid fo the
 dependency.  Could you file an RFE to track this?

Isn't this really more than a nice to? Isn't it really a pretty bad bug?

One common response to no scripting is we can added new actions when we
need to. In the future when the world is running thousands of IPS repositories
then this bug makes it pretty impractical to add a new action.


Joe


 
 Thanks,
 Danek
 ___
 pkg-discuss mailing list
 pkg-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
___
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss