Bug 204589

Summary: mozilla-config points to the wrong places
Product: Red Hat Enterprise Linux 4 Reporter: Göran Uddeborg <goeran>
Component: seamonkeyAssignee: Christopher Aillon <caillon>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: stransky
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2007-0077 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-24 02:59:44 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
proposed patch
none
an updated patch
none
a reworked patch
none
hopefully the final patch none

Description Göran Uddeborg 2006-08-30 09:10:24 UTC
Description of problem:
Mozilla-config says header files are under /usr/include/seamonkey-1.0.3 and
library files under /usr/lib/seamonkey-1.0.3.  In reality however, the packages
place them under /usr/include/mozilla-seamonkey-1.0.3 and
/usr/lib/mozilla-seamonkey-1.0.3 respectively.

Version-Release number of selected component (if applicable):
seamonkey-1.0.3-0.el4.1
(Also applies to RHEL3 and seamonkey-1.0.3-0.el3.1.)

How reproducible:
Always

Steps to Reproduce:
1.mozilla-config --cflags

Actual results:
-I/usr/include/seamonkey-1.0.3 -I/usr/include/seamonkey-1.0.3/nspr

Expected results:
-I/usr/include/mozilla-seamonkey-1.0.3 -I/usr/include/mozilla-seamonkey-1.0.3/nspr

Comment 1 Christopher Aillon 2006-09-01 04:22:35 UTC
As a workaround, use pkg-config --cflags mozilla-xpcom

Comment 3 RHEL Program Management 2006-09-01 04:30:59 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Göran Uddeborg 2006-09-06 07:17:36 UTC
The pkg-config workaround is better than hard-coding paths as we did first.  Thanks!

Comment 6 Martin Stransky 2006-11-27 16:07:54 UTC
Created attachment 142177 [details]
proposed patch

Comment 7 Christopher Aillon 2007-01-29 17:19:08 UTC
This is the wrong patch.  We need to keep things in /usr/lib/mozilla-* for
applications.  The right fix is to simply fix the mozilla-config script.

Comment 8 Martin Stransky 2007-02-01 15:44:51 UTC
Created attachment 147107 [details]
an updated patch

Comment 9 Martin Stransky 2007-02-08 17:57:07 UTC
Created attachment 147677 [details]
a reworked patch

and we can remove this part from seamonkey.spec:

cd ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig
  for i in *.pc; do
    sed -i -e 's|%{_libdir}/seamonkey|%{_libdir}/mozilla-seamonkey|' \
	   -e 's|%{_includedir}/seamonkey|%{_includedir}/mozilla-seamonkey|'
"${i}"
    newfile="$(echo ${i} | sed s/^seamonkey-/mozilla-/)"
    cp "${i}" "$newfile"
    sed -i -e 's|Version: %{version}|Version: 1.8|' "$newfile"
  done
cd -

I've just noticed we need to add "Version: 1.8" to all *.pc. So if this is the
right patch I'll add it there.

Comment 10 Martin Stransky 2007-02-12 14:41:13 UTC
Created attachment 147894 [details]
hopefully the final patch

Comment 14 Red Hat Bugzilla 2007-02-24 02:59:44 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2007-0077.html