Forums

Skip to content

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

[SOLVED] package.keywords - a smart way to use

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
jansk
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Mon Aug 09, 2004 12:16 pm

[SOLVED] package.keywords - a smart way to use

  • Quote

Post by jansk » Thu Apr 13, 2006 12:48 am

Hello,

I use Gentoo stable packages (ACCEPT_KEYWORDS="x86") but I'd like to use latest xfce-base/xfce4 and sci-mathematics/scilab package therefore I put them in package.keywords file.

However if I emerge i.e. 'emerge -p scilab' with scilab in package.keywords file, it will install latest version of scilab but all dependent packages will be from stable profile.

Code: Select all

 emerge -p scilab

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] app-text/sablotron-1.0.1  
[ebuild  NS   ] gnome-extra/gtkhtml-2.6.3  
[ebuild  N    ] x11-libs/libzvt-2.0.1-r2  
[ebuild  N    ] sci-libs/lapack-config-1.0.1  
[ebuild  N    ] sci-libs/lapack-atlas-3.6.0  
[ebuild  N    ] sci-mathematics/scilab-3.1.1-r3 
On the other hand if I do:

Code: Select all

ACCEPT_KEYWORDS="~x86" emerge -p scilab

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] app-text/sablotron-1.0.1-r1  
[ebuild  NS   ] gnome-extra/gtkhtml-2.6.3  
[ebuild  N    ] x11-libs/libzvt-2.0.1-r2  
[ebuild  N    ] sci-libs/lapack-config-1.0.1  
[ebuild     U ] sci-libs/blas-atlas-3.7.11 [3.6.0-r1] 
[ebuild  N    ] sci-libs/lapack-atlas-3.7.11  
[ebuild  N    ] sci-mathematics/scilab-3.1.1-r3 
dependent packages will be also from unstable profile (~x86).

Do I have to add to package.keywords file also all dependent packages ??? That's a kind of hassle to me.
Also if I do 'emerge world' I got error messages about all dependent packages of xfce4 and scilab. Is there a smart way how to tell portage that I want xfce4 and scilab and also all depent packages to be ~x86 ?

Thanks
Jan
Last edited by jansk on Thu Apr 13, 2006 4:26 am, edited 1 time in total.
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Thu Apr 13, 2006 1:25 am

Adding them and their dependencies to package.keywords *is* the smart way of doing it...
Bones McCracker wrote:On the other hand, regex is popular with the ladies.
Top
jansk
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Mon Aug 09, 2004 12:16 pm

  • Quote

Post by jansk » Thu Apr 13, 2006 2:20 am

Does that mean there's no other way around but to list desired package and its dependencies in package.keywords file ?
I tried also to add something like
'xfce-base/xfce4*' or 'xfce-base/*' in package.keywords but (as expected) didn't work.

Jan
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Thu Apr 13, 2006 2:25 am

You could run a fully ~x86 system by setting it in make.conf, but I woudn't recommend it.
Bones McCracker wrote:On the other hand, regex is popular with the ladies.
Top
jansk
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Mon Aug 09, 2004 12:16 pm

  • Quote

Post by jansk » Thu Apr 13, 2006 2:51 am

Yes, I don't want to run fully in ~x86.

One more question:
If I run 'emerge scilab' with 'sci-mathematics/scilab' only in package.keywords it will install latest scilab but stable version of all dependencies. Will then scilab work ?
If emerging with 'ACCEPT_KEYWORDS="~x86" emerge scilab' then it asks for different versions of packages + some new packages....

Thanks
Jan
Last edited by jansk on Thu Apr 13, 2006 4:20 am, edited 1 time in total.
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Thu Apr 13, 2006 3:11 am

If you just unmask scilab in package.keywords, and it doesn't complain about any of its dependencies when you emerge it, then it should work fine with the stable dependencies. The scilab ebuild (even masked ones) should verify that all build and runtime dependencies have been met before it will install.
Bones McCracker wrote:On the other hand, regex is popular with the ladies.
Top
MmmmJoel
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Fri Jan 24, 2003 5:16 am

  • Quote

Post by MmmmJoel » Thu Apr 13, 2006 3:14 am

For xfce, just do something like this and you'll be fine for running the newest version:

Code: Select all

ls /usr/portage/xfce-base >> /usr/portage/package.keywords
ls /usr/portage/xfce-extra >> /usr/portage/package.keywords
But delete the metadata.xml entries it will copy.

I have no idea why the newest xfce is still ~x86. It's been out for ages and last I checked there were no bugs.
jansk wrote:One more question:
If I run 'emerge scilab' with 'sci-mathematics/scilab' only in package.keywords it will install latest scilab and stable version of all dependencies. Will then scilab work ?
Most likely. The maintainer of the scilab ebuild will specify if it has any additional dependencies that are in ~x86. The emerge will notify you and fail even before it starts. But since it is ~s86, the only way to find out is to try. Yes, you will want to use the package.keywords method.
Top
jansk
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Mon Aug 09, 2004 12:16 pm

  • Quote

Post by jansk » Thu Apr 13, 2006 4:25 am

Thanks for all replies, I like the tip with xfce - easy and smart. For scilab I'll add everything manually to package.keywords file.

Cheers!
Jan

p.s. I'm still vondering if it woudn't be practical to allow * syntax in package.keywords file (i.e. xfce-base/* would unmask everything in xfce-base directory).
Top
Post Reply

8 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