Re: using perl in preinst script

2010-12-31 Thread Raphael Hertzog
On Fri, 31 Dec 2010, Carsten Hey wrote: * Philipp Kern [2010-12-29 05:38 +]: On 2010-12-28, Carsten Hey cars...@debian.org wrote: ... One reason for this is that dpkg's perl scripts were rewritten in C. I know you phrased it differently but wasn't the motivation for this

Re: using perl in preinst script

2010-12-30 Thread Philipp Kern
On 2010-12-30, Peter Samuelson pe...@p12n.org wrote: On 2010-12-28, Carsten Hey cars...@debian.org wrote: system. The remaining perl library packages could be removed after installing debconf-english. [Philipp Kern] You don't care about non-native speakers? SCNR. That's not how I read it

Re: using perl in preinst script

2010-12-30 Thread Carsten Hey
* Philipp Kern [2010-12-29 05:38 +]: On 2010-12-28, Carsten Hey cars...@debian.org wrote: ... One reason for this is that dpkg's perl scripts were rewritten in C. I know you phrased it differently but wasn't the motivation for this rewrite to be more robust in the base system on

Re: using perl in preinst script

2010-12-29 Thread Neil Williams
On Tue, 28 Dec 2010 15:07:56 -0800 Russ Allbery r...@debian.org wrote: Carsten Hey cars...@debian.org writes: We are not that far away from being able to implement this plan. The principle reason to consider not having perl / perl-base installed as part of a minimal base system (note that I

Re: using perl in preinst script

2010-12-29 Thread Peter Samuelson
On 2010-12-28, Carsten Hey cars...@debian.org wrote: system. The remaining perl library packages could be removed after installing debconf-english. [Philipp Kern] You don't care about non-native speakers? SCNR. That's not how I read it at all. I think he's just saying, debconf-i18n

Re: using perl in preinst script

2010-12-28 Thread Carsten Hey
* Russ Allbery [2010-12-27 08:49 -0800]: Luk Claes l...@debian.org writes: I thought there were some plans to try to get rid of perl-base being essential, in that case only shell (or C?) is a real alternative. We are not that far away from being able to implement this plan. One reason for

Re: using perl in preinst script

2010-12-28 Thread Russ Allbery
Carsten Hey cars...@debian.org writes: We are not that far away from being able to implement this plan. One reason for this is that dpkg's perl scripts were rewritten in C. After debootstraping the minbase variant of sid, installing file-rc and removing insserv, there is not much perl left

Re: using perl in preinst script

2010-12-28 Thread Steve Langasek
On Tue, Dec 28, 2010 at 11:48:18PM +0100, Carsten Hey wrote: * pam_getenv and pam-auth-update from libpam-runtime: pam_getenv is 76 lines of code. pam-auth-update is 490 lines of code and has been added after Lenny has been released. And the lack of pam-auth-update has been a glaring

Re: using perl in preinst script

2010-12-28 Thread Carsten Hey
* Steve Langasek [2010-12-28 15:46 -0800]: On Tue, Dec 28, 2010 at 11:48:18PM +0100, Carsten Hey wrote: * pam_getenv and pam-auth-update from libpam-runtime: pam_getenv is 76 lines of code. pam-auth-update is 490 lines of code and has been added after Lenny has been released. And

Re: using perl in preinst script

2010-12-28 Thread Philipp Kern
On 2010-12-28, Carsten Hey cars...@debian.org wrote: * Russ Allbery [2010-12-27 08:49 -0800]: Luk Claes l...@debian.org writes: I thought there were some plans to try to get rid of perl-base being essential, in that case only shell (or C?) is a real alternative. We are not that far away

using perl in preinst script

2010-12-27 Thread Rahul Amaram
Hi, I am the maintainer for calendarserver. I have a query reg. preinst script. I need to perform some action during preinst before the upgrade of calendarserver happens from 1.x to 2.x. For this, I wrote the necessary code in python in preinst script. But this was rejected into being accepted

Re: using perl in preinst script

2010-12-27 Thread Neil Williams
On Mon, 27 Dec 2010 16:53:11 +0530 Rahul Amaram amaramra...@users.sourceforge.net wrote: As the upgrade code has to parse .plist files, writing shell script would be a very difficult task. So I would like to know what are my other options? Could I write it in perl? $ file

Re: using perl in preinst script

2010-12-27 Thread Tollef Fog Heen
]] Rahul Amaram | I am the maintainer for calendarserver. I have a query reg. preinst | script. I need to perform some action during preinst before the upgrade of | calendarserver happens from 1.x to 2.x. For this, I wrote the necessary | code in python in preinst script. But this was rejected

