Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Please, help me update my gentoo
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Sat Dec 24, 2022 12:19 am    Post subject: Reply with quote

grknight wrote:

NOTE: This is a hack to bypass the rename and should be removed once the system is up-to-date

Thanks, it looks this works, now the portage does a lot of making operations. But could you slightly explain, what renaming should be bypassed?
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Sat Dec 24, 2022 9:43 am    Post subject: Reply with quote

OK, it look everything is rebuilt successfully. There are couple notes for the rebuilt packages:
Code:

 * Messages for package app-text/po4a-0.57:

 * QA Notice: The ebuild uses Module::Build but doesn't depend on it.
 *  Add dev-perl/Module-Build to BDEPEND!

What does this mean? Do I understand this correct and I need to run "emerge dev-perl/Module-Build"?

Code:
 * Messages for package sys-apps/smartmontools-7.1-r1:

 * WARNING: There's already a drive database in '/var/db/smartmontools'!
 * Because we cannot determine if this database is untouched
 * or was modified by the user you have to manually update the
 * drive database:
 *
 * a) Replace '/var/db/smartmontools/drivedb.h' by the database shipped with this
 *    release which can be found in '/usr/share/smartmontools/drivedb.h', i.e.
 *
 *      cp "/usr/share/smartmontools/drivedb.h" "/var/db/smartmontools"
 *
 * b) Run the following command as root:
 *
 *      /usr/sbin/update-smart-drivedb
 *
 * However, 'update-smart-drivedb' requires that you re-emerge smartmontools
 * with USE='update-drivedb'.

So, I go to the directory /etc/portage/package.use , create a file there, say, smartmontools and add a line "USE='update-drivedb'" (or just 'update-driverdb'?), run "emerge smartmontools" and then move on to the points a) and b), do I get correct?

P.S. Here are the notes for the all rebuilt packages:
https://dpaste.com/E6NUQUZE5
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Sat Dec 24, 2022 11:05 am    Post subject: Reply with quote

peterwf,

/etc/portage/profile/package.provided tells portage to assume the packages listed there are 'provided' outside of the package manager.
Portage won't try to install them as its been told they are already installed.

Code:
 * Messages for package app-text/po4a-0.57:

 * QA Notice: The ebuild uses Module::Build but doesn't depend on it.
 *  Add dev-perl/Module-Build to BDEPEND!
is a message for the ebuild writers, not for users.

Code:
 * WARNING: There's already a drive database in '/var/db/smartmontools'!
 * Because we cannot determine if this database is untouched
 * or was modified by the user you have to manually update the
 * drive database:
 *
 * a) Replace '/var/db/smartmontools/drivedb.h' by the database shipped with this
 *    release which can be found in '/usr/share/smartmontools/drivedb.h', i.e.
 *
 *      cp "/usr/share/smartmontools/drivedb.h" "/var/db/smartmontools"
 *
 * b) Run the following command as root:
 *
 *      /usr/sbin/update-smart-drivedb
 *
 * However, 'update-smart-drivedb' requires that you re-emerge smartmontools
 * with USE='update-drivedb'.


Portage found a piece of the package already installed but can't tell if its been changed, so its installed the new database as /usr/share/smartmontools/drivedb.h.
Smartmon tools won't find it there. If you want to use the new database, you do unless you edited the old one, do
Code:
cp "/usr/share/smartmontools/drivedb.h" "/var/db/smartmontools"

If you always want the database updated, add update-drivedb to USE in make.conf.

The next step is
Code:
emerge --depclean -p
to see what junk you have installed that portage doesn't need.
Post the output because it needs to be reviewed before you rip it out.

Then its etc-update to take care of
Code:
 * IMPORTANT: 4 config files in '/etc' need updating.

Don't do it, just post the file list, that needs to be reviewed too.

Then its read and act on your news items.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Sat Dec 24, 2022 12:12 pm    Post subject: Reply with quote

NeddySeagoon,

Quote:

/etc/portage/profile/package.provided tells portage to assume the packages listed there are 'provided' outside of the package manager.
Portage won't try to install them as its been told they are already installed.

OK, should I empty (or delete it at all) this file now?

Quote:

The next step is
Code:
emerge --depclean -p
to see what junk you have installed that portage doesn't need.
Post the output because it needs to be reviewed before you rip it out.

Here it is (it looks, not much junk I installed so far :D ):
Code:
# emerge --depclean -p

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 *
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence of this, it often becomes necessary to run
 * `emerge --update --newuse --deep @world` prior to depclean.

