View previous topic :: View next topic |
Author |
Message |
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Thu Jul 05, 2018 1:52 pm Post subject: Why is rust still updated after setting the mask? |
|
|
I want to shield the rust upgrade, but the rust after the mask is still updated.
1.nano /etc/portage/package.mask
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Jul 05, 2018 2:12 pm Post subject: |
|
|
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
|
_________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30837 Location: here
|
|
Back to top |
|
|
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Fri Jul 06, 2018 4:52 am Post subject: |
|
|
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 |
|
|
Blind_Sniper Guru
Joined: 20 Apr 2018 Posts: 336
|
Posted: Fri Jul 06, 2018 11:13 am Post subject: |
|
|
Code: | emerge -avuDN world --exclude=rust |
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Jul 06, 2018 12:27 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Sat Jul 07, 2018 12:45 am Post subject: |
|
|
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 |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 722 Location: /home
|
Posted: Sat Jul 07, 2018 6:04 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Sat Jul 07, 2018 3:33 pm Post subject: |
|
|
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 |
|
|
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Sun Jul 08, 2018 5:11 am Post subject: |
|
|
Sorry, everyone is a problem caused by my carelessness. UNMASK (/etc/portage/package.unmask) added a rust-proof deletion problem. |
|
Back to top |
|
|
|