Re: using perl in preinst script

2010-12-27 Thread Adam Borowski
On Mon, Dec 27, 2010 at 04:53:11PM +0530, Rahul Amaram wrote: Hi, I am the maintainer for calendarserver. I have a query reg. preinst script. I need to perform some action during preinst before the upgrade of calendarserver happens from 1.x to 2.x. For this, I wrote the necessary code in

Re: using perl in preinst script

2010-12-27 Thread Neil Williams
On Mon, 27 Dec 2010 13:19:57 +0100 Tollef Fog Heen tfh...@err.no wrote: ]] Rahul Amaram | I am the maintainer for calendarserver. I have a query reg. preinst | script. I need to perform some action during preinst before the | upgrade of calendarserver happens from 1.x to 2.x. For this, I

Re: using perl in preinst script

2010-12-27 Thread Rahul Amaram
Hi, Thanks a lot for the prompt responses. I am a new maintainer (sponsored) and so not aware of some issues. I really appreciate all the help given in the list. Continuing with my previous mail, this is what the preinst script does: - Read the current caldavd.plist configuration file if it

Re: using perl in preinst script

2010-12-27 Thread Neil Williams
On Mon, 27 Dec 2010 18:27:10 +0530 Rahul Amaram amaramra...@users.sourceforge.net wrote: - Read the current caldavd.plist configuration file if it exists - If NSS directory service is configured in caldavd.plist, ... then stop processing in the preinst at this point and set the config to not

Re: using perl in preinst script

2010-12-27 Thread Luk Claes
On 12/27/2010 01:45 PM, Neil Williams wrote: On Mon, 27 Dec 2010 13:19:57 +0100 Tollef Fog Heen tfh...@err.no wrote: ]] Rahul Amaram | I am the maintainer for calendarserver. I have a query reg. preinst | script. I need to perform some action during preinst before the | upgrade of

Re: using perl in preinst script

2010-12-27 Thread Rahul Amaram
Hi Neil, Thanks for the response. I didn't intend to work on this update as per my leisure. I greatly admire the Debian release team for the effort they put in, in trying to make Debian a great experience to the end users. As I've already told you, I am new and therefore didn't know of the

Re: using perl in preinst script

2010-12-27 Thread Philipp Kern
On 2010-12-27, Rahul Amaram amaramra...@users.sourceforge.net wrote: Thanks for the response. I didn't intend to work on this update as per my leisure. I greatly admire the Debian release team for the effort they put in, in trying to make Debian a great experience to the end users. As I've

Re: using perl in preinst script

2010-12-27 Thread Aron Xu
On Tue, Dec 28, 2010 at 00:32, Rahul Amaram amaramra...@users.sourceforge.net wrote: Hi Neil, Thanks for the response. I didn't intend to work on this update as per my leisure. I greatly admire the Debian release team for the effort they put in, in trying to make Debian a great experience to

Re: using perl in preinst script

2010-12-27 Thread Russ Allbery
Luk Claes l...@debian.org writes: I thought there were some plans to try to get rid of perl-base being essential, in that case only shell (or C?) is a real alternative. I cannot imagine this ever happening at a practical level. -- Russ Allbery (r...@debian.org)

Re: using perl in preinst script

2010-12-27 Thread Rahul Amaram
Thanks Philips. I've subscribed to the debian-devel-announce list. Is it also necessary that I subscribe to debian-announce i.e. will posts to debian-announce be automatically marked to debian-devel-annouce? On Monday 27 December 2010 10:11 PM, Philipp Kern wrote: On 2010-12-27, Rahul

Re: using perl in preinst script

2010-12-27 Thread Rahul Amaram
The package depends on python anyways. My only query is as I am using python in postinst script, is it sufficient to mention it as part of Depends or should it still be mentioned in Pre-Depends? Apart from that, as per the response given by Neil and also my sponsorer, I think the below logic

Re: using perl in preinst script

2010-12-27 Thread Russ Allbery
Rahul Amaram amaramra...@users.sourceforge.net writes: The package depends on python anyways. My only query is as I am using python in postinst script, is it sufficient to mention it as part of Depends or should it still be mentioned in Pre-Depends? Depends is sufficient for postinst

Re: using perl in preinst script

2010-12-27 Thread Philipp Kern
On 2010-12-27, Rahul Amaram amaramra...@users.sourceforge.net wrote: Thanks Philips. I've subscribed to the debian-devel-announce list. Is it also necessary that I subscribe to debian-announce i.e. will posts to debian-announce be automatically marked to debian-devel-annouce? No,