tags 809112 + patch
thanks

>    debian/rules override_dh_install
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_install
> # fix permissions
> chmod -x debian/htcondor/etc/default/condor
> chmod: cannot access 'debian/htcondor/etc/default/condor': No such file or 
> directory
> debian/rules:105: recipe for target 'override_dh_install' failed

This happens because we are creating arch-independent packages only,
so debian/htcondor/[...] does not exist, because htcondor is
arch-dependent.

The trivial fix is to override dh_install only for arch-dependent packages.
While we are at it, the chmod commands fit better in override_dh_fixperms-arch.

Patch attached.

Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -101,11 +101,15 @@ override_dh_auto_install:
        chrpath -c -k ./debian/tmp/usr/lib/condor/libexec/* || true
 
 
-override_dh_install:
-       dh_install
+override_dh_fixperms-arch:
+       dh_fixperms
        # fix permissions
        chmod -x debian/htcondor/etc/default/condor
        chmod -x debian/htcondor/usr/lib/condor/libexec/interactive.sub
+
+
+override_dh_install-arch:
+       dh_install
        # remove RPATH from public lib
        chrpath -d debian/libclassad*/usr/lib/libclassad.so.*.*
        # remove duplicate that is also installed as a config file

Reply via email to