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

Installation fails if /etc/firejail/login.users exists #3462

Closed
Fred-Barclay opened this issue Jun 10, 2020 · 7 comments
Closed

Installation fails if /etc/firejail/login.users exists #3462

Fred-Barclay opened this issue Jun 10, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@Fred-Barclay
Copy link
Collaborator

Bug and expected behavior
When compiling from source from latest with ./configure --prefix=/usr && make && sudo make install-strip #or install the process errors with the message:

[ ! -f /etc/firejail/login.users ] && install -m 0644 etc/login.users /etc/firejail
make[1]: *** [Makefile:118: realinstall] Error 1
make[1]: Leaving directory '/home/fred/firejail'
make: *** [Makefile:156: install-strip] Error 2

I believe the issue started some point after 378d0e6, possibly due to dae3933 or the few commits following.

Relevant line seems to be

[ ! -f $(DESTDIR)$(sysconfdir)/firejail/login.users ] && install -m 0644 etc/login.users $(DESTDIR)$(sysconfdir)/firejail

Not entirely sure why it gives up and dies, not super familiar with makefiles... 😕

Environment

$ sb_release -a
No LSB modules are available.
Distributor ID:	Linuxmint
Description:	LMDE 4 (debbie)
Release:	4
Codename:	debbie

$ cat /etc/debian_version 
10.2
@Fred-Barclay Fred-Barclay added the bug Something isn't working label Jun 10, 2020
@rusty-snake
Copy link
Collaborator

can you try this:

[ ! -f $(DESTDIR)$(sysconfdir)/firejail/login.users ] && install -m 0644 etc/login.users $(DESTDIR)$(sysconfdir)/firejail/login.users

@Fred-Barclay
Copy link
Collaborator Author

@rusty-snake no change :(

@glitsj16
Copy link
Collaborator

I noticed this too as stated in #3450 (comment). At the moment, the only way I can reliably build from git master on Ubuntu is by reverting 52e24db and dae3933. Can't explain why though...

@rusty-snake
Copy link
Collaborator

Then let's revert this changes completely, I will commit later.

sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then install -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;"
sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d ]; then install -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d; fi;"
sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/local ]; then install -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/local; fi;"
sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/apparmor.d/local/firejail-local ]; then install -c -m 0644 etc/apparmor/firejail-local $(DESTDIR)/$(sysconfdir)/apparmor.d/local/.; fi;"

rusty-snake added a commit to rusty-snake/firejail that referenced this issue Jun 11, 2020
@rusty-snake
Copy link
Collaborator

@Fred-Barclay @glitsj16 ^^

@glitsj16
Copy link
Collaborator

@rusty-snake For me this is fixed now on Ubuntu 16.04 LTS. Thanks!

@Fred-Barclay
Copy link
Collaborator Author

@rusty-snake I haven't been able to check on my Debian box but it seems good now on my Ubuntu 20.04 - thanks! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants