Forums

Skip to content

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

Portage not keep-going

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
AprilGrimoire
n00b
n00b
User avatar
Posts: 64
Joined: Fri Jun 05, 2020 3:45 pm

Portage not keep-going

  • Quote

Post by AprilGrimoire » Sat Dec 13, 2025 3:46 pm

Hi! I'm upgrading a lot of packages, so I want emerge to run on keep-going continuously, and manually resolve the issues afterwards.

The command I ran is:

Code: Select all

sudo emerge -avuDN @world --autounmask-write --keep-going y
Here's the tail of my emerge attempt:

Code: Select all

*** Resuming merge...

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

Calculating dependencies... done!
Dependency resolution took 10.30 s.


 * Messages for package sci-libs/openblas-0.3.30-r4:

 * This software has a massive number of options that
 * are configurable and it is *impossible* for all of
 * those to fit inside any manageable ebuild.
 * The Gentoo provided package has enough to build
 * a fully optimized library for your targeted CPU.
 * You can set the CPU target using the environment
 * variable - OPENBLAS_TARGET or it will be detected
 * automatically from the target toolchain (supports
 * cross compilation toolchains).
 * You can control the maximum number of threads
 * using OPENBLAS_NTHREAD, default=64 and number of
 * parallel calls to allow before further calls wait
 * using OPENBLAS_NPARALLEL, default=8.

 * Messages for package media-plugins/grilo-plugins-0.3.18:

 * Ignoring USE=gnome-online-accounts USE does not contain lua

 * Messages for package media-libs/quirc-1.2-r2:

 * ERROR: media-libs/quirc-1.2-r2::gentoo failed (compile phase):
 *   emake failed
 * If you need support, post the output of `emerge --info '=media-libs/quirc-1.2-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/quirc-1.2-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/quirc-1.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/quirc-1.2-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/quirc-1.2-r2/work/quirc-1.2-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-libs/quirc-1.2-r2/work/quirc-1.2'
 * One or more packages are either masked or have missing dependencies:
 *
 *   >=media-libs/svt-av1-0.9:0/2=[abi_x86_64(-)] pulled in by:
 *     (media-video/ffmpeg-7.1.2:0/59.61.61::gentoo, installed)
 *
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (media-libs/quirc-1.2-r2:0/1.2::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/media-libs/quirc-1.2-r2/temp/build.log'
 *
Here are the packages to upgrade: https://termbin.com/4m4s (This probably isn't a permanent pastebin service, but I think it isn't important in this issue)

Since I passed '--keep-going y' as argument, I thought emerge would automatically postpone the troublesome package and keep going, however that's not the case. Why?

Thanks!
Last edited by AprilGrimoire on Sat Dec 13, 2025 7:37 pm, edited 1 time in total.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sat Dec 13, 2025 5:04 pm

You stopped short of asking the question that brought you here, so what is the thing you need help with?
It's much easier to answer once expectations are defined.

BTW, emerge already offered you 2 solutions to the problem it identified (masked package): --skipfirst and replace the masked package with something else.
Make Pipewire a system service
Top
AprilGrimoire
n00b
n00b
User avatar
Posts: 64
Joined: Fri Jun 05, 2020 3:45 pm

  • Quote

Post by AprilGrimoire » Sat Dec 13, 2025 7:36 pm

szatox wrote:You stopped short of asking the question that brought you here, so what is the thing you need help with?
It's much easier to answer once expectations are defined.

BTW, emerge already offered you 2 solutions to the problem it identified (masked package): --skipfirst and replace the masked package with something else.
Sorry, I wasn't expecting this, since I used '--keep-going' and I thought it would automatically do --skipfirst for me, according to my understanding of the man page.
Top
grknight
Retired Dev
Retired Dev
Posts: 2560
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Sat Dec 13, 2025 9:16 pm

AprilGrimoire wrote:Sorry, I wasn't expecting this, since I used '--keep-going' and I thought it would automatically do --skipfirst for me, according to my understanding of the man page.
When you see the following, it is the signal that--keep-going cannot continue and bails out:

Code: Select all

 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
Top
AprilGrimoire
n00b
n00b
User avatar
Posts: 64
Joined: Fri Jun 05, 2020 3:45 pm

  • Quote

Post by AprilGrimoire » Sat Dec 13, 2025 9:27 pm

grknight wrote:
AprilGrimoire wrote:Sorry, I wasn't expecting this, since I used '--keep-going' and I thought it would automatically do --skipfirst for me, according to my understanding of the man page.
When you see the following, it is the signal that--keep-going cannot continue and bails out:

Code: Select all

 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
It suggests using --skipfirst. Why? If --skipfirst could work, why didn't portage try it at the first place?
Top
C5ace
Guru
Guru
Posts: 517
Joined: Mon Dec 23, 2013 12:44 am
Location: Brisbane, Australia

  • Quote

Post by C5ace » Sat Dec 13, 2025 10:41 pm

I am using this batch file for a very long time to with desk and laptops:

File: /usr/local/bin/upgrade

Code: Select all

#!/bin/bash

echo upgrade start
cat /var/db/repos/gentoo/metadata/timestamp.chk
eselect news read
emerge -av --update --deep --with-bdeps=y --changed-use --newuse --backtrack=300  --tree --keep-going=y --verbose-conflicts --changed-deps=y @world

echo upgrade end
File: /usr/local/bin/cleanup

Code: Select all

#!/bin/sh

echo cleanup start

emerge --depclean
revdep-rebuild

echo cleanup end
Procedure:
- Run "upgrade"
- If required fix blockages and use flag errors and warnings
- Run "upgrade" again
- Run "cleanup"

Note:
--changed-use --newuse may cause some non necessary compilations
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes.
Top
AprilGrimoire
n00b
n00b
User avatar
Posts: 64
Joined: Fri Jun 05, 2020 3:45 pm

  • Quote

Post by AprilGrimoire » Sat Dec 13, 2025 11:29 pm

C5ace wrote:I am using this batch file for a very long time to with desk and laptops:

File: /usr/local/bin/upgrade

Code: Select all

#!/bin/bash

echo upgrade start
cat /var/db/repos/gentoo/metadata/timestamp.chk
eselect news read
emerge -av --update --deep --with-bdeps=y --changed-use --newuse --backtrack=300  --tree --keep-going=y --verbose-conflicts --changed-deps=y @world

echo upgrade end
File: /usr/local/bin/cleanup

Code: Select all

#!/bin/sh

echo cleanup start

emerge --depclean
revdep-rebuild

echo cleanup end
Procedure:
- Run "upgrade"
- If required fix blockages and use flag errors and warnings
- Run "upgrade" again
- Run "cleanup"

Note:
--changed-use --newuse may cause some non necessary compilations
Cool. However I have a lot of packages, and this process might need to be repeated multiple times, which is inconvenient since I hope my laptop can upgrade most of the part while I'm sleeping.
Top
C5ace
Guru
Guru
Posts: 517
Joined: Mon Dec 23, 2013 12:44 am
Location: Brisbane, Australia

  • Quote

Post by C5ace » Sat Dec 13, 2025 11:38 pm

AprilGrimoire wrote:
C5ace wrote:I am using this batch file for a very long time to with desk and laptops:

File: /usr/local/bin/upgrade

Code: Select all

#!/bin/bash

echo upgrade start
cat /var/db/repos/gentoo/metadata/timestamp.chk
eselect news read
emerge -av --update --deep --with-bdeps=y --changed-use --newuse --backtrack=300  --tree --keep-going=y --verbose-conflicts --changed-deps=y @world

echo upgrade end
File: /usr/local/bin/cleanup

Code: Select all

#!/bin/sh

echo cleanup start

emerge --depclean
revdep-rebuild

echo cleanup end
Procedure:
- Run "upgrade"
- If required fix blockages and use flag errors and warnings
- Run "upgrade" again
- Run "cleanup"

Note:
--changed-use --newuse may cause some non necessary compilations
Cool. However I have a lot of packages, and this process might need to be repeated multiple times, which is inconvenient since I hope my laptop can upgrade most of the part while I'm sleeping.
Just upgraded 300+packages overnight on my desktop. This included Chrome.

Run "watch qlop -r" in a separate terminal to estimates build times to completion of compiling package.

Run "mate-system-monitor" to see processor use, memory use and network use in near real time.

I use another system to upgrade ow powered laptops at the same time. Requires a high performance desktop.
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes.
Top
AprilGrimoire
n00b
n00b
User avatar
Posts: 64
Joined: Fri Jun 05, 2020 3:45 pm

  • Quote

Post by AprilGrimoire » Sat Dec 13, 2025 11:59 pm

C5ace wrote:
AprilGrimoire wrote:
C5ace wrote:I am using this batch file for a very long time to with desk and laptops:

File: /usr/local/bin/upgrade

Code: Select all

#!/bin/bash

echo upgrade start
cat /var/db/repos/gentoo/metadata/timestamp.chk
eselect news read
emerge -av --update --deep --with-bdeps=y --changed-use --newuse --backtrack=300  --tree --keep-going=y --verbose-conflicts --changed-deps=y @world

echo upgrade end
File: /usr/local/bin/cleanup

Code: Select all

#!/bin/sh

echo cleanup start

emerge --depclean
revdep-rebuild

echo cleanup end
Procedure:
- Run "upgrade"
- If required fix blockages and use flag errors and warnings
- Run "upgrade" again
- Run "cleanup"

Note:
--changed-use --newuse may cause some non necessary compilations
Cool. However I have a lot of packages, and this process might need to be repeated multiple times, which is inconvenient since I hope my laptop can upgrade most of the part while I'm sleeping.
Just upgraded 300+packages overnight on my desktop. This included Chrome.

Run "watch qlop -r" in a separate terminal to estimates build times to completion of compiling package.

Run "mate-system-monitor" to see processor use, memory use and network use in near real time.

I use another system to upgrade ow powered laptops at the same time. Requires a high performance desktop.
I think I have more packages installed, so upgrading is more difficult. I have a Ryzen 7 8845H, so buildtime alone won't be too much a problem. The main issue is if it errors out when I'm sleeping, the time could be used for building is wasted.
Top
C5ace
Guru
Guru
Posts: 517
Joined: Mon Dec 23, 2013 12:44 am
Location: Brisbane, Australia

  • Quote

Post by C5ace » Sun Dec 14, 2025 2:22 am

1.) When you first run "upgrade", it will show you the list of what requires upgrading and eventual blockages and if required, necessary changes of use flags.

2.) You the select "No", fix as you would normally do, blockage and use flags if any. Otherwise select "Yes".

3.) When done, again run "upgrade". If no blockages and use flags require fixing, select "Yes". Else repeat 2.) again.

It's very seldom that you need fixing blockages or use flags.

If there is a compile error, "--keep-going=y" will skip and continue building. At the end you will have a list of ebuilds that where skipped. You then compile each ebuild as normal one by one.

Note:
"upgrade" will probably run smoothly after you have uninstalled "sys-fs/encfs" and cleaned your system.

Code: Select all

!!! The following installed packages are masked:
- sys-fs/encfs-1.9.5-r2::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Viorel Munteanu <ceamac@gentoo.org> (2025-09-16)
# Unmaintained upstream, last release more than 7 years old.
# Old data is getting harder to read.
# Alternatives: sys-fs/gocryptfs or rclone crypt.
# Removal on 2025-12-16.  Bug #960358.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
The error message tells you that "sys-fs/encfs" is marked and will be removed on 2025-12-16 from the portage tree. You should replace "sys-fs/encfs" with "sys-fs/gocryptfs".

To do this, decrypt and backup the encrypted directories. Uninstall sys-fs/encfs (emerge -av --unmerge sys-fs/encfs). Run emerge --sync. Run "cleanup". Run upgrade. Run emerge -av sys-fs/gocryptfs. Restore the date to the encrypted directory.

Good Luck
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes.
Top
Post Reply

10 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