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

Re: Perl files in base.



On Fri, 19 Sep 1997, Fabrizio Polacco wrote:

> Christian Schwarz wrote:
> > 
> > For example, we are still looking for a solution with the tetex-*
> > postinst script. This script could be made much faster by using a
> > simple Perl script that uses the dpkg-perl modules. Unless these
> > modules are included in in perl-base we have to include them in
> > tetex-* (since "Depends:" are really dangerous here). The modules
> > would only be used in the postinst script.
> 
> Yes, that's what I also said as an "option". And I think that the place
> to put those modules is the debian/tmp/DEBIAN directory from where they
> are installed in /var/lib/dpkg/info "before" installation.
> This because those perl modules have nothing to share with tetex, thus
> should not appear in the .files listing.
> 
> But my problem is: how many tetex* packages do we have? How many times
> those modules must be duplicate in the system?
> Isn't it better and simple make ALL tetex* packages Pre-depends on the
> package that installs the module?

Now we are starting again from the beginning...

I asked for this (making tetex* predepend on dpkg-perl) but Ian Jackson
objected since this is too risky (check out debian-devel).

Would you agree with this policy:


	Using Perl modules in maintainer scripts
	========================================

        Maintainer scripts may only use Perl modules which are
        included in the perl-base package or any other package marked
        Essential. In addition, any Perl modules installed by a package
	may be used in _its own_ "postinst" script (but not in any other
	maintainer script).

	Note, that sometimes it's necessary to include the Perl modules 
	in the control area of a package (installed in
	/var/lib/dpkg/info/package.*) to avoid unnecessary "Conflicts:"
	with other packages installing the same modules.

	It is not allowed to use modules from a "Depended" or
	"Pre-Depended" package in a maintainer script, since this is too
	dangerous.


Thanks,

Chris

--          _,,     Christian Schwarz
           / o \__   schwarz@monet.m.isar.de, schwarz@schwarz-online.com,
           !   ___;   schwarz@debian.org, schwarz@mathematik.tu-muenchen.de
           \  /        
  \\\______/  !        PGP-fp: 8F 61 EB 6D CF 23 CA D7  34 05 14 5C C8 DC 22 BA
   \          /         http://fatman.mathematik.tu-muenchen.de/~schwarz/
-.-.,---,-,-..---,-,-.,----.-.-
  "DIE ENTE BLEIBT DRAUSSEN!"


Reply to: