Hi,

It seams to me that the problem is in debian/rules file.
If package is being built with both arch specific and indep parts (fakeroot 
debian/rules binary),
build finishes successfully .
If we build only arch specific parts of the package (binary-arch),
build fails on:
> find debian/kicad-common/usr/share/kicad -name "CMake*" -exec rm {} \;
> find: `debian/kicad-common/usr/share/kicad': No such file or directory

The reason for this is the fact that kicad-common is arch independent,
and should not be packed in this case.

In order to resolve this issue I split override_dh_install into
two parts: 
override_dh_install-arch and override_dh_install-indep.

Changes needed for debian/rules are attached.

With this fix I was able to successfully build kicad for
mips, mipsel and amd64.


Regards,
Dejan

--- kicad-0.20140224+bzr4027.orig/debian/rules	2014-03-07 10:50:28.000000000 +0000
+++ kicad-0.20140224+bzr4027/debian/rules	2014-05-08 14:38:34.000000000 +0000
@@ -21,7 +21,7 @@
 override_dh_compress:
 	dh_compress --exclude=.pdf
 
-override_dh_install:
+override_dh_install-arch:
 	convert bitmaps_png/icons/icon_kicad.xpm -resize 32x32 debian/tmp/icon_kicad.xpm
 	dh_install
 	# fix wrong permissions and link jnlp file to usr/share
@@ -29,6 +29,9 @@
 	  chmod a-x $(COMMONDIR)/usr/share/kicad/internat/ja/*
 	ln -s ../share/kicad/freeroute.jnlp $(PKGDIR)/usr/bin
 	chmod a-x $(PKGDIR)/usr/share/kicad/freeroute.jnlp
+
+override_dh_install-indep:
+	dh_install
 	# remove out-of-topic files
 	find $(COMMONDIR)/usr/share/kicad -name "CMake*" -exec rm {} \;
 

Reply via email to