From patchwork Thu Sep 7 16:37:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon South X-Patchwork-Id: 53645 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 CCB7927BBEA; Thu, 7 Sep 2023 17:39:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1826227BBE2 for ; Thu, 7 Sep 2023 17:39:44 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeI24-0007Q3-8v; Thu, 07 Sep 2023 12:39:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeI22-0007Og-4M for guix-patches@gnu.org; Thu, 07 Sep 2023 12:39:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeI21-0000GO-T4 for guix-patches@gnu.org; Thu, 07 Sep 2023 12:39:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeI23-0003vr-Gl for guix-patches@gnu.org; Thu, 07 Sep 2023 12:39:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65807] [PATCH v2 6/9] gnu: libftdi: Build C++ bindings. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Sep 2023 16:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65807 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65807@debbugs.gnu.org Received: via spool by 65807-submit@debbugs.gnu.org id=B65807.169410469714993 (code B ref 65807); Thu, 07 Sep 2023 16:39:03 +0000 Received: (at 65807) by debbugs.gnu.org; 7 Sep 2023 16:38:17 +0000 Received: from localhost ([127.0.0.1]:41223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeI1J-0003tf-5e for submit@debbugs.gnu.org; Thu, 07 Sep 2023 12:38:17 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:48656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeI1F-0003sO-8e for 65807@debbugs.gnu.org; Thu, 07 Sep 2023 12:38:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 7A7216312E for <65807@debbugs.gnu.org>; Thu, 7 Sep 2023 16:38:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id whLwOqatisb3 for <65807@debbugs.gnu.org>; Thu, 7 Sep 2023 16:38:02 +0000 (UTC) Received: from laptop.smallsystems.net (23-233-96-210.cpe.pppoe.ca [23.233.96.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id AECBD6312D for <65807@debbugs.gnu.org>; Thu, 7 Sep 2023 16:38:01 +0000 (UTC) From: Simon South Date: Thu, 7 Sep 2023 12:37:55 -0400 Message-Id: <02903df5d05c34a8f0164a0024dcdc3441d9d53a.1694104141.git.simon@simonsouth.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Enabling the C++ bindings allows the test suite to be run, although this fails without access to the host's USB interface. * gnu/packages/libftdi.scm (libftdi)[arguments]: Add #:test-target, #:tests?. (inputs): Add boost. --- gnu/packages/libftdi.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/libftdi.scm b/gnu/packages/libftdi.scm index b3fb717905..0a996b05e7 100644 --- a/gnu/packages/libftdi.scm +++ b/gnu/packages/libftdi.scm @@ -24,6 +24,7 @@ (define-module (gnu packages libftdi) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (gnu packages) + #:use-module (gnu packages boost) #:use-module (gnu packages libusb) #:use-module (gnu packages pkg-config) #:use-module (gnu packages textutils)) @@ -47,11 +48,13 @@ (define-public libftdi #~(list (string-append "-DCMAKE_INSTALL_DOCDIR=" #$output "/share/doc/" #$name "-" #$version) "-DEXAMPLES=OFF" - "-DLIB_SUFFIX=''"))) ; place libraries in /lib, not /lib64 + "-DLIB_SUFFIX=''") ; place libraries in /lib, not /lib64 + #:test-target "check" + #:tests? #f)) ; tests fail without access to USB (native-inputs (list pkg-config)) (inputs - (list libconfuse)) + (list boost libconfuse)) (propagated-inputs (list libusb)) ; required by libftdi1.pc (home-page "https://www.intra2net.com/en/developer/libftdi/") @@ -59,5 +62,5 @@ (define-public libftdi (description "libFTDI is a library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232D, FT245R and FT232H including the popular bitbangmode.") - (license (list license:gpl2 ; ftdi_eeprom + (license (list license:gpl2 ; ftdi_eeprom, C++ bindings license:lgpl2.1)))) ; main library