![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1222314
https://bugzilla.suse.com/show_bug.cgi?id=1222314#c13
--- Comment #13 from Michael Andres
2024-04-04 04:55:37 [zypp] RequestedLocalesFile.cc(load):51 Read /var/lib/zypp/RequestedLocales{- 0644 0/0 size 6} 2024-04-04 04:55:48 [zypp::satpool] PoolImpl.cc(setTextLocale):477 pool_set_languages: (en_US, en)
Apparently the instsys had "en_US" (size 6) in /var/lib/zypp/RequestedLocales.
2024-04-04 10:56:54 [zypp::satpool] PoolImpl.cc(localeSetDirty):280 setRequestedLocales 2024-04-04 10:56:54 [zypp::satpool] PoolImpl.cc(setRequestedLocales):501 New RequestedLocales: set(1|+1|-0) ={ 2024-04-04 10:56:54 [zypp::satpool] PoolImpl.cc(setRequestedLocales):501 de_DE 2024-04-04 10:56:54 [zypp::satpool] PoolImpl.cc(setRequestedLocales):501 } 2024-04-04 10:56:54 [zypp::satpool] PoolImpl.cc(setTextLocale):477 pool_set_languages: (de_DE, de, en)
Here YAST set "de_DE". The former "en_US" is gone. "de_DE" and it's fallbacks were passed to the resolver.
2024-04-04 10:57:41 [zypp] RequestedLocalesFile.cc(load):51 Read /var/lib/zypp/RequestedLocales{- 0644 0/0 size 6} 2024-04-04 10:57:42 [zypp] RequestedLocalesFile.cc(load):51 Read /var/lib/zypp/RequestedLocales{- 0644 0/0 size 6} 2024-04-04 10:57:47 [zypp] RequestedLocalesFile.cc(load):51 Read /var/lib/zypp/RequestedLocales{- 0644 0/0 size 6}
The above fooled me. But Apparently YAST no longer does initializeTarget("/") for the instsys when refreshing the repos. Repo refresh must determine the requested locales (with respect to --root) to download localized repo metadata. If a Target for "/" would have been initialized, the Target would have cached the settings. Without this it reads them directly from (/)var/lib/zypp/RequestedLocales for each repo. But this does not alter the setting in the pool!
2024-04-04 [libsolv] PoolImpl.cc(logSat):133 job: install providing namespace:language(en) 2024-04-04 [libsolv] PoolImpl.cc(logSat):133 job: install providing namespace:language(de) 2024-04-04 [libsolv] PoolImpl.cc(logSat):133 job: install providing namespace:language(de_DE)
In every solver run i see the jobs to add the language supporting packages.
2024-04-04 11:11:43 [zypp] TargetImpl.cc(TargetImpl):874 Initialized target on /mnt 2024-04-04 11:11:47 [zypp] TargetImpl.cc(commit):1334 TargetImpl::commit(<pool>, CommitPolicy( DownloadAsNeeded syncPoolAfterCommit )) 2024-04-04 11:11:47 [zypp-core] PathInfo.cc(chmod):1099 chmod /mnt/var/lib/zypp/RequestedLocales80jO3P 00644 2024-04-04 11:11:47 [zypp-core] PathInfo.cc(rename):749 rename /mnt/var/lib/zypp/RequestedLocales80jO3P -> /mnt/var/lib/zypp/RequestedLocales 2024-04-04 11:11:47 [zypp] RequestedLocalesFile.cc(store):67 Wrote /mnt/var/lib/zypp/RequestedLocales{- 0644 0/0 size 70}
An finally in commit /mnt/var/lib/zypp/RequestedLocales was written (size 70). Given the expected RequestedLocales would look like this:
ma@hobbes:tmp (0)> cat /tmp/MNT/var/lib/zypp/RequestedLocales # zypp::RequestedLocales generated Thu Apr 4 11:11:47 2024 # de_DE # it would have size 70 ma@hobbes:tmp (0)> wc -c /tmp/MNT/var/lib/zypp/RequestedLocales 70 /tmp/MNT/var/lib/zypp/RequestedLocales -- You are receiving this mail because: You are on the CC list for the bug.