Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to ebuild npm dependend software properly?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
SDD701
n00b
n00b


Joined: 18 Feb 2023
Posts: 20

PostPosted: Thu Jul 18, 2024 6:59 pm    Post subject: How to ebuild npm dependend software properly? Reply with quote

Hi. I want to write a freetube ebuild. Looks like I need to run
Code:
npm install npm-run-all &&  npm ci &&  npm lint &&  npm build
to do it. But after I get the source code everything is sandboxed. What can I do?

FEATURES=" -network-sandbox"
1. Not working
2. Doesn't sound right
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2405

PostPosted: Thu Jul 18, 2024 7:39 pm    Post subject: Re: How to ebuild npm dependend software properly? Reply with quote

SDD701 wrote:
What can I do?


Give it up. It's not worth it. You need to prepare everything that's necessary for an offline compilation, host it somewhere, take care in src_prepare to prepare everything so that npm doesn't need to connect to the Internet. I don't know if that's even possible.

And yes, it's not right to disable network sandbox. It's a security risk.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum