From patchwork Mon Sep 2 15:32:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 15246 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 CCF6B1734D; Mon, 2 Sep 2019 16:37:05 +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 7C5FC17329 for ; Mon, 2 Sep 2019 16:37:05 +0100 (BST) Received: from localhost ([::1]:37640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oO8-00047s-8e for patchwork@mira.cbaines.net; Mon, 02 Sep 2019 11:37:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42140) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oLQ-0001PP-SO for guix-patches@gnu.org; Mon, 02 Sep 2019 11:34:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4oLO-0002tD-TK for guix-patches@gnu.org; Mon, 02 Sep 2019 11:34:16 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4oLL-0002nz-La for guix-patches@gnu.org; Mon, 02 Sep 2019 11:34:13 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4oLL-0006TV-G8 for guix-patches@gnu.org; Mon, 02 Sep 2019 11:34:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v3 11/48] gnu: cyrus-sasl: Fix cross-compilation. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 Sep 2019 15:34:11 +0000 Resent-Message-ID: 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.156743844924855 (code B ref 36477); Mon, 02 Sep 2019 15:34:11 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:09 +0000 Received: from localhost ([127.0.0.1]:58721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oLE-0006RD-VC for submit@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:09 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:34196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oL9-0006P1-MS for 36477@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:02 -0400 Received: by mail-wm1-f66.google.com with SMTP id y135so10149751wmc.1 for <36477@debbugs.gnu.org>; Mon, 02 Sep 2019 08:33:59 -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=iuXs1KR+SYXViEeS/rJH9BUU5Wfs75GDGiD2Uw5o7kM=; b=vNlQG8Ky7Fz1rgFO2ywSZqssF4BR2GoiLxpI/VxRgbQbLGwRCmh7k9/ekeSYSncL6w PDcVS1fivrNVXV+/HvErHVidHfPoNSWVTISYIirSTe85m+jHKraWE4K95C3FRvES94MK E/LeeDy5xRRaTrWVMRorQFGn8CdS3B+tSLHHcMIvzkl/GD6eJipZztbcXa/eAmh5OCLB NRSwte6rIr5IBwv3bceqONqYqW6hK2n+vzfX464y2I0CEqvu24lsXZZGjICgWYeoc01h 1NgDHHmv+W+mum3Gll5g+xSSWPChWN/s5/cQe+csWgOJ6IkjuGwHUNLpHhVuvDyqmPYG 02ig== 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=iuXs1KR+SYXViEeS/rJH9BUU5Wfs75GDGiD2Uw5o7kM=; b=YWRWSEnF5NgYo61SMcFlFsr2p7lNZ9pj8Y/+2/hT2zlJ5v5IExuxyuteVZqdiwrmVz T/8hCiSGvtRWbEEMncc4Y93VWY++R/JyeQMa4LIZH1gulw7x9j1XfPc5jDQHnRyFf7Wm e6PihMgu7TsreAgeE4Ba+khGAYeyp0pnAKyRDCWYC5tpVTK/CmMHvGdkHrBjGVBdKG7O 1cSKqBO7UKJJugt8dzSeQvpWIEo3D/Gkdwr9V3NymCtluID58qLQAShv15fPuE7uRF/t 1pjwqs1mbDmQF9ExBxzvzmXptguC5ERqF8qIJnzz2DlxdN/y+tDZFWFHBjXsCjrtErJj ibog== X-Gm-Message-State: APjAAAUbHs04ZYAwynNwIXwmWOmUCXUhcbtmITYCYJUGQICxkKlDic9P b0Bhh378tu0WhJvnpPelthEFWGzu X-Google-Smtp-Source: APXvYqxmXNa309ctsFhih8zU+/OqumiyiIpnddiMH1/s0DXKYzObrRa7cIlZDIJCasT3rym4unqqeA== X-Received: by 2002:a1c:e709:: with SMTP id e9mr1359562wmh.65.1567438433908; Mon, 02 Sep 2019 08:33:53 -0700 (PDT) Received: from localhost.localdomain ([80.12.63.115]) by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.33.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 08:33:53 -0700 (PDT) From: Mathieu Othacehe Date: Mon, 2 Sep 2019 17:32:56 +0200 Message-Id: <20190902153333.11190-12-m.othacehe@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190902153333.11190-1-m.othacehe@gmail.com> References: <20190902153333.11190-1-m.othacehe@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: , Cc: Mathieu Othacehe Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/cyrus-sasl.scm (cyrus-sasl)[origin]: Apply it. [native-tools]: Add autoconf, automake and libtool. [arguments]: Run autoconf to apply m4 modification in patch above. --- gnu/local.mk | 1 + gnu/packages/cyrus-sasl.scm | 17 +++++++++++++++-- .../patches/cyrus-sasl-ac-try-run-fix.patch | 12 ++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch diff --git a/gnu/local.mk b/gnu/local.mk index 0bfde340ec..3550479ae6 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -752,6 +752,7 @@ dist_patch_DATA = \ %D%/packages/patches/cube-nocheck.patch \ %D%/packages/patches/cursynth-wave-rand.patch \ %D%/packages/patches/cvs-CVE-2017-12836.patch \ + %D%/packages/patches/cyrus-sasl-ac-try-run-fix.patch \ %D%/packages/patches/darkice-workaround-fpermissive-error.patch \ %D%/packages/patches/dbus-helper-search-path.patch \ %D%/packages/patches/dbus-c++-gcc-compat.patch \ diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm index f84136e631..3e65a1faf6 100644 --- a/gnu/packages/cyrus-sasl.scm +++ b/gnu/packages/cyrus-sasl.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2013, 2014, 2015, 2017 Ludovic Courtès ;;; Copyright © 2013 Andreas Enge ;;; Copyright © 2016 Leo Famulari +;;; Copyright © 2019 Mathieu Othacehe ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,6 +21,7 @@ (define-module (gnu packages cyrus-sasl) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages dbm) #:use-module (gnu packages kerberos) #:use-module (gnu packages tls) @@ -41,8 +43,13 @@ "ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-" version ".tar.gz"))) (sha256 (base32 - "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6")))) + "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6")) + (patches (search-patches "cyrus-sasl-ac-try-run-fix.patch")))) (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) (inputs `(("gdbm" ,gdbm) ("openssl" ,openssl))) (propagated-inputs @@ -57,7 +64,13 @@ ;; 'plugin_common.c'. When building the shared libraries there, libtool ;; ends up doing "ln -s plugin_common.lo plugin_common.o", which can ;; fail with EEXIST when building things in parallel. - #:parallel-build? #f)) + #:parallel-build? #f + + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ + (invoke "autoreconf" "-vif")))))) (synopsis "Simple Authentication Security Layer implementation") (description "SASL (Simple Authentication Security Layer) is an Internet diff --git a/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch b/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch new file mode 100644 index 0000000000..8662e812e9 --- /dev/null +++ b/gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch @@ -0,0 +1,12 @@ +--- a/m4/sasl2.m4 2018-11-18 22:33:29.902625600 +0300 ++++ b/m4/sasl2.m4 2018-11-18 22:33:59.828746176 +0300 +@@ -339,7 +339,8 @@ + ], + [ AC_DEFINE(HAVE_GSS_SPNEGO,,[Define if your GSSAPI implementation supports SPNEGO]) + AC_MSG_RESULT(yes) ], +- AC_MSG_RESULT(no)) ++ AC_MSG_RESULT(no), ++ AC_MSG_RESULT(no)) + LIBS="$cmu_save_LIBS" + + else