Bug 173299 - libwmf %postun scriptlet fails due to dependencies not being specified
Summary: libwmf %postun scriptlet fails due to dependencies not being specified
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libwmf
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-16 01:19 UTC by Mike A. Harris
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 0_2_8_4-2
Clone Of:
Environment:
Last Closed: 2005-11-23 08:40:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mike A. Harris 2005-11-16 01:19:20 UTC
libwmf spec file is missing:

Requires(postun): /usr/bin/update-gdk-pixbuf-loaders

[root@fc4i386 RPMS]# rpm -e libwmf
/var/tmp/rpm-tmp.16651: line 2: /usr/bin/update-gdk-pixbuf-loaders: No such file
or directory
error: %postun(libwmf-0.2.8.3-8.i386) scriptlet failed, exit status 127

Comment 1 Caolan McNamara 2005-11-16 08:30:27 UTC
spec and rpm *seem* ok

Spec has Requires(post,postun): %{_bindir}/update-gdk-pixbuf-loaders

and rpm has

rpm -qRp /mnt/redhat/dist/fc5/libwmf/0.2.8.4-1/i386/libwmf-0.2.8.4-1.i386.rpm
...
/usr/bin/update-gdk-pixbuf-loaders
...

Comment 2 Mike A. Harris 2005-11-23 04:09:31 UTC
Some versions of rpm have a bug in the way that "Requires(post,postun)"
is parsed, which causes it to be ignored.  This will trigger this failure
when upgrading the OS if a new rpm package has that syntax, and older rpm
is being used, such as by yum upgrade.

Please update the spec to use the following instead, which works on all
versions of rpm:

Requires(post): %{_bindir}/update-gdk-pixbuf-loaders
Requires(postun): %{_bindir}/update-gdk-pixbuf-loaders

Comment 3 Caolan McNamara 2005-11-23 08:40:56 UTC
ah ha!, k done.

Comment 4 Need Real Name 2006-07-19 03:13:41 UTC
An old opps still exists in the FC4 libwnf-0.2.8.3-8.2 spec file;

%post
/sbin/ldconfig
%{_bindir}/update-gdk-pixbuf-loaders %{_arch}-%{_host_vendor}-%{_host_os}

%postun 
/sbin/ldconfig
%{_bindir}/update-gdk-pixbuf-loaders %{_arch}-%{_host_vendor}-%{_host_os}






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