Nigel Kersten
2008-Apr-29 14:24 UTC
[Puppet Users] How are people using install.rb from the source distribution?
I''m looking at re-working or replacing install.rb from the source distribution to allow more flexible installations, primarily to get MacPorts and Fink packages working but to also work on automatic Mac pkg creation from source. How are people currently using it? Currently the command line options are for options like --no-rdoc, --no-man, --quick, --full, but if you want to specify a destination directory other than "/" you pass it as an environment variable. This is pretty clunky really, and I''d like to switch this over to an option and add some more like --destdir --prefix --bindir --sbindir --mandir --sitelibdir etc. Thoughts? -- Nigel Kersten Systems Administrator MacOps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Thom May
2008-Apr-29 14:31 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
2008/4/29 Nigel Kersten <nigelk@google.com>:> I''m looking at re-working or replacing install.rb from the source > distribution to allow more flexible installations, primarily to get MacPorts > and Fink packages working but to also work on automatic Mac pkg creation > from source. > > How are people currently using it? > > Currently the command line options are for options like --no-rdoc, --no-man, > --quick, --full, but if you want to specify a destination directory other > than "/" you pass it as an environment variable. > > This is pretty clunky really, and I''d like to switch this over to an option > and add some more like > > --destdir > --prefix > --bindir > --sbindir > --mandir > --sitelibdirseems much better - the debian packages currently just copy stuff about manually, which is a tad error prone... -T --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
David Lutterkort
2008-Apr-29 18:59 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
On Tue, 2008-04-29 at 16:31 +0200, Thom May wrote:> seems much better - the debian packages currently just copy stuff > about manually, which is > a tad error prone...Same for the RPM''s, which has led to failures in the past. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Nigel Kersten
2008-Apr-29 19:22 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
On Tue, Apr 29, 2008 at 11:59 AM, David Lutterkort <dlutter@redhat.com> wrote:> > > On Tue, 2008-04-29 at 16:31 +0200, Thom May wrote: > > seems much better - the debian packages currently just copy stuff > > about manually, which is > > a tad error prone... > > Same for the RPM''s, which has led to failures in the past. >ok. Is there anything else anyone would like to see in the script other than the options mentioned above? It doesn''t sound like many people are even using the DESTDIR environment variable other than to whack everything in a directory to then re-package. it should still do the same thing as the current script does when called without any options. -- Nigel Kersten Systems Administrator MacOps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-Apr-30 01:23 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
Nigel Kersten wrote:> I''m looking at re-working or replacing install.rb from the source > distribution to allow more flexible installations, primarily to get > MacPorts and Fink packages working but to also work on automatic Mac > pkg creation from source. > > How are people currently using it? > > Currently the command line options are for options like --no-rdoc, > --no-man, --quick, --full, but if you want to specify a destination > directory other than "/" you pass it as an environment variable. > > This is pretty clunky really, and I''d like to switch this over to an > option and add some more like+1 for replacement assuming existing functionality (not options but internally) is maintained. Regards James Turnbull --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Nigel Kersten
2008-Apr-30 01:39 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
On Tue, Apr 29, 2008 at 6:23 PM, James Turnbull <james@lovedthanlost.net> wrote:> > Nigel Kersten wrote: > > I''m looking at re-working or replacing install.rb from the source > > distribution to allow more flexible installations, primarily to get > > MacPorts and Fink packages working but to also work on automatic Mac > > pkg creation from source. > > > > How are people currently using it? > > > > Currently the command line options are for options like --no-rdoc, > > --no-man, --quick, --full, but if you want to specify a destination > > directory other than "/" you pass it as an environment variable. > > > > This is pretty clunky really, and I''d like to switch this over to an > > option and add some more like > +1 for replacement assuming existing functionality (not options but > internally) is maintained. >Yep. So I''m taking it that no-one really cares about maintaining the DESTDIR environment variable? I can throw it in to the replacement, but it''s kind of nasty. Does anyone use any of the current options at all? They''re not even all implemented in the script I believe. -- Nigel Kersten Systems Administrator MacOps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-Apr-30 02:02 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | | Does anyone use any of the current options at all? They''re not even all | implemented in the script I believe. Luke uses the man page creation for new releases but I wrote it and hence it''s kludgy. Regards James Turnbull -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIF9Mv9hTGvAxC30ARAifDAKCxD27SLEiQXt2qapFUKnZm37b3lwCgjQV0 Udn2XAs5tTg6V1XXCIAt7T4=OAJn -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
David Lutterkort
2008-Apr-30 21:06 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
On Tue, 2008-04-29 at 18:39 -0700, Nigel Kersten wrote:> Yep. So I''m taking it that no-one really cares about maintaining the > DESTDIR environment variable? I can throw it in to the replacement, > but it''s kind of nasty.FWIW, if install.rb provides the same control over directories as configure does, that''s good enough. Actually, what you''d really want is options to control prefix, bindir, sbindir etc. and then the ability to use DESTDIR to set a new root dir for all of the above when you actually do the install. That would be a really nice solution. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Nigel Kersten
2008-Apr-30 21:12 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
On Wed, Apr 30, 2008 at 2:06 PM, David Lutterkort <dlutter@redhat.com> wrote:> > > On Tue, 2008-04-29 at 18:39 -0700, Nigel Kersten wrote: > > Yep. So I''m taking it that no-one really cares about maintaining the > > DESTDIR environment variable? I can throw it in to the replacement, > > but it''s kind of nasty. > > FWIW, if install.rb provides the same control over directories as > configure does, that''s good enough. > > Actually, what you''d really want is options to control prefix, bindir, > sbindir etc. and then the ability to use DESTDIR to set a new root dir > for all of the above when you actually do the install. That would be a > really nice solution. >That''s how I was planning to do it, but without an environment variable, and maybe rename destdir to installroot or something. so if you did ./install.rb --bindir=/usr/bin --sbindir=/usr/sbin --installroot=/tmp/pkgroot/ you''d end up with /tmp/pkgroot/usr/bin /tmp/pkgroot/usr/sbin etc The question is whether "--prefix" makes sense in the context of installing ruby libraries. I''m not sure it does, so maybe it shouldn''t be an option. ie ./install.rb --prefix=/usr/local where would the ruby libraries go? -- Nigel Kersten Systems Administrator MacOps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Gary Law
2008-Apr-30 21:56 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
2008/4/30 Nigel Kersten <nigelk@google.com>:> On Tue, Apr 29, 2008 at 6:23 PM, James Turnbull <james@lovedthanlost.net> > wrote: > > > > > > > > > Nigel Kersten wrote: > > > I''m looking at re-working or replacing install.rb from the source > > > distribution to allow more flexible installations, primarily to get > > > MacPorts and Fink packages working but to also work on automatic Mac > > > pkg creation from source. > > > > > > How are people currently using it? > > > > > > Currently the command line options are for options like --no-rdoc, > > > --no-man, --quick, --full, but if you want to specify a destination > > > directory other than "/" you pass it as an environment variable. > > > > > > This is pretty clunky really, and I''d like to switch this over to an > > > option and add some more like > > +1 for replacement assuming existing functionality (not options but > > internally) is maintained. > > > > Yep. So I''m taking it that no-one really cares about maintaining the DESTDIR > environment variable? I can throw it in to the replacement, but it''s kind of > nasty.<waves> I''m using it in the building of the Solaris package... could always move to something else... -- Gary Law Email: gary.law@gmail.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Nigel Kersten
2008-Apr-30 22:03 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
On Wed, Apr 30, 2008 at 2:56 PM, Gary Law <gary.law@gmail.com> wrote:> > > Yep. So I''m taking it that no-one really cares about maintaining the > DESTDIR > > environment variable? I can throw it in to the replacement, but it''s > kind of > > nasty. > > <waves> > I''m using it in the building of the Solaris package... could always > move to something else...ok. is there anything you''re having to hack around on with package creation that the install script could resolve? -- Nigel Kersten Systems Administrator MacOps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
David Lutterkort
2008-Apr-30 22:40 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
On Wed, 2008-04-30 at 14:12 -0700, Nigel Kersten wrote:> That''s how I was planning to do it, but without an environment > variable, and maybe rename destdir to installroot or something. > > so if you did > > ./install.rb --bindir=/usr/bin --sbindir=/usr/sbin > --installroot=/tmp/pkgroot/ > > you''d end up with > > /tmp/pkgroot/usr/bin > /tmp/pkgroot/usr/sbinThat sounds really good.> The question is whether "--prefix" makes sense in the context of > installing ruby libraries. I''m not sure it does, so maybe it shouldn''t > be an option.It would only make sense if the defaults for bindir etc. were defined in terms of ${prefix}, but to be really useful, you''d want some other prefixes (in a way similar to what configure does) I doubt that that would be needed much, though. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
hajducko@gmail.com
2008-May-07 18:28 UTC
[Puppet Users] Re: How are people using install.rb from the source distribution?
I''d vote to keep DESTDIR around. It''s a pretty common ENV variable to pass, especially when packaging RPMs. But yeah, the ability to configure each of the directories specifically would be awesome. Another bonus would be the ability to specify the directories puppet uses in it''s configuration ( /etc/ puppet, /var/puppet, etc ) and generate a workable config with those in place. -- sh On Apr 30, 3:40 pm, David Lutterkort <dlut...@redhat.com> wrote:> On Wed, 2008-04-30 at 14:12 -0700, Nigel Kersten wrote: > > That''s how I was planning to do it, but without an environment > > variable, and maybe rename destdir to installroot or something. > > > so if you did > > > ./install.rb --bindir=/usr/bin --sbindir=/usr/sbin > > --installroot=/tmp/pkgroot/ > > > you''d end up with > > > /tmp/pkgroot/usr/bin > > /tmp/pkgroot/usr/sbin > > That sounds really good. > > > The question is whether "--prefix" makes sense in the context of > > installing ruby libraries. I''m not sure it does, so maybe it shouldn''t > > be an option. > > It would only make sense if the defaults for bindir etc. were defined in > terms of ${prefix}, but to be really useful, you''d want some other > prefixes (in a way similar to what configure does) > > I doubt that that would be needed much, though. > > David--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---