[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#264241: Some corrections regardings statements in this bug



tags 264241 - patch
retitle 264241 removal of tetex-extra fails
thanks

Some corrections regardings statements in this bug ("postrm assumes 
mktexlsr is available").


<--  snip  -->


Ryan Murray:
> You can't assume that any of your dependencies are available in your postrm
> script, so you need to handle the case where mktexlsr has already been
> removed.


mktexlsr is in tetex-bin.

tetex-extra depends on tetex-bin.

Section 7.2. of your policy states:

<--  snip  -->

...
          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.
...

<--  snip  -->


Could you explain your statement which exactly contradicts your policy 
(note that the tetex-extra postinst does nothing during purge)?


Can you reproduce the bug?
If yes, does it help to let /var/lib/dpkg/info/tetex-extra.postrm start 
with
  #!/bin/bash
?


<--  snip  -->


Hilmar Preusse:

> The man page of bash tells us, that it should be sufficient to do so
> if /bin/sh points to /bin/bash. I guess we have to remove the bashism
> in that script and are done. Correct?


If the problem is a bashism, the trival solution is to let the script 
start with
  #!/bin/bash
instead of
  #!/bin/sh

This is 100% correct since bash is Essential and /bin/bash is therefore 
garuanteed to be always available.


<--  snip  -->


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed




Reply to: