Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

briefcase package breaks on debian with umask 0077 #1369

Closed
bganne opened this issue Jul 21, 2023 · 1 comment · Fixed by #1370
Closed

briefcase package breaks on debian with umask 0077 #1369

bganne opened this issue Jul 21, 2023 · 1 comment · Fixed by #1370
Labels
bug A crash or error in behavior. linux The issue relates Linux support.

Comments

@bganne
Copy link

bganne commented Jul 21, 2023

Describe the bug

While following step 3 of the Beeware tutorial, I shad the following error when running briefcase package:

(beeware-venv) ben@erebor:~/src/android/beeware/beeware-tutorial/helloworld$ briefcase package

[helloworld] Finalizing application configuration...
Targeting debian:trixie (Vendor base debian)
Determining glibc version... done
Targeting glibc 2.37
Targeting Python3.11


[helloworld] Building .deb package...
Write Debian package control file... done
dpkg-deb: error: control directory has bad permissions 700 (must be >=0755 and <=0775)
Building Debian package...

Error while building .deb package for helloworld.

Log saved to /home/ben/src/android/beeware/beeware-tutorial/helloworld/logs/briefcase.2023_07_21-22_15_34.package.log

(beeware-venv) ben@erebor:~/src/android/beeware/beeware-tutorial/helloworld$

My umask is 0077, the workaround is to change it to 0022:

(beeware-venv) ben@erebor:~/src/android/beeware/beeware-tutorial/helloworld$ umask 0022
(beeware-venv) ben@erebor:~/src/android/beeware/beeware-tutorial/helloworld$ briefcase package

[helloworld] Finalizing application configuration...
Targeting debian:trixie (Vendor base debian)
Determining glibc version... done
Targeting glibc 2.37
Targeting Python3.11

[helloworld] Building .deb package...
Write Debian package control file... done
dpkg-deb: building package 'helloworld' in 'helloworld-0.0.1.deb'.
Building Debian package... done

[helloworld] Packaged dist/helloworld_0.0.1-1~debian-trixie_amd64.deb
(beeware-venv) ben@erebor:~/src/android/beeware/beeware-tutorial/helloworld$

Hope this helps, and thanks for Beeware!

Steps to reproduce

  1. change umask to 0077
  2. run briefcase package on debian

Expected behavior

Should work with any umask.

Screenshots

No response

Environment

  • Operating System: Debian trixie/sid
  • Python version: 3.11.4
  • Software versions:
    • Briefcase: 0.3.15

Logs

No response

Additional context

No response

@bganne bganne added the bug A crash or error in behavior. label Jul 21, 2023
@rmartin16 rmartin16 added the linux The issue relates Linux support. label Jul 21, 2023
@freakboy3742
Copy link
Member

Thanks for the report - looks like we've got a patch to fix the problem ready to land(#1370).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior. linux The issue relates Linux support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants