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

Revert "remove make deb and use make deb-apparmor to build packages" #5547

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Dec 21, 2022

This reverts commit 8229944.

The idea is to later enable building the .deb package with AppArmor by
default with make deb and to then remove make deb-apparmor (though
note that some ci changes might also be needed in tandem[1]). This
could potentially allow building a .deb package for all firejail
versions (including past and future ones) with just make deb.

Also, note that other options can be added/removed to the default deb
target (besides AppArmor-related ones), so ideally there would be only a
single deb target with all the desired options applied.

So instead of releasing a version without make deb and then
potentially adding it back and removing make deb-apparmor, just leave
the targets as is (considering the current release, 0.9.70) for now.

[1] #5176 (comment)

This reverts commit 8229944.

The idea is to later enable building the .deb package with AppArmor by
default with `make deb` and to then remove `make deb-apparmor` (though
note that some ci changes might also be needed in tandem[1]).  This
could potentially allow building a .deb package for all firejail
versions (including past and future ones) with just `make deb`.

Also, note that other options can be added/removed to the default `deb`
target (besides AppArmor-related ones), so ideally there would be only a
single `deb` target with all the desired options applied.

So instead of releasing a version without `make deb` and then
potentially adding it back and removing `make deb-apparmor`, just leave
the targets as is (considering the current release, 0.9.70) for now.

[1] netblue30#5176 (comment)
@kmk3 kmk3 requested a review from netblue30 December 21, 2022 09:34
Copy link
Collaborator

@glitsj16 glitsj16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@netblue30 netblue30 merged commit 5793256 into netblue30:master Dec 21, 2022
@netblue30
Copy link
Owner

all set!

@kmk3 kmk3 deleted the revert-remove-make-deb branch December 21, 2022 18:04
kmk3 added a commit to kmk3/firejail that referenced this pull request Feb 17, 2023
The official .deb package is always built with apparmor support, so use
`--enable-apparmor` in mkdeb.sh and remove the "deb-apparmor" target in
order to reduce redundancy.

Note that custom configure options may be specified by calling
./mkdeb.sh directly.

For example, to build the .deb package without apparmor support, instead
of running `make deb`, the following commands can be used:

    make dist
    ./mkdeb.sh --disable-apparmor

Also, change the `build_apparmor` GitLab CI job into
`build_no_apparmor`, which is intended to check that building without
apparmor still works.

Note: This commit makes the resulting .deb package not have an
"-apparmor" suffix (see `EXTRA_VERSION` in mkdeb.sh), to avoid
redundancy (as having apparmor support becomes the default).

Misc: This is a follow-up to netblue30#5654.

Relates to netblue30#5154 netblue30#5176 netblue30#5547.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (RELNOTES N/A)
Development

Successfully merging this pull request may close these issues.

3 participants