Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How necessary are DEPEND pkgs post-install?
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
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sun Mar 18, 2018 1:30 am    Post subject: How necessary are DEPEND pkgs post-install? Reply with quote

After a package is emerged, does that package still need dependencies from DEPEND?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Mar 18, 2018 12:33 pm    Post subject: Reply with quote

Only use to build, so none if you 100% trust the dev has done a good work on that ebuild.
But before you go into some automation to remove package from DEPEND, it would be a bad idea to do that, as per example any C program should depends on gcc to build, and removing gcc won't make any trouble to run that program later ; but you'll be really unhappy to have gcc removed :)

I'm also not quiet sure how an ebuild should be made with a package that is both DEPEND and RDEPEND (like glibc, that a program need to build and also to run), logically it should be set on both, but if a dev just set it as DEPEND, removing glibc won't again be a good idea).

Are you trying to make gentoo studio on diet?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sun Mar 18, 2018 12:47 pm    Post subject: Reply with quote

Ha, no, I'm messing with the idea of quickpkg'ing firefox so I can have a distributable bin for it with jack support. It pulls in clang and rust, and those two alone take up most of the build time, even on a new-fast machine. So if I need to include clang and rust anyway, there's no point to haxxing with quickpkg and firefox.

This makes me think though, that it would be so much easier if it was a universally followed standard to put anything in RDEPEND that's a run-time dep, even if it's also a build dep, or to put in RDEPEND anything that is required by the system in general after building a specific package. Or perhaps at some point if an SDEPEND was created to require non-removable system build deps, and having an option to rm DEPEND pkgs post-install for those wanting slim systems.

EDIT: Neddy answered my musings pretty well. :)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN


Last edited by audiodef on Sun Mar 18, 2018 12:50 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54587
Location: 56N 3W

PostPosted: Sun Mar 18, 2018 12:48 pm    Post subject: Reply with quote

audiodef,

The DEPENDS and RDEPENDS in ebuilds are usually incomplete.
The @system set is always assumed to be available, so members of the @system set only appear in ebuids if versions matter.

These unlisted dependencies serve to break most of the circular dependencies that would otherwise arise.

As krinn says, file bugs if you remove a build time dependency and something breaks.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22720

PostPosted: Sun Mar 18, 2018 4:29 pm    Post subject: Reply with quote

audiodef wrote:
Ha, no, I'm messing with the idea of quickpkg'ing firefox so I can have a distributable bin for it with jack support. It pulls in clang and rust, and those two alone take up most of the build time, even on a new-fast machine. So if I need to include clang and rust anyway, there's no point to haxxing with quickpkg and firefox.
Unless precluded by license, you could instead extend your scheme to quickpkg all three. Users who had a compatible clang/rust installed could skip installing the tbz2 archives of those packages and go direct to installing the tbz2 of Firefox.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54587
Location: 56N 3W

PostPosted: Sun Mar 18, 2018 4:39 pm    Post subject: Reply with quote

audiodef,

... and rust needs cargo .... and cargo ne .....

Careful with distributing binaries of firefox. You need to build it with USE=bindist, for sure.
You may not be able to call it firefox either.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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