Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is rust still updated after setting the mask?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Thu Jul 05, 2018 1:52 pm    Post subject: Why is rust still updated after setting the mask? Reply with quote

I want to shield the rust upgrade, but the rust after the mask is still updated.

1.nano /etc/portage/package.mask
Code:
dev-lang/rust


2.sudo emerge -auvDN @world
Code:

These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild     U #] dev-lang/rust-1.27.0:stable/1.27::gentoo [1.26.1:stable/1.26::gentoo] USE="jemalloc -debug -doc (-extended) -wasm%" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore" 0 KiB

>>> Emerging (1 of 5) dev-lang/rust-1.27.0::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
^C * rustc-1.27.0-src.tar.xz BLAKE2B SHA512 size ;-) ...                               [ o


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7089
Location: Saint Amant, Acadiana

PostPosted: Thu Jul 05, 2018 2:12 pm    Post subject: Reply with quote

man portage
Code:
              package.mask
                     A list of package atoms to mask.  Useful if specific versions of packages do not  work
                     well for you.  For example, you swear by the Nvidia drivers, but only versions earlier
                     than 1.0.4496.  No problem!

                     Format:
                     - comment lines begin with # (no inline comments)
                     - one DEPEND atom per line

                     Example:
                     # mask out versions 1.0.4496 of the nvidia
                     # drivers and later
                     >=media-video/nvidia-kernel-1.0.4496
                     >=media-video/nvidia-glx-1.0.4496

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21754
Location: here

PostPosted: Thu Jul 05, 2018 3:02 pm    Post subject: Reply with quote

Or wiki page /etc/portage/package.mask
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Fri Jul 06, 2018 4:52 am    Post subject: Reply with quote

Jaglover wrote:
man portage
Code:
              package.mask
                     A list of package atoms to mask.  Useful if specific versions of packages do not  work
                     well for you.  For example, you swear by the Nvidia drivers, but only versions earlier
                     than 1.0.4496.  No problem!

                     Format:
                     - comment lines begin with # (no inline comments)
                     - one DEPEND atom per line

                     Example:
                     # mask out versions 1.0.4496 of the nvidia
                     # drivers and later
                     >=media-video/nvidia-kernel-1.0.4496
                     >=media-video/nvidia-glx-1.0.4496


/etc/portage/package.mask
Code:
>=dev-lang/rust-1.27


Code:
Calculating dependencies... done!
[ebuild     U #] dev-lang/rust-1.27.0:stable/1.27::gentoo [1.26.1:stable/1.26::gentoo] USE="jemalloc -debug -doc (-extended) -wasm%" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore" 0 KiB

>>> Emerging (1 of 6) dev-lang/rust-1.27.0::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * rustc-1.27.0-src.tar.xz BLAKE2B SHA512 size ;-) ...                               [ ok ]
 * rust-1.26.2-x86_64-unknown-linux-gnu.tar.xz BLAKE2B SHA512 size ;-) ...           [ ok ]


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Blind_Sniper
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2018
Posts: 102

PostPosted: Fri Jul 06, 2018 11:13 am    Post subject: Reply with quote

Code:
emerge -avuDN world --exclude=rust
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Jul 06, 2018 12:27 pm    Post subject: Reply with quote

I have never seen the # myself, from portage man, the # is a mask package.

So i think portage do report correctly the package is mask, but will not obey, my logical conclusion is "because of autounmask", i'm not using autounmask myself, so i might be wrong, but it seems such feature could disobey to a mask no?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Sat Jul 07, 2018 12:45 am    Post subject: Reply with quote

Something is odd in that output. The caption says -a was used, but there is no confirmation prompt. OP: did you edit the output before pasting it here?

How does the output change if --tree is used?
Back to top
View user's profile Send private message
Juippisi
Guru
Guru


Joined: 30 Sep 2005
Posts: 341
Location: /home

PostPosted: Sat Jul 07, 2018 6:04 am    Post subject: Reply with quote

Maybe its unmasked, or some weird autounmask settings in your portage are activated?

grep -r rust /etc/portage

and check make.conf
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Sat Jul 07, 2018 3:33 pm    Post subject: Reply with quote

Local unmasks can override local masks, if I recall correctly. I get a # and an offer to proceed if I try to emerge a locally unmasked package that is masked in the main repository. From that, I like Juippisi's suggestion that a local unmask is responsible.
Back to top
View user's profile Send private message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Sun Jul 08, 2018 5:11 am    Post subject: Reply with quote

Sorry, everyone is a problem caused by my carelessness. UNMASK (/etc/portage/package.unmask) added a rust-proof deletion problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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