Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351659 - x11-misc/google-gadgets-0.11.2: punt USE="xulrunner" (was: nsIGenericFactory.h: File or directory not found)
Summary: x11-misc/google-gadgets-0.11.2: punt USE="xulrunner" (was: nsIGenericFactory....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL: http://code.google.com/p/google-gadge...
Whiteboard:
Keywords:
Depends on:
Blocks: xulrunner
  Show dependency tree
 
Reported: 2011-01-14 15:07 UTC by Logarithmenlord
Modified: 2012-03-15 02:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The complete build.log. (build.log,668.67 KB, text/plain)
2011-01-14 15:08 UTC, Logarithmenlord
Details
Build log after patching browser_child.cc (google-gadgets-for-linux-0.11.2-build-log.txt,663.59 KB, text/plain)
2011-08-14 17:09 UTC, Patrick McMunn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Logarithmenlord 2011-01-14 15:07:21 UTC
Fails to compile on system with latest 

net-libs/xulrunner-2.0_beta9_pre-r3
www-client/firefox-4.0_beta9_pre-r3

.

Reproducible: Always

Steps to Reproduce:
1. emerge google-gadgets
Comment 1 Logarithmenlord 2011-01-14 15:08:14 UTC
Created attachment 259825 [details]
The complete build.log.
Comment 2 Logarithmenlord 2011-01-14 18:52:07 UTC
I think I found the source of the problem:
Looks like as stated on
https://developer.mozilla.org/en/XPCOM/XPCOM_changes_in_Gecko_2.0
that
"Note that nsIGenericFactory.h has been removed. References to nsIGenericFactory.h should be replaced with mozilla/ModuleUtils.h."
I don't know how to do that atm, but maybe someone will be able to deliver a patch for this?
Comment 3 Logarithmenlord 2011-01-14 21:31:57 UTC
Tried downgrading to net-libs/xulrunner-1.9.2.13-r1 and successfully emerged google-gadgets, then upgraded again to net-libs/xulrunner-2.0_beta9_pre-r3 and tried starting the application with the result of a missing JavaScript function.
Comment 4 Bernard Cafarelli gentoo-dev 2011-01-19 12:10:38 UTC
Thanks for the heads-up! I've updated 0.11.2 to  depend on 1.9*, keeping this bug open if a better solution comes up (but upstream does not seem that alive)
Comment 5 Patrick McMunn 2011-08-14 17:09:26 UTC
Created attachment 283311 [details]
Build log after patching browser_child.cc
Comment 6 Patrick McMunn 2011-08-14 17:15:34 UTC
(In reply to comment #2)
> I think I found the source of the problem:
> Looks like as stated on
> https://developer.mozilla.org/en/XPCOM/XPCOM_changes_in_Gecko_2.0
> that
> "Note that nsIGenericFactory.h has been removed. References to
> nsIGenericFactory.h should be replaced with mozilla/ModuleUtils.h."
> I don't know how to do that atm, but maybe someone will be able to deliver a
> patch for this?

I created a patch for google-gadgets-for-linux-0.11.2/extensions/gtkmoz_browser_element/browser_child.cc which seemed to be the only file referencing nsIGenericFactory.h. However, upon compiling, I got the following error (in the attached build log), so it's going to need more patching/recoding that I know how to do, but maybe someone else would know how.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-03-15 02:47:37 UTC
+  15 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
+  google-gadgets-0.11.2.ebuild:
+  Remove support for xulrunner wrt bugs #351659 and #403415