From patchwork Thu May 15 03:43:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Hallsby X-Patchwork-Id: 42615 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 149CD27BC4A; Thu, 15 May 2025 04:45:14 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 6506527BC49 for ; Thu, 15 May 2025 04:45:12 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uFPWs-00048q-5Q; Wed, 14 May 2025 23:45: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 1uFPWq-00047w-3r for guix-patches@gnu.org; Wed, 14 May 2025 23:45:04 -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 1uFPWp-0003ED-O6 for guix-patches@gnu.org; Wed, 14 May 2025 23:45: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:References:In-Reply-To:Date:From:To:Subject; bh=PoIb/SvBYvjg8/gI+scsft83SE8Js25IQsReBJEfqvs=; b=poIrEuJw+/AxNpuXSb6u6lb+POyEzdYnOXHX37BISMxV0RwTdBkridBLtBHeKsdjP1dfNDqpbiGgUy3nvtTo5v1W06bN8UZ7/u/B6UWiR2+7wIzLv9FJhR+875B85CfWiQhNYmirbUEXkt3ngqt9uU1t41boaisfpaQP/hYl8X82eqmgF+pwbZ/RLTOh9moyysxZsOosy8UwibY5/OISrv+uYDTJkvYxLrgtZ3+727XaPhztBkBZ6vscuK/B+8JORTRFQ0St1MXT2VOo9Hd1+OlT1yMiCO4pyA+9tMBnma+cq9th2IbdfUossVSFLWa8M2ZF5dBS3WQ7xIXv3NIpZg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uFPWo-00020R-R8; Wed, 14 May 2025 23:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78434] [PATCH 1/3] gnu: python-lief: Update to 0.14.1 Resent-From: Karl Hallsby Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, guix-patches@gnu.org Resent-Date: Thu, 15 May 2025 03:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78434 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78434@debbugs.gnu.org Cc: Raven Hallsby , Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour X-Debbugs-Original-Xcc: Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour Received: via spool by 78434-submit@debbugs.gnu.org id=B78434.17472806557496 (code B ref 78434); Thu, 15 May 2025 03:45:02 +0000 Received: (at 78434) by debbugs.gnu.org; 15 May 2025 03:44:15 +0000 Received: from localhost ([127.0.0.1]:48752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFPW2-0001wm-N7 for submit@debbugs.gnu.org; Wed, 14 May 2025 23:44:15 -0400 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:57456) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFPVz-0001wT-Ub for 78434@debbugs.gnu.org; Wed, 14 May 2025 23:44:12 -0400 Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-85b3f92c8dfso13468339f.2 for <78434@debbugs.gnu.org>; Wed, 14 May 2025 20:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hallsby.com; s=google; t=1747280645; x=1747885445; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PoIb/SvBYvjg8/gI+scsft83SE8Js25IQsReBJEfqvs=; b=anmlMvbvvsommPElDuMIkU0qd3+o+/1UCZvKbtE3nYY4fbdKSSWZdY8bi7DSi9l00n /yaeWZfkTKK85ZZEkCj004S8biDBNWEyJaSAwaeC1dyYT0VMlC2O73j3zl+fBn9lh/eR ObEczTasJJTVgY0WT87lv/ZlDWsSD9P+9erLitzVsN5/k5yElbrNrmtOr2hmU4rUZRPC EcegelIWBhZPeP69Vr8cNmKZO0btr2eVR7xqarX5aPWPOtnlVzFRfatFLmzvQ1KhfaOU 0qcSvi0U1eHKy5D9kOlNSQO54cdLh/ikfxv6RMRflcvJ0cu2cP1+7SLEZ8QzNSCfg9r/ 1hpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747280645; x=1747885445; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PoIb/SvBYvjg8/gI+scsft83SE8Js25IQsReBJEfqvs=; b=rlpGzjOQd1Ho6faHsYPuoRSeODA0B0xsFIpWbioSz6DK3LlLVbuD+lFYTifRtPaBgb WZf8HjS0msGcNk/JF2Mq/zR2jWh6u9of+U/RPQgFZh0ZLKBCCG2GVsrffZ02zZhCnw8t fBSJI9lN025PX2qoTdYDS9igYemw522laavzrq5yI7ZneSfSEAKvR3lxfSGaE2wroIfh MFXTVUum33A20oq+eMrV2/s8NFFE7j1vvaXH4w6EcE9vTJlRjQHkgDNS0ZEmnp8fUqo7 qJBmaUv025SGptkvdD4lW3l/63r862coRQ9BmMmy1kRRoxoWVllkD0XHc1pLoo6PVh2I SUiA== X-Gm-Message-State: AOJu0Yw4NUinFy1IW36w/4WkrDlfXG1kXO7JOCZcbiHlVxFORnIOEfpZ CGpFv1WUoBBsCN+m6kYe61jkL7c1LuUo2+q0We3JoTHNN4XcojuGj0cuV5Vhfso0ws42WQE/3qE = X-Gm-Gg: ASbGncuu0oZzfxrmrnLZRDNMFoqXK6uEAOqpxPxNS3MuPh9wTHtsxvzdu4UW301/lHl 7vJOUNKoTA8P5zUcZxq7VWHUqCl/kfxn59tyeagF73HnIL8y5lxYLWh+QdobjvRB7DLapFsVGVR nY4KRoJXIyPegWgvhipq2UC4ZzpT5NEdIj9a+1Nm+B6FE/dYz31+i+Ki9p0Ajm/RwfHROaNEygU gBtvVS9irfjqSOBvzWO6vCyC7rYxhIWZ00w4h+hYsxVCOszndY5PMsO9VuQqD9awpq+dfgtuges hw9J/SexIqR7H2Y2cYiEQcZMljObmNTDrXog/seB7C/gVTxYRKDCivp7 X-Google-Smtp-Source: AGHT+IEGJ/p/2UDVXgjNUeqJRpl4DyRF1xOw7ndHuCqin4yBHoEeslzqc/JnWVHE54zVYdJQ6nLx8g== X-Received: by 2002:a05:6e02:4914:b0:3db:6cc1:36f9 with SMTP id e9e14a558f8ab-3db6f7acf70mr59634375ab.8.1747280645444; Wed, 14 May 2025 20:44:05 -0700 (PDT) Received: from Karl-Desktop.raven ([207.237.222.72]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3da7e158a0esm37148415ab.53.2025.05.14.20.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 May 2025 20:44:04 -0700 (PDT) Date: Wed, 14 May 2025 22:43:22 -0500 Message-ID: X-Mailer: git-send-email 2.49.0 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: , Reply-to: Karl Hallsby X-ACL-Warn: , Karl Hallsby via Guix-patches X-Patchwork-Original-From: Karl Hallsby via Guix-patches via From: Karl Hallsby 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 From: Raven Hallsby * gnu/packages/python-xyz.scm (python-lief): Update to 0.14.1. Change-Id: I047d5250497148c3a78a61305a9bdc1c8a0b9b29 --- gnu/packages/python-xyz.scm | 59 +++++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 12 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5d0ac818398..66786466ba0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -39496,7 +39496,7 @@ (define-public python-misskey (define-public python-lief (package (name "python-lief") - (version "0.12.3") + (version "0.14.1") (source (origin (method git-fetch) (uri (git-reference @@ -39505,19 +39505,54 @@ (define-public python-lief (file-name (git-file-name name version)) (sha256 (base32 - "11i6hqmcjh56y554kqhl61698n9v66j2qk1c1g63mv2w07h2z661")))) - (build-system python-build-system) - (native-inputs (list cmake)) + "0v8kqylm1f3cv750jjjla7qlpsw6jz1fc9qax0jqbpfjvym8xf3f")))) + (build-system cmake-build-system) (arguments (list - #:tests? #f ;needs network - #:phases #~(modify-phases %standard-phases - (replace 'build - (lambda _ - (invoke - "python" "setup.py" "--sdk" "build" - (string-append - "-j" (number->string (parallel-job-count))))))))) + #:imported-modules `(,@%cmake-build-system-modules + ,@%pyproject-build-system-modules) + #:modules '((guix build cmake-build-system) + ((guix build pyproject-build-system) #:prefix py:) + (guix build utils)) + ;; All tests are written in Python and use Python's testing infra rather + ;; than a combination of CMake and Python. Must be done AFTER lief is + ;; installed to PYTHONPATH. + ;; Lief requires test inputs to be downloaded as a separate tarball from + ;; S3, which cannot have fixed-output derivations that track Lief's source. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'set-env-vars + (lambda _ + (setenv "LIEF_VERSION_ENV" #$(package-version this-package)))) + (add-after 'build 'build-python-module + ;; (assoc-ref py:%standard-phases 'build)) + (lambda _ + (with-directory-excursion "../source/api/python" + ((assoc-ref py:%standard-phases 'build))))) + ;; Remove cmake-build-system's check phase so we can replace it with + ;; one that works with Python later. + (delete 'check) + (add-after 'install 'install-python-module + (lambda* (#:key inputs outputs (configure-flags '()) use-setuptools? + #:allow-other-keys) + (with-directory-excursion "../source/api/python" + (format #t "Python is at: ~a~%" (assoc-ref inputs "python")) + ((assoc-ref py:%standard-phases 'install) + #:inputs inputs + #:outputs outputs + #:configure-flags configure-flags + #:use-setuptools? use-setuptools?)))) + (add-after 'install-python-module 'add-install-to-pythonpath + (assoc-ref py:%standard-phases 'add-install-to-pythonpath))))) + (native-inputs + (list ninja python-pytest)) + (inputs + (list python-scikit-build-core + python-pathspec + python-pip + python-pydantic-2 python-pydantic-core + python-wrapper)) (home-page "https://github.com/lief-project/LIEF") (synopsis "Library to instrument executable formats") (description