public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH kdevops] pynfs: install packaged xdrlib3 module on Debian-derived distros
@ 2025-02-12 14:14 Jeff Layton
  2025-02-12 15:29 ` Chuck Lever
  2025-02-13  7:06 ` Daniel Gomez
  0 siblings, 2 replies; 3+ messages in thread
From: Jeff Layton @ 2025-02-12 14:14 UTC (permalink / raw)
  To: kdevops; +Cc: Daniel Gomez, Chuck Lever, Jeff Layton

Daniel Gomez reported that Debian distros have this module packaged and
that it should be preferred over a pip install. Move the install to
install-deps and change Debian distros to use the packaged module
instead. Fedora and SuSE distros still use pip.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 playbooks/roles/pynfs/tasks/install-deps/debian/main.yml | 1 +
 playbooks/roles/pynfs/tasks/install-deps/redhat/main.yml | 4 ++++
 playbooks/roles/pynfs/tasks/install-deps/suse/main.yml   | 4 ++++
 playbooks/roles/pynfs/tasks/main.yml                     | 5 -----
 4 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/playbooks/roles/pynfs/tasks/install-deps/debian/main.yml b/playbooks/roles/pynfs/tasks/install-deps/debian/main.yml
index 812de1d5f8b105d8d4987451e56d115166a138d2..e4c3c30e7bdb01d4864d541f28f3358f981af934 100644
--- a/playbooks/roles/pynfs/tasks/install-deps/debian/main.yml
+++ b/playbooks/roles/pynfs/tasks/install-deps/debian/main.yml
@@ -12,6 +12,7 @@
       - swig
       - python3-gssapi
       - python3-ply
+      - python3-standard-xdr-lib
     state: present
     update_cache: yes
   tags: [ 'pynfs', 'deps' ]
diff --git a/playbooks/roles/pynfs/tasks/install-deps/redhat/main.yml b/playbooks/roles/pynfs/tasks/install-deps/redhat/main.yml
index 93513c42626350e0096e8a9db90b6d6f180e7e5f..8aa2ba1288092945c6d3e57a63e44dacc0d0ef87 100644
--- a/playbooks/roles/pynfs/tasks/install-deps/redhat/main.yml
+++ b/playbooks/roles/pynfs/tasks/install-deps/redhat/main.yml
@@ -23,3 +23,7 @@
       - swig
       - python3-gssapi
       - python3-ply
+
+- name: Install xdrlib3
+  ansible.builtin.pip:
+    name: xdrlib3
diff --git a/playbooks/roles/pynfs/tasks/install-deps/suse/main.yml b/playbooks/roles/pynfs/tasks/install-deps/suse/main.yml
index 657dd7e0e170f86ec4fa2c47c1c7f29297317951..8321c064f9b00a4db9fdef35877ff180fad0b229 100644
--- a/playbooks/roles/pynfs/tasks/install-deps/suse/main.yml
+++ b/playbooks/roles/pynfs/tasks/install-deps/suse/main.yml
@@ -13,3 +13,7 @@
       - python3-gssapi
       - python3-ply
     state: present
+
+- name: Install xdrlib3
+  ansible.builtin.pip:
+    name: xdrlib3
diff --git a/playbooks/roles/pynfs/tasks/main.yml b/playbooks/roles/pynfs/tasks/main.yml
index d3b8832409b17fbc03a2a3e625e0d319a45af919..c6add8e47fec298e2c7351805a42307ee8398e3c 100644
--- a/playbooks/roles/pynfs/tasks/main.yml
+++ b/playbooks/roles/pynfs/tasks/main.yml
@@ -70,11 +70,6 @@
   when:
     - not kdevops_workflows_dedicated_workflow|bool
 
-- name: Install xdrlib3
-  tags: [ 'pynfs' ]
-  ansible.builtin.pip:
-    name: xdrlib3
-
 - name: Build pynfs
   tags: [ 'pynfs' ]
   command: ./setup.py build

---
base-commit: ccf731c4cf1f964e7e8a5fc2a8779ff10d306d64
change-id: 20250212-main-da16bedce7dc

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-13  7:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 14:14 [PATCH kdevops] pynfs: install packaged xdrlib3 module on Debian-derived distros Jeff Layton
2025-02-12 15:29 ` Chuck Lever
2025-02-13  7:06 ` Daniel Gomez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox