Install packages from Gentoo with dependencies from Sabayon

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Post Reply
myguidingstar
Baby Hen
Posts: 5
Joined: Sat Aug 01, 2015 18:01

Install packages from Gentoo with dependencies from Sabayon

Post by myguidingstar » Mon Aug 31, 2015 11:04

Let's say I want to install a package from Gentoo because it's not available in Sabayon. But calling emerge will fetch its dependencies source version and build in my machine. How do I specify these dependencies to be binary from Sabayon instead?

User avatar
sabayonino
Sagely Hen
Posts: 3373
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Install packages from Gentoo with dependencies from Saba

Post by sabayonino » Mon Aug 31, 2015 11:36

install them manually with equo

myguidingstar
Baby Hen
Posts: 5
Joined: Sat Aug 01, 2015 18:01

Re: Install packages from Gentoo with dependencies from Saba

Post by myguidingstar » Mon Aug 31, 2015 14:29

What do you mean by "manually"? I'm asking about packages that is not pre-compiled in Sabayon repo but available in Gentoo

Fitzcarraldo
Sagely Hen
Posts: 8195
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: Install packages from Gentoo with dependencies from Saba

Post by Fitzcarraldo » Mon Aug 31, 2015 16:17

As you're using Portage, mask the dependency packages from the main Portage tree that you don't want to be built. For example, if you want to pull in SL overlay package fu/bar instead of Gentoo package fu/bar then create a file /etc/portage/package.mask/bar containing:

Code: Select all

fu/bar::gentoo
If there is a corresponding package fu/bar in the sabayon-distro Portage overlay, fu/bar::sabayon-distro will be installed instead. Don't forget to add the sabayon-distro overlay using Layman.

joost
Sagely Hen
Posts: 2742
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Install packages from Gentoo with dependencies from Saba

Post by joost » Mon Aug 31, 2015 19:16

How I would do this:

Code: Select all

emerge -avp <package>
Now this will list what additional packages are needed (build AND runtime) to install <package>

I advice to install ANY additional package using equo, then try again:

Code: Select all

emerge -avp <package>
If no more additional deps are being pulled, go ahead and merge it from Portage.

afterwards inform Entropy about the manual package you merged:

Code: Select all

equo rescue spmsync
My blog | Mastodon | Please support Sabayon: Become a Patron

myguidingstar
Baby Hen
Posts: 5
Joined: Sat Aug 01, 2015 18:01

Re: Install packages from Gentoo with dependencies from Saba

Post by myguidingstar » Mon Sep 21, 2015 13:34

How can I prioritize sabayon-distro overlay higher than gentoo? I tried to change /etc/portage/repos.conf/gentoo.conf and/etc/portage/repos.conf/layman.conf but emerge still pull packages from ::gentoo even ::sabayon-distro have them, too
@joost: of course, I've used the same strategy like yours, but I think it's a common task and there should be a more convenient way

myguidingstar
Baby Hen
Posts: 5
Joined: Sat Aug 01, 2015 18:01

Re: Install packages from Gentoo with dependencies from Saba

Post by myguidingstar » Mon Sep 21, 2015 13:39

@Fiz
I always prefer ::sabayon-distro package over ::gentoo to avoid compilation. Masking every package is impossible b/c there are so many of them. I tried */*::gentoo and unmask several fu/bar::gentoo, but it doesn't work. It won't pull ::sabayon-distro packages for me :(

Post Reply