Quoting Santiago Vila (sanv...@unex.es): > > cp: cannot create regular file > > '/<<PKGBUILDDIR>>/debian/libpam-cgm/usr/share/pam-configs/cgm': No such > > file or directory > > debian/rules:25: recipe for target 'override_dh_install' failed > > This happens because we are creating only arch-independent packages, > so debian/libpam-cgm does not exist, as it belongs to libpam-cgm > which is Arch: any. > > > The attached patch might fix this problem, as it renames current > override_dh_install to override_dh_auto_install (where file moving in > debian/tmp is better placed), but moves commands for the libpam-cgm > package to a new target called override_dh_install-arch, which will > only work when creating arch-dependent packages.
Thanks, it looks good to me, and everything builds right with it. Would you like to do an NMU with this patch? > Thanks. > --- a/debian/rules > +++ b/debian/rules > @@ -21,18 +21,21 @@ override_dh_auto_configure: > override_dh_makeshlibs: > dh_makeshlibs -- -c4 > > -override_dh_install: > +override_dh_auto_install: > + dh_auto_install > mkdir -p $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH) > mv $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libcgmanager.so.* > \ > $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/ > - cp $(CURDIR)/debian/pam-cgm.config \ > - $(CURDIR)/debian/libpam-cgm/usr/share/pam-configs/cgm > for i in > $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libcgmanager.so ; do \ > dest=$$(readlink $$i) ; \ > rm -f $$i ; \ > ln -s /lib/$(DEB_HOST_MULTIARCH)/$$dest $$i ; \ > done > + > +override_dh_install-arch: > dh_install > + cp $(CURDIR)/debian/pam-cgm.config \ > + $(CURDIR)/debian/libpam-cgm/usr/share/pam-configs/cgm > > override_dh_installinit: > dh_systemd_enable -pcgmanager --name=cgmanager