Fixing dh_installdeb issue in Harmattan on Mac OS X

This is a peculiar case which affects you if you deploy anything like a lib to a specific folder in Harmattan device. It reports an install error saying

dh_installdeb
find: -printf: unknown option
dh_installdeb: command returned error code
make: *** [binary-arch] Error 1
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2

Bug and solution is clearly mentioned here

This issue is caused because of a broken dh_installdeb script for Harmattan deployment in Mac. Madde dev tools rely on GNU “find” utility which is being eclipsed by Mac’s “find” utility. This causes -printf option not being found which in turn breaks your app deployment.  

Replace line 83 in <QtSDK Path>/Madde/madbin/dh_installdeb with

complex_doit("find $tmp/etc -type f | sed s*$tmp** >> $tmp/DEBIAN/conffiles");

Happy coding.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s