Calculating dependencies  ... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   dev-lang/perl:0/5.32= pulled in by:
 *     virtual/perl-ExtUtils-MakeMaker-7.340.0-r2
 *
 *   dev-lang/perl:0/5.32= pulled in by:
 *     dev-perl/Locale-gettext-1.70.0
 *
 * Have you forgotten to do a complete update prior to depclean? The
 * most comprehensive command for this purpose is as follows:
 *
 *   emerge --update --newuse --deep --with-bdeps=y @world
 *
 * Note that the --with-bdeps=y option is not required in many
 * situations. Refer to the emerge manual page (run `man emerge`)
 * for more information about --with-bdeps.
 *
 * Also, note that it may be necessary to manually uninstall
 * packages that no longer exist in the repository, since it may not
 * be possible to satisfy their dependencies.


Quote:

Then its etc-update to take care of
Code:
 * IMPORTANT: 4 config files in '/etc' need updating.

Don't do it, just post the file list, that needs to be reviewed too.

Here is the output of the etc-update command:
Code:
# etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/sudoers (1)
2) /etc/portage/package.use/zz-autounmask (3)
Please select a file to edit by entering the corresponding number.

here is my /etc/sudoers file (non-commented part):
Code:
## User privilege specification
##
root ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw  # Ask for the password of the target user
# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'

## Read drop-in files from /etc/sudoers.d
@includedir /etc/sudoers.d


here is /etc/portage/package.use/zz-autounmask:
Code:
# package.use# required by sys-boot/os-prober-1.78::gentoo
# required by sys-boot/os-prober (argument)
>=sys-boot/grub-2.06_rc1 mount
# required by www-client/firefox-78.10.1::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.9.0 postproc
# required by media-libs/mesa-21.0.3::gentoo
# required by www-client/firefox-102.6.0::gentoo
# required by @selected
# required by @world (argument)
>=x11-libs/libdrm-2.4.114 video_cards_intel video_cards_radeon video_cards_amdgpu

Quote:

Then its read and act on your news items.

Can I remove somehow the entries of the removed news?
Code:
# eselect news list
News items:
  [1]      2016-06-19  L10N USE_EXPAND variable replacing LINGUAS
  [2]      2018-08-07  Migration required for OpenSSH with LDAP
  [3]      2019-05-23  Change of ACCEPT_LICENSE default
  [4]      2019-12-30  Genkernel 4 changed default filenames
  [5]      2020-06-23  sys-libs/pam-1.4.0 upgrade
  [6]      2020-06-24  xorg-server dropping default suid
  [7]      2021-01-30  New OpenRC Display Manager Initializer Scripts
  [8]      2021-01-30  Python preference to follow PYTHON_TARGETS
  [9]      2021-05-05  (2021-05-05-python3-9 - removed?)
  [10]     2021-07-15  (2021-07-15-opentmpfiles-deprecation - removed?)
  [11]     2021-07-20  (2021-07-20-perl-5_34-upgrade - removed?)
  [12]     2021-08-01  (2021-08-01-tcpd-disabled - removed?)
  [13]     2021-08-24  (2021-08-24-eudev-retirement - removed?)
  [14]     2021-09-24  (2021-09-24-busybox-removal-from-system-set - removed?)
  [15]     2021-09-29  (2021-09-29-possible-failure-to-preserve-libraries - removed?)
  [16]     2021-10-08  (2021-10-08-openssh-rsa-sha1 - removed?)
  [17]     2021-10-18  (2021-10-18-libxcrypt-migration-stable - removed?)
  [18]     2021-10-24  (2021-10-24-netifrc-dhcp-client - removed?)
  [19]     2022-04-19  (2022-04-19-systemd-utils - removed?)
  [20]     2022-06-13  (2022-06-13-python3-10 - removed?)
  [21]     2022-07-29  (2022-07-29-pipewire-sound-server - removed?)
  [22]     2022-11-19  (2022-11-19-lvm2-default-USE-flags - removed?)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Sat Dec 24, 2022 5:08 pm    Post subject: Reply with quote

peterwf,

Code:
Calculating dependencies ... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   dev-lang/perl:0/5.32= pulled in by:
 *     virtual/perl-ExtUtils-MakeMaker-7.340.0-r2
 *
 *   dev-lang/perl:0/5.32= pulled in by:
 *     dev-perl/Locale-gettext-1.70.0
That says that you have some required things missing.
We will ignore that for now.

Comment out the content of /etc/portage/profile/package.provided but it may be needed by the next update step, so keep the content, in case its needed again.

You probably want to merge /etc/sudoers as your changes will be lost if you do the update.

/etc/portage/package.use/zz-autounmask accept it.

Your news is in a mess due to the regressed ::gentoo The news system knows about future news items. They are flagged as removed.
It will sort itself out. No action is required for news items.

Move the repo on about 6 months and update again, if you can. If not past the emerge command and all of its output.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Sun Dec 25, 2022 1:25 am    Post subject: Reply with quote

NeddySeagoon,

Quote:


Code:
Calculating dependencies ... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   dev-lang/perl:0/5.32= pulled in by:
 *     virtual/perl-ExtUtils-MakeMaker-7.340.0-r2
 *
 *   dev-lang/perl:0/5.32= pulled in by:
 *     dev-perl/Locale-gettext-1.70.0
That says that you have some required things missing.
We will ignore that for now.


Does this mean that I should do "emerge --depclean" and then proceed? Rest is clear. Thanks!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Sun Dec 25, 2022 12:02 pm    Post subject: Reply with quote

peterwf,

Skip the --depclean for now. It will stop with the same message.
--depclean won't run unless the complete dependency tree can be resolved. That's not possible at the moment.

Move on to your next update. That may well fix your dependency tree.

The idea was to remove junk to avoid updating it but its not worth the effort to fix.
Do the next update anyway.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Sun Dec 25, 2022 2:28 pm    Post subject: Reply with quote

NeddySeagoon wrote:
peterwf,

Skip the --depclean for now. It will stop with the same message.
--depclean won't run unless the complete dependency tree can be resolved. That's not possible at the moment.

Move on to your next update. That may well fix your dependency tree.

The idea was to remove junk to avoid updating it but its not worth the effort to fix.
Do the next update anyway.


Can't update, even using next gentoo snapshot:
Code:

    #cat /etc/portage/profile/package.provided
#app-crypt/openpgp-keys-gentoo-release-20200704
    # mount -o loop,ro /home/petya/Downloads/gentoo-20210601.xz.sqfs /var/db/repos/gentoo 
    # emerge -uDUav @world --with-bdeps=y -f --keep-going --backtrack=500

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
/var/db/repos/gentoo/profiles/updates/1Q-2016............................................
/var/db/repos/gentoo/profiles/updates/2Q-2016........................................................
/var/db/repos/gentoo/profiles/updates/3Q-2016.......................
/var/db/repos/gentoo/profiles/updates/4Q-2016.............................
/var/db/repos/gentoo/profiles/updates/1Q-2017..............................
/var/db/repos/gentoo/profiles/updates/2Q-2017....
/var/db/repos/gentoo/profiles/updates/3Q-2017........................
/var/db/repos/gentoo/profiles/updates/4Q-2017......
/var/db/repos/gentoo/profiles/updates/1Q-2018.....................
/var/db/repos/gentoo/profiles/updates/2Q-2018..................
/var/db/repos/gentoo/profiles/updates/3Q-2018..
/var/db/repos/gentoo/profiles/updates/4Q-2018......
/var/db/repos/gentoo/profiles/updates/1Q-2019.................
/var/db/repos/gentoo/profiles/updates/2Q-2019...
/var/db/repos/gentoo/profiles/updates/3Q-2019......
/var/db/repos/gentoo/profiles/updates/4Q-2019.......
/var/db/repos/gentoo/profiles/updates/1Q-2020............
/var/db/repos/gentoo/profiles/updates/2Q-2020...........
/var/db/repos/gentoo/profiles/updates/3Q-2020...................................................................................................................................................
/var/db/repos/gentoo/profiles/updates/4Q-2020........
/var/db/repos/gentoo/profiles/updates/1Q-2021.......
/var/db/repos/gentoo/profiles/updates/2Q-2021......



 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

 * Last emerge --sync was 1y 206d 15h 49m 45s ago.

 * IMPORTANT: 8 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

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

Calculating dependencies... done!

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-lang/perl:0

  (dev-lang/perl-5.32.1:0/5.32::gentoo, ebuild scheduled for merge) USE="berkdb gdbm -debug -doc -ithreads -minimal" ABI_X86="(64)" pulled in by
    dev-lang/perl:0/5.32= required by (dev-perl/Locale-gettext-1.70.0:0/0::gentoo, installed) USE="" ABI_X86="(64)"
                 ^^^^^^^^                                                                                                                                                 

  (dev-lang/perl-5.30.3:0/5.30::gentoo, installed) USE="berkdb gdbm -debug -doc -ithreads" ABI_X86="(64)" pulled in by
    dev-lang/perl:0/5.30= required by (dev-perl/URI-1.730.0:0/0::gentoo, installed) USE="-test" ABI_X86="(64)"
                 ^^^^^^^^                                                                                                                                                               
    (and 4 more with the same problem)

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


