Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21908

Build system is unable to deploy to /etc in Haramattan (and any other unix-like system?)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.7.4
    • Build tools: moc
    • None
    • Mac OS X 10.6.8

    Description

      // This may be OS X specific

      Have a .pro file that wants to deploy something to /etc

      For instance follow the Events Feed example from http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Best_practices_for_application_development_Integrating_event_feed_into_applications_Events_Feed_API_example.html

      And have the following in your .pro file:

      client2.path = /etc/sync/profiles/client
      client2.files = xml/eventsexample2.xml
      INSTALLS += client2
      

      Note that the references file has to actually exist.

      Build and start packaging. Packaging will fail at

      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
      Packaging Error: Command '/Users/artem/QtSDK/Madde/bin/mad dpkg-buildpackage -nc -uc -us' failed.Exit code: 2
      

      ieatlint's investigation showed that it actually fails at line 83 in dh_installdeb:

      complex_doit("find $tmp/etc -type f -printf '/etc/%P\n' >> $tmp/DEBIAN/conffiles");
      

      Everything that goes into /etc seems to need special handling and find binary called doesn't know what -printf switch is for

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            artem.marchenko Artem Marchenko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes