Bug 137676

Summary: gtk2 uses /etc/gtk-2.0/%buildhost while librsvg uses /etc/gtk-2.0/%target
Product: [Fedora] Fedora Reporter: Carlos Romero <kidcrash>
Component: gtk2Assignee: Matthias Clasen <mclasen>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-03 15:44:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
gtk2.spec diff
none
updated lib64 patch none

Description Carlos Romero 2004-10-30 14:23:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20041023 Epiphany/1.4.4

Description of problem:

librsvg.spec uses %{_arch}-%{_host_vendor}-%{_host_os}, which is
i386-redhat-linux-gnu.
gtk2.spec uses %_host, which is i686-redhat-linux.
librsvg %post and %postun fail with the mismatch.

an updated lib64 patch and spec diff will be attached.


Version-Release
2.4.13-5

How reproducible:
Always

Steps to Reproduce:
1.build gtk2 and librsvg on a i686, default target of i386

Comment 1 Carlos Romero 2004-10-30 14:24:06 UTC
Created attachment 105974 [details]
gtk2.spec diff

Comment 2 Carlos Romero 2004-10-30 14:25:21 UTC
Created attachment 105975 [details]
updated lib64 patch

Comment 3 Bill Nottingham 2004-11-01 21:08:13 UTC
Shouldn't librsvg2 be fixed instead?

Comment 4 Carlos Romero 2004-11-02 12:45:33 UTC
librsvg2 is using the target, seems more correct than using the build
machine cpu.

Comment 5 Matthias Clasen 2004-11-03 15:34:57 UTC
The reason for using _host is that it is necessary to use the same
triplet as the one configure works with. See the extra contortions we
go through to make sure that is the case. 

I'll change librsvg2 to use _host again.


Comment 6 Carlos Romero 2004-11-05 18:20:17 UTC
gnome-utils also uses %{_arch}-%{_host_vendor}-%{_host_os}, causing
the %post scriptlet to fail.

/usr/bin/update-gtk-immodules: line 27:
/etc/gtk-2.0/i386-redhat-linux-gnu/gtk.immodules: No such file or
directory
error: %post(gnome-utils-2.8.1-1.i386) scriptlet failed, exit status 1