!!! The ebuild selected to satisfy "sys-libs/libseccomp:=" has unmet requirements.
- sys-libs/libseccomp-2.5.1::gentoo USE="python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( static-libs )

  The above constraints are a subset of the following complete expression:
    python? ( static-libs any-of ( python_targets_python3_8 python_targets_python3_9 ) )

(dependency required by "sys-apps/flatpak-1.10.0::gentoo[seccomp]" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

How could I fix this? This is the related news (about python 3.9 made default):
https://dpaste.com/HB9CA8UDH
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Sun Dec 25, 2022 5:51 pm    Post subject: Reply with quote

peterwf,

Code:
emerge perl-cleaner -1av
perl-cleaner --all

may fix the perl issues.

Code:
!!! The ebuild selected to satisfy "sys-libs/libseccomp:=" has unmet requirements.
- sys-libs/libseccomp-2.5.1::gentoo USE="python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( static-libs )

  The above constraints are a subset of the following complete expression:
    python? ( static-libs any-of ( python_targets_python3_8 python_targets_python3_9 ) )

(dependency required by "sys-apps/flatpak-1.10.0::gentoo[seccomp]" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


This says that USE=static-libs is required oh python.

Its a very bad thing to set static-libs globally, so set it on all versions of python only.

Make a file
Code:
/usr/portage/package.use/python
.
In that file put
Code:
#  required by sys-apps/flatpak
dev-lang/python static-libs


Its quite possible that dev-lang/python with USE static-libs will want other things with static libs too.
You next attempt will tell you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Sun Dec 25, 2022 6:26 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Code:
!!! The ebuild selected to satisfy "sys-libs/libseccomp:=" has unmet requirements.
- sys-libs/libseccomp-2.5.1::gentoo USE="python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( static-libs )

(dependency required by "sys-apps/flatpak-1.10.0::gentoo[seccomp]" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
This says that USE=static-libs is required oh python.
Not quite. If libseccomp has USE=python, then this is required. There is not (yet) a constraint on flags for dev-lang/python.Therefore:
NeddySeagoon wrote:
Code:
#  required by sys-apps/flatpak
dev-lang/python static-libs
This should be
Code:
sys-libs/libseccomp static-libs


As a somewhat more destructive alternative, OP could remove flatpak entirely, at least until the update is resolved. The installed version of flatpak, 1.10.0, is so old that it is not even available in Portage anymore, so it will need to be updated/rebuilt at some point. Removing it now might simplify the upgrade dependency tree - though as always, that simplicity needs to be balanced against whether the user can tolerate not having any working versions of flatpak until this is done.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Sun Dec 25, 2022 10:59 pm    Post subject: Reply with quote

Hu,
Quote:

As a somewhat more destructive alternative, OP could remove flatpak entirely, at least until the update is resolved. The installed version of flatpak, 1.10.0, is so old that it is not even available in Portage anymore, so it will need to be updated/rebuilt at some point. Removing it now might simplify the upgrade dependency tree - though as always, that simplicity needs to be balanced against whether the user can tolerate not having any working versions of flatpak until this is done.

Will this deletion affect the packages I've installed with it? So, can I just delete flatpack now and install it back when I need it sometimes?
NeddySeagoon,

"perl-cleaner --all" being executed. After it's done I plan to try Hu's option to modify /usr/portage/package.use/python , try to update, if it doesn't work, then yours, and if it doesn't work too, then try to remove flatpack and then update...
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Sun Dec 25, 2022 11:04 pm    Post subject: Reply with quote

Removing sys-apps/flatpak will not direct Portage to remove any other packages. Removing it will trigger its pkg_postrm to run. The behavior of that function is package and version-specific and can be anything or nothing. I see no pkg_postrm in the newer versions still in Portage. Your version is so old that I cannot readily check whether it has a pkg_postrm. I would consider it unusual for it to have a pkg_postrm that deletes flatpak data files, but I cannot rule out that such a thing could happen.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Sun Dec 25, 2022 11:21 pm    Post subject: Reply with quote

peterwf,

I was wrong about
Code:
#  required by sys-apps/flatpak
dev-lang/python static-libs


Hu corrected me.

After
Code:
perl-cleaner --all
and Hu's correction to my suggeston, if the update still won't run, we need to see the emerge command output again.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Sun Dec 25, 2022 11:49 pm    Post subject: Reply with quote

NeddySeagoon wrote:
peterwf,
After
Code:
perl-cleaner --all
and Hu's correction to my suggeston, if the update still won't run, we need to see the emerge command output again.


Code:

    # cat /usr/portage/package.use/python
#  required by sys-apps/flatpak
sys-libs/libseccomp static-libs
    # emerge -uDUav @world --with-bdeps=y -f --keep-going --backtrack=500
 * Last emerge --sync was 1y 207d 58m 32s ago.

 * IMPORTANT: 8 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

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

Calculating dependencies... done!

!!! The ebuild selected to satisfy "sys-libs/libseccomp:0/0=" has unmet requirements.
- sys-libs/libseccomp-2.5.1::gentoo USE="python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( static-libs )

  The above constraints are a subset of the following complete expression:
    python? ( static-libs any-of ( python_targets_python3_8 python_targets_python3_9 ) )

(dependency required by "sys-apps/flatpak-1.10.0::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
    # etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/sudoers (1)
2) /etc/portage/package.use/zz-autounmask (8)
Please select a file to edit by ...
    # cat /etc/portage/package.use/zz-autounmask
# package.use# required by sys-boot/os-prober-1.78::gentoo
# required by sys-boot/os-prober (argument)
>=sys-boot/grub-2.06_rc1 mount
# required by www-client/firefox-78.10.1::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.9.0 postproc
# required by media-libs/mesa-21.0.3::gentoo
# required by www-client/firefox-102.6.0::gentoo
# required by @selected
# required by @world (argument)
>=x11-libs/libdrm-2.4.114 video_cards_intel video_cards_radeon video_cards_amdgpu

NeddySeagoon, Hu,
Anyways, I'm OK to delete flatpack now, I've installed a few packages with it (maybe nothing was installed because "flatpak list" command returns empty output). For example, as I remember, such a big project as Firefox I built with emerge, from sources...

UPD: After running perl-cleaner --all previous errors returned by "emerge --depclean" were fixed. So, now I did:
Code:

# mount -o loop,ro /home/petya/Downloads/gentoo-20210501.xz.sqfs /var/db/repos/gentoo
# emerge --depclean -p                   
 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 *
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence of this, it often becomes necessary to run
 * `emerge --update --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:                                                                                                                     


!!! 'app-editors/nano' (virtual/editor) is part of your system profile.
!!! Unmerging it may be damaging to your system.


 app-editors/nano
    selected: 5.6.1
   protected: none
     omitted: none

 dev-python/ensurepip-wheels
    selected: 100
   protected: none
     omitted: none

 sys-devel/autoconf
    selected: 2.71-r5
   protected: none
     omitted: 2.13-r1 2.69-r5

 dev-python/toml
    selected: 0.10.2
   protected: none
     omitted: none

 kde-plasma/plasma-vault
    selected: 5.20.5
   protected: none
     omitted: none

 media-fonts/liberation-fonts
    selected: 2.1.3
   protected: none
     omitted: none

 app-alternatives/awk
    selected: 1
   protected: none
     omitted: none

 sec-keys/openpgp-keys-gentoo-release
    selected: 20200704
   protected: none
     omitted: none

 sys-devel/gcc
    selected: 11.3.1_p20221209
   protected: none
     omitted: 10.2.0-r5

 dev-python/ensurepip-setuptools
    selected: 65.5.1
   protected: none
     omitted: none

 dev-python/ensurepip-pip
    selected: 22.3.1
   protected: none
     omitted: none

 sys-fs/cryfs
    selected: 0.10.2
   protected: none
     omitted: none

 dev-libs/crypto++
    selected: 8.5.0
   protected: none
     omitted: none

 app-alternatives/yacc
    selected: 0
   protected: none
     omitted: none

 sys-devel/llvmgold
    selected: 15
   protected: none
     omitted: none

 sys-devel/llvm-toolchain-symlinks
    selected: 15-r1
   protected: none
     omitted: none

 sys-devel/llvm
    selected: 15.0.6
   protected: none
     omitted: 11.1.0

 sys-devel/binutils
    selected: 2.38-r2
   protected: none
     omitted: 2.35.2

All selected packages: =kde-plasma/plasma-vault-5.20.5 =sys-devel/binutils-2.38-r2 =dev-python/toml-0.10.2 =sys-devel/llvmgold-15 =sys-devel/llvm-15.0.6 =sys-devel/gcc-11.3.1_p20221209 =app-alternatives/yacc-0 =sys-devel/llvm-toolchain-symlinks-15-r1 =dev-libs/crypto++-8.5.0 =dev-python/ensurepip-wheels-100 =dev-python/ensurepip-pip-22.3.1 =dev-python/ensurepip-setuptools-65.5.1 =sys-fs/cryfs-0.10.2 =sys-devel/autoconf-2.71-r5 =app-alternatives/awk-1 =media-fonts/liberation-fonts-2.1.3 =app-editors/nano-5.6.1 =sec-keys/openpgp-keys-gentoo-release-20200704

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Packages installed:   820
Packages in world:    49
Packages in system:   43
Required packages:    802
Number to remove:     18

... And I did "emerge --depclean", I looks I needed to wait your approval first 8O The output is here:
https://dpaste.com/HEPGUKTQE
Will it be not too hard to fix if I've broken something?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Mon Dec 26, 2022 10:15 am    Post subject: Reply with quote

peterwf,

Code:
app-editors/nano
will be removed. That's a bad thing if you use it but if you use some other editor, it OK.
To tell portage to keep it run
Code:
emerge --noreplace  app-editors/nano


Code:
 sys-devel/autoconf
    selected: 2.71-r5
   protected: none
     omitted: 2.13-r1 2.69-r5
is a newer version of sys-devel/autoconf than you need.
As its small, let it go.

You are using gcc-11 but its not in your copy oy the repo, so it will be removed.
It a big package, so keep it to avoid building it again when you need it.

app-alternatives/* is very new. Don't remove them.

Do not remove anything at this time.

Try your next update. If portage wants to rebuild things on your list for removal but cannot, we can work out what do do then.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Mon Dec 26, 2022 12:14 pm    Post subject: Reply with quote

NeddySeagon,

I removed flatpak, but the error is the same, adding "sys-libs/libseccomp static-libs" (or dev-lang/python static-libs) to "/usr/portage/package.use/python" doesn't help:
Code:

    # emerge -uDUav @world --with-bdeps=y -f --keep-going --backtrack=500
 * Last emerge --sync was 1y 207d 13h 26m 20s ago.

 * IMPORTANT: 8 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

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

Calculating dependencies... done!

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/boost:0

  (dev-libs/boost-1.76.0-r1:0/1.76.0::gentoo, ebuild scheduled for merge) USE="bzip2 icu nls python threads zlib -context -debug -doc -lzma -mpi (-numpy) -static-libs -tools -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-libs/boost-1.75.0:0/1.75.0::gentoo, ebuild scheduled for merge) USE="bzip2 icu nls python threads zlib -context -debug -doc -lzma -mpi (-numpy) -static-libs -tools -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8" pulled in by
    >=dev-libs/boost-1.62.0-r1:0/1.75.0= required by (net-p2p/qbittorrent-4.3.1:0/0::gentoo, installed) USE="X dbus -debug -webui" ABI_X86="(64)"
                              ^^^^^^^^^^                                                                                                                                                                                                                                           

dev-util/boost-build:0

  (dev-util/boost-build-1.76.0-r2:0/0::gentoo, ebuild scheduled for merge) USE="-examples" ABI_X86="(64)" pulled in by
    >=dev-util/boost-build-1.76-r2 required by (dev-libs/boost-1.76.0-r1:0/1.76.0::gentoo, ebuild scheduled for merge) USE="bzip2 icu nls python threads zlib -context -debug -doc -lzma -mpi (-numpy) -static-libs -tools -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"
    ^^                     ^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

  (dev-util/boost-build-1.75.0:0/0::gentoo, installed) USE="-examples" ABI_X86="(64)" pulled in by
    =dev-util/boost-build-1.75* required by (dev-libs/boost-1.75.0:0/1.75.0::gentoo, ebuild scheduled for merge) USE="bzip2 icu nls python threads zlib -context -debug -doc -lzma -mpi (-numpy) -static-libs -tools -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"
    ^                     ^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

dev-lang/erlang:0

  (dev-lang/erlang-23.3.1:0/23.3.1::gentoo, ebuild scheduled for merge) USE="hipe kpoll ssl wxwidgets -doc -emacs -java -odbc -sctp -systemd -tk" ABI_X86="(64)" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-lang/erlang-23.2.7:0/23.2.7::gentoo, installed) USE="hipe kpoll ssl wxwidgets -doc -emacs -java -odbc -sctp -systemd -tk" ABI_X86="(64)" pulled in by
    dev-lang/erlang:0/23.2.7= required by (dev-util/rebar-2.6.4-r1:0/0::gentoo, installed) USE="" ABI_X86="(64)"
                   ^^^^^^^^^^                                                                                                                                         


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


!!! The ebuild selected to satisfy "sys-libs/libseccomp[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?]" has unmet requirements.
- sys-libs/libseccomp-2.5.1::gentoo USE="python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( static-libs )

  The above constraints are a subset of the following complete expression:
    python? ( static-libs any-of ( python_targets_python3_8 python_targets_python3_9 ) )

(dependency required by "sys-apps/file-5.40-r2::gentoo" [ebuild])
(dependency required by "app-admin/eselect-1.4.17::gentoo" [installed])
(dependency required by "sys-apps/portage-3.0.18::gentoo[-build]" [ebuild])
(dependency required by "app-portage/gentoolkit-0.5.1::gentoo[-test]" [ebuild])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
    # cat /usr/portage/package.use/python
#  required by sys-apps/flatpak
sys-libs/libseccomp static-libs

Output when /usr/portage/package.use/python contains "dev-lang/python static-libs" is slightly different (less conflicts):
Code:
!!! The ebuild selected to satisfy "sys-libs/libseccomp[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?]" has unmet requirements.
- sys-libs/libseccomp-2.5.1::gentoo USE="python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_9 -python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( static-libs )

  The above constraints are a subset of the following complete expression:
    python? ( static-libs any-of ( python_targets_python3_8 python_targets_python3_9 ) )

(dependency required by "sys-apps/file-5.40-r2::gentoo" [ebuild])
(dependency required by "@system" [set])
(dependency required by "@world" [argument])

full output is here: https://dpaste.com/CYNXPGHJC
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Mon Dec 26, 2022 6:10 pm    Post subject: Reply with quote

peterwf wrote:
I removed flatpak, but the error is the same
flatpak is only one path to needing libseccomp. You are still trying to install an outdated version of libseccomp, and it looks like this is no longer a requirement in the latest version. This is not surprising, considering:
peterwf wrote:
Code:
    # emerge -uDUav @world --with-bdeps=y -f --keep-going --backtrack=500
 * Last emerge --sync was 1y 207d 13h 26m 20s ago.
Do you need USE=python on libseccomp? Do you need to rebuild libseccomp while using such an old Portage tree? Removing USE=python from it, or building a newer version, might solve this problem. Alternatively, you could enable static-libs on just this old version of libseccomp, so that it goes away when you update.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Mon Dec 26, 2022 7:08 pm    Post subject: Reply with quote

Hu wrote:

Do you need USE=python on libseccomp? Do you need to rebuild libseccomp while using such an old Portage tree? Removing USE=python from it, or building a newer version, might solve this problem. Alternatively, you could enable static-libs on just this old version of libseccomp, so that it goes away when you update.

I don't know if I need USE=python on libseccomp :D It's not me who set this flag on it :D So, I prefer the first option, could you explain me, how to do this? Should I have
/usr/portage/package.use/libseccomp file with this content:
Code:

#  required by sys-apps/flatpak
sys-libs/libseccomp -python

And then run
Code:
emerge sys-libs/libseccomp

?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Mon Dec 26, 2022 7:17 pm    Post subject: Reply with quote

That comment would be misleading at this point, but the syntax looks fine. You want emerge --oneshot sys-libs/libseccomp so that it is not added to your world file.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Mon Dec 26, 2022 8:07 pm    Post subject: Reply with quote

Hu wrote:
That comment would be misleading at this point, but the syntax looks fine. You want emerge --oneshot sys-libs/libseccomp so that it is not added to your world file.

Thanks, I hope I will have chance to run this kind of commands successfully but not this time :D :
https://dpaste.com/B53BE7T8K
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Mon Dec 26, 2022 9:10 pm    Post subject: Reply with quote

You may have some other file overriding that setting and forcing it back on. Have you been using autounmask on this system? What is the output of grep -rn libseccomp /etc/portage/package.use?
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Mon Dec 26, 2022 10:04 pm    Post subject: Reply with quote

Hu wrote:
You may have some other file overriding that setting and forcing it back on. Have you been using autounmask on this system? What is the output of grep -rn libseccomp /etc/portage/package.use?

This commands returns empty output. USE flags in /etc/portage/make.conf are:
Code:

USE="X dist-kernel driver udev python -systemd alsa pulseaudio -minimal -crypt update-drivedb"
#static-libs? (!udev)
#tools? (python)

There is some commented text, I don't remember what is its origin and whether I ever tried to run emerge with these flags set (probably I did this when trying to install packages I needed). And here is the content of /etc/portage/package.use file:
Code:

    # ls /etc/portage/package.use
zz-autounmask
    # cat /etc/portage/package.use/zz-autounmask
# package.use# required by sys-boot/os-prober-1.78::gentoo
# required by sys-boot/os-prober (argument)
>=sys-boot/grub-2.06_rc1 mount
# required by www-client/firefox-78.10.1::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.9.0 postproc
# required by media-libs/mesa-21.0.3::gentoo
# required by www-client/firefox-102.6.0::gentoo
# required by @selected
# required by @world (argument)
>=x11-libs/libdrm-2.4.114 video_cards_intel video_cards_radeon video_cards_amdgpu
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1478
Location: Germany

PostPosted: Mon Dec 26, 2022 10:38 pm    Post subject: Reply with quote

Quote:
There is some commented text, I don't remember what is its origin and whether I ever tried to run emerge with these flags set (probably I did this when trying to install packages I needed). And here is the content of /etc/portage/package.use file:
Code:

    # ls /etc/portage/package.use
zz-autounmask
    # cat /etc/portage/package.use/zz-autounmask
# package.use# required by sys-boot/os-prober-1.78::gentoo
# required by sys-boot/os-prober (argument)
>=sys-boot/grub-2.06_rc1 mount
# required by www-client/firefox-78.10.1::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.9.0 postproc
# required by media-libs/mesa-21.0.3::gentoo
# required by www-client/firefox-102.6.0::gentoo
# required by @selected
# required by @world (argument)
>=x11-libs/libdrm-2.4.114 video_cards_intel video_cards_radeon video_cards_amdgpu


This does not look right. This should not look this way. Please remove /etc/portage/package.use/zz-autounmask and create individual files in package.use if needed.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Tue Dec 27, 2022 12:37 pm    Post subject: Reply with quote

Banana,

emerge --autounmask creates and maintains zz-autounmask.
Splitting it into more files won't change the meaning.

The
Code:
 >=x11-libs/libdrm-2.4.114 video_cards_intel video_cards_radeon video_cards_amdgpu
looks odd.
That's the same as VIDEO_CARDS="intel radeon amdgpu" in make.conf
However, amdgpu also requires radeonsi.

Code:
# required by sys-boot/os-prober (argument)
>=sys-boot/grub-2.06_rc1 mount
allows grub to mount /boot if required.

It looks mostly harmless but --autounmask can be dangerous when portage losses its way.
I've seen it pull in -9999 packages.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
peterwf
n00b
n00b


Joined: 20 Dec 2022
Posts: 42

PostPosted: Tue Dec 27, 2022 6:03 pm    Post subject: Reply with quote

Banana wrote:

This does not look right. This should not look this way. Please remove /etc/portage/package.use/zz-autounmask and create individual files in package.use if needed.

I also don't like this but it looks not me created this single file. I think splitting this into separate files makes sense when its content is quite big, but now one can manage with this. Anyway, even commenting out everything in zz-autounmask doesn't changes emerge's output.

NeddySeagoon
Quote:

looks odd.
That's the same as VIDEO_CARDS="intel radeon amdgpu" in make.conf
However, amdgpu also requires radeonsi.

allows grub to mount /boot if required.


On this laptop there's old NVIDIA GeForce 310M, I had problems with it when installing ubuntu after it was upgraded to newer kernel, drivers are not updated anymore. And when installing gentoo, I've chosen nouveau drivers, that was the one option for me, I suppose, otherwise, I would try to make native drivers to work. So, I don't know why nvidia/radeon present in the file at all.
Quote:

It looks mostly harmless but --autounmask can be dangerous when portage losses its way.
I've seen it pull in -9999 packages.

When I installed this gentoo back in June 2021, I'd chosen "free license" everywhere. And at some point I got stuck on package masking, error was, if I remember correct, because of linux firmware anyway contains non-free code. I studied error messages, googled, and, I suppose, eventually run some command with --autounmask key. When I finished the installation by setting up kde plasma, I had to fix bluetooth support, network manager, and sound system, but it's almost for sure that all the content of zz-autonumask appeared at the point of gentoo installation. So, do you have an idea how I could proceed?
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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