From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 525347EDD9 for ; Sun, 7 Oct 2012 03:16:50 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=pra; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="avsm@dark.recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of avsm@dark.recoil.org) identity=mailfrom; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="avsm@dark.recoil.org"; x-sender="avsm@dark.recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@dark.recoil.org) identity=helo; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="avsm@dark.recoil.org"; x-sender="postmaster@dark.recoil.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlACAG3XcFBZELGagWdsb2JhbABEv0UBARYmJ4IgAQEFOj8QCw4KLhRJiBy4bItPJ4UJYAOVagGBFZIHgVs X-IronPort-AV: E=Sophos;i="4.80,545,1344204000"; d="scan'208";a="158134048" Received: from recoil.dh.bytemark.co.uk (HELO dark.recoil.org) ([89.16.177.154]) by mail4-smtp-sop.national.inria.fr with SMTP; 07 Oct 2012 03:16:49 +0200 Received: (qmail 23760 invoked by uid 10000); 7 Oct 2012 01:16:48 -0000 Date: Sun, 7 Oct 2012 02:16:48 +0100 From: Anil Madhavapeddy To: Malcolm Matalka Cc: caml-list@inria.fr Message-ID: <20121007011648.GF15159@dark.recoil.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] opam update failing On Sat, Oct 06, 2012 at 09:57:34PM +0200, Malcolm Matalka wrote: > Hello! I did an opam update and after printing a list of packages > that need upgrading I get: > > ... > - ulex.1.1 > - variantslib.108.00.02 > - zed.1.2 > File /home/mmatalka/.opam/opam/ANSITerminal.0.6.opam: Bad format! > Expecting list or list-list, got list({optio > n(list({string("rm") string("setup.ml")}),{string("%{ocaml-version}%") > symbol(=) string("4.00.0")}) option(lis > t({string("oasis") string("setup")}),{string("%{ocaml-version}%") > symbol(=) string("4.00.0")}) list({string("o > caml") string("setup.ml") string("-configure") string("--prefix") > string("%{prefix}%")}) list({string("ocaml") > string("setup.ml") string("-build")}) list({string("ocaml") > string("setup.ml") string("-install")})}) > 'opam update' failed > > and opam upgrade fails. Did a badly formated package sneak in somehow? OPAM is still being hacked on pretty rapidly (although its getting very stable in recent days!). The format of the repository changed between 0.6 and 0.7 to improve the constraint system, and so older clients wont interoperate. Very recent OPAMs have a version check on the repository also, so that they can detect future changes. For immediate use, do not use the OPAM master branch as it is in the middle of a refactoring, and stick to the tagged released versions instead (0.7.5 works for me). I've just setup a Jenkins autobuilder which is continuously building all the OPAM and packages under various operating systems. I'll publish the build logs such as soon as I figure out how to convince the Jenkins plugin API to give me a report in the right form... -- Anil Madhavapeddy http://anil.recoil.org