FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 10-07-2010, 08:52 PM
Orion Poplawski
 
Default Help with update issue

In paraview 3.8.0, %{_libdir}/paraview/paraview is a directory:

ls -l /usr/lib64/paraview/paraview
total 660
-rw-r--r--. 1 root root 4213 Aug 2 15:35 benchmark.py
-rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyc
-rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyo
....

In paraview 3.8.1, it is a file.

It fails to upgrade with:

Error unpacking rpm package paraview-3.8.1-2.fc14.x86_64
error: unpacking of archive failed on file /usr/lib64/paraview/paraview: cpio:
rename
paraview-3.8.0-4.fc14.x86_64 was supposed to be removed but is not!

Anything I can do to fix?


--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 10-07-2010, 09:02 PM
Paul Howarth
 
Default Help with update issue

On Thu, 07 Oct 2010 14:52:37 -0600
Orion Poplawski <orion@cora.nwra.com> wrote:

> In paraview 3.8.0, %{_libdir}/paraview/paraview is a directory:
>
> ls -l /usr/lib64/paraview/paraview
> total 660
> -rw-r--r--. 1 root root 4213 Aug 2 15:35 benchmark.py
> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyc
> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyo
> ....
>
> In paraview 3.8.1, it is a file.
>
> It fails to upgrade with:
>
> Error unpacking rpm package paraview-3.8.1-2.fc14.x86_64
> error: unpacking of archive failed on
> file /usr/lib64/paraview/paraview: cpio: rename
> paraview-3.8.0-4.fc14.x86_64 was supposed to be removed but is not!
>
> Anything I can do to fix?

Test for %{_libdir}/paraview/paraview being a directory in %pre and
renaming/removing it if it is?

Paul.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 10-07-2010, 09:07 PM
Orion Poplawski
 
Default Help with update issue

On 10/07/2010 02:52 PM, Orion Poplawski wrote:
> In paraview 3.8.0, %{_libdir}/paraview/paraview is a directory:
>
> ls -l /usr/lib64/paraview/paraview
> total 660
> -rw-r--r--. 1 root root 4213 Aug 2 15:35 benchmark.py
> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyc
> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyo
> ....
>
> In paraview 3.8.1, it is a file.
>
> It fails to upgrade with:
>
> Error unpacking rpm package paraview-3.8.1-2.fc14.x86_64
> error: unpacking of archive failed on file /usr/lib64/paraview/paraview: cpio:
> rename
> paraview-3.8.0-4.fc14.x86_64 was supposed to be removed but is not!
>
> Anything I can do to fix?
>
>

Would this be acceptable?

#Handle changing from directory to file
%triggerin -- paraview <= 3.8.0
rm -rf %{_libdir}/paraview/paraview

Is there a place in the wiki where possible packaging tips like this are kept?
Should this be on such a page?
https://fedoraproject.org/wiki/Packaging_tricks ?

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 10-07-2010, 09:10 PM
Mamoru Tasaka
 
Default Help with update issue

Orion Poplawski wrote, at 10/08/2010 05:52 AM +9:00:
> In paraview 3.8.0, %{_libdir}/paraview/paraview is a directory:
>
> ls -l /usr/lib64/paraview/paraview
> total 660
> -rw-r--r--. 1 root root 4213 Aug 2 15:35 benchmark.py
> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyc
> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyo
> ....
>
> In paraview 3.8.1, it is a file.
>
> It fails to upgrade with:
>
> Error unpacking rpm package paraview-3.8.1-2.fc14.x86_64
> error: unpacking of archive failed on file /usr/lib64/paraview/paraview: cpio:
> rename
> paraview-3.8.0-4.fc14.x86_64 was supposed to be removed but is not!
>
> Anything I can do to fix?
>

One resort to remove the directory in %pre of new rpm, like

%pre
if [ -d %_libdir/paraview/paraview ]
then
rm -f %_libdir/paraview/paraview/benchmark.py{,c,o}
rmdir %_libdir/paraview/paraview ||
mv %_libdir/paraview/paraview{,.rpmsave}
fi

Regards,
Mamoru
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 10-07-2010, 09:39 PM
Orion Poplawski
 
Default Help with update issue

On 10/07/2010 03:02 PM, Paul Howarth wrote:
> On Thu, 07 Oct 2010 14:52:37 -0600
> Orion Poplawski<orion@cora.nwra.com> wrote:
>
>> In paraview 3.8.0, %{_libdir}/paraview/paraview is a directory:
>>
>> ls -l /usr/lib64/paraview/paraview
>> total 660
>> -rw-r--r--. 1 root root 4213 Aug 2 15:35 benchmark.py
>> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyc
>> -rw-r--r--. 2 root root 4202 Aug 2 16:20 benchmark.pyo
>> ....
>>
>> In paraview 3.8.1, it is a file.
>>
>> It fails to upgrade with:
>>
>> Error unpacking rpm package paraview-3.8.1-2.fc14.x86_64
>> error: unpacking of archive failed on
>> file /usr/lib64/paraview/paraview: cpio: rename
>> paraview-3.8.0-4.fc14.x86_64 was supposed to be removed but is not!
>>
>> Anything I can do to fix?
>
> Test for %{_libdir}/paraview/paraview being a directory in %pre and
> renaming/removing it if it is?
>
> Paul.

Sounds good. Thanks.

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 04:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org