From patchwork Sun Sep 1 22:24:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 67487 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 7944C27BBEA; Sun, 1 Sep 2024 23:26:16 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,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 003D927BBE2 for ; Sun, 1 Sep 2024 23:26:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skt1K-0001ut-JA; Sun, 01 Sep 2024 18:26:06 -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 1skt1H-0001uQ-Ms for guix-patches@gnu.org; Sun, 01 Sep 2024 18:26: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 1skt1G-0005YP-Cg for guix-patches@gnu.org; Sun, 01 Sep 2024 18:26:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=zuPzIMjHS851/eELFPTUB2xegA4JmkSN+uiInBzNK2E=; b=E9ZmGoAhgerAkOiGmNaGZ+NtaJ73DK4t8Hgp80CzcOBUs2PoTMl1qHrklwKR2D1YPy/K2X1Trhf+L4QgiGu06uf40h1WldGQmDFLbJXVNLWSKCJcO+SSHCpEtXc2NNkuN+xUHtDM4S92ozdADzHGoHOHqJv/vxeUhVCbw8Mvsus3pX9NddK6dLQ1L6imE9c9/s9FLMkG+dxcdneXdCp99hK6BBR4ioako35ILWlO3lRfYvh7pRzyDfDAjRqHbspctQUutAhijFo3l58lhk3b15ix7MbcmzRiK6YmWaOu3bF21b8M4SM2hJ0m6+21VT6wCcEHeXtJTqveyQdBGLlsXg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skt2E-0001h8-CE for guix-patches@gnu.org; Sun, 01 Sep 2024 18:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72747] [PATCH v3] gnu: tensorflow-lite: Fix build. References: <4AB3AB32-7D01-4DFE-B5B9-DB9F0FAC84FA@me.com> In-Reply-To: <4AB3AB32-7D01-4DFE-B5B9-DB9F0FAC84FA@me.com> Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Sep 2024 22:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72747 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 72747@debbugs.gnu.org Cc: Andy Tai Received: via spool by 72747-submit@debbugs.gnu.org id=B72747.17252295966468 (code B ref 72747); Sun, 01 Sep 2024 22:27:02 +0000 Received: (at 72747) by debbugs.gnu.org; 1 Sep 2024 22:26:36 +0000 Received: from localhost ([127.0.0.1]:40916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skt1n-0001gG-Vz for submit@debbugs.gnu.org; Sun, 01 Sep 2024 18:26:36 -0400 Received: from mail-pj1-f45.google.com ([209.85.216.45]:52363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skt1m-0001fw-4s for 72747@debbugs.gnu.org; Sun, 01 Sep 2024 18:26:34 -0400 Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2d889ba25f7so1152712a91.0 for <72747@debbugs.gnu.org>; Sun, 01 Sep 2024 15:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725229467; x=1725834267; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=zuPzIMjHS851/eELFPTUB2xegA4JmkSN+uiInBzNK2E=; b=CHZycngsWqSNjAtYODxMzNQSI8RtgzScZT8pibQdgCf4BohDu/Kd9Am/6M2uiuQtMu F7OJ85QIWZNLAD7lIyCNEYcHWfllnNLmwHod/uvMFhv5wxjOTdvEUsW0AxyvzVGzfYU0 r90h3En3dgo9b3Xj2ldjdC+McBR7hxnw2rMvRW5a8ZelPXNIYPQ5FLT/4VapdS//cij7 E6GzzAKWQwKQb8dcTAk/iZt/7OM9ERR6+Oj6fDXgQ6r4Owo5YkZ6N8iYPQTa/8ztjJSz Jy6dVCy58Xf2Fxa0Qqa5APafdkeMuRywpBj6BSq2PEu0qO+hDPhM70ybtg3FFz9EVTaW 6Myw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725229467; x=1725834267; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zuPzIMjHS851/eELFPTUB2xegA4JmkSN+uiInBzNK2E=; b=vY2sV/0cvjnP6lVrSxC+ebLuR3ZfgzDOgux1VuQPP0o9EcGSOdzSWHl4kGVxyUFHvJ UWpgA7RZnFE6Q1GRxlknLFLSYheS4jZybKJLtqpZ+E19bEBBaHas36mtnazpf7EzC12a e8HvUmyms3qJcSorrHbBBeSFxQmZRFfsoTOwEbXwTkHY8Pk/ZVLkb7I6y+ZLTFX+NI2L qNv2qd7cUnkvuoqFRi8NMAlk33IyLgiuIiyPFQb4KwAM2whLbJ4xjSMBbD8A18fvDd85 QUOHumcr4vBPMHI2ibUUocgqftyqE/zRVIJ68WVBPPgAQDUCUWIrePsV6BBSk48UP4Vp Xq0w== X-Gm-Message-State: AOJu0YyYjqcNQHOFE1TQbZJ6ulnMSGNzWn/R6AkjnKdFXjujKO/+gtg6 6OLfs81E3OCz5ScZ0Sd3gVeQLTJeLhfukNHBz8r2pXfpx/MMDxY/FeZCUg== X-Google-Smtp-Source: AGHT+IESMSS6bfsBJyYRWy/bNs+8N8W5l6TLQygP2xAvQ8ccLPZ989hoxL9g0XnCuNV53LFvNw7xIQ== X-Received: by 2002:a17:90a:d991:b0:2d8:77cc:85e with SMTP id 98e67ed59e1d1-2d8973c2d91mr3879169a91.37.1725229466495; Sun, 01 Sep 2024 15:24:26 -0700 (PDT) Received: from DEskMiniX300.. ([38.84.157.61]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d8ee64c68dsm80537a91.7.2024.09.01.15.24.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2024 15:24:26 -0700 (PDT) From: Andy Tai Date: Sun, 1 Sep 2024 15:24:23 -0700 Message-Id: <88cf7d511753f57ed76361c05a330af8ddb770bd.1725229444.git.atai@atai.org> X-Mailer: git-send-email 2.34.1 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 * gnu/packages/machine-learning.scm (tensorflow-lite): Fix build. [inputs]: Change flatbuffers-next to flatbuffers-23.1. * gnu/packages/serialization.scm (flatbuffers-23.1): New variable. Change-Id: I257c3563cb91cbf8e0f0874367aafced248ab4dc --- gnu/packages/machine-learning.scm | 2 +- gnu/packages/serialization.scm | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) base-commit: 61a7930cb03f5eb9e8003bade21d61262c3db8df diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 62b9ac00e9..20c49a6422 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -3487,7 +3487,7 @@ (define-public tensorflow-lite ("cpuinfo" ,cpuinfo) ("eigen" ,eigen) ("fp16" ,fp16) - ("flatbuffers" ,flatbuffers-next) + ("flatbuffers" ,flatbuffers-23.1) ("gemmlowp" ,gemmlowp) ("mesa-headers" ,mesa-headers) ("neon2sse" ,neon2sse) diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 6aaf416467..31d3ed9feb 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -899,6 +899,25 @@ (define-public flatbuffers game development and other performance-critical applications.") (license license:asl2.0))) +(define-public flatbuffers-23.1 + ;; needed explicitly by tensorflow-lite 2.13.1 + (package + (inherit flatbuffers) + (version "23.1.21") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/flatbuffers") + (commit (string-append "v" version)))) + (file-name (git-file-name "flatbuffers" version)) + (sha256 + (base32 + "1z3a6l8g2y53i5xzraswfs2i0i3kk52zv7nzc2q3fgisbyiri3pz")))) + (arguments + (substitute-keyword-arguments (package-arguments flatbuffers) + ((#:configure-flags flags #~'()) + #~(append #$flags '("-DCMAKE_POSITION_INDEPENDENT_CODE=ON"))))))) + (define-public flatbuffers-next (package (inherit flatbuffers)