Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Unmasking a package version doesn't work
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
nameiwillforget
n00b
n00b


Joined: 07 May 2024
Posts: 7

PostPosted: Tue May 07, 2024 8:14 pm    Post subject: [SOLVED]Unmasking a package version doesn't work Reply with quote

I need an Emacs-version larger than 30 for my config to work, so I thought I'd just unmask
Code:
=app-editors/emacs-30.0.9999
by creating a file in
Code:
portage/package.unmask
with the contents
Code:

=app-editors/emacs-30.0.9999

and then running
Code:

emerge =app-editors/emacs-30.0.9999

but in spite of the file contents that results in
Code:

!!! All ebuilds that could satisfy "=app-editors/emacs-30.0.9999" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-editors/emacs-30.0.9999::gentoo (masked by: missing keyword)

Also, if I use
Code:
emerge --autounmask-write
it says the same thing and doesn't propose any changes.
Code:
emerge --autounmask
gives more useful output:
Code:

[ebuild  NS   *] app-editors/emacs-30.0.9999 [29.3-r2] USE="xattr%*"

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by =app-editors/emacs-30.0.9999 (argument)
=app-editors/emacs-30.0.9999 **

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

I've also tried putting two stars behind the 9999, but it still didn't work. Why can't it compile the package?


Last edited by nameiwillforget on Tue May 07, 2024 8:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 990
Location: Somewhere in Denmark

PostPosted: Tue May 07, 2024 8:30 pm    Post subject: Reply with quote

It is masked by missing keyword - the file to edit is /etc/portage/package.accept_keywords
Code:
=app-editors/emacs-30.0.9999 **

https://wiki.gentoo.org/wiki/Knowledge_Base:Accepting_a_keyword_for_a_single_package
Code:
              package.unmask
                     Just  like  package.mask  above,  except here you list packages you want to unmask.  Useful for overriding the global package.mask file
                     (see above).  Note that this does not override packages that are masked via KEYWORDS.


Last edited by freke on Tue May 07, 2024 8:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
nameiwillforget
n00b
n00b


Joined: 07 May 2024
Posts: 7

PostPosted: Tue May 07, 2024 8:36 pm    Post subject: Reply with quote

Ah, I see, thanks.
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