On Fri, 15 Jul 2016, Jelmer Vernooij wrote:
> tag 806045 +help
> thanks
>
> I won't have time to look at this in the next week or two. Tagging as help
> for now.
Ok, this is what happens:
The command that fails is this one:
mv debian/heimdal-multidev/usr/bin/krb5-config \
debian/heimdal-multidev/usr/bin/krb5-config.heimdal
It fails because debian/heimdal-multidev/[...] does not exist.
It does not exist because the previous "dh_install" command above
didn't populate debian/heimdal-multidev/[...].
And that didn't happen because we are creating arch-independent
packages only, so dh_install only acts on those packages, ignoring
completely arch-dependent ones (like heimdal-multidev).
This is typically fixed by splitting override_dh_install like this:
override_dh_install-arch:
dh_install
[ tweaking of arch-dependent packages ]
override_dh_install-indep:
dh_install
[ tweaking of arch-independent packages ]
Target override_dh_fixperms should probably be fixed as well, as it
reads like this:
overide_dh_fixperms:
dh_fixperms
# /var/lib/heimdal-kdc is 700
chmod 700 debian/heimdal-kdc/var/lib/heimdal-kdc
This does not work because it says "overide", not "override" (oops!).
Once that you fix that, it will also fail when doing "dpkg-buildpackage -A"
because in such case debian/heimdal-kdc does not exist.
In this case you can just rename the target instead of splitting it:
override_dh_fixperms-arch:
dh_fixperms
chmod 700 debian/heimdal-kdc/var/lib/heimdal-kdc
Hope this helps.
Thanks.