guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#63765] [PATCH v6 00/10] gnu: python-lief: Update to 0.13.2.


From: Hilton Chain
Subject: [bug#63765] [PATCH v6 00/10] gnu: python-lief: Update to 0.13.2.
Date: Sat, 5 Aug 2023 21:18:04 +0800

(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<LIEF::ok_t>]’:
/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<LIEF::ok_t>]’
/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<LIEF::ok_t>]’
/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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]