Your message dated Mon, 29 Jun 2009 21:37:38 +0000
with message-id <[email protected]>
and subject line Bug#535119: fixed in stlport5.2 5.2.1-5
has caused the Debian Bug report #535119,
regarding stlport5.2: FTBFS on GNU/kFreeBSD
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
535119: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535119
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: stlport5.2
Severity: important
Version: 5.2.1-3
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD due to
mis-detection of float/double/long double support.
Please find attached patch with needed change
sed s/__linux__/__GLIBC__/
This support should not depend on kernel but
on the libc implementation and compiler.
It would also be nice if you can ask upstream
to include this change.
Thanks in advance
Petr--- stlport5.2-5.2.1.orig/src/num_get_float.cpp
+++ stlport5.2-5.2.1/src/num_get_float.cpp
@@ -27,7 +27,7 @@
# include <stdint.h>
#endif
-#if defined (__linux__) || defined (__MINGW32__) || defined (__CYGWIN__) || \
+#if defined (__GLIBC__) || defined (__MINGW32__) || defined (__CYGWIN__) || \
defined (__BORLANDC__) || defined (__DMC__) || defined (__HP_aCC)
# if defined (__BORLANDC__)
@@ -50,7 +50,7 @@
} i32;
};
-# if defined (__linux__)
+# if defined (__GLIBC__)
# include <ieee754.h>
# else
union ieee854_long_double {
@@ -135,7 +135,7 @@
high = u1 * v1 + w2 + (x >> 32);
}
-#ifndef __linux__
+#ifndef __GLIBC__
# define bit11 ULL(0x7ff)
# define exponent_mask (bit11 << 52)
@@ -148,7 +148,7 @@
void _Stl_set_exponent(uint64 &val, uint64 exp)
{ val = (val & ~exponent_mask) | ((exp & bit11) << 52); }
-#endif // __linux__
+#endif // __GLIBC__
/* Power of ten fractions for tenscale*/
/* The constants are factored so that at most two constants
@@ -323,7 +323,7 @@
// Third argument is base-10 exponent.
/* IEEE representation */
-#if !defined (__linux__)
+#if !defined (__GLIBC__)
union _Double_rep {
uint64 ival;
@@ -475,7 +475,7 @@
#endif
-#if defined (__linux__) || defined (__MINGW32__) || defined (__CYGWIN__) || \
+#if defined (__GLIBC__) || defined (__MINGW32__) || defined (__CYGWIN__) || \
defined (__BORLANDC__) || defined (__DMC__) || defined (__HP_aCC)
template <class D, class IEEE, int M, int BIAS>
@@ -638,9 +638,9 @@
return v.d;
}
-#endif // __linux__
+#endif // __GLIBC__
-#ifndef __linux__
+#ifndef __GLIBC__
static double _Stl_string_to_double(const char *s) {
typedef numeric_limits<double> limits;
const int max_digits = limits::digits10 + 2;
@@ -741,7 +741,7 @@
#endif
-#if defined (__linux__) || defined (__MINGW32__) || defined (__CYGWIN__) || \
+#if defined (__GLIBC__) || defined (__MINGW32__) || defined (__CYGWIN__) || \
defined (__BORLANDC__) || defined (__DMC__) || defined (__HP_aCC)
template <class D, class IEEE, int M, int BIAS>
@@ -839,12 +839,12 @@
return Negate ? -x : x;
}
-#endif // __linux__
+#endif // __GLIBC__
void _STLP_CALL
__string_to_float(const __iostring& v, float& val)
{
-#if !defined (__linux__)
+#if !defined (__GLIBC__)
val = (float)_Stl_string_to_double(v.c_str());
#else
val = (float)_Stl_string_to_doubleT<double,ieee754_double,12,IEEE754_DOUBLE_BIAS>(v.c_str());
@@ -854,7 +854,7 @@
void _STLP_CALL
__string_to_float(const __iostring& v, double& val)
{
-#if !defined (__linux__)
+#if !defined (__GLIBC__)
val = _Stl_string_to_double(v.c_str());
#else
val = _Stl_string_to_doubleT<double,ieee754_double,12,IEEE754_DOUBLE_BIAS>(v.c_str());
@@ -864,7 +864,7 @@
#if !defined (_STLP_NO_LONG_DOUBLE)
void _STLP_CALL
__string_to_float(const __iostring& v, long double& val) {
-#if !defined (__linux__) && !defined (__MINGW32__) && !defined (__CYGWIN__) && \
+#if !defined (__GLIBC__) && !defined (__MINGW32__) && !defined (__CYGWIN__) && \
!defined (__BORLANDC__) && !defined (__DMC__) && !defined (__HP_aCC)
//The following function is valid only if long double is an alias for double.
_STLP_STATIC_ASSERT( sizeof(long double) <= sizeof(double) )
--- End Message ---
--- Begin Message ---
Source: stlport5.2
Source-Version: 5.2.1-5
We believe that the bug you reported is fixed in the latest version of
stlport5.2, which is due to be installed in the Debian FTP archive:
libstlport5.2-dbg_5.2.1-5_amd64.deb
to pool/main/s/stlport5.2/libstlport5.2-dbg_5.2.1-5_amd64.deb
libstlport5.2-dev_5.2.1-5_amd64.deb
to pool/main/s/stlport5.2/libstlport5.2-dev_5.2.1-5_amd64.deb
libstlport5.2_5.2.1-5_amd64.deb
to pool/main/s/stlport5.2/libstlport5.2_5.2.1-5_amd64.deb
stlport5.2_5.2.1-5.diff.gz
to pool/main/s/stlport5.2/stlport5.2_5.2.1-5.diff.gz
stlport5.2_5.2.1-5.dsc
to pool/main/s/stlport5.2/stlport5.2_5.2.1-5.dsc
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Torsten Werner <[email protected]> (supplier of updated stlport5.2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 29 Jun 2009 22:39:00 +0200
Source: stlport5.2
Binary: libstlport5.2-dev libstlport5.2 libstlport5.2-dbg
Architecture: source amd64
Version: 5.2.1-5
Distribution: unstable
Urgency: low
Maintainer: Torsten Werner <[email protected]>
Changed-By: Torsten Werner <[email protected]>
Description:
libstlport5.2 - STLport C++ class library
libstlport5.2-dbg - STLport C++ class library debug symbols
libstlport5.2-dev - STLport C++ class library
Closes: 535119
Changes:
stlport5.2 (5.2.1-5) unstable; urgency=low
.
* Enhance patch kfreebsd.diff thanks to Petr Salinger. (Closes: #535119)
Checksums-Sha1:
3c220c3e4a8ba8a938c9cbae01a9b05b9ced7b2d 1270 stlport5.2_5.2.1-5.dsc
478c5a21c36dfb2c7825bcb635b651be1bb867f5 16555 stlport5.2_5.2.1-5.diff.gz
e0de10c061ba9d45f70937372fe85d3156167b70 840184
libstlport5.2-dev_5.2.1-5_amd64.deb
a328aefc0cb49d986be6e17f92d4dc1d2d64c54f 210454 libstlport5.2_5.2.1-5_amd64.deb
156afeb89aae32b567eed210a4a4efadfc425979 982268
libstlport5.2-dbg_5.2.1-5_amd64.deb
Checksums-Sha256:
cadc52b8316cc17d7f13f4fb0409d10e324e1f286c50893b19b3e98167dd8bff 1270
stlport5.2_5.2.1-5.dsc
eeff9e66f19b1b2cb267ef2f90bec933e956fae8a69738e295b6af0e26005f76 16555
stlport5.2_5.2.1-5.diff.gz
e3f49558b9042835017aa34d4d89019a056726ad8e9a8e0211cda7f1bba7e122 840184
libstlport5.2-dev_5.2.1-5_amd64.deb
608c07efe3df8efcf3fc63920abc793fc2a6c5cb99d03b18218ae59a212c39d1 210454
libstlport5.2_5.2.1-5_amd64.deb
b6c31463b4cfa2d26433382fc39d761f6bce6b0adb1a4df4b9b80b8ecd38d4be 982268
libstlport5.2-dbg_5.2.1-5_amd64.deb
Files:
2069a8e35221beae83c1cfc136029e10 1270 devel optional stlport5.2_5.2.1-5.dsc
097c95cebf5fd348e32192806631d12f 16555 devel optional
stlport5.2_5.2.1-5.diff.gz
f174e7a1c4f00752c77355c975fb6117 840184 libdevel optional
libstlport5.2-dev_5.2.1-5_amd64.deb
f67a0c409b88141a50c974479c5479b6 210454 libs optional
libstlport5.2_5.2.1-5_amd64.deb
6a918c638a9cc49309d3427c79ad1120 982268 debug extra
libstlport5.2-dbg_5.2.1-5_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkpJKJMACgkQfY3dicTPjsMVMgCgkudcSLGGPedSohtddduDWaY6
tvEAn0OqRq8dEPrTMgLp2MYbj2Sbkbzj
=KXtQ
-----END PGP SIGNATURE-----
--- End Message ---