From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 362837F0BB for ; Tue, 30 Aug 2016 11:32:51 +0200 (CEST) IronPort-PHdr: 9a23:gMBkaBI6YahUbY9QPdmcpTZWNBhigK39O0sv0rFitYgUKP3xwZ3uMQTl6Ol3ixeRBMOAuqsC17Sd6vyoGTRZp83e4DZaKN0EfiRGoPtVtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdazDIZPJl8m8y8y1/pTSZU0I2Gv8MvtOK0CSoALXv9MahsNGI6kszBKBmGZJaawCwGRkIVyUtxn578a0upVk9nIDlegm8ptvWK/gfqk8BYdTDDk8Pnp9sMLivwPCQA/J/XAcX38biDJHBgHE6FfxWZKn4XiyjfZ0xCTPZZ6+drszQzn3s/Zm Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=gabriel.scherer@gmail.com; spf=Pass smtp.mailfrom=gabriel.scherer@gmail.com; spf=None smtp.helo=postmaster@mail-it0-f67.google.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of gabriel.scherer@gmail.com) identity=pra; client-ip=209.85.214.67; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of gabriel.scherer@gmail.com designates 209.85.214.67 as permitted sender) identity=mailfrom; client-ip=209.85.214.67; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-it0-f67.google.com) identity=helo; client-ip=209.85.214.67; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="postmaster@mail-it0-f67.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DXAQAFUsVXdEPWVdFcg00BAQEBAXV8B4Exgg+jC5FbggEmhXcCgVkHOBQBAgEBAQEBAQEBEgEKCwwIFzGCMgQDAxWCEQEFEhEEGQEbEgsBAwwGBQsNAgIJHQICIQEBEQEFAQoSBhMSCQeIBwEDFw6gc4EyPjKLPIFqgl4FhlIKGScDClSCdwEBAQEGAQEBAQEaAgYQc4UrhE2CQ4F9gwKCWgEEhmIMhzaKeDSBZIQ8hj6CUII7jRyIP4QJgjgTHoEQHoRoOjSFaoEsAQEB X-IPAS-Result: A0DXAQAFUsVXdEPWVdFcg00BAQEBAXV8B4Exgg+jC5FbggEmhXcCgVkHOBQBAgEBAQEBAQEBEgEKCwwIFzGCMgQDAxWCEQEFEhEEGQEbEgsBAwwGBQsNAgIJHQICIQEBEQEFAQoSBhMSCQeIBwEDFw6gc4EyPjKLPIFqgl4FhlIKGScDClSCdwEBAQEGAQEBAQEaAgYQc4UrhE2CQ4F9gwKCWgEEhmIMhzaKeDSBZIQ8hj6CUII7jRyIP4QJgjgTHoEQHoRoOjSFaoEsAQEB X-IronPort-AV: E=Sophos;i="5.30,255,1470693600"; d="scan'208";a="234507851" Received: from mail-it0-f67.google.com ([209.85.214.67]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 30 Aug 2016 11:32:50 +0200 Received: by mail-it0-f67.google.com with SMTP id n75so1532015ith.0 for ; Tue, 30 Aug 2016 02:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=0j7dyfmVxIQsT45M+XykHXh7+eF/6e0ZKvWA55DPeBU=; b=v+rBPl9scaPuUEB5oLwHBARSazSjwFr5nGS8JafrzGWJz4v6py8KCApwGUgGOPbC3L 38jsMMR93GhP7mZdUoGSRLO/ePwCQ5r9a51PDFgNjBCF8EBIeFwUboHV3zq9QArv1IkQ dGh0qyeGXxjh6zRX7u+BjYQF3Rg4kMchORkVLKI+ge62esJG8OEuX1XtOjsPKzqcECg3 pOkpU1dtH0HISb2Bz5BC/NWqtTH3J3D9TtR+ot6+FCdorWlRAaitVBrYDRQ8MN6rEhXx Q/pIjOfzaEkf6Jtlei9mBRUtRhDpRxIXmtEoRat7sjOfLuGFnmcPNi9qMpFUXlp038w9 UJhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0j7dyfmVxIQsT45M+XykHXh7+eF/6e0ZKvWA55DPeBU=; b=MxU43FaTsw6TfnnRaznp62+4ycBCwQCByjQZ9RYqqBfgzfN0ohiKxjRq2rUac198cZ lZyfXb6tzk+kBUawEsocZVy365oUYao5YhiRCu7goQcuNEB94pDVzNPZyc3h9JzrczBG cEB2NOMJFWJ0i8amp89hPng7nle5HlRDThd0pDI6kcFrosNmO8GSONvUeluyBgcz02YV 0qtw2R/V3Vpk2s140wMnszplnPRsADPA5GY9VN2+RLZKwGUvUrRkhZev7+THfZZLqz3I cP0TRCdj981L8J2y9vsk0TuHSTwLaFYgWF3Rs064w0cSVULc5+TI35glsMxY2UHrRh0O M2VQ== X-Gm-Message-State: AE9vXwMZOQhSx1Jy31GmPIO7O1kU9qYQIQT6dO1ew1qTBPOrrEs4TAzQznf5f8hpYF7+2+NAqReC4XoS6cdeBg== X-Received: by 10.36.147.2 with SMTP id y2mr23496443itd.67.1472549568488; Tue, 30 Aug 2016 02:32:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.31.129 with HTTP; Tue, 30 Aug 2016 02:32:07 -0700 (PDT) In-Reply-To: <7FA7E017-5846-4C12-9994-1D5EAAAAAF05@gmail.com> References: <396209A1-8A8B-468C-AC44-989F07CEC40B@gmail.com> <7FA7E017-5846-4C12-9994-1D5EAAAAAF05@gmail.com> From: Gabriel Scherer Date: Tue, 30 Aug 2016 11:32:07 +0200 Message-ID: To: Leonardo Laguna Ruiz Cc: Caml-list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] Problems with conf-ncurses The problem is not so much about the test (which indeed uses pkg-config, at least for recent ncurses version, and is thus very portable) as about the name of the package to recommend users if the test fails, which can differ wildly across distribution. We may want a fallback on a generic "install whatever package brings ncurses" message, but having accurate system-specific information could be useful for automation scripts for example. On Tue, Aug 30, 2016 at 11:27 AM, Leonardo Laguna Ruiz w= rote: > Thank you for your answers, > > I=E2=80=99ll create the pull request to try to fit this. I hope there are= not many packages with this distro specific limitations. It would be nice = if I can take any generic distro with pkg-config and being able to install = these ocaml packages. At least the system should try a few know combination= s in my generic linux distro. > > > Leonardo > >> On 30 Aug 2016, at 12:16, Gabriel Scherer wr= ote: >> >> This is an issue with the opam metadata of the conf-ncurses package >> not knowing about your system. conf-* packages mark dependencies on >> libraries outside the OCaml ecosystem, and we manually indicate for >> each system the system-level packages that correspond to this >> dependency. >> >> You can see the current metadata for the conf-ncurses package with >> >> opam show --raw conf-ncurses >> >> or by visiting >> >> https://github.com/ocaml/opam-repository/blob/master/packages/conf-ncur= ses/conf-ncurses.1/opam >> >> To fix your issue, you could clone the opam-repository github >> repository, modify this metadata to add a "depexts" entry for your >> system (with the name of the ncurses-devel package on your >> distribution), and send the pull-request upstream. To know which name >> to use on your system, call (this may require running "opam install >> depext" if the depext plugin is not installed on your system) >> >> opam depext --flags >> >> My output is >> >> # Depexts flags detected on this system: x86_64 linux fedora >> >> so I use the "fedora" flag in the depext entry. >> >> Note: if you encounter further issues of this kind, the best place to >> report them would be >> >> https://github.com/ocaml/opam-repository/issues >> >> On Tue, Aug 30, 2016 at 10:36 AM, Leonardo Laguna Ruiz wrote: >>> Hi, >>> >>> I tried to install a few packages in one of my computers and they fail = because conf-ncurses fails to install. I=E2=80=99m using linux, the distro = called solus, and I=E2=80=99m pretty sure that I have installed nurses (lib= raries and development files). >>> >>> When conf-ncurses 1 fails to install it suggest using `opam depext conf= -ncurses.1=E2=80=99 which fails with the message: >>> >>> >>> OPAM plugin depext is not installed. Install it on the current switch? = [Y/n] y >>> The following dependencies couldn't be met: >>> - lwt -> conf-ncurses >>> Your request can't be satisfied: >>> - conf-ncurses is not available because your system doesn't comply wit= h os =3D "darwin" | os =3D "freebsd" | os =3D "netbsd" | os =3D "openbsd". >>> >>> No solution found, exiting >>> >>> Is there any way I can fix this and get my computer working again? >>> >>> Thank you in advance, >>> >>> Leonardo >>> >>> -- >>> Caml-list mailing list. Subscription management and archives: >>> https://sympa.inria.fr/sympa/arc/caml-list >>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >>> Bug reports: http://caml.inria.fr/bin/caml-bugs >