Your message dated Tue, 19 May 2009 11:32:21 +0000
with message-id <[email protected]>
and subject line Bug#509252: fixed in ghc6 6.10.3-1
has caused the Debian Bug report #509252,
regarding ghc6: FTBFS on hurd-i386
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.)


-- 
509252: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509252
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ghc6
Severity: important
Tags: patch

Hello,

ghc6 currently FTBFS on hurd-i386 because there is no support there for
setitimer(ITIMER_VIRTUAL).  The attached patch was submitted upstream on
http://hackage.haskell.org/trac/ghc/ticket/2883
to autodetect such case and cope with.

Samuel

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel
 La carte réseau fournie par cybercable (sn2000) ne va-t-elle que sur
 bus isa ou peut-on aussi la mettre sur bus PCI.
 Merci de m'éclairer.
 -+- JP in le Neuneu Pète un Câble : Une carte dans chaque port -+-
diff -ur ghc6-6.8.2/configure.ac ghc6-6.8.2-mine/configure.ac
--- ghc6-6.8.2/configure.ac     2007-12-10 19:11:32.000000000 +0100
+++ ghc6-6.8.2-mine/configure.ac        2008-12-20 11:53:05.000000000 +0100
@@ -1078,6 +1078,17 @@
 dnl ** check for more functions
 dnl ** The following have been verified to be used in ghc/, but might be used 
somewhere else, too.
 AC_CHECK_FUNCS([getclock getrusage gettimeofday setitimer siginterrupt sysconf 
times ctime_r])
+AC_TRY_RUN([
+#include <sys/types.h>
+#include <sys/time.h>
+int main(void) {
+  struct itimerval tval;
+  tval.it_value.tv_sec = 1;
+  tval.it_value.tv_usec = 0;
+  tval.it_interval = tval.it_value;
+  return setitimer(ITIMER_VIRTUAL, &tval, (void*)0) != 0;
+}
+],[AC_DEFINE([HAVE_SETITIMER_VIRTUAL], [1], [Define to 1 if setitimer accepts 
ITIMER_VIRTUAL, 0 else.])])
 dnl ** On OS X 10.4 (at least), time.h doesn't declare ctime_r if
 dnl ** _POSIX_C_SOURCE is defined
 AC_CHECK_DECLS([ctime_r], , ,
diff -ur ghc6-6.8.2/configure ghc6-6.8.2-mine/configure
--- ghc6-6.8.2/configure        2007-12-10 19:27:08.000000000 +0100
+++ ghc6-6.8.2-mine/configure   2008-12-20 11:53:44.000000000 +0100
@@ -18129,6 +18129,66 @@
 fi
 done
 
+if test "$cross_compiling" = yes; then
+  { { echo "$as_me:$LINENO: error: cannot run test program while cross 
compiling
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run test program while cross compiling
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+#include <sys/types.h>
+#include <sys/time.h>
+int main(void) {
+  struct itimerval tval;
+  tval.it_value.tv_sec = 1;
+  tval.it_value.tv_usec = 0;
+  tval.it_interval = tval.it_value;
+  return setitimer(ITIMER_VIRTUAL, &tval, (void*)0) != 0;
+}
+
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SETITIMER_VIRTUAL 1
+_ACEOF
+
+else
+  echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext 
conftest.$ac_objext conftest.$ac_ext
+fi
+
+
 echo "$as_me:$LINENO: checking whether ctime_r is declared" >&5
 echo $ECHO_N "checking whether ctime_r is declared... $ECHO_C" >&6
 if test "${ac_cv_have_decl_ctime_r+set}" = set; then
diff -ur ghc6-6.8.2/mk/config.h.in ghc6-6.8.2-mine/mk/config.h.in
--- ghc6-6.8.2/mk/config.h.in   2007-12-10 19:27:08.000000000 +0100
+++ ghc6-6.8.2-mine/mk/config.h.in      2008-12-20 11:12:59.000000000 +0100
@@ -167,6 +167,9 @@
 /* Define to 1 if you have the `setitimer' function. */
 #undef HAVE_SETITIMER
 
+/* Define to 1 if setitimer accepts ITIMER_VIRTUAL, 0 else. */
+#undef HAVE_SETITIMER_VIRTUAL
+
 /* Define to 1 if you have the `siginterrupt' function. */
 #undef HAVE_SIGINTERRUPT
 
diff -ur ghc6-6.8.2/rts/posix/Itimer.c ghc6-6.8.2-mine/rts/posix/Itimer.c
--- ghc6-6.8.2/rts/posix/Itimer.c       2007-12-10 19:11:32.000000000 +0100
+++ ghc6-6.8.2-mine/rts/posix/Itimer.c  2008-12-20 11:31:53.000000000 +0100
@@ -80,7 +80,7 @@
 
 #elif defined(HAVE_SETITIMER)
 
-#  ifdef THREADED_RTS
+#  if defined(THREADED_RTS) || !defined(HAVE_SETITIMER_VIRTUAL)
 //   Oh dear, we have to use SIGALRM if there's no timer_create and
 //   we're using the THREADED_RTS.  This leads to problems, see bug #850.
 #    define ITIMER_SIGNAL  SIGALRM

--- End Message ---
--- Begin Message ---
Source: ghc6
Source-Version: 6.10.3-1

We believe that the bug you reported is fixed in the latest version of
ghc6, which is due to be installed in the Debian FTP archive:

ghc6-doc_6.10.3-1_all.deb
  to pool/main/g/ghc6/ghc6-doc_6.10.3-1_all.deb
ghc6-prof_6.10.3-1_i386.deb
  to pool/main/g/ghc6/ghc6-prof_6.10.3-1_i386.deb
ghc6_6.10.3-1.diff.gz
  to pool/main/g/ghc6/ghc6_6.10.3-1.diff.gz
ghc6_6.10.3-1.dsc
  to pool/main/g/ghc6/ghc6_6.10.3-1.dsc
ghc6_6.10.3-1_i386.deb
  to pool/main/g/ghc6/ghc6_6.10.3-1_i386.deb
ghc6_6.10.3.orig.tar.gz
  to pool/main/g/ghc6/ghc6_6.10.3.orig.tar.gz



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.
Kari Pahula <[email protected]> (supplier of updated ghc6 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, 18 May 2009 22:18:18 +0300
Source: ghc6
Binary: ghc6 ghc6-prof ghc6-doc
Architecture: source i386 all
Version: 6.10.3-1
Distribution: unstable
Urgency: low
Maintainer: Kari Pahula <[email protected]>
Changed-By: Kari Pahula <[email protected]>
Description: 
 ghc6       - GHC - the Glasgow Haskell Compilation system
 ghc6-doc   - Documentation for the Glasgow Haskell Compilation system
 ghc6-prof  - Profiling libraries for the Glasgow Haskell Compilation system
Closes: 315763 320335 460425 461323 501188 509252 512762 514085 514946 518400 
527382
Changes: 
 ghc6 (6.10.3-1) unstable; urgency=low
 .
   * New upstream release
     * GHCi uses stdio in blocking mode now. (Closes: #512762)
     * GHC can cope with missing setitimer(ITIMER_VIRTUAL) support.
       (Closes: #509252)
     * Uses haskeline instead of editline.
   * Only provide ghci and runghc on archs that support it.
     (Closes: #320335)
   * Patched compiler/utils/Binary.hs to store Ints as Int64s on 32 bit
     architectures and warn if it needed to truncate when unserialising.
   * Moved package.conf to /var/lib/ghc-$VERSION/.
   * Added a /var/lib/ghc-$VERSION/package.conf.d/ dir.
   * Set symlinks from /usr/lib/ghc-$VERSION/package.conf* to /var.
   * Don't ship generated index files in /usr/share/doc/ghc6-doc/libraries/
     and remove them in postrm. (Closes: #501188)
   * Remove any leftover index.html files in
     /usr/share/doc/ghc6-doc/html/libraries/. (Closes: #461323)
   * Bumped to debhelper compat 7 and Standards-Version 3.8.1 (no changes
     needed).
   * Section: haskell for ghc6 and ghc6-prof.
   * Fix up generated Provides for ghc6 and ghc6-doc.
     (Closes: #514085, #518400)
   * Added man pages for runghc and ghc-pkg. (Closes: #460425, #315763)
   * Removed alternative for /usr/bin/ghcprof. (Closes: #527382)
   * Build a registerised build on powerpc. (Closes: #514946)
   * Build-depend on a newer binutils on [arm armel].  Add -mlong-calls to
     gcc's flags.
   * gen_contents_index reintroduced, this time as a perl script.
   * Added /usr/share/ghc6-doc/ghc-$VERSION/desc/ for copies of package
     conf info in -doc packages.
   * Added a preinst for ghc6, to remove a package.conf file from a removed
     but not purged old version.
Checksums-Sha1: 
 fa441259ef5320034bebadfcc140e5de4d0e2007 1231 ghc6_6.10.3-1.dsc
 ea44b6121a40a3f1c490c9067794eef7a1e6b816 9057422 ghc6_6.10.3.orig.tar.gz
 cc1c84a0995b0513dab8297d39ea8200dade4d00 32930 ghc6_6.10.3-1.diff.gz
 5c51e94a290017e13c90d1002a9a407c94fd0a02 32694914 ghc6_6.10.3-1_i386.deb
 e1ea641fbb87fb738e4e2d909989b4795d4c5d8d 28136072 ghc6-prof_6.10.3-1_i386.deb
 d4fc7a67245d4344ce81ee35a8799fdb3f8264b7 4248324 ghc6-doc_6.10.3-1_all.deb
Checksums-Sha256: 
 9eccc1af72f2dad179d0ad3efc5f8c233bf073078ecc2b8325bbafd3c444509d 1231 
ghc6_6.10.3-1.dsc
 7f8dcdec52afd4d9b4487b90a79e171b48d04a7a016f388aeeb028c9b0ad2bf8 9057422 
ghc6_6.10.3.orig.tar.gz
 3902a9f82dc5174da018d83a5b4bdf325e341cac922aeba2e0a601fa450f08a5 32930 
ghc6_6.10.3-1.diff.gz
 2332f097a4d81e515c78c71664e7e47b65ec849ebab702aab86470ae2f53aa22 32694914 
ghc6_6.10.3-1_i386.deb
 f21d339bca96cb0c9d8c033ae8e42daaaeac2d5c42e360acd14d191ce044c513 28136072 
ghc6-prof_6.10.3-1_i386.deb
 5477514850d7572c4c5237ac5d742e048e8ae2218ddf3e9c53aa7d7e51738c60 4248324 
ghc6-doc_6.10.3-1_all.deb
Files: 
 7ec1f7f243051fb7cf6fd1b7d00a57df 1231 haskell optional ghc6_6.10.3-1.dsc
 1e7cdce158555f5338c170cd916f0de3 9057422 haskell optional 
ghc6_6.10.3.orig.tar.gz
 596eb8be0080bf93e3684e4b938c4426 32930 haskell optional ghc6_6.10.3-1.diff.gz
 0c4708a5505ade8728138b22bd67c9a9 32694914 haskell optional 
ghc6_6.10.3-1_i386.deb
 238d6a209cf7e0e6657ef0f7cbc6a3b2 28136072 haskell optional 
ghc6-prof_6.10.3-1_i386.deb
 825d873e587d5c7a3e24dc6bf2a166a1 4248324 doc optional ghc6-doc_6.10.3-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoShPAACgkQeYl9593Atw2XKACfXao3eH+Az8FHJoXUcPbdUzmT
jt0An1QgnvWlhiJDBClqkbbInRrxZ49e
=SU+/
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to