Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Firejail builds under Debian/Devuan Stable

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Firejail builds under Debian/Devuan Stable

#1 Post by edbarx »

For those interested in using firejail I found that it readily builds from source using dpkg-buildpackage. Download the sources, make sure there is a debian subdirectory, and then use dpkg-buildpackage in the source's root directory.

I am running iceweasel from within firejail after having built it from source.

To get an idea of what you need I am posting the terminal's output for the building procedure:

Code: Select all

edbarx@edbarx-pc:~$ mkdir firejail
edbarx@edbarx-pc:~$ cd firejail
edbarx@edbarx-pc:~/firejail$ ls
firejail-0.9.38                  firejail_0.9.38-1.dsc
firejail_0.9.38-1.debian.tar.xz  firejail_0.9.38.orig.tar.bz2
edbarx@edbarx-pc:~/firejail$ cd firejail-0.3.38
bash: cd: firejail-0.3.38: No such file or directory
edbarx@edbarx-pc:~/firejail$ cd firejail-0.9.38
edbarx@edbarx-pc:~/firejail/firejail-0.9.38$ dpkg-buildpackage
dpkg-buildpackage: source package firejail
dpkg-buildpackage: source version 0.9.38-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Reiner Herrmann <reiner@reiner-h.de>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build firejail-0.9.38
 fakeroot debian/rules clean
dh clean --parallel --with autotools-dev
   dh_testdir -O--parallel
   dh_auto_clean -O--parallel
   dh_autotools-dev_restoreconfig -O--parallel
   dh_clean -O--parallel
 dpkg-source -b firejail-0.9.38
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building firejail using existing ./firejail_0.9.38.orig.tar.bz2
dpkg-source: info: building firejail in firejail_0.9.38-1.debian.tar.xz
dpkg-source: info: building firejail in firejail_0.9.38-1.dsc
 debian/rules build
dh build --parallel --with autotools-dev
   dh_testdir -O--parallel
   dh_autotools-dev_updateconfig -O--parallel
   dh_auto_configure -O--parallel
configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking

[...]

   dh_lintian -O--parallel
   dh_perl -O--parallel
   dh_link -O--parallel
   dh_compress -O--parallel
   debian/rules override_dh_fixperms
make[1]: Entering directory '/home/edbarx/firejail/firejail-0.9.38'
dh_fixperms
chmod 4755 debian/firejail/usr/bin/firejail
make[1]: Leaving directory '/home/edbarx/firejail/firejail-0.9.38'
   dh_strip -O--parallel
   dh_makeshlibs -O--parallel
   dh_shlibdeps -O--parallel
   dh_installdeb -O--parallel
   dh_gencontrol -O--parallel
dpkg-gencontrol: warning: package firejail: unused substitution variable ${misc:Pre-Depends}
   dh_md5sums -O--parallel
   dh_builddeb -O--parallel
dpkg-deb: building package `firejail' in `../firejail_0.9.38-1_amd64.deb'.
 dpkg-genchanges  >../firejail_0.9.38-1_amd64.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build firejail-0.9.38
dpkg-buildpackage: full upload (original source is included)
 signfile firejail_0.9.38-1.dsc
gpg: skipped "Reiner Herrmann <reiner@reiner-h.de>": No secret key
gpg: dpkg-sign.PJie0ezV/firejail_0.9.38-1.dsc: clearsign failed: No secret key

dpkg-buildpackage: error: failed to sign .dsc and .changes file
edbarx@edbarx-pc:~/firejail/firejail-0.9.38$ cd ..
edbarx@edbarx-pc:~/firejail$ ls
firejail-0.9.38                  firejail_0.9.38-1.debian.tar.xz
firejail_0.9.38-1_amd64.changes  firejail_0.9.38-1.dsc
firejail_0.9.38-1_amd64.deb      firejail_0.9.38.orig.tar.bz2
edbarx@edbarx-pc:~/firejail$ su
Password: 
root@edbarx-pc:/home/edbarx/firejail# dpkg -i firejail_0.9.38-1_amd64.deb 
Selecting previously unselected package firejail.
(Reading database ... 112826 files and directories currently installed.)
Preparing to unpack firejail_0.9.38-1_amd64.deb ...
Unpacking firejail (0.9.38-1) ...
Setting up firejail (0.9.38-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

User avatar
woteb
Posts: 124
Joined: 2009-01-24 09:51
Location: Netherlands (Veluwe)

Re: Firejail builds under Debian/Devuan Stable

#2 Post by woteb »

There are also deb-files (32 and 64 bits) available.
Laptops: HP 250 G6 i3 7th gen + Lenovo: Debian Testing XFCE
HP based chromebooks: Debian Testing and other variations
"The simple reality of the matter is that Debian is essentially the backbone of Linux - for all practical purposes."

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Firejail builds under Debian/Devuan Stable

#3 Post by stevepusser »

The homepage says it's a standard C program, nothing fancy about it, just that it also needs a 3.X or better kernel. I bet it would build on Squeeze or even Lenny, but you'd need that newer kernel.

It seems to me like a prime candidate for jessie-backports.
MX Linux packager and developer

Post Reply