From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kPpTMLj8+WRFkwAA9RJhRA:P1 (envelope-from ) for ; Thu, 07 Sep 2023 18:39:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kPpTMLj8+WRFkwAA9RJhRA (envelope-from ) for ; Thu, 07 Sep 2023 18:39:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 801B53578B for ; Thu, 7 Sep 2023 18:39:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694104760; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0O1vvbxQqQ+YJGm8Z5kMHzckMpjXtm/O+TdYXBRQ2Yc=; b=Ntzd1N+7A8KD02PVJY+N2obDXGX2Yrx5/CYc6lgy2MAQwPX29y2abfbrOZV08eqNi0ag9V uLj3daNZ+jH0pv+jbFj/hijaOpAXJGLA+XVGl6uCM5+9eVKPNzOrApcHs+KxIkJTnDt0dl /6MPtvUZQgFhGMmOisi8dkxW2lQBBdnAaE0jXaxESv5hjbJj8hK74/kkrhT0xNInvLqUL6 ec6P9a1PTFlvbD0AM29IKx8HPYoAS3Xyf+BcrRAoHDalsBCE9ICIW1mkBgkVXvENvzxyXN ymsu6qR58M6eVOJifE9jxI6VX0SzsSRzEfDRutjNapld+ofa+w6d+3gw/hMFkg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694104760; a=rsa-sha256; cv=none; b=nGv8NrpEKRRp1Q/Gcw4w5xqRPWiEJTeRoyXpBD1jYtZf9UBqDPwqqaisDj8NaT78mtGggo Qa0DnWcThS4J8lm8zZZarHvah7bUZrEFzpRqQJCKtR/fVlWzohmJAlYn63D6Ys0LBJIAia mgRQshScTBd18I/z9K7znulumB/gOfXp6G+p6fPcO79nK0y/AUREIDmvy7rVt+GzaEp9Z+ XQoCC3YP9d7KnqlDdpYTF5/d25WhCVftrN8SN3+HJuhuC+lUlU7ZlgMYUA/3pG9LqCucXj 4z53mFFWuQKIPf3YL4pVM4cGZi6l4HlcaZPNeUy9oHAX57wb9xAjs/GoYKSYDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeI25-0007Rv-6w; Thu, 07 Sep 2023 12:39:05 -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 1qeI23-0007PI-7C for guix-patches@gnu.org; Thu, 07 Sep 2023 12:39:03 -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 1qeI22-0000Gh-Vt for guix-patches@gnu.org; Thu, 07 Sep 2023 12:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeI24-0003wD-MK for guix-patches@gnu.org; Thu, 07 Sep 2023 12:39:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65807] [PATCH v2 8/9] gnu: libftdi: Update to 1.5. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Sep 2023 16:39:04 +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.169410469815016 (code B ref 65807); Thu, 07 Sep 2023 16:39:04 +0000 Received: (at 65807) by debbugs.gnu.org; 7 Sep 2023 16:38:18 +0000 Received: from localhost ([127.0.0.1]:41229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeI1K-0003u1-By for submit@debbugs.gnu.org; Thu, 07 Sep 2023 12:38:18 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:48660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeI1F-0003sU-Em for 65807@debbugs.gnu.org; Thu, 07 Sep 2023 12:38:14 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 282D96312D for <65807@debbugs.gnu.org>; Thu, 7 Sep 2023 16:38:03 +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 sOEILW6vPW26 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 5F5076312F for <65807@debbugs.gnu.org>; Thu, 7 Sep 2023 16:38:02 +0000 (UTC) From: Simon South Date: Thu, 7 Sep 2023 12:37:57 -0400 Message-Id: <3c421142b509727b270471e8435819708945d75b.1694104141.git.simon@simonsouth.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -4.93 X-Migadu-Queue-Id: 801B53578B X-Migadu-Spam-Score: -4.93 X-TUID: G9ywiH3lYYzh * gnu/packages/patches/libftdi-fix-paths-when-FTDIPP-set.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/libftdi.scm (libftdi): Update to 1.5. [source]: Apply patch. [arguments]<#:configure-flags>: Add "-DFTDIPP", "-DPYTHON_BINDINGS". --- gnu/local.mk | 1 + gnu/packages/libftdi.scm | 10 +++-- .../libftdi-fix-paths-when-FTDIPP-set.patch | 39 +++++++++++++++++++ 3 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 gnu/packages/patches/libftdi-fix-paths-when-FTDIPP-set.patch diff --git a/gnu/local.mk b/gnu/local.mk index 54aec9316a..1f1f9450ab 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1445,6 +1445,7 @@ dist_patch_DATA = \ %D%/packages/patches/json-c-0.12-CVE-2020-12762.patch \ %D%/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch \ %D%/packages/patches/julia-Use-MPFR-4.2.patch \ + %D%/packages/patches/libftdi-fix-paths-when-FTDIPP-set.patch \ %D%/packages/patches/libgeotiff-fix-tests-with-proj-9.1.1.patch \ %D%/packages/patches/libobjc2-unbundle-robin-map.patch \ %D%/packages/patches/librime-fix-build-with-gcc10.patch \ diff --git a/gnu/packages/libftdi.scm b/gnu/packages/libftdi.scm index 773b0ec73e..bdfc635379 100644 --- a/gnu/packages/libftdi.scm +++ b/gnu/packages/libftdi.scm @@ -37,7 +37,7 @@ (define-module (gnu packages libftdi) (define-public libftdi (package (name "libftdi") - (version "1.4") + (version "1.5") (source (origin (method url-fetch) (uri (string-append @@ -45,7 +45,9 @@ (define-public libftdi "libftdi1-" version ".tar.bz2")) (sha256 (base32 - "0x0vncf6i92slgrn0h7ghkskqbglbs534220qa84d0qg114zndpc")))) + "0jdh5r499wbz83vmpskczq5m3cfc1mcv8xqisj5i95k1r3lr2w3w")) + (patches + (search-patches "libftdi-fix-paths-when-FTDIPP-set.patch")))) (build-system cmake-build-system) (outputs '("out" "python")) (arguments @@ -54,7 +56,9 @@ (define-public libftdi #~(list (string-append "-DCMAKE_INSTALL_DOCDIR=" #$output "/share/doc/" #$name "-" #$version) "-DEXAMPLES=OFF" - "-DLIB_SUFFIX=''") ; place libraries in /lib, not /lib64 + "-DFTDIPP=ON" + "-DLIB_SUFFIX=''" ; place libraries in /lib, not /lib64 + "-DPYTHON_BINDINGS=ON") #:phases #~(modify-phases %standard-phases (add-after 'install 'install-python-binding diff --git a/gnu/packages/patches/libftdi-fix-paths-when-FTDIPP-set.patch b/gnu/packages/patches/libftdi-fix-paths-when-FTDIPP-set.patch new file mode 100644 index 0000000000..0a81cceb26 --- /dev/null +++ b/gnu/packages/patches/libftdi-fix-paths-when-FTDIPP-set.patch @@ -0,0 +1,39 @@ +commit cdb28383402d248dbc6062f4391b038375c52385 +Author: Fabrice Fontaine +Date: Fri Jul 17 21:25:03 2020 +0200 + + CMakeLists.txt: fix paths when FTDIPP is set + + Use the same project name (i.e. libftdi1 and not libftdipp1) when FTDIPP + is enabled as suggested by Aurelien Jarno in + http://developer.intra2net.com/mailarchive/html/libftdi/2020/msg00044.html + + Without this change, the libftdi1.pc config file defines the include + path as /usr/local/include/libftdipp1 while the ftdi.h file is actually + installed in /usr/local/include/libftdi1 + + This is an issue for example for libsigrok which will fail on: + + In file included from src/hardware/asix-sigma/protocol.c:27: + src/hardware/asix-sigma/protocol.h:28:10: fatal error: ftdi.h: No such file or directory + 28 | #include + | ^~~~~~~~ + + Fixes: + - http://autobuild.buildroot.org/results/1427f44e36752c337791597fab47a1889552a2fe + + Signed-off-by: Fabrice Fontaine + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5aecafc..3b0b87c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -136,7 +136,7 @@ endif () + + add_subdirectory(src) + if ( FTDIPP ) +- project(libftdipp1 C CXX) ++ project(libftdi1 C CXX) + add_subdirectory(ftdipp) + endif () + if ( PYTHON_BINDINGS ) -- 2.40.1