pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/47722: devel/xulrunner DragonFly i386 no matching function for call to 'NS_MIN(int64_t&, __gnu_cxx::__enable_if<true, double>::__type)'
The following reply was made to PR pkg/47722; it has been noted by GNATS.
From: David Shao <davshao%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/47722: devel/xulrunner DragonFly i386 no matching function
for call to 'NS_MIN(int64_t&, __gnu_cxx::__enable_if<true, double>::__type)'
Date: Sun, 14 Apr 2013 19:20:23 -0700
--047d7b450a22301e8f04da5ce523
Content-Type: text/plain; charset=UTF-8
An alternate patch has already been submitted. The following change to set
an explicit cast for one value in one file builds and installs
devel/xulrunner 20.0.1 on DragonFly 3.5-DEVELOPMENT i386 and x86_64:
diff --git a/devel/xulrunner/distinfo b/devel/xulrunner/distinfo
index 918a812..c0babee 100644
--- a/devel/xulrunner/distinfo
+++ b/devel/xulrunner/distinfo
@@ -62,3 +62,4 @@ SHA1 (patch-xn) = c042e39d93706934ec03c78be3dc6e224ac62c0e
SHA1 (patch-xo) = aae6107dcfaf731bd3e9962d953fb8701fc5f163
SHA1 (patch-xpcom_Makefile.in) = e5f77ed56ed4ad26a08a67085e3dfec0e7af3fa6
SHA1 (patch-xpcom_ds_TimeStamp.h) =
a1fb060f91720eb330f102b28d9373bbdbe96e30
+SHA1 (patch-xpcom_io_nsMultiplexInputStream.cpp) =
83a16fd2af54aee4dfed51e2d886c810460a8170
diff --git
a/devel/xulrunner/patches/patch-xpcom_io_nsMultiplexInputStream.cpp
b/devel/xulrunner/patches/patch-xpcom_io_nsMultiplexInputStream.cpp
new file mode 100644
index 0000000..da67d51
--- /dev/null
+++ b/devel/xulrunner/patches/patch-xpcom_io_nsMultiplexInputStream.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- xpcom/io/nsMultiplexInputStream.cpp.orig 2013-04-14
18:26:30.680513000 +0000
++++ xpcom/io/nsMultiplexInputStream.cpp
+@@ -529,7 +529,7 @@ nsMultiplexInputStream::Seek(int32_t aWh
+ rv = stream->Tell(&avail);
+ NS_ENSURE_SUCCESS(rv, rv);
+
+- int64_t newPos = streamPos + NS_MIN(avail,
std::abs(remaining));
++ int64_t newPos = streamPos + NS_MIN(avail,
(int64_t)std::abs(remaining));
+
+ rv = stream->Seek(NS_SEEK_END, -newPos);
+ NS_ENSURE_SUCCESS(rv, rv);
--047d7b450a22301e8f04da5ce523
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">An alternate patch has already been submitted.=C2=A0 The f=
ollowing change to set an explicit cast for one value in one file builds an=
d installs devel/xulrunner 20.0.1 on DragonFly 3.5-DEVELOPMENT i386 and x86=
_64:<br>
<br>diff --git a/devel/xulrunner/distinfo b/devel/xulrunner/distinfo<br>ind=
ex 918a812..c0babee 100644<br>--- a/devel/xulrunner/distinfo<br>+++ b/devel=
/xulrunner/distinfo<br>@@ -62,3 +62,4 @@ SHA1 (patch-xn) =3D c042e39d937069=
34ec03c78be3dc6e224ac62c0e<br>
=C2=A0SHA1 (patch-xo) =3D aae6107dcfaf731bd3e9962d953fb8701fc5f163<br>=C2=
=A0SHA1 (patch-xpcom_Makefile.in) =3D e5f77ed56ed4ad26a08a67085e3dfec0e7af3=
fa6<br>=C2=A0SHA1 (patch-xpcom_ds_TimeStamp.h) =3D a1fb060f91720eb330f102b2=
8d9373bbdbe96e30<br>
+SHA1 (patch-xpcom_io_nsMultiplexInputStream.cpp) =3D 83a16fd2af54aee4dfed5=
1e2d886c810460a8170<br>diff --git a/devel/xulrunner/patches/patch-xpcom_io_=
nsMultiplexInputStream.cpp b/devel/xulrunner/patches/patch-xpcom_io_nsMulti=
plexInputStream.cpp<br>
new file mode 100644<br>index 0000000..da67d51<br>--- /dev/null<br>+++ b/de=
vel/xulrunner/patches/patch-xpcom_io_nsMultiplexInputStream.cpp<br>@@ -0,0 =
+1,13 @@<br>+$NetBSD$<br>+<br>+--- xpcom/io/nsMultiplexInputStream.cpp.orig=
=C2=A0=C2=A0=C2=A0 2013-04-14 18:26:30.680513000 +0000<br>
++++ xpcom/io/nsMultiplexInputStream.cpp<br>+@@ -529,7 +529,7 @@ nsMultiple=
xInputStream::Seek(int32_t aWh<br>+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 rv =3D stream->Tell(&avail);<br>+=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 NS_ENSURE_SUCCESS(rv, rv);<br>+ <br>
+-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 int64_t newPos =3D streamPos + N=
S_MIN(avail, std::abs(remaining));<br>++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 int64_t newPos =3D streamPos + NS_MIN(avail, (int64_t)std::abs(remai=
ning));<br>+ <br>+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rv =3D stre=
am->Seek(NS_SEEK_END, -newPos);<br>
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 NS_ENSURE_SUCCESS(rv, rv);=
<br></div>
--047d7b450a22301e8f04da5ce523--
Home |
Main Index |
Thread Index |
Old Index