From patchwork Sat Aug 5 13:18:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 1700 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 AFBC227BBEA; Sat, 5 Aug 2023 14:19:33 +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=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, SPF_HELO_PASS,URIBL_BLOCKED,WEIRD_QUOTING autolearn=no 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 AD03727BBE9 for ; Sat, 5 Aug 2023 14:19:31 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSHBY-0002Yl-0S; Sat, 05 Aug 2023 09:19:12 -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 1qSHBP-0002WS-Uk for guix-patches@gnu.org; Sat, 05 Aug 2023 09:19: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 1qSHBP-00030e-Mf for guix-patches@gnu.org; Sat, 05 Aug 2023 09:19:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSHBO-00061U-H7; Sat, 05 Aug 2023 09:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63765] [PATCH v6 00/10] gnu: python-lief: Update to 0.13.2. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sat, 05 Aug 2023 13:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63765@debbugs.gnu.org Cc: Hilton Chain , Lars-Dominik Braun , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , jgart Received: via spool by 63765-submit@debbugs.gnu.org id=B63765.169124152423129 (code B ref 63765); Sat, 05 Aug 2023 13:19:02 +0000 Received: (at 63765) by debbugs.gnu.org; 5 Aug 2023 13:18:44 +0000 Received: from localhost ([127.0.0.1]:56117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSHB5-00060y-VE for submit@debbugs.gnu.org; Sat, 05 Aug 2023 09:18:44 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:38492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSHB3-00060n-5w for 63765@debbugs.gnu.org; Sat, 05 Aug 2023 09:18:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691241510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gwofpAFiSZfwpSophRrzsIi3CfjP3mse060GSXRiLEI=; b=OLqsqDrzeVIpX/9w5qJQttPX3jhRt/qs308cNOokQPtgLgUBAz2gNGnf/gui3eIz+W+JVG bYlndvDLdkMEr6YhSlunWZ6xR9nUEZHfZo5s9B1m/tatSOPFVHvDg8WRueBKK8knxoRWR/ Db+PXoVkJeiQCOBAZn8EjHDbk+xt/iSlz5rE85xaX/H4IFv+1uccmppTjc6tzGq1kJ2D4M Y46Tx8IzTMOMq3huAOOJHDPu8J7RWf+z0QmzBfLiyccndVoddXDnXoTFL39ig7xmzpFHuh BvcJURM/PImJyTc5UpHpZ5tRpi/YRHDtVlFT7YYPt6wC+r1fH9ybPiHmqU3INA== Date: Sat, 5 Aug 2023 21:18:04 +0800 Message-ID: In-Reply-To: <20230528080735.23733-1-hako@ultrarare.space> References: <20230528080735.23733-1-hako@ultrarare.space> MIME-Version: 1.0 Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space X-Spamd-Bar: / 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: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches X-Patchwork-Original-From: Hilton Chain via Guix-patches via From: Hilton Chain 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 (Depends on #64255 for utfcpp update.) V5 -> V6: - mbedtls-apache-lts@2.28.4, mbedtls-apache@3.4.1. - Unbundle all third-party dependencies. - Honor build system arguments when building Python bindings. - (@ (gnu packages python-xyz) python-lief) -> (@ (gnu packages elf) lief) V4 -> V5 (resend) V3 -> V4: - Split out utfcpp update to #64255. V2 -> V3: - python-lief@0.13.2. - Fix build of mkvtoolnix and warzone2100 (in utfcpp update). V1 -> V2: - python-lief@0.13.1. V1: - python-lief@0.13.0 - Install C bindings to "out" and Python bindings to "python" (Previously only installed Python bindings to "out"). - utfcpp@3.2.3. - Rename mbedtls-apache to mbedtls-apache-lts and update it to 2.28.3. - Add mbedtls-apache@3.4.0. - Unbundle, except tcb-span, leaf, melkor and catch2. Note: - The library is built twice, once (shared) for C bindings, the other (static) for Python bindings. - Unable to use Python bindings when building with "-DBUILD_SHARED_LIBS=ON". --8<---------------cut here---------------start------------->8--- ImportError: /gnu/store/...-lief-0.13.2-python/lib/python3.10/site-packages/lief/_lief.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN4LIEF12BinaryStreamE --8<---------------cut here---------------end--------------->8--- - Some warnings are visible with --verbosity=1, bug? --8<---------------cut here---------------start------------->8--- The following derivation will be built: /gnu/store/x5ndfim6k184agskfvkgyzb596k8y3ww-python-lief-0.13.2.drv building /gnu/store/x5ndfim6k184agskfvkgyzb596k8y3ww-python-lief-0.13.2.drv... 49% ▕████████████████████████████████████████████████████████████████████████████████████████▏ ▏�@ build-log 6665 1568 �} may change value [-Wconversion] 479 | raw_cmd.dataoff += linkedit_offset_; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /tmp/guix-build-python-lief-0.13.2.drv-0/source/src/MachO/Builder.tcc: In instantiation of ‘LIEF::ok_error_t LIEF::MachO::Builder::build(LIEF::MachO::DataInCode&) [with T = LIEF::MachO::details::MachO64; LIEF::ok_error_t = boost::leaf::result]’: /tmp/guix-build-python-lief-0.13.2.drv-0/source/src/MachO/Builder.tcc:83:13: required from ‘LIEF::ok_error_t LIEF::MachO::Builder::build_linkedit() [with T = LIEF::MachO::details::MachO64; LIEF::ok_error_t = boost::leaf::result]’ /tmp/guix-build-python-lief-0.13.2.drv-0/source/src/MachO/Builder.cpp:69:22: required from ‘LIEF::ok_error_t LIEF::MachO::Builder::build() [with T = LIEF::MachO::details::MachO64; LIEF::ok_error_t = boost::leaf::result]’ /tmp/guix-build-python-lief-0.13.2.drv-0/source/src/MachO/Builder.cpp:55:33: required from here /tmp/guix-build-python-lief-0.13.2.drv-0/source/src/MachO/Builder.tcc:763:37: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 763 | raw_cmd.dataoff = linkedit_.size(); | ~~~~~~~~~~~~~~^~ 32% 'python-install' ▕████████████████████████████████████████████████████▏ ▏�@ build-log 6665 183 �} may change value [-Wconversion] 479 | raw_cmd.dataoff += linkedit_offset_; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /gnu/store/nf7jr5zc4qnq1wckcgl82mnc6wchrsmz-python-lief-0.13.2 /gnu/store/j765jgsnzz19ic0q2wlhrj441bpmrbwf-python-lief-0.13.2-python --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- building /gnu/store/8qhffw3z1x6vyhbyl8n4qfwyaq9gcmmp-julia-cfitsio-1.4.1.drv... ���Mw�ŭ�1 phasej ��t�=F\�lrs��x�re��F��0x��}�����W�7��A@@@�$�d����Ϛ���H L��;�p6=�^8 �ى�ޣ��C��>�����;��w������y~9�^�ŭ~���g+n�e[��,�M�(�8����~\w� �@@@@�)_��-@ build-log 11136 43 phase `check' succeeded after 18.7 seconds --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- building /gnu/store/6h9jy7bf5afghxl7w799d7ifr2y4lygk-julia-simd-3.4.2.drv... / 'check' phase��@ build-log 18329 1211 ��┌ @ /gnu/store/flmywqlaizs7vcd8a9rbm1jafimnp3bx-julia-simd-3.4.2/share/julia/loadpath/SIMD/src/LLVM_intrinsics.jl:822 within `macro expansion` vextractf128 $1, %ymm0, %xmm1 vaddpd %xmm1, %xmm0, %xmm0 vpermilpd $1, %xmm0, %xmm1 # xmm1 = xmm0[1,0] vaddsd %xmm1, %xmm0, %xmm0 vxorpd %xmm1, %xmm1, %xmm1 vaddsd %xmm1, %xmm0, %xmm0 ; │└└└ --8<---------------cut here---------------end--------------->8--- Updating mbedtls-apache affects many Julia packages and I haven't tried to build them all. Thanks Hilton Chain (10): gnu: mbedtls-apache: Rename to mbedtls-apache-lts. gnu: mbedtls-apache-for-hiawatha: Use inherited source. gnu: mbedtls-apache-lts: Update to 2.28.4. gnu: Add mbedtls-apache, version 3.4.1. gnu: Add frozen. gnu: Add boost-leaf. gnu: Add tcb-span. gnu: Add melkor. gnu: python-lief: Update to 0.13.2. gnu: python-lief: Rename to lief. gnu/local.mk | 1 + gnu/packages/boost.scm | 33 ++++ gnu/packages/cpp.scm | 67 ++++++++ gnu/packages/elf.scm | 162 +++++++++++++++++- gnu/packages/emulators.scm | 2 +- gnu/packages/game-development.scm | 4 +- gnu/packages/hardware.scm | 4 +- gnu/packages/haxe.scm | 6 +- gnu/packages/irc.scm | 2 +- gnu/packages/julia-jll.scm | 2 +- gnu/packages/julia.scm | 2 +- gnu/packages/linphone.scm | 2 +- gnu/packages/linux.scm | 2 +- gnu/packages/networking.scm | 2 +- .../lief-unbundle-test-dependencies.patch | 103 +++++++++++ gnu/packages/python-xyz.scm | 35 +--- gnu/packages/search.scm | 2 +- gnu/packages/tls.scm | 50 +++--- gnu/packages/video.scm | 2 +- 19 files changed, 403 insertions(+), 80 deletions(-) create mode 100644 gnu/packages/patches/lief-unbundle-test-dependencies.patch base-commit: 4739e6844cfbf815357019faf708d3c266137acc prerequisite-patch-id: 82c68dd1a77d4105aa1c2bc868325b94fe5d1f73 prerequisite-patch-id: 1fdbe22294c9e1df602b3d3636e14c806dc29313 --- 2.41.0