I have a very simple problem when running dpkg-buildpackage. The Makefile is not in the top level directory, it is located in make/gcc.mak. I made the following change to debian/rules:
Code: Select all
override_dh_auto_install:
$(MAKE) -f make/gcc.mak install
Code: Select all
install: cannot create regular file ‘//usr/bin/appname’: Permission denied
It seems the "make install" step is trying to install the files in their intended locations in the file system, rather than using the fakeroot environment. I tried adding DESTDIR=debian/appname, but no joy:
Code: Select all
override_dh_auto_install:
$(MAKE) -f make/gcc.mak install DESTDIR=debian/appname
This happens with all apps I try, not just one. Any help would be appreciated, I have spent all day Googling and read a lot of documentation, but I don't seem to be able to solve this. It is infuriating being such a minor detail and seeing dpkg-buildpackage choke on it 100 times.
Thanks.