Building gnash with USE="nsplugin" against xulrunner-1.9.0 will fail because it looks for nsISupports.idl in /usr/share/idl/xulrunner-1.9/unstable, a directory which only exists since xulrunner-1.9.1. Previous versions had idl files in /usr/include/xulrunner-1.9/idl/unstable. Reproducible: Always Steps to Reproduce: 1. emerge =net-libs/xulrunner-1.9.0* 2. USE="nsplugin" emerge =www-plugins/gnash-0.8.5 Actual Results: /usr/lib64/xulrunner-1.9/bin/xpidl -m typelib -v -I/usr/share/idl/xulrunner-1.9/unstable -I/usr/include/nspr iGnashComponent.idl /usr/lib64/xulrunner-1.9/bin/xpidl -m header -v -I/usr/share/idl/xulrunner-1.9/unstable -I/usr/include/nspr iGnashComponent.idl ./iGnashComponent.idl:19: can't open included file nsISupports.idl for reading Expected Results: Use idl from /usr/include/xulrunner-1.9/idl/unstable or depend on >=net-libs/xulrunner-1.9.1 This seems to be a regression from gnash-0.8.4
Culprit is macros/xpcom.m4:105, they hard-code the share/idl portion of the path there.
Created attachment 203537 [details, diff] gnash-0.8.5-xpcom-idldir.patch Use pkgconfig to determine XPCOM_IDL_DIR instead of non-portable construct. Fixes building against xulrunner-1.9.0, thanks to RB for giving the pointer.
@Chi-Thanh: The patch seems to be correct, hey thanks :) it's cool to help to debug this .... (as you can see yourself) there are some ugly stuffs in their autotools. Okay, RB could you try this patch ? (with <xulrunner-1.9.1 if possible) thanks in advance
I can confirm the patch fixes the issue against net-libs/xulrunner-1.9.0.13.
well perfect, I'll commit it :)
+09 Sep 2009; Romain Perier <mrpouet@gentoo.org> + gnash-0.8.5.ebuild, +files/gnash-0.8.5-xpcom-idldir.patch: + Fix bug #284073, Use pkgconfig to determine XPCOM_IDL_DIR instead of + non-portable construct which fix building against xulrunner-1.9.0, many + thanks to Chi-Thanh Christopher Nguyen <chithanh@cs.tu-berlin.de>, Add + >=sys-devel/libtool-2 in RDEPEND (not portable to libtool-1). Thanks into the main tree without a bump, many thanks for your help ;)
> Thanks into the main tree without a bump, many thanks for your help ;) > s/Thanks/Fixed/ ;)