Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildroot doesn't want to update #81

Closed
dvdesolve opened this issue May 23, 2023 · 10 comments
Closed

Buildroot doesn't want to update #81

dvdesolve opened this issue May 23, 2023 · 10 comments

Comments

@dvdesolve
Copy link

Today I've run sudo ccm u after updating ccm from AUR. However it told me that something wrong with buildroot:

----> Updating the buildroot...
==> ERROR: chroot '/opt/buildroot/root' is not at version v5. Please rebuild.

Should I nuke buildroot (and/or my local repo with all built packages) and then re-create it again?

@graysky2
Copy link
Owner

Sure you can try that. Perhaps due to the devtools update, I do not know.

@dvdesolve
Copy link
Author

Ok, I've tried to recreate clean chroot, but it seems like more updates to the ccm itself are needed.

...
(3/3) Updating the info directory file...
Initializing machine ID from random generator.
cp: cannot stat '/usr/share/devtools/makepkg-x86_64.conf': No such file or directory
Generating locales...
  en_US.UTF-8... done
  de_DE.UTF-8... done
Generation complete.
...

Main ccm script still refers to old file names, e. g. on line 198:

insargs+=(-M /usr/share/devtools/makepkg-x86_64.conf)

According to this configs are moved to /usr/share/devtools/pacman.conf.d/ directory. Can you confirm and/or fix this?

@graysky2
Copy link
Owner

Did you follow the post install message from pacman assuming you're running v2.225?

[2023-05-21T11:38:11-0400] [ALPM] upgraded clean-chroot-manager (2.222-1 -> 2.224-1)
[2023-05-21T11:38:11-0400] [ALPM-SCRIPTLET]
[2023-05-21T11:38:11-0400] [ALPM-SCRIPTLET] >>> New features/changes have been made with this release.
[2023-05-21T11:38:11-0400] [ALPM-SCRIPTLET]     Check $XDG_CONFIG_HOME/clean-chroot-manager.conf against
[2023-05-21T11:38:11-0400] [ALPM-SCRIPTLET]     /usr/share/clean-chroot-manager/ccm.skel to ensure it is updated!
[2023-05-21T11:38:11-0400] [ALPM-SCRIPTLET]

@dvdesolve
Copy link
Author

Of course!

[22:13 viktor@desolve-desktop ~]$ diff ~/.config/clean-chroot-manager.conf /usr/share/clean-chroot-manager/ccm.skel 
6c6
< CHROOTPATH64="/opt/buildroot"
---
> CHROOTPATH64="/scratch/.buildroot"
10c10
< THREADS=25
---
> THREADS=9
21,22c21,22
< REPO="/home/viktor/build/ccm_repo"
< REPO_NAME='chroot_local'
---
> #REPO="/home/foo/localrepo"
> #REPO_NAME='chroot_local'
33c33
< PACKAGER="Viktor Drobot <[email protected]>"
---
> PACKAGER=
36c36
< RUNNAMCAP=1
---
> RUNNAMCAP=

@graysky2
Copy link
Owner

Ah, I didn't read that correctly from my phone. Please reopen if the latest commit did not fix this for you.

@dvdesolve
Copy link
Author

It worked, thank you.
Now it only complains about perl and locales:

(2/3) Warn about old perl modules
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_TIME = "ru_RU.UTF-8",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

My locale settings are:

[22:34 viktor@desolve-desktop ~]$ cat /etc/locale.conf 
LANG=en_US.UTF-8
[22:36 viktor@desolve-desktop ~]$ cat ~/.config/locale.conf 
LANG=en_US.UTF-8
LC_TIME=ru_RU.UTF-8

@graysky2
Copy link
Owner

Which package did you try to build?

@dvdesolve
Copy link
Author

these errors appeared right at the end of new buildroot creation

@graysky2
Copy link
Owner

graysky2 commented May 25, 2023

I do not have such warnings:

...
installing which...
installing base-devel...
:: Running post-transaction hooks...
(1/3) Rebuilding certificate stores...
(2/3) Warn about old perl modules
(3/3) Updating the info directory file...
Initializing machine ID from random generator.
Generating locales...
  en_US.UTF-8... done
  de_DE.UTF-8... done
Generation complete.

Tried with and without your ~/.config/locale.conf

Do you get the same if you create the chroot without ccm?

@dvdesolve
Copy link
Author

dvdesolve commented May 26, 2023

Very strange... I haven't tuned anything else in relation with locales. But ok, I think I can miss it for now
No, I haven't checked with manual chroot.

PS. According to the Google this should be fixed with exporting LC_ALL. Interesting enough, I haven't seen that message while doing perl updates under normal system. Seems like even under ccm perl somehow see host locales (ru_RU lines in my log) and complains about it because /opt/buildroot/root/etc/locale.gen doesn't contain ru_RU locale at all

PS2. May be related: FS75864 and FS74967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants