[GH-ISSUE #437] Using mkdeb to build firejail #317

Closed
opened 2026-05-05 05:35:32 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Fred-Barclay on GitHub (Apr 14, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/437

G'day netblue30. This isn't an issue per se, at least not yet--I just need more info on building a firejail.deb package.

After downloading the source code and cd-ing into the directory, how do I build the .deb? Do I immediately run ./mkdeb.sh? Do I ./configure first? Are there any intermediate steps?

When installing the .deb, is it prefixed to /usr/local? I noticed that building from source does this, but I'd definitely not prefer this behavior if I dpkg -i firejail.deb. (In another words, does it build a .deb that behaves the same as one I download from your repo on SourceForge? Ignoring changes/updates, of course.)

Thanks!
Fred

Originally created by @Fred-Barclay on GitHub (Apr 14, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/437 G'day netblue30. This isn't an issue per se, at least not yet--I just need more info on building a firejail.deb package. After downloading the source code and cd-ing into the directory, how do I build the .deb? Do I immediately run `./mkdeb.sh`? Do I `./configure` first? Are there any intermediate steps? When installing the .deb, is it prefixed to /usr/local? I noticed that building from source does this, but I'd definitely not prefer this behavior if I `dpkg -i firejail.deb`. (In another words, does it build a .deb that behaves the same as one I download from your repo on SourceForge? Ignoring changes/updates, of course.) Thanks! Fred
gitea-mirror 2026-05-05 05:35:32 -06:00
Author
Owner

@netblue30 commented on GitHub (Apr 15, 2016):

First you configure it, than you do make deb:

$ ./configure
$ sudo make deb

The package is prefixed automatically to /usr.

<!-- gh-comment-id:210435511 --> @netblue30 commented on GitHub (Apr 15, 2016): First you configure it, than you do make deb: ``` $ ./configure $ sudo make deb ``` The package is prefixed automatically to /usr.
Author
Owner

@Fred-Barclay commented on GitHub (Apr 15, 2016):

Thanks, mate.
Would it be possible to avoid prefixing to /usr? Or is that a really bad idea?
(EDIT: Sorry, didn't mean to close it just yet.)

<!-- gh-comment-id:210543034 --> @Fred-Barclay commented on GitHub (Apr 15, 2016): Thanks, mate. Would it be possible to avoid prefixing to /usr? Or is that a really bad idea? (EDIT: Sorry, didn't mean to close it just yet.)
Author
Owner

@netblue30 commented on GitHub (Apr 16, 2016):

Usually packages you compile yourself end up in /usr/local/bin, and .deb or .rpm packages you download are placed under /usr/bin. These are old rules, you can get around them as you like, I don't think it matters.

You can modify mkdeb.sh:

$ cat mkdeb.sh
[...]
tar -xjvf $CODE_ARCHIVE
#mkdir -p $INSTALL_DIR
cd $CODE_DIR
./configure --prefix=/usr
make
mkdir debian
DESTDIR=debian make install-strip
[...]

You need to change "./configure --prefix=/usr" to "./configure".

<!-- gh-comment-id:210797827 --> @netblue30 commented on GitHub (Apr 16, 2016): Usually packages you compile yourself end up in /usr/local/bin, and .deb or .rpm packages you download are placed under /usr/bin. These are old rules, you can get around them as you like, I don't think it matters. You can modify mkdeb.sh: ``` $ cat mkdeb.sh [...] tar -xjvf $CODE_ARCHIVE #mkdir -p $INSTALL_DIR cd $CODE_DIR ./configure --prefix=/usr make mkdir debian DESTDIR=debian make install-strip [...] ``` You need to change "./configure --prefix=/usr" to "./configure".
Author
Owner

@Fred-Barclay commented on GitHub (Apr 16, 2016):

...which would explain why ./configure --prefix= seemed to have no effect on the .deb.
Thanks!

<!-- gh-comment-id:210815761 --> @Fred-Barclay commented on GitHub (Apr 16, 2016): ...which would explain why `./configure --prefix=` seemed to have no effect on the .deb. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#317
No description provided.