Message ID | 20190821085455.18508-9-m.othacehe@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 514E317264; Wed, 21 Aug 2019 09:56:25 +0100 (BST) 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,URIBL_BLOCKED autolearn=unavailable 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 F3FAE1724B for <patchwork@mira.cbaines.net>; Wed, 21 Aug 2019 09:56:24 +0100 (BST) Received: from localhost ([::1]:45586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1i0MPn-0006kV-PZ for patchwork@mira.cbaines.net; Wed, 21 Aug 2019 04:56:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58625) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1i0MPb-0006ed-QO for guix-patches@gnu.org; Wed, 21 Aug 2019 04:56:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1i0MPa-0005H3-F0 for guix-patches@gnu.org; Wed, 21 Aug 2019 04:56:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1i0MPa-0005Gr-Bu for guix-patches@gnu.org; Wed, 21 Aug 2019 04:56:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1i0MPa-0006Yd-9S for guix-patches@gnu.org; Wed, 21 Aug 2019 04:56:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v2 09/61] gnu: http-parser: Fix cross-compilation. Resent-From: Mathieu Othacehe <m.othacehe@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Aug 2019 08:56:10 +0000 Resent-Message-ID: <handler.36477.B36477.156637772724732@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 36477@debbugs.gnu.org Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.156637772724732 (code B ref 36477); Wed, 21 Aug 2019 08:56:10 +0000 Received: (at 36477) by debbugs.gnu.org; 21 Aug 2019 08:55:27 +0000 Received: from localhost ([127.0.0.1]:34581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1i0MOs-0006Qe-LG for submit@debbugs.gnu.org; Wed, 21 Aug 2019 04:55:27 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <m.othacehe@gmail.com>) id 1i0MOf-0006NA-AO for 36477@debbugs.gnu.org; Wed, 21 Aug 2019 04:55:15 -0400 Received: by mail-wm1-f67.google.com with SMTP id d16so1285279wme.2 for <36477@debbugs.gnu.org>; Wed, 21 Aug 2019 01:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wngpnt77kJYgfa7e9xym/06vq87dNnC1/WW74z2d6/Q=; b=e4OdQMAu31OM3yrJTXWpZl+X9nymem3geKjI+ME0trn+6lXb+jd19NC5/b5cqM77BK O3l7nCEh2slYmoV8jtt87GYajNYELq7/kAQD8PLoLMW27FUQfpGmbjWhFAAEN5ky4YY+ yNIEFn0e1dR2gSyeQzbJ0PGOQ7uVrnKjha47dMs2fOsJXHOF68r6o9i3qWd9zcxqY813 rYvRvufrbR8R8P3lzcXybliY6w0lNDDhFyn091iUiyZAbRPUOFN2KBPW0BvurmPkEsRE TX5QqSEoyM4hC6ygm+Os1YkA1v3SxWoEMsFgyV3RAKkOghKILBM4HIcErqGsReIKZiF+ AGxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wngpnt77kJYgfa7e9xym/06vq87dNnC1/WW74z2d6/Q=; b=ncrwyRF6zAoCSuikEkUANjs+bI/taX1a92cvHWEcgpHXZCpRAkc9g10LBBBAjm0JlL asljlTe6scAuZHEeOC2F+TMkQPk3KwPeQFsaAFYcBNqHtv/PQDZvstDF4aUOcfJbyQtm KLGc8EcgdeBwNUdZ+xBF0nxMKXTWXlQ/Ad95z4DDXSBSLZaUU/MOzzuoDitbUuCEO+TQ t+G0O3qC4n0Fc9SAzq8+bZsXsXrf0t9XNX8o4oTNGDqiqZVjDJSTtiuop9xzHeVh9Iss 5TPzSudoxy/g9uUipFHYykI5/k/pRSXH7nj1FIyZq7MUDc5CYFsBd7VnunTmkGF2ShPZ ugIA== X-Gm-Message-State: APjAAAXt4ZYoL4gDinNqLRf1H+/XR6bKY0RMQp/b9t5Ju1cdG7Oe5rhL LX5DpPqOCZcrKt/jZwuUGXzYKsKDH9E= X-Google-Smtp-Source: APXvYqxr76o+wwQrRewLUA+5vkSYmgjWiPb+rU39zHY2J+q55jb2s8LsoF6DxcU7VKMYGzQn3koRaw== X-Received: by 2002:a7b:c148:: with SMTP id z8mr4981239wmi.168.1566377707291; Wed, 21 Aug 2019 01:55:07 -0700 (PDT) Received: from fuji.Parrot.Biz (smtp.parrot.biz. [62.23.167.188]) by smtp.gmail.com with ESMTPSA id v3sm22110739wrq.34.2019.08.21.01.55.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2019 01:55:06 -0700 (PDT) From: Mathieu Othacehe <m.othacehe@gmail.com> Date: Wed, 21 Aug 2019 10:54:03 +0200 Message-Id: <20190821085455.18508-9-m.othacehe@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190821085455.18508-1-m.othacehe@gmail.com> References: <20190821085455.18508-1-m.othacehe@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Cc: Mathieu Othacehe <m.othacehe@gmail.com> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
Add --target support to guix system
|
expand
|
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 9f80c404d4..06b3778be2 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com> ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org> +;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -5240,10 +5241,22 @@ into your tests. It automatically starts up a HTTP server in a separate thread #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) - "CC=gcc" "library") + "library" + ,@(if (%current-target-system) + '() + '("CC=gcc"))) #:phases (modify-phases %standard-phases - (delete 'configure)))) + ,@(if (%current-target-system) + '((replace 'configure + (lambda* (#:key target #:allow-other-keys) + (substitute* (find-files "." "Makefile") + (("CC\\?=.*$") + (string-append "CC=" target "-gcc\n")) + (("AR\\?=.*$") + (string-append "AR=" target "-ar\n"))) + #t))) + '((delete 'configure)))))) (synopsis "HTTP request/response parser for C") (description "This is a parser for HTTP messages written in C. It parses both requests and responses. The parser is designed to be used in