Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Aug 2005 03:33:19 -0500
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Mikhail Teterin" <mi+mx@aldan.algebra.com>
Cc:        gnome@freebsd.org
Subject:   Re: leaner and even meaner firefox
Message-ID:  <op.su00ptlr9aq2h7@mezz.mezzweb.com>
In-Reply-To: <op.su0qt5kf9aq2h7@mezz.mezzweb.com>
References:  <200508041742.33580.mi%2Bmx@aldan.algebra.com> <200508041946.46147.mi%2Bmx@aldan.algebra.com> <op.su0cxsn49aq2h7@mezz.mezzweb.com> <200508042011.35369.mi%2Bmx@aldan.algebra.com> <op.su0dtmxe9aq2h7@mezz.mezzweb.com> <op.su0et7x09aq2h7@mezz.mezzweb.com> <op.su0pgvfa9aq2h7@mezz.mezzweb.com> <op.su0qt5kf9aq2h7@mezz.mezzweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 04 Aug 2005 23:59:55 -0500, Jeremy Messenger <mezz7@cox.net> wrote:

> On Thu, 04 Aug 2005 23:30:21 -0500, Jeremy Messenger <mezz7@cox.net>  
> wrote:
>
>> On Thu, 04 Aug 2005 19:40:45 -0500, Jeremy Messenger <mezz7@cox.net>  
>> wrote:
>>
>>> On Thu, 04 Aug 2005 19:18:48 -0500, Jeremy Messenger <mezz7@cox.net>  
>>> wrote:
>>>

<snip>

>>> I have found another problem. I can't build epiphany with this new  
>>> change.
>>>
>>> =======================================
>>> checking which mozilla to use... firefox
>>> checking for firefox-gtkmozembed >= 0.10 firefox-xpcom >= 0.10...  
>>> gnome-config: not found
>>> gnome-config: not found
>>> Package firefox-nspr was not found in the pkg-config search path.  
>>> Perhaps you should add the directory containing `firefox-nspr.pc' to  
>>> the PKG_CONFIG_PATH environment variable Package 'firefox-nspr',  
>>> required by 'XPCOM', not found
>>> configure: error: Library requirements (firefox-gtkmozembed >= 0.10  
>>> firefox-xpcom >= 0.10) not met; consider adjusting the PKG_CONFIG_PATH  
>>> environment variable if your libraries are in a nonstandard prefix so  
>>> pkg-config can find them.
>>> ===>  Script "configure" failed unexpectedly.
>>> =======================================
>>>
>>> We don't have nspr.pc anymore if we use with your firefox patch. Maybe  
>>> nspr port needs to install nspr.pc then add a hack to teach for  
>>> nspr.pc in each ports, not *-nspr.pc. Or another better way if anyone  
>>> find.
>>>
>>> =======================================
>>> # find /usr -name \*nspr.pc
>>> [...empty...]
>>> =======================================
>>
>> Here is add nspr.pc patch:  
>> http://people.freebsd.org/~mezz/diff/nspr.diff
>>
>> I will put it in MarcusCom CVS in ports-stable module soon.
>
> Many emails, but it's my last for tonight... I have fixed the epiphany  
> build if I edit in firefox-xpcom.pc like this:
>
> -Requires: firefox-nspr = 1.0.6
> +Requires: nspr >= 4.6.0
>
> I put 4.6.0, because I have no idea if previous version will work. At  
> least, we don't have to hack in epiphany, but might need to check other  
> ports to make sure they do or don't need to hack.

I couldn't sleep, so I quickly modified Makefile. It can build with  
epiphany and yelp so far in my test. Here's what I did:

=======================================
@@ -213,7 +218,8 @@
  	${ECHO_CMD} @dirrm lib/firefox >> ${PLIST}
  	for pcfile in ${PKGCONFIG_FILES}; do \
  		${REINPLACE_CMD} -e 's|${FIREFOX}-${FF_VER}|${FIREFOX}|g; \
-			s|${FAKEDIR}|${PREFIX}|' \
+			s|${FAKEDIR}|${PREFIX}|g ; \
+			s|firefox-nspr = ${FF_VER}|nspr >= 4.6.0|g' \
  			${FAKEDIR}/lib/pkgconfig/$${pcfile}.pc ; \
  		${ECHO_CMD} libdata/pkgconfig/$${pcfile}.pc >> ${PLIST} ; \
  	done
=======================================

Updated patch: http://people.freebsd.org/~mezz/diff/firefox.diff

Please let me know if it looks good to you, then I can add in MC's  
ports-stable. I will ask my team to review too, since it's not normal for  
me to work with any of gecko-based browser ports.

Cheers,
Mezz

> Cheers,
> Mezz
>
>> Cheers,
>> Mezz
>>
>>> BTW: update firefox patch:  
>>> http://people.freebsd.org/~mezz/diff/firefox.diff
>>>
>>> Cheers,
>>> Mezz


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.su00ptlr9aq2h7>