[maemo-developers] bug in howto_making_an_application_package_bora instructions (was: dpkg: serious warning: files list)

From: Eero Tamminen eero.tamminen at nokia.com
Date: Tue Feb 20 17:15:00 EET 2007
Hi,

ext Eero Tamminen wrote:
> ext Marius Vollmer wrote:
>> "ext Guillem Jover" <guillem.jover at nokia.com> writes:
>>
>>> * Why are you using a Pre-Depends?
>>
>> He is using this pre-depends:
>>
>>     Pre-Depends: maemo-select-menu-location
>>
>> This one ultimately comes from the "How to make a package for the
>> Application Manager" document here:
>>
>> http://maemo.org/platform/docs/howtos/howto_making_an_application_package_bora.html#utilities 
>>
>>
>> The maemo-select-menu-location utility is supposed to be used from
>> maintainer scripts, and I thought that you should pre-depend on
>> packages providing these utilities in this case.  Not true?
> 
> Hm. Debian policy states following:

Even better:
http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
--------------------
The Depends field should also be used if the postinst, prerm or postrm 
scripts require the package to be present in order to run. Note, 
however, that the postrm cannot rely on any non-essential packages to be 
present during the purge phase.
...
Pre-Depends should be used sparingly, preferably only by packages whose 
premature upgrade or installation would hamper the ability of the system 
to continue with any upgrade that might be in progress.
--------------------

I think this fairly clearly states that Depends should be used
for maemo-select-menu-location as it's (AFAIK) used only at the
postinst phase.  Who does a bug on the howto?


	- Eero

More information about the maemo-developers mailing list