I run into a problem trying to build a package. Everything is OK except adding icon - I added this to rules file

mkdir -p debian/fbmessenger/usr/share/icons/hicolor/48x48/apps
cp debian/fbmessenger-facebook.png debian/fbmessenger/usr/share/icons/hicolor/48x48/apps/

And while compiling it gives this annoying error:

mkdir -p debian/fbmessenger/usr/share/icons/hicolor/48x48/apps
cp debian/fbmessenger-facebook.png debian/fbmessenger/usr/share/icons/hicolor/48x48/apps/
cp: cannot stat `debian/fbmessenger-facebook.png': No such file or directory

It fails to copy icon from debian/ directory but the icon is actually here. Any hints how to resolve this error will be great. Cheers, Fih

  • Have tried using absolute paths? What is your directory structure for this project? – edwin Jun 24 '13 at 22:37
  • this will be later uploaded to Launchpad PPA so absolute patches will not work anyway. but its runed from: ~/Launchpad/fbmessengerrepo/fbmessenger-0.1.0 – Fih Jun 24 '13 at 22:49
  • Well try adding a debug command like ls > somfile to see relative to what the building is occurring. – edwin Jun 24 '13 at 22:54
  • funny thing is that if I compile it with bzr builddeb -- -nc -us -uc it gives error but with debuild -us -uc everythings goes smothly but Launchpad fail at build it anyway – Fih Jun 24 '13 at 22:58

I found out that there is already an icon with the source code and I slightly modified rules file to make use of this icon instead of my own one. Moreover debuild -us -uc seem to build that package without problems.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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