Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] force install from portage tree instead of overlay

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
emc
Guru
Guru
User avatar
Posts: 564
Joined: Fri Jul 02, 2004 12:35 pm
Location: Cracow, Poland

[solved] force install from portage tree instead of overlay

  • Quote

Post by emc » Fri Jul 20, 2012 9:52 am

Hi
I have the same package in these same version in official portage tree and in one of overlay. How to force portage to use portage tree instead of overlay but only for this specific package with this specific version?
Last edited by emc on Fri Jul 20, 2012 2:00 pm, edited 1 time in total.
Top
DawgG
l33t
l33t
User avatar
Posts: 880
Joined: Wed Sep 17, 2003 12:31 pm

  • Quote

Post by DawgG » Fri Jul 20, 2012 10:17 am

delete the ebuild in the overlay (if the same version exists in the official portage tree it's unnecessary anyway) and emerge the exact same version. then the one from the official tree should be used by portage.
GOOD LUCK!
DUMM KLICKT GUT.
Top
Polynomial-C
Retired Dev
Retired Dev
User avatar
Posts: 1432
Joined: Sun Jun 01, 2003 4:19 pm
Location: Germany

  • Quote

Post by Polynomial-C » Fri Jul 20, 2012 10:40 am

Code: Select all

echo "category/package::overlay-name" >> /etc/portage/package.mask
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Top
Fitzcarraldo
Advocate
Advocate
User avatar
Posts: 2057
Joined: Sat Aug 30, 2008 9:49 pm
Location: United Kingdom
Contact:
Contact Fitzcarraldo
Website

  • Quote

Post by Fitzcarraldo » Fri Jul 20, 2012 10:54 am

Example: Let's say there is an ebuild for libwnck in the main Portage tree and in the stuff overlay.

Code: Select all

$ eix -I x11-libs/libwnck
[I] x11-libs/libwnck
     Available versions:  
        (1)     2.30.7 2.31.0
        (3)     3.2.1 (~)3.2.1[1] [M](~)3.4.0 [M](~)3.4.2
        {{doc +introspection startup-notification tools}}
     Installed versions:  2.31.0(1)(23:30:00 27/04/12)(introspection startup-notification -doc) 3.2.1(3)(05:58:17 02/11/11)(introspection startup-notification -doc)
     Homepage:            http://www.gnome.org/
     Description:         A window navigation construction kit

[1] "stuff" /var/lib/layman/stuff
But I don't want to merge libwnck from the overlay, I want to merge it from the main Portage tree, so I do:

Code: Select all

emerge =libwnck-3.2.1::gentoo
To force Portage to do that without me having to enter the suffix in the above command, I would mask the overlay version in the file /etc/portage/package.mask as follows:

Code: Select all

=x11-libs/libwnck-3.2.1::stuff
EDIT: Whoops, while I was typing that, Polynomial-C gave you the succinct answer!
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.

My blog
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Fri Jul 20, 2012 12:15 pm

emc et al ...

while the answer is already provided, for overlays I tend to do the following:

mask the entire overlay in /etc/portage/package.mask:

Code: Select all

*/*::overlay
unmask in /etc/portage/package.unmask in only those packages in the overlay I'm concerned with, or require:

Code: Select all

category/package::overlay
While this requires additional work it has the advanatge that no packages from an overlay will slip into @system or @world ... if for example using --newuse --deep (and similar operations).

best ... khay
Top
emc
Guru
Guru
User avatar
Posts: 564
Joined: Fri Jul 02, 2004 12:35 pm
Location: Cracow, Poland

  • Quote

Post by emc » Fri Jul 20, 2012 12:25 pm

if I have:

Code: Select all

#cat /etc/portage/package.mask 
=x11-wm/compiz-0.8.8::elementary
=x11-wm/compiz-fusion-0.8.8::elementary
and

Code: Select all

# cat /etc/portage/package.unmask
=x11-libs/compiz-bcop-0.8.8
=x11-themes/emerald-themes-0.5.2
=x11-apps/ccsm-0.8.8
=x11-libs/libcompizconfig-0.8.8
=x11-wm/compiz-0.8.8
=dev-python/compizconfig-python-0.8.8
=x11-plugins/compiz-plugins-unsupported-0.8.8
=x11-wm/emerald-0.8.8
=x11-apps/fusion-icon-0.1-r2

=x11-plugins/compiz-plugins-main-0.8.8
=x11-plugins/compiz-plugins-extra-0.8.8
=x11-wm/compiz-fusion-0.8.8

#for kde
=x11-libs/compizconfig-backend-kconfig4-0.8.4
and:

Code: Select all

cat /etc/portage/package.accept_keywords 
=x11-libs/compiz-bcop-0.8.8 ~amd64
=x11-apps/ccsm-0.8.8 ~amd64
=x11-libs/libcompizconfig-0.8.8 ~amd64
=dev-python/compizconfig-python-0.8.4-r3 ~amd64
=x11-wm/compiz-fusion-0.8.8 ~amd64
=x11-apps/fusion-icon-0.1-r2 ~amd64
=x11-themes/emerald-themes-0.5.2 ~amd64
=x11-wm/emerald-0.8.8 ~amd64
=x11-plugins/compiz-plugins-unsupported-0.8.8 ~amd64

=x11-wm/compiz-0.8.8 ~amd64
=x11-plugins/compiz-plugins-main-0.8.8 ~amd64
=x11-plugins/compiz-plugins-extra-0.8.8 ~amd64
=x11-wm/compiz-fusion-0.8.8 ~amd64

#for kde
=x11-libs/compizconfig-backend-kconfig4-0.8.4 ~amd64
so why:

Code: Select all

# emerge -pvNDu world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   #] x11-wm/compiz-0.8.8::elementary  USE="cairo fuse gtk kde* svg -gconf -gnome" 0 kB
[ebuild  N    #] x11-libs/compizconfig-backend-kconfig4-0.8.4  USE="(-aqua)" 0 kB
[ebuild   R   ~] x11-apps/fusion-icon-0.1-r2::elementary [0.1-r2::gentoo] USE="gtk qt4*" 0 kB
[ebuild   R   #] x11-wm/compiz-fusion-0.8.8::elementary  USE="emerald kde* unsupported -gnome" 0 kB

Total: 4 packages (1 new, 3 reinstalls), Size of downloads: 0 kB
compiz is still emerging from overlay. I need some packages form elementary, but x11-wm/compiz-0.8.8 form portage has some patch for KDE4.8. BTW I got compilation error during x11-wm/compiz-0.8.8 after change USE to kde and gt4.
Top
emc
Guru
Guru
User avatar
Posts: 564
Joined: Fri Jul 02, 2004 12:35 pm
Location: Cracow, Poland

  • Quote

Post by emc » Fri Jul 20, 2012 12:41 pm

khayyam wrote:

Code: Select all

category/package::overlay
While this requires additional work it has the advanatge that no packages from an overlay will slip into @system or @world ... if for example using --newuse --deep (and similar operations).

best ... khay
I didn't refresh post before sending, so... I will try your way ;)
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Fri Jul 20, 2012 12:53 pm

emc ...

your problem seems to be that you mask (by ::overlay) but then unmask globally (no overlay is provided) ... this unsets the definitions in package.mask.

best ... khay
Top
emc
Guru
Guru
User avatar
Posts: 564
Joined: Fri Jul 02, 2004 12:35 pm
Location: Cracow, Poland

  • Quote

Post by emc » Fri Jul 20, 2012 2:00 pm

yes, good point... now everything is clear... case close...
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic