> cp debian/libapron.override
> debian/libapron/usr/share/lintian/overrides/libapron
> cp: cannot create regular file
> 'debian/libapron/usr/share/lintian/overrides/libapron': No such file or
> directory
Hi.
The reason it fails is that it tries to copy libapron.override to a
directory which does only exist when creating the architecture-dependent
packages.
There is an easy fix for that: Drop the "cp" line from debian/rules,
rename "libapron.override" to "libapron.lintian-overrides" and let
"dh" handle the file automatically.
Patch follows.
Thanks.
commit 69e2b2e8502fc819517ee125654e1c9a0566dc48
Author: Santiago Vila <sanv...@debian.org>
Date: Mon Mar 28 00:32:46 2016 +0200
fix-for-dpkg-buildpackage-A
diff --git a/debian/libapron.lintian-overrides
b/debian/libapron.lintian-overrides
new file mode 100644
index 0000000..da59c5a
--- /dev/null
+++ b/debian/libapron.lintian-overrides
@@ -0,0 +1 @@
+libapron: package-name-doesnt-match-sonames libap-pkgrid0 libap-ppl0 libapron0
libboxD0 libboxMPFR0 libboxMPQ0 liboctD0 liboctMPQ0 libpolkaMPQ0 libpolkaRll0
diff --git a/debian/libapron.override b/debian/libapron.override
deleted file mode 100644
index da59c5a..0000000
--- a/debian/libapron.override
+++ /dev/null
@@ -1 +0,0 @@
-libapron: package-name-doesnt-match-sonames libap-pkgrid0 libap-ppl0 libapron0
libboxD0 libboxMPFR0 libboxMPQ0 liboctD0 liboctMPQ0 libpolkaMPQ0 libpolkaRll0
diff --git a/debian/rules b/debian/rules
index d59cd6c..a79b0d3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,7 +43,6 @@ override_dh_auto_install:
mv debian/tmp/usr/lib/$$i debian/tmp/usr/lib/$$i.0; \
ln -s $$i.0 debian/tmp/usr/lib/$$i; \
done
- cp debian/libapron.override
debian/libapron/usr/share/lintian/overrides/libapron
.PHONY: override_dh_compress
override_dh_compress: