Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Hi, I want to switch to the stable branch

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
elover
Apprentice
Apprentice
Posts: 181
Joined: Wed Nov 20, 2019 12:32 pm
Location: Spain

Hi, I want to switch to the stable branch

  • Quote

Post by elover » Sat Jun 18, 2022 9:52 am

I've been using the ~amd64 branch since I started Gentoo many years ago, I didn't try the amd64 version until the beginning of the year. I was several months with stable branch and zero problems.

Now I want to move from ~amd64 to amd64, what do you recommend me to do, recompile GCC, Glibc, Ncurses and make emerge --ask --verbose --emptytree --with-bdeps=y @world

And another small question, I have in the make.conf set to protect configurations with CONFIG_PROTECT="/etc/conf.d/consolefont /etc/locale.gen /etc/conf.d/keymaps /etc/eixrc/00-eixrc" but it seems that it doesn't work, I don't know why
Top
xgivolari
Tux's lil' helper
Tux's lil' helper
Posts: 102
Joined: Mon Jul 26, 2021 6:55 pm

  • Quote

Post by xgivolari » Sat Jun 18, 2022 10:29 am

To absolutely make sure the toolchain works, I would start with this: linux-headers -> glibc -> binutils -> gcc -> libtool, and maybe even glibc -> binutils -> gcc -> libtool again. (note that different versions of binutils and gcc require you to manually select them using eselect, something I tend to forget :)) Furthermore, a rebuild like this will probably trigger the ol' freetype-harfbuzz circular dependency again, so it might be prudent to temporarily disable USE="harfbuzz" on freetype.
Top
elover
Apprentice
Apprentice
Posts: 181
Joined: Wed Nov 20, 2019 12:32 pm
Location: Spain

  • Quote

Post by elover » Sat Jun 18, 2022 11:27 am

Hello, thanks for your reply
Glibc can't be downgraded, I'll use the one I have and then I'll tell you if I had any problem
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56100
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jun 18, 2022 11:56 am

elover,

Change your ACCEPT_KEYWORDS and see what emerge wants to downgrade.
Look at the list carefully.
If glibc is there, mask it at the installed version. Downgrading glibc can break lots of things, so portage won't let you.

The usual advice is not to downgrade ... let stable catch you up.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
lekto
Apprentice
Apprentice
Posts: 231
Joined: Sat Sep 20, 2014 6:48 pm
Location: Ancient Rome

  • Quote

Post by lekto » Sat Jun 18, 2022 12:42 pm

I did it already three times (~amd64 => amd64) this way:
1. Make sure you have fully updated system, no packages that can't be updated because of conflicts etc.
2. Change your ACCEPT_KEYWORDS.
3. Try to update your system, but do not let it do it, instead put all currently installed packages (with currently installed version) that need to be downgraded into package.accept_keywords (on my last machine that was about 300 packages)
4. Now when you try to update system there should be nothing to update/downgrade.
5. Update your system as usual.
When you do it this way you will be emerging few packages at time, which is easier to debug than after rebuilding half of the system.

Now when updating system make sure it doesn't want downgrade anything important like glibc (broken system) or firefox (broken profile). If it wants just bump version in package.accept_keywords to the nearest version.
When I want to clean package.accept_keywords I run this command to show me what I can remove (change package.accept_keyword/amd64 to whatever you used):

Code: Select all

emerge -pO $(cat /etc/portage/package.accept_keywords/amd64) | grep -v "\[ebuild   R   \~\]"
It shows you what can be removed from the file.
Also there are packages that don't have stable versions so won't be updated this way (like openmw and its dependencies), instead run eclean-dist (from gentoolkit) to see what do you have installed that is not in tree any more.

There is one disadvantage: it take time to get rid off all ~amd64 packages, but system is working solid during this.
Top
forrestfunk81
Guru
Guru
User avatar
Posts: 567
Joined: Tue Feb 07, 2006 12:33 pm
Location: münchen.de

  • Quote

Post by forrestfunk81 » Tue Jul 05, 2022 12:16 pm

I would also update the system, freeze the currently installed versions in accept_keywords and then wait for stable to catch up.

Code: Select all

qlist -Iev | sed -e 's/^/=/' > /etc/portage/package.accept_keywords/freezed-versions-2022-08-05
This is not a fine elaborated command. It includes all installed packages and versions (not only arch).
# cd /pub/
# more beer
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Jul 05, 2022 12:21 pm

forrestfunk81 wrote:I would also update the system, freeze the currently installed versions in accept_keywords and then wait for stable to catch up.
That is exactly the right thing to do.
Top
sabayonino
Veteran
Veteran
User avatar
Posts: 1072
Joined: Tue Jan 03, 2012 5:46 pm
Contact:
Contact sabayonino
Website

  • Quote

Post by sabayonino » Tue Jul 05, 2022 3:40 pm

forrestfunk81 wrote:

Code: Select all

qlist -Iev | sed -e 's/^/=/' > /etc/portage/package.accept_keywords/freezed-versions-2022-08-05

Code: Select all

# emerge -p $(eix --installed-unstable --only-names)
It's better thing :wink:

"eix" must be installed
LRS 64/32
Top
forrestfunk81
Guru
Guru
User avatar
Posts: 567
Joined: Tue Feb 07, 2006 12:33 pm
Location: münchen.de

  • Quote

Post by forrestfunk81 » Tue Jul 05, 2022 3:58 pm

sabayonino wrote:
forrestfunk81 wrote:

Code: Select all

qlist -Iev | sed -e 's/^/=/' > /etc/portage/package.accept_keywords/freezed-versions-2022-08-05

Code: Select all

# emerge -p $(eix --installed-unstable --only-names)
It's better thing :wink:

"eix" must be installed
Ok then:

Code: Select all

qlist -Iev $(eix --installed-unstable --only-names) | sed -e 's/^/=/' > /etc/portage/package.accept_keywords/unstable-packages
;-)
# cd /pub/
# more beer
Top
sabayonino
Veteran
Veteran
User avatar
Posts: 1072
Joined: Tue Jan 03, 2012 5:46 pm
Contact:
Contact sabayonino
Website

  • Quote

Post by sabayonino » Wed Jul 06, 2022 10:34 am

If you need to rebuild amd64 keywords packages (stable) , you don't need to set the package version.
Portage will downgrade to the latest stable version available in the tree

Code: Select all

eix --installed-unstable --only-names
app-backup/dar

[I] app-backup/dar
     Available versions:  2.7.5^t{tbz2} (~)2.7.6^t{tbz2} {argon2 curl dar32 dar64 doc gcrypt gpg lz4 lzo nls rsync threads xattr}
     Installed versions:  2.7.6^t{tbz2}(21:58:51 05/07/2022)(curl dar64 gcrypt lz4 lzo nls rsync threads xattr -argon2 -dar32 -doc -gpg)
     Homepage:            http://dar.linux.free.fr/
     Description:         A full featured backup tool, aimed for disks
DAR-2.7.5 is the latest stable version available

if you have set ACCEPT_KEYWORDS="amd64" , portage gonna be to downgrade from 2.7.6 (~amd64) to 2.7.5 (amd64)

Code: Select all

emerge app-backup/dar --ask
If you want to keep some ~amd64 packages , you can set _accept_keywords file per package
LRS 64/32
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4701
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Wed Jul 06, 2022 10:12 pm

asturm wrote:
forrestfunk81 wrote:I would also update the system, freeze the currently installed versions in accept_keywords and then wait for stable to catch up.
That is exactly the right thing to do.
This is exactly how I did it (some years ago) and it worked without any problems.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
Clad in Sky
l33t
l33t
User avatar
Posts: 900
Joined: Fri May 04, 2007 6:40 am
Location: Germany

  • Quote

Post by Clad in Sky » Mon Oct 21, 2024 10:30 am

2 years forward I'm trying to do the same.
The list qlist -Iev $(eix --installed-unstable --only-names) outputs seems rather short, though. Am I missing something?
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4701
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Mon Oct 21, 2024 1:56 pm

Clad in Sky wrote:2 years forward I'm trying to do the same.
The list qlist -Iev $(eix --installed-unstable --only-names) outputs seems rather short, though. Am I missing something?
The following mentioned earlier here should just work:
[post=8724035]forrestfunk81[/post] wrote:I would also update the system, freeze the currently installed versions in accept_keywords and then wait for stable to catch up.

Code: Select all

qlist -Iev | sed -e 's/^/=/' > /etc/portage/package.accept_keywords/freezed-versions-2022-08-05
This is not a fine elaborated command. It includes all installed packages and versions (not only arch).
I don't see any flaws in that at least.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
Clad in Sky
l33t
l33t
User avatar
Posts: 900
Joined: Fri May 04, 2007 6:40 am
Location: Germany

  • Quote

Post by Clad in Sky » Mon Oct 21, 2024 2:24 pm

Zucca wrote:
Clad in Sky wrote:2 years forward I'm trying to do the same.
The list qlist -Iev $(eix --installed-unstable --only-names) outputs seems rather short, though. Am I missing something?
The following mentioned earlier here should just work:
[post=8724035]forrestfunk81[/post] wrote:I would also update the system, freeze the currently installed versions in accept_keywords and then wait for stable to catch up.

Code: Select all

qlist -Iev | sed -e 's/^/=/' > /etc/portage/package.accept_keywords/freezed-versions-2022-08-05
This is not a fine elaborated command. It includes all installed packages and versions (not only arch).
I don't see any flaws in that at least.
Well, that command gave me a list that seems more complete.
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4701
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Mon Oct 21, 2024 2:36 pm

Clad in Sky wrote:Well, that command gave me a list that seems more complete.
Its only flaw is that it also lists installed stable packages. However that should cause no harm.
..: Zucca :..

Code: Select all

0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001
Top
Clad in Sky
l33t
l33t
User avatar
Posts: 900
Joined: Fri May 04, 2007 6:40 am
Location: Germany

  • Quote

Post by Clad in Sky » Wed Oct 23, 2024 1:17 pm

Doing "eix-update" before might be a good idea. In my case, the last time I used eix was so long ago that the database was missing a lot of packages.
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Top
Clad in Sky
l33t
l33t
User avatar
Posts: 900
Joined: Fri May 04, 2007 6:40 am
Location: Germany

  • Quote

Post by Clad in Sky » Sun Oct 27, 2024 1:52 pm

I found another issue.

I have musescore-4.4.2 in the unstable-packages list.
For some reason when I do an update now, portage wants to downgrade musescore to 3.6.2-r1 (latest stable).
Could this be because 4.4.2 isn't in the repository anymore (latest available version there is 4.4.3 at the moment)? How could I freeze musescore-4.4.2 then?
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Oct 27, 2024 2:54 pm

When told to update packages, Portage will always seek to install the best available version, even if this is a downgrade. Since 4.4.2 is gone, and 4.4.3 is not stable, and you are now only allowing stable packages, Portage cannot pick 4.4.3, and cannot stay on the removed 4.4.2, so it seeks to go down. You could mask versions lower than 4.4.2, but this may cause other errors. You could update to 4.4.3 and try to pin there. Perhaps 4.4.3 will go stable rather than being removed in preference to an even newer unstable version. You could avoid updating this package name until a 4.x version is marked as stable.
Top
Clad in Sky
l33t
l33t
User avatar
Posts: 900
Joined: Fri May 04, 2007 6:40 am
Location: Germany

  • Quote

Post by Clad in Sky » Sun Oct 27, 2024 3:00 pm

Hu wrote:When told to update packages, Portage will always seek to install the best available version, even if this is a downgrade. Since 4.4.2 is gone, and 4.4.3 is not stable, and you are now only allowing stable packages, Portage cannot pick 4.4.3, and cannot stay on the removed 4.4.2, so it seeks to go down. You could mask versions lower than 4.4.2, but this may cause other errors. You could update to 4.4.3 and try to pin there. Perhaps 4.4.3 will go stable rather than being removed in preference to an even newer unstable version. You could avoid updating this package name until a 4.x version is marked as stable.
Thanks.
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Top
Post Reply

19 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic