From patchwork Thu Jan 31 16:39:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Hondet X-Patchwork-Id: 928 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 52D3016B3E; Thu, 31 Jan 2019 17:13:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id EEAC416B33 for ; Thu, 31 Jan 2019 17:13:09 +0000 (GMT) Received: from localhost ([127.0.0.1]:57809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpFtl-0005cn-Hz for patchwork@mira.cbaines.net; Thu, 31 Jan 2019 12:13:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpFtg-0005c2-NH for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpFte-0000Xn-UO for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpFte-0000XL-CH for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gpFte-00068N-3I for guix-patches@gnu.org; Thu, 31 Jan 2019 12:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34265] [PATCH 4/9] gnu: ocaml-stdio: Fix libdir install References: <875zu4ycve.fsf@gmail.com> In-Reply-To: <875zu4ycve.fsf@gmail.com> Resent-From: Gabriel Hondet Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 31 Jan 2019 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34265 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34265@debbugs.gnu.org Received: via spool by 34265-submit@debbugs.gnu.org id=B34265.154895476923561 (code B ref 34265); Thu, 31 Jan 2019 17:13:02 +0000 Received: (at 34265) by debbugs.gnu.org; 31 Jan 2019 17:12:49 +0000 Received: from localhost ([127.0.0.1]:53248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpFtQ-00067w-P5 for submit@debbugs.gnu.org; Thu, 31 Jan 2019 12:12:49 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpFtM-00067c-8H for 34265@debbugs.gnu.org; Thu, 31 Jan 2019 12:12:44 -0500 Received: by mail-wm1-f67.google.com with SMTP id y8so3368207wmi.4 for <34265@debbugs.gnu.org>; Thu, 31 Jan 2019 09:12:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=D2ln4siVUoCABaAeZ0Wri4JIql7TYPEQizhPJGnmS8U=; b=tkUmWGzjI+rzOEGy0yZ/OWH/dcNvYQNukssDiiyjACykoCtjOsint95IxpLDySABqj FOCm33pwt0Izo7TSY2EoDkb0TCOkkqtojm1OhYkOOCBv4US6k2NKuHDGsDPB/CT1xwEx XVMB02Q4rU9RL9bXOt1nuPnPXD4Z7My0H84Z6iBuvU3RxhalwSvb4gOtzUeHPiKz5nYY 6BhTEDXg0038+dxAfLA8jNuKjl2XRRcUjx9CJ7kz/MHwQRRF5q/P+zkCEe/vbWxcDIaa hfOznH9ZCwXQGpducEAMVUig5S9T8CzEn0OEY62pOYhd8Kr93CdCW+lY1JQq6Hm9aJk3 mBoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=D2ln4siVUoCABaAeZ0Wri4JIql7TYPEQizhPJGnmS8U=; b=EHcBaI0aLXVuzT6vPslPmttGUEBWGfFMGRKspc5SZjON5c+aZ9f3KOaGQv3Qef56aQ GhqicdjOO9sZ+LU9+9cepzBPTL5m/nG7xhCJXKU8sGTG1EES4nMWjTNhIV6WZWGZSY5i uDZLaGI6x79P3OsVUggGMhI4zXIWufkIF2rqzfNG41QNOnvIFK8MgSIAQP2PoS2eM+wK gREpgI3fW0bbVN+QrF+0LIX67MHW+l/kxkQ+Ee3Z5Udguf2ELStSQiy9rX7BsbuYVo3o cRJyPg+RQHHQD8Tn12rNVvIg6hDCCnfhHfG2loXkWAtjBNP/+c3bg/PvHK+Ip7jAFpAw KjTA== X-Gm-Message-State: AJcUukdypP5YD05TO6X/26XWWB3Uwv7r+G+ZnkmGFUYqCz+r8bqKjSS2 w78KduG+m/DtXaB4ehXIP48GlJRW X-Google-Smtp-Source: ALg8bN7i5hOHciLp88Si7jzpjC+/w3X3v7LdbUeJQH8OWI0TJ52pbLU+BTRuOs9uhIULMsuyu/Tf+Q== X-Received: by 2002:a1c:c707:: with SMTP id x7mr29361619wmf.120.1548954756982; Thu, 31 Jan 2019 09:12:36 -0800 (PST) Received: from glht-aurore.gmail.com ([217.109.134.89]) by smtp.gmail.com with ESMTPSA id q9sm3852733wrv.26.2019.01.31.09.12.36 for <34265@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 09:12:36 -0800 (PST) User-agent: mu4e 1.0; emacs 26.1 From: Gabriel Hondet Date: Thu, 31 Jan 2019 17:39:15 +0100 Message-ID: <871s4sycn5.fsf@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/ocaml.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 946360833..94b108961 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -5090,7 +5090,18 @@ is now @code{Ocaml_common.Ast_helper}.") (inputs `(("ocaml-base" ,ocaml-base) ("ocaml-sexplib0" ,ocaml-sexplib0))) (arguments - '(#:tests? #f)) ;no tests + '(#:tests? #f ;no tests + #:phases + (modify-phases %standard-phases + (replace 'install + ;; set libdir to use ocaml-site + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "dune" "install" + (string-append "--prefix=" out) + (string-append "--libdir=" out + "/lib/ocaml/site-lib"))) + #t))))) (synopsis "Standard IO library for OCaml") (description "Stdio implements simple input/output functionalities for OCaml. It