Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Install glibc on a broken system and profile update
View unanswered posts
View posts from last 24 hours

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


Joined: 19 Dec 2023
Posts: 49

PostPosted: Tue Jan 30, 2024 10:07 am    Post subject: Reply with quote

Many thanks for your replies.

Quote:

I'm not sure if a brand new install using /etc/portage files from your production servers wouldn't have yielded a faster and easier result...


Yes, I have read something like that in other posts too... But I have preferred to leave all the configurations in place and tried to update the system.
I have gained also the knowledge I need to update or manage the production server after that.

Regarding the pollution in world file, I am not sure if I was responsible for part of it, while trying to fix emerge conflicts (e.g. Libyaml or glibc)
Maybe I have installed something without using "--oneshot", it's not yet completely clear to me when to use that option or not.
I will check the packages in world and clean up pollution using what NeddySeagoon said.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Tue Jan 30, 2024 10:16 am    Post subject: Reply with quote

afdev wrote:

Maybe I have installed something without using "--oneshot", it's not yet completely clear to me when to use that option or not.


When you run emerge to fix something, it's almost certain you need to use --oneshot. When explicitly emerging something that you want to stay on the system, like firefox or apache or mysql, you don't want to use it.

The problem of not using it arises when you want to recompile, let's say some library to fix something or change use flags. Then it gets recorded in the world file (/var/lib/portage/world, world for short, different than world set) and when times come for portage to resolve dependencies, that particular one is held on by world and it forcefully participates in dependency resolution. No imagine if this library is not needed anymore and conflicts with other packages. Portage is stuck and spits an error. You have to then manually run emerge --deselect on it to free portage of that obstacle. Using --oneshot (-1 for short) will not record it in world.

Best Regards,
Georgi

p.s. world set is the set of all packages currently installed on the system regardless if they are in world or not.
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Tue Jan 30, 2024 12:34 pm    Post subject: Reply with quote

logrusx,

thank you for the explanation, it's clearer now.

Regarding layman, if I run

Code:

# emerge --update --newuse --deep --with-bdeps=y --tree --keep-going --backtrack=150 @world
Unavailable repository 'guru' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/amd64/17.1

To upgrade do the following steps:

The amd64 17.1 profiles switch to a more standard 'no SYMLINK_LIB'
multilib layout, and require an explicit migration. The migration is
performed using the app-portage/unsymlink-lib tool.

Read the Gentoo news item [2] for more information!

The following steps can be used to upgrade your system:

1. Sync and upgrade your system to the newest package versions
   to reduce the risk of issues.

2. If you are still running a 13.0 profile, select gcc 6.4.0 or later
   as the system compiler, source /etc/profile and reinstall libtool:

     # gcc-config -l
     [1] x86_64-pc-linux-gnu-5.5.0 *
     [2] x86_64-pc-linux-gnu-8.3.0
     # gcc-config 2
     # . /etc/profile
     # emerge -1v libtool

3. Install the tool:
     # emerge -1v app-portage/unsymlink-lib

4. Run 'unsymlink-lib --analyze' and check the output for obvious
   mistakes.  If you need to perform any changes to the system, remember
   to run 'unsymlink-lib --analyze' again afterwards.

[past this point do not call emerge or modify /usr manually]

5. This is a very good time to make a backup.

6. Run 'unsymlink-lib --migrate'.  You can add '--pretend' first to see
   what is going to happen.

7. Reboot your system.  Check if important programs work.
   In particular, verify that e.g. 'emerge --info' works (but do not
   install anything).  If you hit any serious problems, you can use
   'unsymlink-lib --rollback' to revert the changes and return to
   step 3.

8. Run 'unsymlink-lib --finish'.  You can add '--pretend' first to see
   what is going to happen but note that you're going to see a very long
   list of files to remove.

9. Switch the profile, e.g.:
     # eselect profile set default/linux/amd64/17.1/desktop

[at this point you can start using emerge again. emerge will then
 not display this message anymore, but the remaining steps are still
 required!]

10. Rebuild the toolchain:
      # emerge -1v sys-devel/gcc:11
      [ repeat for other slots you will be using ]
      [ if you are upgrading from 13.0 profile, also: ]
      # emerge -1v sys-devel/binutils
      # emerge -1v sys-libs/glibc

11. If you are using a multilib profile, rebuild all 32-bit packages.
    This can be done using:
      # emerge -1v --deep /lib32 /usr/lib32 /usr/lib/llvm/*/lib32

    Alternatively, if you are switching from one of the 13.0 profiles
    you can rebuild all packages as detailed in the 17.0 news item:
      # emerge -ev @world

12. Once the last 32-bit package is rebuilt, your package manager
    should remove the orphaned /lib32 and /usr/lib32 symlinks.  If that
    does not happen, remove them manually:
      # rm /lib32 /usr/lib32

For known issues, please see bug #506276 [1].  If you have any problems
with the new profiles or the migration procedure, please report a bug
and make it block the tracker.

[1] bug #506276
[2] https://www.gentoo.org/support/news-items/2019-06-05-amd64-17-1-profiles-are-now-stable.html


Unavailable repository 'guru' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'

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

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


!!! The following installed packages are masked:
- app-portage/layman-2.4.3::gentoo (masked by: package.mask)
/usr/local/portage/profiles/package.mask:
# David Seifert <soap@gentoo.org> (2023-05-19)
# Abandoned, replaced by 'eselect repository', tons of open bugs.
# Removal on 2023-08-17. Bug #761199.

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


Nothing to merge; quitting.


Does it mean that in my case I can safely remove it?
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Tue Jan 30, 2024 1:31 pm    Post subject: Reply with quote

afdev wrote:
logrusx,

thank you for the explanation, it's clearer now.

Regarding layman, if I run

Code:

# emerge --update --newuse --deep --with-bdeps=y --tree --keep-going --backtrack=150 @world
Unavailable repository 'guru' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/amd64/17.1

To upgrade do the following steps:

The amd64 17.1 profiles switch to a more standard 'no SYMLINK_LIB'
multilib layout, and require an explicit migration. The migration is
performed using the app-portage/unsymlink-lib tool.

Read the Gentoo news item [2] for more information!

The following steps can be used to upgrade your system:

1. Sync and upgrade your system to the newest package versions
   to reduce the risk of issues.

2. If you are still running a 13.0 profile, select gcc 6.4.0 or later
   as the system compiler, source /etc/profile and reinstall libtool:

     # gcc-config -l
     [1] x86_64-pc-linux-gnu-5.5.0 *
     [2] x86_64-pc-linux-gnu-8.3.0
     # gcc-config 2
     # . /etc/profile
     # emerge -1v libtool

3. Install the tool:
     # emerge -1v app-portage/unsymlink-lib

4. Run 'unsymlink-lib --analyze' and check the output for obvious
   mistakes.  If you need to perform any changes to the system, remember
   to run 'unsymlink-lib --analyze' again afterwards.

[past this point do not call emerge or modify /usr manually]

5. This is a very good time to make a backup.

6. Run 'unsymlink-lib --migrate'.  You can add '--pretend' first to see
   what is going to happen.

7. Reboot your system.  Check if important programs work.
   In particular, verify that e.g. 'emerge --info' works (but do not
   install anything).  If you hit any serious problems, you can use
   'unsymlink-lib --rollback' to revert the changes and return to
   step 3.

8. Run 'unsymlink-lib --finish'.  You can add '--pretend' first to see
   what is going to happen but note that you're going to see a very long
   list of files to remove.

9. Switch the profile, e.g.:
     # eselect profile set default/linux/amd64/17.1/desktop

[at this point you can start using emerge again. emerge will then
 not display this message anymore, but the remaining steps are still
 required!]

10. Rebuild the toolchain:
      # emerge -1v sys-devel/gcc:11
      [ repeat for other slots you will be using ]
      [ if you are upgrading from 13.0 profile, also: ]
      # emerge -1v sys-devel/binutils
      # emerge -1v sys-libs/glibc

11. If you are using a multilib profile, rebuild all 32-bit packages.
    This can be done using:
      # emerge -1v --deep /lib32 /usr/lib32 /usr/lib/llvm/*/lib32

    Alternatively, if you are switching from one of the 13.0 profiles
    you can rebuild all packages as detailed in the 17.0 news item:
      # emerge -ev @world

12. Once the last 32-bit package is rebuilt, your package manager
    should remove the orphaned /lib32 and /usr/lib32 symlinks.  If that
    does not happen, remove them manually:
      # rm /lib32 /usr/lib32

For known issues, please see bug #506276 [1].  If you have any problems
with the new profiles or the migration procedure, please report a bug
and make it block the tracker.

[1] bug #506276
[2] https://www.gentoo.org/support/news-items/2019-06-05-amd64-17-1-profiles-are-now-stable.html


Unavailable repository 'guru' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'

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

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


!!! The following installed packages are masked:
- app-portage/layman-2.4.3::gentoo (masked by: package.mask)
/usr/local/portage/profiles/package.mask:
# David Seifert <soap@gentoo.org> (2023-05-19)
# Abandoned, replaced by 'eselect repository', tons of open bugs.
# Removal on 2023-08-17. Bug #761199.

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


Nothing to merge; quitting.


Does it mean that in my case I can safely remove it?


I think yes, but your real problem is the profile migration and then libxcrypt migration and the merged-usr migration. Here's a thread about migration off of layman: https://forums.gentoo.org/viewtopic-t-1163469-highlight-layman.html. I don't think there's a problem in removing it as it only sets up overlays and they can still function after it's removal. Tome the easiest way to migrate is to actually disable the overlays from layman and enable them from eselect repository enable <overlay>, then syncing the overlays, but don't rush into doing it as you might need to update to earlier points in time.

EDIT: I now saw your emerge --info from your earlier posts and think if equery list */*::lanodanOverlay does not show anything, then there effectively aren't any ebuilds emerged from that overlay, you can safely disable if from layman, unmerge layman and do some cleanup I think I've described in the linked thread.

Best Regards,
Georgi
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Tue Jan 30, 2024 10:18 pm    Post subject: Reply with quote

logrusx,

I am getting this:
Code:

# equery list */*::lanodanOverlay
Unavailable repository 'guru' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'
Unavailable repository 'gentoo-bootstrap' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'
Unavailable repository 'guru' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'
Unavailable repository 'gentoo-bootstrap' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'
Unavailable repository 'guru' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'
Unavailable repository 'gentoo-bootstrap' referenced by masters entry in '/var/lib/layman/lanodanOverlay/metadata/layout.conf'
!!! No installed packages matching '*/*'
 * Searching lanodanOverlay for * in * ...


So I think probably I don't have any installed package from that overlay and I could get rid of it.
As you hae already noticed I still have to migrate to the new profile.
The plan is to do it after I have updated the system to the current date, at the moment I am updating world from a commit of 2023-12-01.
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Wed Jan 31, 2024 12:48 pm    Post subject: Reply with quote

I think at this point I should be able to return to my main gentoo repo, i have the following in my /etc/portage/repos/gentoo.conf:

Code:

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = no


Is it fine in this way?
The plan is to do a sync with
Code:

emaint -a sync && eix-update && updatedb && eselect news list


and after that
Code:

emerge -auvND --keep-going @world


At the end I will follow the procedure to change the profile to 17.1.
Eventually at the end I will remove layman in favor of eselect repository
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Wed Jan 31, 2024 2:21 pm    Post subject: Reply with quote

You can delete /etc/portage/repos/gentoo.conf and enable gentoo repo from eselect:

Code:
eselect repository enable gentoo


Actually that doesn't look correct, the directory should be /etc/portage/repos.conf.

It'll migrate it to the new location in /var/db/repos/ unless PORTDIR is defined in make.conf.

You can then run:

Code:
eix-sync


which will do everything you've listed above except read the news items.

The same way you can enable guru or other overlays. Just don't forget to sync them.

If everything goes fine which most certainly will, you can delete /usr/portage

Don not use -N, it can complicate things a bit by recompiling things that have irrelevant use changes, e.g. a change in an use flag that is either way disabled. Use -U which will take into account if it'll make a difference and only then recompile.

Best Regards,
Georgi
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Wed Jan 31, 2024 3:40 pm    Post subject: Reply with quote

Yes,

Quote:

Actually that doesn't look correct, the directory should be /etc/portage/repos.conf.


the directory is /etc/portage/repos.conf. It was just a typo.

Thank you for the suggestion, I will do it.
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Thu Feb 01, 2024 10:34 am    Post subject: Reply with quote

I think I have successfully migrated the repo config to eselect repository.
Now my emerge --info is as follow:

Code:

# emerge --info

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/amd64/17.1

To upgrade do the following steps:

The amd64 17.1 profiles switch to a more standard 'no SYMLINK_LIB'
multilib layout, and require an explicit migration. The migration is
performed using the app-portage/unsymlink-lib tool.

Read the Gentoo news item [2] for more information!

The following steps can be used to upgrade your system:

1. Sync and upgrade your system to the newest package versions
   to reduce the risk of issues.

2. If you are still running a 13.0 profile, select gcc 6.4.0 or later
   as the system compiler, source /etc/profile and reinstall libtool:

     # gcc-config -l
     [1] x86_64-pc-linux-gnu-5.5.0 *
     [2] x86_64-pc-linux-gnu-8.3.0
     # gcc-config 2
     # . /etc/profile
     # emerge -1v libtool

3. Install the tool:
     # emerge -1v app-portage/unsymlink-lib

4. Run 'unsymlink-lib --analyze' and check the output for obvious
   mistakes.  If you need to perform any changes to the system, remember
   to run 'unsymlink-lib --analyze' again afterwards.

[past this point do not call emerge or modify /usr manually]

5. This is a very good time to make a backup.

6. Run 'unsymlink-lib --migrate'.  You can add '--pretend' first to see
   what is going to happen.

7. Reboot your system.  Check if important programs work.
   In particular, verify that e.g. 'emerge --info' works (but do not
   install anything).  If you hit any serious problems, you can use
   'unsymlink-lib --rollback' to revert the changes and return to
   step 3.

8. Run 'unsymlink-lib --finish'.  You can add '--pretend' first to see
   what is going to happen but note that you're going to see a very long
   list of files to remove.

9. Switch the profile, e.g.:
     # eselect profile set default/linux/amd64/17.1/desktop

[at this point you can start using emerge again. emerge will then
 not display this message anymore, but the remaining steps are still
 required!]

10. Rebuild the toolchain:
      # emerge -1v sys-devel/gcc:11
      [ repeat for other slots you will be using ]
      [ if you are upgrading from 13.0 profile, also: ]
      # emerge -1v sys-devel/binutils
      # emerge -1v sys-libs/glibc

11. If you are using a multilib profile, rebuild all 32-bit packages.
    This can be done using:
      # emerge -1v --deep /lib32 /usr/lib32 /usr/lib/llvm/*/lib32

    Alternatively, if you are switching from one of the 13.0 profiles
    you can rebuild all packages as detailed in the 17.0 news item:
      # emerge -ev @world

12. Once the last 32-bit package is rebuilt, your package manager
    should remove the orphaned /lib32 and /usr/lib32 symlinks.  If that
    does not happen, remove them manually:
      # rm /lib32 /usr/lib32

For known issues, please see bug #506276 [1].  If you have any problems
with the new profiles or the migration procedure, please report a bug
and make it block the tracker.

[1] bug #506276
[2] https://www.gentoo.org/support/news-items/2019-06-05-amd64-17-1-profiles-are-now-stable.html


Portage 3.0.61 (python 3.11.7-final-0, !../../usr/local/portage/profiles/default/linux/amd64/17.0, gcc-13, glibc-2.38-r9, 4.1.12-gentoo x86_64)
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1245_V2_@_3.40GHz-with-glibc2.38
KiB Mem:    32864920 total,  12570328 free
KiB Swap:    1046520 total,   1001384 free
Timestamp of repository gentoo: Thu, 01 Feb 2024 10:22:43 +0000
Head commit of repository gentoo: 5fd50dc9361a7c807f5e37d2a5cb3fccf56e3a37

Timestamp of repository gentoo-bootstrap: Sat, 27 Jan 2024 17:35:23 +0000
Head commit of repository gentoo-bootstrap: 66485d49a940dc893de81b08fb73aa6f8286eb40

Timestamp of repository guru: Wed, 31 Jan 2024 22:33:25 +0000
Head commit of repository guru: 2f01aa6931cd171b69ea72f07a1aac4eb765c7d7

Timestamp of repository lanodanOverlay: Wed, 31 Jan 2024 16:33:22 +0000
Head commit of repository lanodanOverlay: 3b911ed43ed794eabb8fa8a3cac04b4286781fd6

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

gentoo-bootstrap
    location: /var/db/repos/gentoo-bootstrap
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-bootstrap.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

lanodanOverlay
    location: /var/db/repos/lanodanOverlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lanodanOverlay.git
    masters: gentoo guru gentoo-bootstrap
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org https://dev.gentoo.org/~sam/ https://mirror.reenigne.net/gentoo/ http://bloodnoc.org/~roy/olde-distfiles/ https://www.jabawok.net/gentoo/ https://dev.gentoo.org/~robbat2/ https://dev.gentoo.org/~vapier/dist/ http://bloodnoc.org/~roy/old_Gentoo/DISTFILES.year/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2 -l1"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc mmx multilib ncurses nls openmp pam pcre readline seccomp split-usr sse sse2 ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fastcgi gzip headers_more limit_conn limit_req map proxy referer rewrite split_clients gzip_static spdy stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby23" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


If it's fine, I will proceed now with the profile switch, following the instructions in the news.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Thu Feb 01, 2024 11:24 am    Post subject: Reply with quote

afdev wrote:
I think I have successfully migrated the repo config to eselect repository.


Looks good.

afdev wrote:
If it's fine, I will proceed now with the profile switch, following the instructions in the news.


I hope it will go without issues but I also think it's very likely Neddy's going to be needed for that :)

Because then you have to migrate to merged usr... I'm not sure where migration to libxcrypt enters the picture too...

Best Regards,
Georgi
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Thu Feb 01, 2024 9:34 pm    Post subject: Reply with quote

I think the switching was successful.
I haven't hit any error / issue.
This is my emerge --info now:

Code:

# emerge --info
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 4.1.12-gentoo x86_64)
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1245_V2_@_3.40GHz-with-glibc2.38
KiB Mem:    32864920 total,  30752596 free
KiB Swap:    1046520 total,   1046520 free
Timestamp of repository gentoo: Thu, 01 Feb 2024 10:22:43 +0000
Head commit of repository gentoo: 5fd50dc9361a7c807f5e37d2a5cb3fccf56e3a37

Timestamp of repository gentoo-bootstrap: Sat, 27 Jan 2024 17:35:23 +0000
Head commit of repository gentoo-bootstrap: 66485d49a940dc893de81b08fb73aa6f8286eb40

Timestamp of repository guru: Wed, 31 Jan 2024 22:33:25 +0000
Head commit of repository guru: 2f01aa6931cd171b69ea72f07a1aac4eb765c7d7

Timestamp of repository lanodanOverlay: Wed, 31 Jan 2024 16:33:22 +0000
Head commit of repository lanodanOverlay: 3b911ed43ed794eabb8fa8a3cac04b4286781fd6

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             11.4.1_p20240111::gentoo, 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

gentoo-bootstrap
    location: /var/db/repos/gentoo-bootstrap
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-bootstrap.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

lanodanOverlay
    location: /var/db/repos/lanodanOverlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lanodanOverlay.git
    masters: gentoo guru gentoo-bootstrap
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org https://dev.gentoo.org/~sam/ https://mirror.reenigne.net/gentoo/ http://bloodnoc.org/~roy/olde-distfiles/ https://www.jabawok.net/gentoo/ https://dev.gentoo.org/~robbat2/ https://dev.gentoo.org/~vapier/dist/ http://bloodnoc.org/~roy/old_Gentoo/DISTFILES.year/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2 -l1"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc mmx multilib ncurses nls openmp pam pcre readline seccomp split-usr sse sse2 ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fastcgi gzip headers_more limit_conn limit_req map proxy referer rewrite split_clients gzip_static spdy stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby23" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


It was a long journey, but I think for the moment it ends here.
Thank you very much to all of you!

I will now apply the same procedure to the production server, with the knowledge I have now, it doesn't scare me so much as before.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Fri Feb 02, 2024 7:24 am    Post subject: Reply with quote

afdev wrote:

It was a long journey, but I think for the moment it ends here.
Thank you very much to all of you!

I will now apply the same procedure to the production server, with the knowledge I have now, it doesn't scare me so much as before.


If your staging system is the same hardware or has the same clags in make.conf, you can spare the compilation and use binary packages. Since that wasn't intended in advance and portage was not configured to emit binary packages as well, you can look up the quickpkg command.

Best Regards,
Georgi
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Fri Feb 02, 2024 9:21 am    Post subject: Reply with quote

logrusx,

could you explain more in detail? I know that I can install single binary packages, but I would need to install a lot of packages and I don't know if I can update directly to the last packages I have now in the staging server in a system not updated in 3 years.
I think the configuration of the staging and the production is very similar.

Staging server:

Code:

# emerge --info
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 4.1.12-gentoo x86_64)
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1245_V2_@_3.40GHz-with-glibc2.38
KiB Mem:    32864920 total,  28317040 free
KiB Swap:    1046520 total,   1046520 free
Timestamp of repository gentoo: Fri, 02 Feb 2024 02:48:29 +0000
Head commit of repository gentoo: 90e229c028f14eb3f8e6c47f204bcaf20584058c

Timestamp of repository gentoo-bootstrap: Sat, 27 Jan 2024 17:35:23 +0000
Head commit of repository gentoo-bootstrap: 66485d49a940dc893de81b08fb73aa6f8286eb40

Timestamp of repository guru: Fri, 02 Feb 2024 00:03:27 +0000
Head commit of repository guru: 82f06ea4a7b5cb1e90a8e7c23d8d658556a81151

Timestamp of repository lanodanOverlay: Wed, 31 Jan 2024 16:33:22 +0000
Head commit of repository lanodanOverlay: 3b911ed43ed794eabb8fa8a3cac04b4286781fd6

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             11.4.1_p20240111::gentoo, 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

gentoo-bootstrap
    location: /var/db/repos/gentoo-bootstrap
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-bootstrap.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

