Executive summary of heuristic: if the package uses Module::Builder
(for example, CompileScript invoking Build.PL) rather than MakeMaker
(the default script for type:perl, invoking Makefile.PL).

Thanks to recent buildworlding, we've found a user-visible packaging
problem: if a perlmodule package is the first of its perl variant (any
certain XXX of pmXXX, or agnostic/nonvarianted pm) asserted
UpdatePOD:true in its .info but does not have a perllocal.pod
fragment, PostInst crashes. The UpdatePOD tag is specifically to
handle the perllocal.pod fragments with lots of internal (but
apparently fragile) magic, so the solution is just to avoid using that
tag if there is no such fragment.

The validator in fink HEAD has been updated to catch this situation.
Building a package with -m (maintainer mode...maintainers always try
this before committing, right?) or 'fink validate' on a .deb says:

  Validating .deb dir 
/sw/build.build/root-datetime-format-mail-pm588-0.3001-1...
  Error: /sw/share/podfiles/5.8.8/ is empty. If a perl package does not install 
any podfiles, set UpdatePOD:false (or do not define it) in the .info file.

I will be updating anyone's packages I find that have this as I find
them (unless the maintainers find them first obviously:). Requires a
rev-up because it changes the .deb.

The perllocal.pod is a standard that has long existed, but apparently
Module::Build decided to be different.

  http://rt.cpan.org/Public/Bug/Display.html?id=14316

Not sure why that's only "Wishlist", but anyway, that means one
pattern to these newly flagged packaging mistakes is when they use
Module::Build.

dan
-- 
Daniel Macks
dma...@netspace.org


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to