Bug#806074: mapserver: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Santiago Vila sanvila at unex.es
Tue Nov 24 22:07:15 UTC 2015


On Tue, Nov 24, 2015 at 10:55:20PM +0100, Sebastiaan Couwenberg wrote:
> Control: tags -1 pending
> 
> Hi Santiago,
> 
> Thanks for your binary-indep work.
> 
> On 24-11-15 16:27, Santiago Vila wrote:
> > dh_installexamples
> > chmod a-x /<<PKGBUILDDIR>>/debian/php*-mapscript/usr/share/doc/php*-mapscript/examples/*.phtml
> > chmod: cannot access '/<<PKGBUILDDIR>>/debian/php*-mapscript/usr/share/doc/php*-mapscript/examples/*.phtml': No such file or directory
> 
> I've make the chmod call non-fatal for the build and the fixed revision
> will soon be available in unstable.

This is up to you, but I would personally consider more elegant and cleaner
to use override_dh_installexamples-arch and/or override_dh_installexamples-indep.

In fact, by looking at your debian/rules, I bet that this patch
(warning: completely untested) would fix the problem, if the chmod
is the problem:

--- a/debian/rules
+++ b/debian/rules
@@ -151,7 +151,7 @@ override_dh_auto_install:
 override_dh_installchangelogs:
         dh_installchangelogs HISTORY.TXT

-override_dh_installexamples:
+override_dh_installexamples-arch:
        dh_installexamples

        chmod a-x $(CURDIR)/debian/php*-mapscript/usr/share/doc/php*-mapscript/examples/*.phtml


So, for arch-independent packages, dh_installexamples works, by
default, and for arch-dependent packages (including php*-mapscript),
dh_installexamples works and then your chmod.



More information about the Pkg-grass-devel mailing list