<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>169825</bug_id>
          
          <creation_ts>2007-03-07 20:52 0000</creation_ts>
          <short_desc>mozilla fixes needed for Gentoo/FreeBSD.</short_desc>
          <delta_ts>2007-03-09 11:47:06 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo/Alt</product>
          <component>FreeBSD</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>FreeBSD</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>the_paya@gentoo.org</reporter>
          <assigned_to>bsd@gentoo.org</assigned_to>
          <cc>mozilla@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>the_paya@gentoo.org</who>
            <bug_when>2007-03-07 20:52:22 0000</bug_when>
            <thetext>This patch is needed for mozilla-firefox/thunderbird &gt;=2, seamonkey &gt;=1.1.1 and maybe anything that builds from mozilla sources on Gentoo/FreeBSD for them to compile and work properly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>the_paya@gentoo.org</who>
            <bug_when>2007-03-07 20:53:03 0000</bug_when>
            <thetext>Created an attachment (id=112468)
mozilla-fbsd.patch

The patch is made for firefox but applies with some fuzz to seamonkey.
I haven&apos;t tested it yet against thunderbird but it should apply there as well (and it&apos;s needed there too)
By the way, no harm done to linux since these modifications only appear inside FreeBSD conditionals.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-03-07 21:28:17 0000</bug_when>
            <thetext>(In reply to comment #1)
Yes, most of the patches apply for all the mozilla products(and if they only touch configures or makefiles they can be applied to all products, as they use the same crap build system for all of them). 

Btw the patch to nsprpub is not needed, as we don&apos;t use the included nspr/nss. How is that nss worked without patching it? Or i am missing something? 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>the_paya@gentoo.org</who>
            <bug_when>2007-03-07 21:33:31 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Btw the patch to nsprpub is not needed, as we don&apos;t use the included nspr/nss.
&gt; How is that nss worked without patching it? Or i am missing something? 
&gt; 

I grepped for configure.in&apos;s that would set _PTHREAD_LDFLAGS to -lc_r on FreeBSD, nss didn&apos;t showed in the grep, and the resulting binaries don&apos;t show libc_r.so running a scanelf -nR on the installed files, just like in vanilla freebsd.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-03-07 22:52:35 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; I grepped for configure.in&apos;s that would set _PTHREAD_LDFLAGS to -lc_r on
&gt; FreeBSD, nss didn&apos;t showed in the grep, and the resulting binaries don&apos;t show
&gt; libc_r.so running a scanelf -nR on the installed files, just like in vanilla
&gt; freebsd.
&gt; 

I meant nspr :) What about without applying the nspr patch? Still works?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>the_paya@gentoo.org</who>
            <bug_when>2007-03-08 03:34:22 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; 
&gt; I meant nspr :) What about without applying the nspr patch? Still works?
&gt; 

Hmm IIRC I still missed -lpthread in some places and the build failed by just patching the main configure.in, that&apos;s why (then) I looked for other places where it might be needed and nsprpub/configure.in came up.
Anyway, the whole patch is just fixing *very* outdated(2003/2004?) checks, I think it&apos;s fine to apply it to both files.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-03-09 11:47:06 0000</bug_when>
            <thetext>Fixed in:
mozilla-firefox 2.0.0.2, patchset 2.0.0.2-0.5
mozilla-thunderbird 2.0_beta2, patchset 2.0_beta2-0.4
seamonkey 1.1.1, patchset 1.1.1-0.2
mozilla-sunbird 0.3.1, patchset 0.3.1-0.2
xulrunner 1.8.0.4, patchset 1.8.0.4-1.0

Happy keywording!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>112468</attachid>
            <date>2007-03-07 20:53 0000</date>
            <desc>mozilla-fbsd.patch</desc>
            <filename>mozilla-fbsd.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG1vemlsbGEvY29uZmlnL3J1bGVzLm1rLm9yaWcJVGh1IFNlcCAxNCAxNDowNzowMyAyMDA2
CisrKyBtb3ppbGxhL2NvbmZpZy9ydWxlcy5tawlXZWQgT2N0IDE4IDExOjAwOjA5IDIwMDYKQEAg
LTQ0Miw5ICs0NDIsNyBAQAogZW5kaWYKIAogaWZlcSAoJChPU19BUkNIKSxGcmVlQlNEKQotaWZk
ZWYgSVNfQ09NUE9ORU5UCi1FWFRSQV9EU09fTERPUFRTICs9IC1XbCwtQnN5bWJvbGljCi1lbmRp
ZgorRVhUUkFfRFNPX0xET1BUUyArPSAtV2wsLUJzeW1ib2xpYyAtbGMKIGVuZGlmCiAKIGlmZXEg
KCQoT1NfQVJDSCksTmV0QlNEKQotLS0gbW96aWxsYS9jb25maWd1cmUuaW4ub3JpZwkyMDA3LTAy
LTA2IDAyOjM3OjM3IC0wMzAwCisrKyBtb3ppbGxhL2NvbmZpZ3VyZS5pbgkyMDA3LTAzLTA3IDE1
OjM1OjQxIC0wMzAwCkBAIC0yNjY3LDcgKzI2NjcsNyBAQAogKi1ocHV4MTEuKikKIAk7OwogKikK
LQlBQ19DSEVDS19MSUIoY19yLCBnZXRob3N0YnluYW1lX3IpCisJQUNfU0VBUkNIX0xJQlMoW2dl
dGhvc3RieW5hbWVfcl0sIFtjX3JdKQogCTs7CiBlc2FjCiBBQ19DSEVDS19MSUIob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RSQU5U
KQogCSAgICBBQ19ERUZJTkUoX1RIUkVBRF9TQUZFKQotCSAgICBkbmwgLXB0aHJlYWQgbGlua3Mg
aW4gLWxjX3IsIHNvIGRvbid0IHNwZWNpZnkgaXQgZXhwbGljaXRseS4KLQkgICAgaWYgdGVzdCAi
JGFjX2N2X2hhdmVfZGFzaF9wdGhyZWFkIiA9ICJ5ZXMiOyB0aGVuCi0JICAgICAgICBfUFRIUkVB
RF9MREZMQUdTPSItcHRocmVhZCIKKwkgICAgZG5sIHVzZSB0aGUgZW52aXJvbm1lbnQgUFRIUkVB
RF9MSUJTCisJICAgIGlmIHRlc3QgLW4gIiRQVEhSRUFEX0xJQlMiOyB0aGVuCisJCV9QVEhSRUFE
X0xERkxBR1M9IiRQVEhSRUFEX0xJQlMiCiAJICAgIGVsc2UKLQkgICAgICAgIF9QVEhSRUFEX0xE
RkxBR1M9Ii1sY19yIgorCSAgICAgICAgX1BUSFJFQURfTERGTEFHUz0iLWxwdGhyZWFkIgogCSAg
ICBmaQorCQlMREZMQUdTPSIke19QVEhSRUFEX0xERkxBR1N9ICR7TERGTEFHU30iCiAJICAgIDs7
CiAgICAgKi1uZXRic2QqKQo=
</data>        

          </attachment>
    </bug>

</bugzilla>