mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4293] [MERGED] configure*: fix build with non-bash /bin/sh #5103
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/4293
Author: @kmk3
Created: 5/22/2021
Status: ✅ Merged
Merged: 5/22/2021
Merged by: @reinerh
Base:
master← Head:configure-fix-portability📝 Commits (1)
0c5d5d7configure*: fix build with non-bash /bin/sh📊 Changes
2 files changed (+17 additions, -16 deletions)
View changed files
📝
configure(+8 -8)📝
configure.ac(+9 -8)📄 Description
The configure script happens to work if /bin/sh supports the non-POSIX
"+=" operator (e.g.: bash) and fails otherwise (e.g.: dash).
This usage first appeared on configure.ac on commit
66a476419("gcovsupport"), which is from 2016.
If the --enable-apparmor flag is passed to ./configure (which is the
default on Arch Linux), running
makefails due to the missing-lapparmor LDFLAG. Thus, building firejail-git from the AUR does not
work if /bin/sh is e.g.: dash.
Errors when running the build commands below from makepkg:
Without the apparmor flag, the CFLAGS related to HAVE_SPECTRE do not get
applied either, but
makedoes not error out, so the problem is harderto detect in this case.
Diff comparing the output of
./configure 2>&1when running without andthen with this patch:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.