Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Zapewne sporo użytkowników słyszało o czymś co się nazywa usrmerge. W skrócie to taki mechanizm, który miał na celu zunifikowanie struktury katalogów w Debianie, by pozbyć się archaicznego podziału, np. /bin i /usr/bin/ albo /lib i /usr/lib/ . Wygląda jednak na to, że wdrożenie takiego rozwiązania okazało się być niezbyt przemyślane (przynajmniej w Debianie), bo generuje cała masę problemów:
Q: Does dpkg support merged-/usr-via-aliased-dirs?
A: No. This approach is considered broken by design and breaks many common expectations.
In dpkg the expected breakage includes:
failing to notice file conflicts with the subsequent silent file overwrites by f.ex. dpkg, dpkg-divert and update-alternatives,
files disappearing during package upgrades or diversion installation,
failing to activate triggers on pathnames,
failing to find pathnames on dpkg-query -S searches,
completely messing up the filesystem by simply using dpkg-deb -x or tar -x.
-- https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge
Parę dni temu, u mnie na sid pojawiła się aktualizacja dpkg i tam można było zarejestrować taki oto komunikat:
Setting up dpkg (1.21.3) ... dpkg: warning: This system uses merged-usr-via-aliased-dirs, going behind dpkg's dpkg: warning: back, breaking its core assumptions. This can cause silent file dpkg: warning: overwrites and disappearances, and its general tools misbehavior. dpkg: warning: See <https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge>.
Co ciekawe, stabilne wydania Debiana (począwszy od Debian buster) mają ten usrmerge wdrożony przy instalacji świeżego systemu. Więc praktycznie każdy, kto instalował świeży system w ostatnim czasie, to ten usrmerge ma u siebie bez względu na to czy by sobie tego życzył czy też nie.
Jak można wywnioskować z tego powyższego komunikatu, teraz Debian chce ten usrmerge odkręcić:
if you have a system that has been installed recently (since Debian buster) or switched via the usrmerge hack, you might want to consider using the dpkg-fsys-usrunmess program (but beware that it should not be used in systemd's emergency mode) or reinstalling.
-- https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge
W skrócie, opcje powrotu do ery sprzed usrmerge są dwie: reinstalacja systemu albo skorzystanie z dpkg-fsys-usrunmess . Mi się nie chciało instalować systemu na nowo, dlatego też skorzystałem z dpkg-fsys-usrunmess i w zasadzie ten proces przeszedł bez większych problemów ale parę rzeczy się popsuło. Generalnie to dla standardowego systemu skorzystanie z dpkg-fsys-usrunmess nie powinno nieść żadnych powikłań ale jeśli np. ktoś sobie sam buduje kernel lub też ma jakieś inne udziwnienia w systemie (np. manipuluje w jakiś sposób obrazem initramfs/initrd), to fix'nięcie tego bałaganu związanego z usrmerge może zając trochę więcej czasu. Te problemy nie będą jakieś trudne do poprawienia ale jak komuś się nie chce ich rozwiązywać, to lepiej jest cały system postawić na nowo. xD
Ostatnio edytowany przez morfik (2022-03-30 10:47:20)
Offline
urbinek napisał(-a):
ja czekam na opinie developera (jak nie ma bana) i jechanie po KDE :)
Nie, nie jest zbanowany :P
Offline
Jak można wywnioskować z tego powyższego komunikatu, teraz Debian chce ten usrmerge odkręcić
Sa glosy, ze to bardziej inwencja jednej osoby niz zdanie Debiana jako calosci https://forum.siduction.org/index.php?topic=8568.msg68596#msg68596
Offline
No jak na te problemy, które ma dpkg, to raczej wątpliwe, że to zdanie tylko jednej osoby.
What is supported is a bit subjective I fear. At this point, neither
merged-/usr nor unmerged-/usr is supported well. Both are broken in one
way or another and nobody steps up to fix the mess. In particular, the
dpkg maintainer does not support merged-/usr in dpkg (which is his
constitutional right as long as he does not block reasonable patches),
but neither does anyone else. As such I find it difficult to disagree
with the content of the warning. I do see how it confuses people. It
definitely does not reach people who could do something about. Rather it
takes users as hostages. This is similar to the case where debianutils
added deprecation warnings. I would not have added such a warning even
if it were fully accurate.
-- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994388#167
Coś pięknego. xD Ja sobie poczekam z rok czy dwa, aż się zdecydują na którąkolwiek z tych opcji. xD
Ostatnio edytowany przez morfik (2022-04-01 09:51:00)
Offline
Wygląda na to, że przygód ciąg dalszy: xD
The TC has voted to reinstate our moratorium, as follows:
Under Constitution 6.1.5, the Technical Committee recommends that the
maintainers of individual packages should not proactively move files
from the root filesystem to corresponding locations under /usr in the
data.tar.* of packages. So, /foo/bar should not move to /usr/foo/bar.
Files that are in /usr in the Debian 12 release should remain in /usr,
while files that are in /bin, /lib* or /sbin in the Debian 12 release
should remain in those directories. If any files are moved from /bin,
/lib* or /sbin into /usr after the Debian 12 release, they should be
moved back to their Debian 12 locations.
This moratorium lasts until we vote to repeal it. We expect to do that
during the trixie development cycle, and sooner rather than later.
We will continue to facilitate efforts to resolve the remaining issues
that stand in the way of safely repealing the moratorium.
-- https://lwn.net/ml/debian-devel-announce/87y1lnzqb9 … entflame.com/
Offline
O co chodzi z tym merged usr?
Terroryści z Systemd znowu chcą naginać Linuxa do potrzeb swoich fobii?
Awantura ze sprawą flagi debug do kernela nic ich nie nauczyła,
czy może Linus powinien wziąć kałacha zamiast palca?
:P
Tutaj się dowiedzialem o sprawie, jakby co:
https://www.gentoo.org/support/news-items/2022-12-0 … usrmerge.html
Pozdro
Offline