[Bug 2083126] Re: Compile on Xenial fails when using custom python install

Lukas Märdian 2083126 at bugs.launchpad.net
Mon Oct 7 11:28:29 UTC 2024


** Also affects: netplan.io (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2083126

Title:
  Compile on Xenial fails when using custom python install

Status in Netplan:
  New
Status in netplan.io package in Ubuntu:
  New

Bug description:
  I'm trying to get netplan compiled and running on Xenial PowerPC (32
  bit, big endian), but running into issues.

  I've compiled my own build of Python 3.10 that is working fine and it
  can run the current meson build (1.5.2) without issue. However, there
  doesn't seem to be a way to use a custom python install in the build
  process. This obviously results in a build failure since the default
  python 3 install on Xenial PowerPC is 3.5, which does not even support
  meson.

  How would I be able to use my Python 3.10 build with netplan? I am
  hesitant to flat-out replace the python 3.5 install as I don't want to
  break anything in the OS.

  
  If I try building with the stock python 3.5 install, I receive the following error:

  root at test:~/netplan-1.1# /opt/python3.10/bin/python3.10 /opt/meson-1.5.2/meson.py setup build --prefix=/usr
  The Meson build system
  Version: 1.5.2
  Source dir: /root/netplan-1.1
  Build dir: /root/netplan-1.1/build
  Build type: native build
  Project name: netplan
  Project version: 1.1
  C compiler for the host machine: cc (gcc 5.3.1 "cc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413")
  C linker for the host machine: cc ld.bfd 2.26
  Host machine cpu family: ppc
  Host machine cpu: ppc
  Found pkg-config: YES (/usr/bin/pkg-config) 0.29.1
  Run-time dependency glib-2.0 found: YES 2.48.0
  Run-time dependency gio-2.0 found: YES 2.48.0
  Run-time dependency yaml-0.1 found: YES 0.1.6
  Run-time dependency uuid found: YES 2.27.0
  Run-time dependency libsystemd found: YES 229
  Run-time dependency systemd found: YES 229
  Run-time dependency bash-completion found: YES 2.1
  Program pyflakes3 found: YES (/usr/bin/pyflakes3)
  Program pep8 found: YES (/usr/bin/pep8)
  Program pytest3 found: YES (/usr/bin/pytest3)
  Program python3-coverage found: YES (/usr/bin/python3-coverage)
  Program pandoc found: NO
  Program find found: YES (/usr/bin/find)
  Configuring io.netplan.Netplan.service using configuration
  Program python3 (cffi) found: YES (/usr/bin/python3) modules: cffi
  Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)

  python-cffi/netplan/meson.build:6:20: ERROR: Python dependency not
  found

  A full log can be found at /root/netplan-1.1/build/meson-logs/meson-
  log.txt

  All the dependencies are installed, but it's end up not being able to
  find python3 (which I presume is due to it being so old).

  What would be the fix in this case? Will I break anything important by
  just replacing the stock 3.5 install with 3.10? Or is there a way to
  change netplan's default python?

  - Kurt

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2083126/+subscriptions




More information about the foundations-bugs mailing list