tags 817164 + patch
thanks
> chmod 600
> /<<BUILDDIR>>/iscsitarget-1.4.20.3+svn502/debian/iscsitarget/etc/iet/ietd.conf
> chmod: cannot access
> '/<<BUILDDIR>>/iscsitarget-1.4.20.3+svn502/debian/iscsitarget/etc/iet/ietd.conf':
> No such file or directory
> debian/rules:259: recipe for target 'binary-common' failed
Explanation: We are building arch-independent packages only, so
debian/iscsitarget/[...] does not exist because iscsitarget is
arch-dependent.
In the "dh" case, this would be fixed by creating override_dh_fixperms-arch
target and putting chmod after dh_fixperms.
In the meantime, the attached patch might fix this.
Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -266,20 +266,21 @@ binary-common:
dh_strip
dh_compress
dh_fixperms
- chmod 600 $(CURDIR)/debian/iscsitarget/etc/iet/ietd.conf
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
- dh_builddeb
# Build architecture independant packages using the common target.
binary-indep: build-indep install-indep
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+ dh_builddeb -i
# Build architecture dependant packages using the common target.
binary-arch: build-arch install-arch
$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+ chmod 600 $(CURDIR)/debian/iscsitarget/etc/iet/ietd.conf
+ dh_builddeb -a
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install install-indep
install-arch get-orig-source