Bug 149457 - update-gtk-immodules fails in %post
Summary: update-gtk-immodules fails in %post
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gnome-utils
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Ray Strode [halfline]
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-23 10:49 UTC by Andreas Thienemann
Modified: 2012-06-20 15:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 15:58:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andreas Thienemann 2005-02-23 10:49:46 UTC
Installing gnome-utils-2.8.0-5 results in the following error to appear in the
%post script:

/usr/bin/update-gtk-immodules: line 27:
/etc/gtk-2.0/i386-redhat-linux-gnu/gtk.immodules: No such file or directory

This comes from the fact that /etc/gtk-2.0/i386-redhat-linux-gnu/ does not exist
on my system but /etc/gtk-2.0/i686-redhat-linux-gnu/ does.

A bit of googleing turned up the thread at
https://www.redhat.com/archives/fedora-devel-list/2004-June/msg00987.html, which
does talk about this problem.
Specifically
https://www.redhat.com/archives/fedora-devel-list/2004-June/msg01043.html and
https://www.redhat.com/archives/fedora-devel-list/2004-June/msg01045.html from
Dan Williams do explain the problem.

I thought this was fixed for Fedora, shouldn't this be true for RHEL4 as well?

Comment 1 Andreas Thienemann 2005-02-23 11:03:30 UTC
A bit of looking through the specfiles shows the following mismatch:

The gtk2 specfile gets the directory name by taking the %{_host} variable into
account:

# Deriving /etc/gtk-2.0/$host location
# NOTE: Duplicated below
#
# autoconf changes linux to linux-gnu
case "%{_host}" in
  *linux) host="%{_host}-gnu"
  ;;
  *) host="%{_host}"
  ;;
esac

This results in /etc/gtk-2.0/i686-redhat-linux-gnu/ being created.

The gnome-utils (and other packages as well) gain the same data by callling:
concatting: %{_arch}-%{_host_vendor}-%{_host_os}

%{_arch} however is i386 while %{_host} is i686, thus the error occurs.



Comment 2 Jiri Pallich 2012-06-20 15:58:46 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.


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