View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#8
Originally Posted by incrys View Post
when i used a wizard to upload packages to extras-testing (Build→publish project), the output is:
Code:
 debian/rules clean
Can't exec "debian/rules": Permission denied at /home/utente/QtSDK/Maemo/4.6.2/madbin/dpkg-buildpackage line 474.
dpkg-buildpackage: failure: debian/rules clean failed with unknown exit code -1

Error: dpkg-buildpackage did not succeed.
Yup, that is exactly the problem I was having. I've gotten some info from another sufferer on the Qt discussion boards (Michael Zanetti) -- it turns out that Qt places a copy of the code it is going to package in the directory "/tmp/qtc_packaging", but somehow forgets to set the permissions appropriately when it does so. He filed a bug report, and it is working its way through the Qt system; here's a link to it:

https://bugreports.qt-project.org/br...REATORBUG-6866

There are a couple of work-arounds for now; you can use the system I've described above (which I'm still using for my app), or you can try Michael's approach -- he slips in and changes the permission on the file while the build is running, by starting the following script right before he starts the wizard:

Code:
while [ true ]; do chmod +x /tmp/qtc_packaging/projectname/debian/rules; done
(Here's a link to the Qt discussion thread for more info.)