Red Hat Bugzilla – Bug 204589
mozilla-config points to the wrong places
Last modified: 2007-11-16 20:14:53 EST
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
As a workaround, use pkg-config --cflags mozilla-xpcom
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.
The pkg-config workaround is better than hard-coding paths as we did first. Thanks!
Created attachment 142177 [details] proposed patch
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.
Created attachment 147107 [details] an updated patch
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.
Created attachment 147894 [details] hopefully the final patch
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