Error "[Errno 21] Is a directory" when building a snap package for a qmake project

Bug #1601834 reported by XiaoGuo, Liu
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Unassigned

Bug Description

I have a qmake project. The project was generated by Ubuntu phone SDK. It worked for the phone. My project is at:

https://github.com/liu-xiao-guo/snaptest/blob/master/snapcraft.yaml

Please be noted that the package name and the app name are the same "snaptest". When I build the project, it gives me the error like http://paste.ubuntu.com/19078940/

kipping stage desktop/qt5 (already ran)
'application' has prerequisites that need to be staged: desktop/qt5
Skipping pull desktop/qt5 (already ran)
Skipping build desktop/qt5 (already ran)
Skipping stage desktop/qt5 (already ran)
Staging application
Priming desktop/qt5
'application' has prerequisites that need to be staged: desktop/qt5
Skipping pull desktop/qt5 (already ran)
Skipping build desktop/qt5 (already ran)
Skipping stage desktop/qt5 (already ran)
Priming application
[Errno 21] Is a directory: '/home/liuxg/snappy/desktop/snappy-
playpen/snaptest/prime/snaptest'

It does not generate any .snap file for me.

In order to make it working for me, I have to change my snapcraft.yaml file to:

https://github.com/liu-xiao-guo/snaptest_working/blob/master/snapcraft.yaml

Please be noted that the package name and the app name now are different. When I build the project, it gives me the correct .snap file, and I can install it.

Thanks & best regards,
XiaoGuo

Changed in snapcraft:
status: New → Confirmed
Revision history for this message
The Digital Pioneer (digitalpioneer) wrote :

I get the same error at the same general point in the snapping process, but I'm using qbs instead of qmake, and making the package name and app name distinct did not work around the error for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.