lanodanOverlay
    location: /var/db/repos/lanodanOverlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/lanodanOverlay.git
    masters: gentoo guru gentoo-bootstrap
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org https://dev.gentoo.org/~sam/ https://mirror.reenigne.net/gentoo/ http://bloodnoc.org/~roy/olde-distfiles/ https://www.jabawok.net/gentoo/ https://dev.gentoo.org/~robbat2/ https://dev.gentoo.org/~vapier/dist/ http://bloodnoc.org/~roy/old_Gentoo/DISTFILES.year/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2 -l1"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc mmx multilib ncurses nls openmp pam pcre readline seccomp split-usr sse sse2 ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fastcgi gzip headers_more limit_conn limit_req map proxy referer rewrite split_clients gzip_static spdy stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby23" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Production server:

Code:

# emerge --info

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/amd64/17.1

To upgrade do the following steps:

The amd64 17.1 profiles switch to a more standard 'no SYMLINK_LIB'
multilib layout, and require an explicit migration. The migration is
performed using the app-portage/unsymlink-lib tool.

Read the Gentoo news item [2] for more information!

The following steps can be used to upgrade your system:

1. Sync and upgrade your system to the newest package versions
   to reduce the risk of issues.

2. If you are still running a 13.0 profile, select gcc 6.4.0 or later
   as the system compiler, source /etc/profile and reinstall libtool:

     # gcc-config -l
     [1] x86_64-pc-linux-gnu-5.5.0 *
     [2] x86_64-pc-linux-gnu-8.3.0
     # gcc-config 2
     # . /etc/profile
     # emerge -1v libtool

3. Install the tool:
     # emerge -1v app-portage/unsymlink-lib

4. Run 'unsymlink-lib --analyze' and check the output for obvious
   mistakes.  If you need to perform any changes to the system, remember
   to run 'unsymlink-lib --analyze' again afterwards.

[past this point do not call emerge or modify /usr manually]

5. This is a very good time to make a backup.

6. Run 'unsymlink-lib --migrate'.  You can add '--pretend' first to see
   what is going to happen.

7. Reboot your system.  Check if important programs work.
   In particular, verify that e.g. 'emerge --info' works (but do not
   install anything).  If you hit any serious problems, you can use
   'unsymlink-lib --rollback' to revert the changes and return to
   step 3.

8. Run 'unsymlink-lib --finish'.  You can add '--pretend' first to see
   what is going to happen but note that you're going to see a very long
   list of files to remove.

9. Switch the profile, e.g.:
     # eselect profile set default/linux/amd64/17.1/desktop

[at this point you can start using emerge again. emerge will then
 not display this message anymore, but the remaining steps are still
 required!]

10. Rebuild the toolchain:
      # emerge -1v sys-devel/gcc:11
      [ repeat for other slots you will be using ]
      [ if you are upgrading from 13.0 profile, also: ]
      # emerge -1v sys-devel/binutils
      # emerge -1v sys-libs/glibc

11. If you are using a multilib profile, rebuild all 32-bit packages.
    This can be done using:
      # emerge -1v --deep /lib32 /usr/lib32 /usr/lib/llvm/*/lib32

    Alternatively, if you are switching from one of the 13.0 profiles
    you can rebuild all packages as detailed in the 17.0 news item:
      # emerge -ev @world

12. Once the last 32-bit package is rebuilt, your package manager
    should remove the orphaned /lib32 and /usr/lib32 symlinks.  If that
    does not happen, remove them manually:
      # rm /lib32 /usr/lib32

For known issues, please see bug #506276 [1].  If you have any problems
with the new profiles or the migration procedure, please report a bug
and make it block the tracker.

[1] bug #506276
[2] https://www.gentoo.org/support/news-items/2019-06-05-amd64-17-1-profiles-are-now-stable.html


Portage 3.0.8 (python 3.7.8-final-0, default/linux/amd64/17.0, gcc-9.3.0, glibc-2.31-r6, 4.1.15-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_W3530_@_2.80GHz-with-gentoo-2.7
KiB Mem:    24735844 total,  12501132 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: b19fda22ba177985a19d629c57ca27e4b819036f

sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-misc/pax-utils:        1.2.6::gentoo
app-shells/bash:           5.0_p18::gentoo
dev-build/autoconf:        2.69-r5::gentoo, 2.71-r5::gentoo
dev-build/automake:        1.16.5::gentoo
dev-build/cmake:           3.17.4-r1::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.2.1-r4::gentoo
dev-build/meson:           0.55.3::gentoo
dev-lang/perl:             5.30.3::gentoo
dev-lang/python:           3.7.8-r2::gentoo, 3.8.5::gentoo
dev-lang/rust:             1.46.0::gentoo
sys-apps/baselayout:       2.7::gentoo
sys-apps/openrc:           0.42.1::gentoo
sys-apps/sandbox:          2.18::gentoo
sys-devel/binutils:        2.33.1-r1::gentoo, 2.34-r2::gentoo
sys-devel/binutils-config: 5.3.2::gentoo
sys-devel/gcc:             9.2.0-r2::gentoo, 9.3.0-r1::gentoo
sys-devel/gcc-config:      2.3.1::gentoo
sys-devel/llvm:            9.0.1::gentoo, 10.0.1::gentoo
sys-kernel/linux-headers:  5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.31-r6::gentoo
Repositories:

gentoo
    location: /usr/local/portage
    sync-type: git
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

portage_overlay
    location: /usr/local/portage_overlay
    masters: gentoo
    priority: 0

lanodanOverlay
    location: /var/lib/layman/lanodanOverlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cli corefonts crypt dri iconv ipv6 libtirpc mmx mmxext multilib ncurses nls nscd openmp pam pcre pcre-jit popcnt postgres readline seccomp split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 test-rust truetype unicode vhosts vim-syntax xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fastcgi gzip headers_more limit_conn limit_req map proxy referer rewrite split_clients gzip_static spdy stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


I would export packages with the command in the staging:

Code:

# quickpkg @world


Then copy the packages into "/var/cache/binpkgs" and run the following command in production:
Code:

# emerge -avuDNK @world


Or what should be the procedure?
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Fri Feb 02, 2024 9:46 am    Post subject: Reply with quote

Your production server has an older processor, -march=native is a no go.

So proceed as planned. Have a complete backup of your production server of course.

Best Regards,
Georgi
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Fri Feb 02, 2024 11:33 am    Post subject: Reply with quote

logrusx,

thank you.

Regarding the backup, for sure I know its importance, but I was searching to understand how to easily and completely backup a live server and I haven't find a solution yet.
I have found that I could use rsync and other commands (tar, dd, cp, ...) or even take file system snapshots with LVM, I have read this article, but still it's not clear which way to take.

And after I do a backup, how could I test it if it could really work to restore the server?
My impression is that it's not that easy...

Do you have an hint about that?
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Fri Feb 02, 2024 12:04 pm    Post subject: Reply with quote

I can't think of anything else that can be used on a live server other than rsync. You should backup your databases separately through their backup mechanisms as they are live systems as well.

What I would suggest is to try and replicate your server somewhere else and have another trial run on updating it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Fri Feb 02, 2024 3:52 pm    Post subject: Reply with quote

Actually, here's the opportunity where you can make a new installation using /etc/portage and /var/lib/portage from your production server. IF it turns out good, you can transfer everything from the production server on it and replace the production server. And you'll know in advance if it'll work.

Best Regards,
Georgi
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Mon Feb 19, 2024 10:35 am    Post subject: Reply with quote

Hi all,

I need again your help.
I still don't understand how to solve the case of file collisions, the documentation doesn't say too much (or I haven't find the right page).

Now I am on the production server and I have a file collision:

Code:

# emerge --ask --update --deep --with-bdeps=y --newuse sys-kernel/gentoo-sources
...
Calculating dependencies... done!
[ebuild  N     ] app-crypt/openpgp-keys-gentoo-release-20200704  USE="-test"
...
>>> Installing (1 of 38) app-crypt/openpgp-keys-gentoo-release-20200704::gentoo
Unable to unshare: EINVAL (for FEATURES="ipc-sandbox network-sandbox pid-sandbox")
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *      /usr/share/openpgp-keys/gentoo-release.asc
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * sec-keys/openpgp-keys-gentoo-release-20200704:0::gentoo
 *      /usr/share/openpgp-keys/gentoo-release.asc
 *
 * Package 'app-crypt/openpgp-keys-gentoo-release-20200704' NOT merged
 * due to file collisions. If necessary, refer to your elog messages for
 * the whole content of the above message.

>>> Failed to install app-crypt/openpgp-keys-gentoo-release-20200704, Log file:

>>>  '/var/tmp/portage/app-crypt/openpgp-keys-gentoo-release-20200704/temp/build.log'

 * Messages for package app-crypt/openpgp-keys-gentoo-release-20200704:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *      /usr/share/openpgp-keys/gentoo-release.asc
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * sec-keys/openpgp-keys-gentoo-release-20200704:0::gentoo
 *      /usr/share/openpgp-keys/gentoo-release.asc
 *
 * Package 'app-crypt/openpgp-keys-gentoo-release-20200704' NOT merged
 * due to file collisions. If necessary, refer to your elog messages for
 * the whole content of the above message.


If I run
Code:

# portageq owners /  /usr/share/openpgp-keys/gentoo-release.asc
sec-keys/openpgp-keys-gentoo-release-20200704
        /usr/share/openpgp-keys/gentoo-release.asc

The only package is the one I want to install... I don't get how to solve it.

Many thanks for your support!

-- EDIT --
I have solved this issue adding a USE flag for portage "sys-apps/portage -rsync-verify".
I don't know why, but it skips the problematic package now.
I think I have read from somewhere that if I use git, the USE flag is fine, but if I sync with rsync it would be better to verify, is it correct?
I have other file collisions for other packages anyway...
I am trying to solve the "Unable to unshare: EINVAL" issue upgrading the kernel.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Feb 19, 2024 10:49 am    Post subject: Reply with quote

afdev,

File collisions are not supposed to happen.

Safest is to rename /usr/share/openpgp-keys/gentoo-release.asc
Run the emerge again and if everything is OK, you can remove the renamed file. Don't be in a hurry to do the removal.
_________________
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
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Mon Feb 19, 2024 11:27 am    Post subject: Reply with quote

Thank you NeddySeagoon for the fast reply!

Is it a general way to solve them or is it because in my case only one package is involved?

Because in the past I was unmerging / deselecting packages to "free" the files and allow overriding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Feb 19, 2024 11:45 am    Post subject: Reply with quote

afdev,

That warning generally indicates that portage has lost track of the file owner, which can happen if the install phase is interrupted, or the file owner was installed without using portage.

I had a problem with shadow which I was able to fix with
Code:
rm -rf /usr/share/doc/shadow-4.14.5/
notice its all documentation, so shadow will work without that.
Other file types can be more difficult.

From
Code:
man make.conf
these is also
Code:
       COLLISION_IGNORE = [space delimited list of fnmatch patterns]
              This variable allows the user to disable collision-protect and protect-owned for specific fnmatch(3) patterns. For backward compatibility, directories  that  are  listed
              without a fnmatch pattern will automatically have /* appended to them.
              Defaults to "/lib/modules/* *.py[co]".

_________________
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
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Tue Feb 20, 2024 9:06 am    Post subject: Reply with quote

NeddySeagoon,

in make.conf there was a setting that I commented out:

Code:

#PORTDIR_OVERLAY="/usr/local/portage_overlay"


I think it has nothing to do with the error, because inside I have only one ebuild for the freetds package, that I am going to take from the main gentoo repo anyway.
After that I remember there was also another overlay to bring at the same timestamp of the main one (the lanodanOverlay like in the staging server).
After that, that collision is gone, but I have others :)

I will follow your hint to rename if only one package owns the files, thank you!
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Tue Feb 20, 2024 10:08 am    Post subject: Reply with quote

Something strange it's happening, I don't know why...
I have a lot of file collisions and as NeddySeagoon already said, that should not happen.

Code:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/automake-1.16.2-r1  USE="-test"
[ebuild  N     ] sys-devel/libtool-2.4.6-r6  USE="-vanilla"
[ebuild  N     ] dev-util/gtk-doc-am-1.32
[ebuild   R    ] app-misc/pax-utils-1.2.6  PYTHON_SINGLE_TARGET="-python3_9%"
[ebuild     U  ] sys-apps/sandbox-2.20 [2.18]
[ebuild  N     ] virtual/yacc-0
[ebuild     U  ] sys-apps/grep-3.5 [3.4]
[ebuild     U  ] dev-libs/popt-1.18 [1.16-r2]
[ebuild     U  ] net-misc/rsync-3.2.3-r1 [3.2.3]
[ebuild     U  ] sys-devel/bison-3.7.3 [3.7.1-r1]
[ebuild     U  ] app-crypt/gnupg-2.2.20-r2 [2.2.20-r1]
[ebuild     U  ] app-crypt/gpgme-1.14.0 [1.13.0-r1] PYTHON_TARGETS="-python3_9%"
[ebuild     U  ] app-portage/portage-utils-0.90 [0.87]
[ebuild     U  ] sys-libs/pam-1.5.1 [1.4.0_p20200829]
[ebuild  NS    ] dev-lang/python-3.9.0 [3.7.8-r2, 3.8.5]
[ebuild     U  ] sys-libs/glibc-2.32-r2 [2.31-r6]
[ebuild  N     ] sys-devel/make-4.2.1-r4  USE="nls -guile -static"
[ebuild     U  ] dev-lang/python-3.7.9 [3.7.8-r2]
[ebuild  N     ] dev-util/ninja-1.10.1  USE="vim-syntax -doc -emacs -test"
[ebuild     U  ] dev-lang/python-3.8.6 [3.8.5]
[ebuild     U  ] dev-libs/elfutils-0.181 [0.180]
[ebuild     U  ] dev-python/certifi-10001-r1 [10001]
[ebuild     U  ] sys-apps/portage-3.0.9 [3.0.8] USE="-rsync-verify*"
[ebuild     U  ] dev-python/setuptools-50.3.0 [46.4.0-r3]
[ebuild  N     ] dev-python/setuptools_scm-4.1.2-r1  USE="-test" PYTHON_TARGETS="python3_7 (-pypy3) -python3_6 -python3_8 -python3_9"
[ebuild  N     ] dev-util/meson-0.55.3  USE="(-test)" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9"
[ebuild     U  ] sys-auth/pambase-20201103 [20201010]


Most of the packages are from "sys-devel" category, that in current tree of the gentoo repo doesn't exist anymore.
If I search for "make", I find:

Code:

# emerge --search make
...
*  dev-build/make
      Latest version installed: 4.2.1-r4
      Homepage:      https://www.gnu.org/software/make/make.html
      Description:   Standard tool to compile source trees
      License:       GPL-3+
...
*  sys-devel/make
      Latest version available: 4.2.1-r4
      Latest version installed: [ Not Installed ]
      Size of files: 1,375 KiB
      Homepage:      https://www.gnu.org/software/make/make.html
      Description:   Standard tool to compile source trees
      License:       GPL-3+

But "make" was moved to "dev-build" in January
That's very strange, I don't know why I have it installed in "dev-build", but that's the reason for the file collisions.
Since it's "make" I don't want to touch it (I remember what happened with glibc :P), so how could I solve the problem?
I have the same also for other packages that now are in the "dev-build" directory.

-- EDIT --
It's also strange that I don't find any ebuild for the "4.2.1-r4" version in "dev-build"... I don't get it.
Back to top
View user's profile Send private message
afdev
n00b
n00b


Joined: 19 Dec 2023
Posts: 49

PostPosted: Wed Mar 06, 2024 8:02 am    Post subject: Reply with quote

I am successfully upgrading the production server, traversing the git history of the gentoo repo.
But I am trying to upgrade the kernel and I don't know what's wrong with it.
I am using GRUB and genkernel to compile the new kernel and set the entries for the bootloader, but when I reboot I get the following:

Code:
# emerge --info

...

Portage 3.0.28 (python 3.9.9-final-0, default/linux/amd64/17.0, gcc-11.2.0, glibc-2.33-r7, [b]4.1.15-gentoo-r1 x86_64[/b])
=================================================================
System uname: [b]Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_W3530_@_2.80GHz-with-glibc2.33[/b]
KiB Mem:    24735088 total,  21559232 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: 67266c31237270afadcf7eae9bafee6c89df453b

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          3.9.9::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.44.9::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /usr/local/portage
    sync-type: git
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

lanodanOverlay
    location: /var/lib/layman/lanodanOverlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org https://dev.gentoo.org/~sam/ https://mirror.reenigne.net/gentoo/ http://bloodnoc.org/~roy/olde-distfiles/ https://www.jabawok.net/gentoo/ https://dev.gentoo.org/~robbat2/ https://dev.gentoo.org/~vapier/dist/ http://bloodnoc.org/~roy/old_Gentoo/DISTFILES.year/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 cli corefonts crypt dri iconv ipv6 libglvnd libtirpc mmx mmxext multilib ncurses nls nptl nscd openmp pam pcre pcre-jit popcnt postgres readline seccomp split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 truetype unicode vhosts vim-syntax xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fastcgi gzip headers_more limit_conn limit_req map proxy referer rewrite split_clients gzip_static spdy stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


I was doing the same in the staging server and the upgrade went well.
What could be the problem with it?
I have followed the instructions on this page: https://wiki.gentoo.org/wiki/Kernel/Upgrade
Using genkernel to configure and build the new kernel (I selected the linux-5.10.76-gentoo-r1).
I have already tried with the linux-4.19.97-gentoo, but the kernel remains 4.1.15-gentoo-r1.
These are the entries in my grub.cfg:

Code:

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
        load_video
        if [ "x$grub_platform" = xefi ]; then
                set gfxpayload=keep
        fi
        insmod gzio
        insmod part_gpt
        insmod part_gpt
        insmod diskfilter
        insmod mdraid09
        insmod ext2
        set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
        else
          search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
        fi
        echo    'Loading Linux 5.10.76-gentoo-r1-x86_64 ...'
        linux   /boot/vmlinuz-5.10.76-gentoo-r1-x86_64 root=UUID=f7b467c0-31b1-4a82-805f-b63fc26158f3 ro  domdadm
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-5.10.76-gentoo-r1-x86_64.img
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
        menuentry 'Gentoo GNU/Linux, with Linux 5.10.76-gentoo-r1-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.76-gentoo-r1-x86_64-advanced-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 5.10.76-gentoo-r1-x86_64 ...'
                linux   /boot/vmlinuz-5.10.76-gentoo-r1-x86_64 root=UUID=f7b467c0-31b1-4a82-805f-b63fc26158f3 ro  domdadm
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initramfs-5.10.76-gentoo-r1-x86_64.img
        }
        menuentry 'Gentoo GNU/Linux, with Linux 5.10.76-gentoo-r1-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.76-gentoo-r1-x86_64-recovery-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 5.10.76-gentoo-r1-x86_64 ...'
                linux   /boot/vmlinuz-5.10.76-gentoo-r1-x86_64 root=UUID=f7b467c0-31b1-4a82-805f-b63fc26158f3 ro debug
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initramfs-5.10.76-gentoo-r1-x86_64.img
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.19.97-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.97-gentoo-x86_64-advanced-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.19.97-gentoo-x86_64 ...'
                linux   /boot/vmlinuz-4.19.97-gentoo-x86_64 root=UUID=f7b467c0-31b1-4a82-805f-b63fc26158f3 ro  domdadm
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initramfs-4.19.97-gentoo-x86_64.img
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.19.97-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.97-gentoo-x86_64-recovery-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.19.97-gentoo-x86_64 ...'
                linux   /boot/vmlinuz-4.19.97-gentoo-x86_64 root=UUID=f7b467c0-31b1-4a82-805f-b63fc26158f3 ro debug
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initramfs-4.19.97-gentoo-x86_64.img
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.19.97-gentoo-x86_64.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.97-gentoo-x86_64.old-advanced-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.19.97-gentoo-x86_64.old ...'
                linux   /boot/vmlinuz-4.19.97-gentoo-x86_64.old root=UUID=f7b467c0-31b1-4a82-805f-b63fc26158f3 ro  domdadm
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initramfs-4.19.97-gentoo-x86_64.img
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.19.97-gentoo-x86_64.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.97-gentoo-x86_64.old-recovery-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.19.97-gentoo-x86_64.old ...'
                linux   /boot/vmlinuz-4.19.97-gentoo-x86_64.old root=UUID=f7b467c0-31b1-4a82-805f-b63fc26158f3 ro debug
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initramfs-4.19.97-gentoo-x86_64.img
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.9.76-gentoo-r1' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.76-gentoo-r1-advanced-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.9.76-gentoo-r1 ...'
                linux   /boot/vmlinuz-4.9.76-gentoo-r1 root=/dev/md3 ro  domdadm
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.9.76-gentoo-r1 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.76-gentoo-r1-recovery-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.9.76-gentoo-r1 ...'
                linux   /boot/vmlinuz-4.9.76-gentoo-r1 root=/dev/md3 ro debug
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.1.15-gentoo-r1' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.15-gentoo-r1-advanced-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.1.15-gentoo-r1 ...'
                linux   /boot/kernel-4.1.15-gentoo-r1 root=/dev/md3 ro  domdadm
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.1.15-gentoo-r1 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.15-gentoo-r1-recovery-f7b467c0-31b1-4a82-805f-b63fc26158f3' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod part_gpt
                insmod diskfilter
                insmod mdraid09
                insmod ext2
                set root='mduuid/807990a9fdd381e2a4d2adc226fd5302'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='mduuid/807990a9fdd381e2a4d2adc226fd5302'  f7b467c0-31b1-4a82-805f-b63fc26158f3
                else
                  search --no-floppy --fs-uuid --set=root f7b467c0-31b1-4a82-805f-b63fc26158f3
                fi
                echo    'Loading Linux 4.1.15-gentoo-r1 ...'
                linux   /boot/kernel-4.1.15-gentoo-r1 root=/dev/md3 ro debug
        }
}
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1751

PostPosted: Wed Mar 06, 2024 9:26 am    Post subject: Reply with quote

Post the output of:

Quote:
wgetpaste -c 'mount'
wgetpaste /etc/fstab
wgetpaste -c 'ls -lah /boot'


Best Regards,
Georgi
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, 4  Next
Page 3 of 4

 
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