Bug#608099: unblock: calendarserver/2.4.dfsg-3
On Mon, 2010-12-27 at 12:32 +0530, Rahul Amaram wrote: Please unblock package calendarserver The latest version of calendarserver in sid (2.4.dfsg-3) has a preinst script which facilitates for auto-migration of caldavd data directories when using NSS directory backend. This is very useful for users who use NSS directory service backend and would like to have their old calendars available after the upgrade. Thanks for your work on this package. Unfortunately, you can't write your preinst in Python, as the python interpreter package is not essential so you cannot rely on it being available at the time your preinst runs. Even adding the Pre-Depends for the interpreter is not sufficient; Policy only requires that the Pre-Depended package be unpacked at the point that the new preinst runs and as python is not essential there is no guarantee that it will be sufficiently operational when unpacked but not installed. In general terms, your preinst should also handle the arguments which will be passed to it and not attempt the migration if being called as part of the rollback of a failed install. When adding new Pre-Depends to your package, these should be discussed on debian-devel beforehand. One of the reasons that this is required is that Pre-Depends generally make the life of the package manager harder when computing upgrades, and there are often better solutions; in this case, I suspect the above advice about not writing the preinst in Python would have been given. Regards, Adam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#608099: unblock: calendarserver/2.4.dfsg-3
Oh. That is bad news. Anyway, what are my options? Can I write the preinst script in perl? I have seen few other packages do it. Writing the preinst script in sh would be really complicated though. Regards, Rahul. On Monday 27 December 2010 02:41 PM, Adam D. Barratt wrote: On Mon, 2010-12-27 at 12:32 +0530, Rahul Amaram wrote: Please unblock package calendarserver The latest version of calendarserver in sid (2.4.dfsg-3) has a preinst script which facilitates for auto-migration of caldavd data directories when using NSS directory backend. This is very useful for users who use NSS directory service backend and would like to have their old calendars available after the upgrade. Thanks for your work on this package. Unfortunately, you can't write your preinst in Python, as the python interpreter package is not essential so you cannot rely on it being available at the time your preinst runs. Even adding the Pre-Depends for the interpreter is not sufficient; Policy only requires that the Pre-Depended package be unpacked at the point that the new preinst runs and as python is not essential there is no guarantee that it will be sufficiently operational when unpacked but not installed. In general terms, your preinst should also handle the arguments which will be passed to it and not attempt the migration if being called as part of the rollback of a failed install. When adding new Pre-Depends to your package, these should be discussed on debian-devel beforehand. One of the reasons that this is required is that Pre-Depends generally make the life of the package manager harder when computing upgrades, and there are often better solutions; in this case, I suspect the above advice about not writing the preinst in Python would have been given. Regards, Adam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#608099: unblock: calendarserver/2.4.dfsg-3
On Mon, Dec 27, 2010 at 12:32:08 +0530, Rahul Amaram wrote: Package: release.debian.org Severity: normal User: release.debian@packages.debian.org Usertags: unblock Please unblock package calendarserver Based on Adam's reply this won't get into squeeze so closing this bug. Cheers, Julien signature.asc Description: Digital signature
Bug#608099: unblock: calendarserver/2.4.dfsg-3
On Mon, 2010-12-27 at 15:22 +0530, Rahul Amaram wrote: Oh. That is bad news. Anyway, what are my options? Can I write the preinst script in perl? I have seen few other packages do it. Writing the preinst script in sh would be really complicated though. You can indeed write it in perl, although should probably only use the functionality from perl-base, which is essential. I see from the thread you started on debian-devel that you've had some other suggestions. Regards, Adam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#608099: unblock: calendarserver/2.4.dfsg-3
Package: release.debian.org Severity: normal User: release.debian@packages.debian.org Usertags: unblock Please unblock package calendarserver The latest version of calendarserver in sid (2.4.dfsg-3) has a preinst script which facilitates for auto-migration of caldavd data directories when using NSS directory backend. This is very useful for users who use NSS directory service backend and would like to have their old calendars available after the upgrade. The changes in the new version are just the inclusion of a preinst script for performing upgradation of the calendar data directories when using NSS service backend. Nothing else has really been modified. unblock calendarserver/2.4.dfsg-3 -- System Information: Debian Release: 5.0.4 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org