mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #5202] profiles: nodejs-common: fix node-gyp failing to build canvas #5400
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#5400
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/5202
Author: @skrat
Created: 6/14/2022
Status: 🔄 Open
Base:
master← Head:patch-1📝 Commits (1)
2ae4064Fix node-gyp failing to build canvas📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
etc/profile-m-z/nodejs-common.profile(+1 -0)📄 Description
So there is a commonly use node (npm) package called "canvas", which uses node-gyp to bind to cairo (2D canvas drawing library). And I assume this is useful outside of this particular case. node-gyp (run by
yarn installornpm install) needs access to/usr/share/pkgconfigotherwise it fails to buold the native extensions.So it's either this proposed change, or it can be move to
yarn.profileornpm.profile. I'm not sure it will work when moved tonode-gyp.profileas that one is invoked as a subprocess.It can also, instead of including
build-systems-common.profilejust whitelist/usr/share/pkgconfig.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.