Commit 65feb21e authored by Clint Adams's avatar Clint Adams

haskell-unix-time: New upstream version 0.2.0.

parent 0fd0033a
haskell-unix-time (0.2.0-1) unstable; urgency=low
* New upstream version.
* Enable tests on all architectures now that they have changed.
-- Clint Adams <clint@debian.org> Tue, 17 Sep 2013 12:00:16 -0400
haskell-unix-time (0.1.2-4) unstable; urgency=low
* Only enable tests on architectures with GHCi, due to use of Template
......
......@@ -8,9 +8,9 @@ Build-Depends: debhelper (>= 9)
, cdbs
, ghc
, ghc-prof
, libghc-hspec-expectations-dev [any-amd64 any-i386 powerpc sparc]
, libghc-test-framework-hunit-dev [any-amd64 any-i386 powerpc sparc]
, libghc-test-framework-th-prime-dev [any-amd64 any-i386 powerpc sparc]
, libghc-hspec-dev (>> 1.5)
, libghc-quickcheck2-dev
, libghc-doctest-dev (>> 0.9.3)
Build-Depends-Indep: ghc-doc
Standards-Version: 3.9.4
Homepage: http://hackage.haskell.org/package/unix-time
......
Description: Define _GNU_SOURCE for strptime_l
Without this we get -Wimplicit-function-declaration warnings from GCC on
non-Linux glibc-based architectures.
Author: Colin Watson <cjwatson@debian.org>
Forwarded: https://github.com/kazu-yamamoto/unix-time/pull/11
Last-Update: 2013-06-15
Index: b/cbits/conv.c
===================================================================
--- a/cbits/conv.c
+++ b/cbits/conv.c
@@ -7,6 +7,7 @@
#define _BSD_SOURCE
#elif HAVE_STRPTIME_L
#define THREAD_SAFE 1
+#define _GNU_SOURCE
#else
#define THREAD_SAFE 0
#endif
Description: Pass a valid locale name to newlocale
FreeBSD libc treats a NULL second argument to newlocale as equivalent to
"C", but glibc returns an error in that case, causing a segfault shortly
afterwards when passing a NULL locale to strftime_l/strptime_l.
Author: Colin Watson <cjwatson@debian.org>
Forwarded: https://github.com/kazu-yamamoto/unix-time/pull/11
Last-Update: 2013-06-15
Index: b/cbits/conv.c
===================================================================
--- a/cbits/conv.c
+++ b/cbits/conv.c
@@ -21,7 +21,7 @@
locale_t c_locale = NULL;
void init_locale() {
- if (c_locale == NULL) c_locale = newlocale(LC_TIME_MASK, NULL, NULL);
+ if (c_locale == NULL) c_locale = newlocale(LC_TIME_MASK, "C", NULL);
}
#else
void init_locale() {
implicit-declaration.patch
pass-valid-locale-name-to-newlocale.patch
#!/usr/bin/make -f
DEB_ENABLE_TESTS = $(shell test -e /usr/lib/ghc/bin/ghci && echo yes)
DEB_ENABLE_TESTS = yes # $(shell test -e /usr/lib/ghc/bin/ghci && echo yes)
# the test suite assumes it's being run under Japan Standard Time
export TZ = Etc/GMT-9
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment