[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#646372: marked as done (ocaml: Lacks support for ENOTSUP)



Your message dated Tue, 01 Nov 2011 13:33:47 +0000
with message-id <E1RLETL-0000FN-11@franck.debian.org>
and subject line Bug#646372: fixed in ocaml 3.12.1-1
has caused the Debian Bug report #646372,
regarding ocaml: Lacks support for ENOTSUP
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 owner@bugs.debian.org
immediately.)


-- 
646372: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646372
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: ocaml
Version: 3.12.0-7
Severity: normal
Tags: upstream patch

Hello,

http://caml.inria.fr/mantis/view.php?id=5382

“
On some systems such as Solaris or GNU/Hurd, ENOTSUP and EOPNOSUPP do
not have the same value, but ocaml code only deals with EOPNOSUPP, and
thus ocaml applications only handle the EOPNOSUPP case. The attached
patch fixes it by making ocaml convert ENOTSUP errors into EOPNOSUPP
errors.
”

This patch fixes omake build on hurd-i386.

Samuel

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

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

Versions of packages ocaml depends on:
ii  libx11-dev                      2:1.4.4-2
ii  ocaml-base [ocaml-base-3.12.0]  3.12.0-7 
ii  ocaml-nox [ocaml-nox-3.12.0]    3.12.0-7 

ocaml recommends no packages.

Versions of packages ocaml suggests:
ii  tcl8.5-dev  8.5.10-1
ii  tk8.5-dev   8.5.10-1

-- no debconf information

-- 
Samuel Thibault <samuel.thibault@fnac.net>
 RM> Mauvais OS, changer d'OS (c)(r)(tm)
 J'ai windows 98 et comment faire pour changer l'os de windows 98?
 Dans ajout et suppression du programme et il ne parle pas d'os.
 -+- DN in : GNU -+- L'O.S. est las, hélas, c'est là qu'est l'os -+-
--- ./otherlibs/unix/unixsupport.c.original	2011-10-23 17:57:40.000000000 +0200
+++ ./otherlibs/unix/unixsupport.c	2011-10-23 18:09:09.000000000 +0200
@@ -165,7 +165,11 @@
 #define ESOCKTNOSUPPORT (-1)
 #endif
 #ifndef EOPNOTSUPP
-#define EOPNOTSUPP (-1)
+#  ifdef ENOTSUP
+#    define EOPNOTSUPP ENOTSUP
+#  else
+#    define EOPNOTSUPP (-1)
+#  endif
 #endif
 #ifndef EPFNOSUPPORT
 #define EPFNOSUPPORT (-1)
@@ -252,6 +256,11 @@
   int errconstr;
   value err;
 
+#if defined(ENOTSUP) && (EOPNOTSUPP != ENOTSUP)
+  if (errcode == ENOTSUP)
+    errcode = EOPNOTSUPP;
+#endif
+
   errconstr =
       cst_to_constr(errcode, error_table, sizeof(error_table)/sizeof(int), -1);
   if (errconstr == Val_int(-1)) {

--- End Message ---
--- Begin Message ---
Source: ocaml
Source-Version: 3.12.1-1

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

camlp4-extra_3.12.1-1_amd64.deb
  to main/o/ocaml/camlp4-extra_3.12.1-1_amd64.deb
camlp4_3.12.1-1_amd64.deb
  to main/o/ocaml/camlp4_3.12.1-1_amd64.deb
ocaml-base-nox_3.12.1-1_amd64.deb
  to main/o/ocaml/ocaml-base-nox_3.12.1-1_amd64.deb
ocaml-base_3.12.1-1_amd64.deb
  to main/o/ocaml/ocaml-base_3.12.1-1_amd64.deb
ocaml-compiler-libs_3.12.1-1_amd64.deb
  to main/o/ocaml/ocaml-compiler-libs_3.12.1-1_amd64.deb
ocaml-interp_3.12.1-1_amd64.deb
  to main/o/ocaml/ocaml-interp_3.12.1-1_amd64.deb
ocaml-mode_3.12.1-1_all.deb
  to main/o/ocaml/ocaml-mode_3.12.1-1_all.deb
ocaml-native-compilers_3.12.1-1_amd64.deb
  to main/o/ocaml/ocaml-native-compilers_3.12.1-1_amd64.deb
ocaml-nox_3.12.1-1_amd64.deb
  to main/o/ocaml/ocaml-nox_3.12.1-1_amd64.deb
ocaml-source_3.12.1-1_all.deb
  to main/o/ocaml/ocaml-source_3.12.1-1_all.deb
ocaml_3.12.1-1.debian.tar.gz
  to main/o/ocaml/ocaml_3.12.1-1.debian.tar.gz
ocaml_3.12.1-1.dsc
  to main/o/ocaml/ocaml_3.12.1-1.dsc
ocaml_3.12.1-1_amd64.deb
  to main/o/ocaml/ocaml_3.12.1-1_amd64.deb
ocaml_3.12.1.orig.tar.gz
  to main/o/ocaml/ocaml_3.12.1.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 646372@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stéphane Glondu <glondu@debian.org> (supplier of updated ocaml 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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 01 Nov 2011 13:53:49 +0100
Source: ocaml
Binary: ocaml-nox camlp4 camlp4-extra ocaml ocaml-base-nox ocaml-base ocaml-native-compilers ocaml-source ocaml-interp ocaml-compiler-libs ocaml-mode
Architecture: source amd64 all
Version: 3.12.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Stéphane Glondu <glondu@debian.org>
Description: 
 camlp4     - Pre Processor Pretty Printer for OCaml
 camlp4-extra - Pre Processor Pretty Printer for OCaml - extras
 ocaml      - ML language implementation with a class-based object system
 ocaml-base - Runtime system for OCaml bytecode executables
 ocaml-base-nox - Runtime system for OCaml bytecode executables (no X)
 ocaml-compiler-libs - OCaml interpreter and standard libraries
 ocaml-interp - OCaml interactive interpreter and standard libraries
 ocaml-mode - major mode for editing Objective Caml in Emacs
 ocaml-native-compilers - Native code compilers of the OCaml suite (the .opt ones)
 ocaml-nox  - ML implementation with a class-based object system (no X)
 ocaml-source - Sources for Objective Caml
Closes: 634621 642935 646372
Changes: 
 ocaml (3.12.1-1) unstable; urgency=low
 .
   [ Stéphane Glondu ]
   * New upstream release (Closes: #634621)
   * ocamlopt/arm: add .type directive for code symbols (LP: #810402)
 .
   [ Mehdi Dogguy ]
   * Make objinfo show force_link and ccobjs/ccopts when needed
 .
   [ Jonathan Nieder ]
   * debian/control: add Breaks against versions of dh-ocaml that relied on
     the ocaml{dumpapprox,plugininfo,byteinfo} tools (Closes: #642935)
 .
   [ Stefano Zacchiroli ]
   * remove myself from Uploaders
 .
   [ Samuel Thibault ]
   * Add support for ENOTSUP (Closes: #646372)
Checksums-Sha1: 
 0d2103ff825f4761940267e8bc8f78b4e1973d81 2648 ocaml_3.12.1-1.dsc
 05125da055d39dd6fe8fe5c0155b2e9f55c10dfd 3660473 ocaml_3.12.1.orig.tar.gz
 82e30119c1bdda9859ff2bf2ae6074a4910064c7 53871 ocaml_3.12.1-1.debian.tar.gz
 e0515480261e48afebaa5889d6b0b3c1aff53883 7606128 ocaml-nox_3.12.1-1_amd64.deb
 3d3f9518fe3cc7c1dea48493876330ae19f6a0d0 18651360 camlp4_3.12.1-1_amd64.deb
 55fc7d0ee8433bf9ad7e9daed411807614f0b2fd 17982602 camlp4-extra_3.12.1-1_amd64.deb
 4a20af11c08392ec54357701abaa411a809dcf4a 2174912 ocaml_3.12.1-1_amd64.deb
 16797801cdfd40b3f8ac75186d73e1d83979b836 703214 ocaml-base-nox_3.12.1-1_amd64.deb
 fd6ce5ce54c99c919898e6efe8de578c674f7448 129088 ocaml-base_3.12.1-1_amd64.deb
 752a8605a9ff21786fe958f0b21b6fcf63540618 3205126 ocaml-native-compilers_3.12.1-1_amd64.deb
 0b0c00a4ba285977e45939187c6ca9ffacac172e 2962018 ocaml-source_3.12.1-1_all.deb
 ba0602047bdd9febba3c0f0122b994dcedbc0f2a 317158 ocaml-interp_3.12.1-1_amd64.deb
 cafc8a6b3a190e0565e915e289a216d303cca24d 1214648 ocaml-compiler-libs_3.12.1-1_amd64.deb
 d233f4247869e7752e3f46e9e2b61bf71450340a 116328 ocaml-mode_3.12.1-1_all.deb
Checksums-Sha256: 
 07a32ca8fad9ea25f83e68199bd732ef423ab2e6cb51963dd4914b1502c0bb47 2648 ocaml_3.12.1-1.dsc
 4f81ab86258be0eea1507dd5338c8670490f8616249821e731f8ac1c64caa4a7 3660473 ocaml_3.12.1.orig.tar.gz
 2a5b84f265f6270f0d1093ec246dad05cf855aaedd8bd68943c1d8f0c0d0c420 53871 ocaml_3.12.1-1.debian.tar.gz
 e940e1681facf472aa9d498290965411b16830309cdba8c1b0a1217eabbcc34d 7606128 ocaml-nox_3.12.1-1_amd64.deb
 5a3110e8264ee4cc73fafee6fb776e768bcb597c3e12c7ec691e2d0d44fbd65b 18651360 camlp4_3.12.1-1_amd64.deb
 cd9f861a52de80e791d4c78373c283170fcb9e0cf3e169da4df208261a8dee30 17982602 camlp4-extra_3.12.1-1_amd64.deb
 94bd7ae9d0c4f0f5741f51fe26bb8b8ec6d34e868ebd1317dea4837bceb6c44b 2174912 ocaml_3.12.1-1_amd64.deb
 b6c15f62b9ce3059b87cb0bcaf510a2bd7f9c65871dcdd7020a99706d7477803 703214 ocaml-base-nox_3.12.1-1_amd64.deb
 9f3105ed92ba8b6beb18124ef3c827fa6c8d1165f0aa9090d1526f366c3000ea 129088 ocaml-base_3.12.1-1_amd64.deb
 2daf660bd204f08576ca70ff4603a0e0d638c16d503e38ae8383031bae0fa9d6 3205126 ocaml-native-compilers_3.12.1-1_amd64.deb
 8a7623f0522664c6fc5bb011838faf9ed46107fe95794cf3c534d35544ccc276 2962018 ocaml-source_3.12.1-1_all.deb
 defe30b9d58ed7164aec6ec0346b756cd7ab44909795586c7e6a74a2e5cacc71 317158 ocaml-interp_3.12.1-1_amd64.deb
 707d42091439fc2f39b515e1b316311ff8ae8eb29d0b3ba38d30b0e6d9a7022e 1214648 ocaml-compiler-libs_3.12.1-1_amd64.deb
 0cd4f67759110ab29814dae4b539d7534372d02392e3e007cba7e3c1401304f6 116328 ocaml-mode_3.12.1-1_all.deb
Files: 
 68c82613e903652786fef62ab814654e 2648 ocaml optional ocaml_3.12.1-1.dsc
 814a047085f0f901ab7d8e3a4b7a9e65 3660473 ocaml optional ocaml_3.12.1.orig.tar.gz
 6d2dee28d8fb3b7c70d493cfce5127e3 53871 ocaml optional ocaml_3.12.1-1.debian.tar.gz
 e62b5b7bb403357fdf6997b84ef0f22f 7606128 ocaml optional ocaml-nox_3.12.1-1_amd64.deb
 5dfd61ac8f6684f780ce6dc687447e2f 18651360 ocaml optional camlp4_3.12.1-1_amd64.deb
 a4512f01f10ae07ffd35cc394054f9c0 17982602 ocaml optional camlp4-extra_3.12.1-1_amd64.deb
 a3195c1a920c11c4440a9977e3baae88 2174912 ocaml optional ocaml_3.12.1-1_amd64.deb
 fa3f88864ce03b078db468d17dd9ccfd 703214 ocaml optional ocaml-base-nox_3.12.1-1_amd64.deb
 9c0f0ddbe35043e353e2a2c8535d1d14 129088 ocaml optional ocaml-base_3.12.1-1_amd64.deb
 40a469d48bfd8b137bfd54449ba907b7 3205126 ocaml optional ocaml-native-compilers_3.12.1-1_amd64.deb
 6a7a0b659be9e888dd53b2ba4bed7af0 2962018 ocaml optional ocaml-source_3.12.1-1_all.deb
 98e936c807b741d1fc5afc1a92af150f 317158 ocaml optional ocaml-interp_3.12.1-1_amd64.deb
 0617da232f989dd3c5dd102e8a89c207 1214648 ocaml optional ocaml-compiler-libs_3.12.1-1_amd64.deb
 b6ad9b2d7db75a06a9e3ff0cec2acc89 116328 ocaml optional ocaml-mode_3.12.1-1_all.deb

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

iQIcBAEBCgAGBQJOr/C+AAoJEHhT2k1JiBrTn3gQALZ463tb+K5/EQvGP8ZHgXS6
cbHLJMf9I4UX+40l4V3o8X9xV9mvFj77rCNPO/ecqg9LBxcd+YQEkpYks6nI0Ybm
geT8EUKYexPX8ekLWH7P6b7Dbj4hLeBIV+St87bQWRxNmr8fNS91ZMrY6R9PT8JT
FsvZvMFipI5ou1C9jaHzKFrLHOdjBlSrUcbhlOCrGgGRUHNit6gxlCJ9VcQrs7rl
0hfzFr4TF0qkQEABatT++i02R1pS4DygBzY6lhP1CGUbuEzxVRKtq1f6ZECCHRCH
K9nKQ3cdS5oeGqsvMhcZ8SOgg4wFIdJq2nGAUEQMPAWsr9TxREWjOt3u/NU8iaCC
nS84cfpYEqrstLZX7bIK6GSXrzn/2XExwPcw9y+e0A5/+g3YDfIw+MtmNhDaiZzp
TTfi2QzFmFXZPQVYycQMYLslCQws6/RNjRaqpnGyZl6rOieiOCkExPcLkNxFp/UN
IdhRkh8PiBpyTrhIxWVbUy+QGGTatfrHpHgjtlADlDyOMywAJddiONfViMEyeB5/
buhIgkZ+GB2bNHji6Ma81YqUZ4zjlNcO7wsRD1STStrh0Ag8IdCYATXCXqPh8+9R
VtxwFHdnatGjkRzkKgYGLNsbfkJub7oQDC/gs4/uhDPXbuQCjnZVwSqE6hznZScR
lQnoA3gicxcqpZ/5Dk7O
=i39p
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: