Bug 670210 - Fails to install/upgrade
Summary: Fails to install/upgrade
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Thunar
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-17 14:55 UTC by darrell pfeifer
Modified: 2011-01-22 07:36 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-01-22 07:36:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description darrell pfeifer 2011-01-17 14:55:49 UTC
Description of problem:


Running Transaction
  Updating   : Thunar-1.2.0-1.fc15.x86_64                                                                             1/2 
Error unpacking rpm package Thunar-1.2.0-1.fc15.x86_64
warning: /etc/xdg/Thunar/uca.xml created as /etc/xdg/Thunar/uca.xml.rpmnew
error: unpacking of archive failed on file /usr/share/doc/Thunar/html/es/images: cpio: rename
Thunar-1.0.2-4.fc15.x86_64 was supposed to be removed but is not!
:

--------

I had the same error originally on /usr/share/doc/Thunar/html/da/images. I removed those files by hand and tried the update again, only to get the error on another directory of image files. My guess is that there is an option missing on the unpacking, or that a previous update has set the incorrect permissions on the files.

Comment 1 darrell pfeifer 2011-01-17 15:32:01 UTC
Workaround is to remove

rm -rf /usr/share/doc/Thunar/

then do the upgrade.

Comment 2 Christoph Wickert 2011-01-17 15:33:58 UTC
This is an bug in rpm, see bug 447156

*** This bug has been marked as a duplicate of bug 447156 ***

Comment 3 Mamoru TASAKA 2011-01-20 04:26:00 UTC
You may want to say that this is a bug in rpm, but actually
the fact is that we always fixed this issue on individual
components' side.

So as (currently) this issue is not supposed to be fixed in
rpm side, Thunar must fix this. Reopening.

Comment 4 Kevin Fenzi 2011-01-20 18:11:50 UTC
Can you suggest a working spec patch? 

I think Christoph has tried the typical suggestions to work around this bug with no luck. 
See: 
https://bugzilla.redhat.com/show_bug.cgi?id=447156#c13

Patches welcome.

Comment 5 Mamoru TASAKA 2011-01-20 21:51:27 UTC
One example:
http://koji.fedoraproject.org/scratch/mtasaka/task_2734026/

------------------------------------------------------------------
diff --git a/Thunar.spec b/Thunar.spec
index 9f5297e..5c4384d 100644
--- a/Thunar.spec
+++ b/Thunar.spec
@@ -2,7 +2,7 @@
 
 Name:           Thunar
 Version:        1.2.0
-Release:        1%{?dist}
+Release:        1.1%{?dist}
 Summary:        Thunar File Manager
 
 Group:          User Interface/Desktops
@@ -122,6 +122,15 @@ desktop-file-install --vendor ""                                \
 rm -rf $RPM_BUILD_ROOT
 
 
+%pre
+for target in %{_defaultdocdir}/Thunar/html/*/images
+do
+       if [ -d $target ]
+       then
+               rm -rf $target
+       fi
+done
+
 %post
 /sbin/ldconfig
 update-desktop-database &> /dev/null ||:
------------------------------------------------------------------

Comment 6 Kevin Fenzi 2011-01-22 07:36:24 UTC
ok, seems to work around it in simple testing. 

Pushed to rawhide. 

http://koji.fedoraproject.org/koji/taskinfo?taskID=2736332

Thanks!


Note You need to log in before you can comment on or make changes to this bug.