7

Trying to get my debian packaging to work as I want, I modified the debian/rules file (showing line numbers)

12 %:
13  dh $@ 
14
15 override_dh_install:
16     dh_install
17     install -m 644 "My Company's Folder" "debian/mainproject/usr/share/MyCompanyFolder"

error:
.....
dpkg-buildpackage: host architecture i386
 dpkg-source --before-build mainproject-1.0
 fakeroot debian/rules clean
debian/rules:16: *** missing separator.  Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
  • In general, IMO it is best to avoid spaces in file names/directories as they cause issues such as this. Try quoting the file name mainproject_1/* "/usr/share/My Company's Folder/MainProjector" or escaping the spaces with a \ mainproject_1/* /usr/share/My Company's\ Folder/MainProject . I am not sure if the "'" is going to be a problem as well. Similar advice. – Panther Oct 1 '14 at 16:02
  • \040 is for url (apache) – Panther Oct 1 '14 at 16:03
  • @bodhi.zazen - i have tried both - see my explanation... escaping spaces gave me an error and adding quotes not only gave me an error but created folders " at top and inside... in the debian. Unfortunately the company folder where I have to place this contains spaces... If there is absolutely no way to do this then I will place the product in a folder with no spaces but if i can i want to place the product in the existing company folder. – Thalia Oct 1 '14 at 16:10
  • As far as I know, there is no way to do this with spaces. You will have to wait to see if anyone has any other suggestions. The "'" may also be problematic. – Panther Oct 1 '14 at 16:12
  • Edited question to remove everything except what is related to last error that I was led to while trying to find an answer... – Thalia Oct 1 '14 at 18:28
16

For your particular debian/rules:16: *** missing separator. Stop. error, make sure you have tab characters in your debian/rules file. Spaces to indent do not work.

  • 1
    Thank you, the tab in the file took me to the next error... I have to find out what to write to make it do the right thing – Thalia Oct 1 '14 at 18:14
  • Thanks, that error message is totally unhelpful. – totaam Oct 16 '18 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.