Fwd: IcedTea6 Mozilla plugin with OpenJDK6

Jung-uk Kim jkim at FreeBSD.org
Fri Sep 17 04:21:17 UTC 2010


On Friday 10 September 2010 03:42 am, Beat Gaetzi wrote:
> On 10.09.2010 00:28, Jung-uk Kim wrote:
> > While I was porting a Mozilla plugin, I found something
> > disturbing:
> >
> > %pkg-config --modversion mozilla-plugin
> > 1.9.2.8
> > %pkg-config --cflags mozilla-plugin
> > -DXP_UNIX -I/usr/local/include/libxul/stable
> > %ls -dl /usr/local/include/libxul/stable/
> > ls: /usr/local/include/libxul/stable/: No such file or directory
> > %pkg_info -W /usr/local/libdata/pkgconfig/mozilla-plugin.pc
> > /usr/local/libdata/pkgconfig/mozilla-plugin.pc was installed by
> > package libxul-1.9.2.8 %pkg-config --cflags libxul
> > -fshort-wchar -I/usr/local/include/libxul
> > -I/usr/local/include/nspr %ls -dl /usr/local/include/libxul/
> > drwxr-xr-x  11 root  wheel  56832 Aug  9 16:21
> > /usr/local/include/libxul/
> >
> > As you can see, --cflags returns a nonexistent directory for
> > mozilla-plugin package.  It returns the correct directory for
> > libxul, though.  As a workaround, I had to do this:
> >
> > # XXX Need to fix in ports.
> > CFLAGS+=	${PLUGIN_CFLAGS:C/\/libxul\/stable/\/libxul/}
> >
> > Can anyone explain what's going on here?
>
> The stable and unstable include directories no longer exists with
> libxul 1.9.2. I don't know why the stable directory is still listed
> in the mozilla-plugin.pc file. Should we add this substitution to
> the libxul port?

Please see the attached patch.  It seems this is the only file that 
references include/libxul/stable now.

Thanks,

Jung-uk Kim
-------------- next part --------------
--- xulrunner/installer/mozilla-plugin.pc.in.orig	2010-08-24 18:19:38.000000000 -0400
+++ xulrunner/installer/mozilla-plugin.pc.in	2010-09-16 22:02:35.000000000 -0400
@@ -5,5 +5,4 @@
 Name: Mozilla Plug-In API
 Description: Mozilla Plug-In API
 Version: %MOZILLA_VERSION%
-Cflags: -I${includedir}/stable -DXP_UNIX %ojidef%
-
+Cflags: -I${includedir} -DXP_UNIX %ojidef%


More information about the freebsd-gecko mailing list