rpm cannot change directory to symlink

Bug #651390 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Fix Released
Medium
devzero2000
ALT Linux
Confirmed
Medium
Fedora
Unknown
Unknown

Bug Description

Yet Another Tracker

Jeff Johnson (n3npq)
tags: added: directory symlink
Changed in rpm:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
devzero2000 (pinto-elia) wrote :

Just some old reference on this argument, but always actual and with a clear explanation in my opinion.

http://<email address hidden>/msg00031.html (LUA and YAML)

https://lists.dulug.duke.edu/pipermail/rpm-devel/2007-April/002259.html (upgrade when directory changes to symlink
)

But i think it is <email address hidden> now by this post on a related bug

https://bugs.launchpad.net/rpm/+bug/633636/comments/3

Revision history for this message
devzero2000 (pinto-elia) wrote :

Fix committed is not right : only some docu more and an example

Changed in rpm:
assignee: nobody → devzero2000 (pinto-elia)
status: Triaged → Fix Committed
Revision history for this message
In , Sem-2 (sem-2) wrote :

Если при обновлении пакета каталог изменяется на symlink, то rpm не умеет обработать эту ситуацию:
Terminal error: unpacking of archive failed on
file /usr/share/doc/Terminal/da/images: cpio: rename failed - Это
каталог
Terminal error: unpacking of archive failed on
file /usr/share/doc/Terminal/fr/images: cpio: rename failed - Это
каталог

Это не только в нашем rpm, см.
https://bugzilla.redhat.com/show_bug.cgi?id=447156.
Там пишут что существует и обратная проблема:
https://bugzilla.redhat.com/show_bug.cgi?id=646523.

Revision history for this message
In , Iv-n (iv-n) wrote :

У меня в своё время, что хуже наверное, в случае обратной проблемы всё проходило тихо: каталог не заменял симлинк, а его содержимое распаковвывалось туда, куда указывает симлинк.

Вообще, симлинки vs каталоги -- известные и переодически всплывающие грабли. Вот, например, для полноты картины, ещё интересный случай:

http://lists.altlinux.org/pipermail/devel/2008-December/164768.html

Revision history for this message
In , Dmitry V. Levin (ldv) wrote :

Этот баг в rpm был всегда, известен очень давно и его никто не собирается исправлять.

Пример объезда 9-летней давности:
$ rpmquery --scripts --triggers glibc-locales

Revision history for this message
devzero2000 (pinto-elia) wrote :

I apologize but now i am not sure anymore that rpm5 can hadle this. So i have dropped the borken toy test from CVS HEAD.
I'm really sorry

Changed in rpm:
status: Fix Committed → Confirmed
Revision history for this message
devzero2000 (pinto-elia) wrote :

In this, now well know, post on fedora-devel (http://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html) Lennart Poettering, systemd author, report :

.....

"So, this is what is implemented for F15 now. For F16 we will make a
minor change on top of this: /var/run and /var/lock will become symlinks
to /run (resp /run/lock), so that we don't have to use bind mounts
anymore which are not the most beautiful thing to use by default, and
confusing to the admin. Due to the implications of symlinks and RPM we
didn't want to make that change in F15.
"

.....

So the alleged lack for rpm for being capable to change a directory with a symbolic link becomes a blocker to bring forward certain features in FC15. Just for info, being relevant to the bug discussed here.

Revision history for this message
In , Jeff Johnson (n3npq) wrote :
Jeff Johnson (n3npq)
Changed in rpm:
status: Confirmed → Fix Released
importance: Low → Medium
milestone: none → 5.4.8
Revision history for this message
In , Alexey Shabalin (a-shabalin) wrote :

а как в новом rpm с этим бороться? если хочется заменить директорию на симлинк?

Revision history for this message
In , Glebfm-s (glebfm-s) wrote :

(В ответ на комментарий №4)
> а как в новом rpm с этим бороться? если хочется заменить директорию на симлинк?

Ничего не изменилось, проблема как была неразрешимая, так и осталась.
Решать так же, как и раньше.

Revision history for this message
In , Alexey Shabalin (a-shabalin) wrote :

(В ответ на комментарий №5)
> (В ответ на комментарий №4)
> > а как в новом rpm с этим бороться? если хочется заменить директорию на симлинк?
>
> Ничего не изменилось, проблема как была неразрешимая, так и осталась.
> Решать так же, как и раньше.

Сейчас сразу ругается, не доходя до выполнения %pre.

Revision history for this message
In , Glebfm-s (glebfm-s) wrote :

(В ответ на комментарий №6)
> Сейчас сразу ругается, не доходя до выполнения %pre.

Ох, да.

Revision history for this message
In , Alexey Shabalin (a-shabalin) wrote :

будьте добры, дайте рекомендации, как сейчас обходить такую ситуацию.

Revision history for this message
In , Lav-7 (lav-7) wrote :

> file /usr/share/doc/Terminal/da/images: cpio: rename failed - Это
каталог

А я правильно понимаю, что это баг не rpm, а cpio, который собственно занимается распаковкой файлов?

Changed in altlinux:
importance: Unknown → Medium
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.