public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kaleb S. KEITHLEY <kkeithle@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libntirpc] f44: eliminate libnsl* dependency
Date: Fri, 19 Jun 2026 11:59:15 GMT	[thread overview]
Message-ID: <178187035508.1.1531103468397958151.rpms-libntirpc-1d995363cfc5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/libntirpc
Branch : f44
Commit : 1d995363cfc5d75f1d02c7e1a4dd21ec584191e4
Author : Kaleb S. KEITHLEY <kkeithle@redhat.com>
Date   : 2026-03-18T13:06:03-04:00
Stats  : +20/-48 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/libntirpc/c/1d995363cfc5d75f1d02c7e1a4dd21ec584191e4?branch=f44

Log:
eliminate libnsl* dependency

---
diff --git a/0001-CMakeLists.txt.patch b/0001-CMakeLists.txt.patch
index abc3b75..b12c84c 100644
--- a/0001-CMakeLists.txt.patch
+++ b/0001-CMakeLists.txt.patch
@@ -1,12 +1,27 @@
---- ntirpc-6.3/CMakeLists.txt.orig	2025-07-16 08:49:56.771709703 -0400
-+++ ntirpc-6.3/CMakeLists.txt	2025-07-16 09:12:12.285427043 -0400
+--- ntirpc-7.2/CMakeLists.txt.orig	2026-03-18 11:24:00.125716064 -0400
++++ ntirpc-7.2/CMakeLists.txt	2026-03-18 11:45:40.359470436 -0400
 @@ -2,7 +2,8 @@
  
  # Current version as of Fedora 16.  Not tested with earlier.
  
 -cmake_minimum_required(VERSION 2.6.3)
-+cmake_minimum_required(VERSION 3.3.0...4.0)
-+cmake_policy(VERSION 3.2.2)
++cmake_minimum_required(VERSION 3.6.0)
++cmake_policy(SET CMP0175 OLD)
  
  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
  
+@@ -237,14 +238,6 @@
+   ${SYSTEM_LIBRARIES}
+ )
+ 
+-if (NOT BSDBASED)
+-  find_package(NSL) # sockets
+-  set(SYSTEM_LIBRARIES
+-    ${SYSTEM_LIBRARIES}
+-    ${NSL_LIBRARY}
+-  )
+-endif (NOT BSDBASED)
+-
+ set(LIBNTIRPC_MAP "${PROJECT_BINARY_DIR}/src/libntirpc.map")
+ # subst files (need add_custom_command for dependency, fyi)
+ configure_file(

diff --git a/352.patch b/352.patch
deleted file mode 100644
index e931dcc..0000000
--- a/352.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 6d404cfba5b06eeb62d965a5c78317ab601fcb66 Mon Sep 17 00:00:00 2001
-From: Cristian Le <git@lecris.dev>
-Date: Thu, 17 Jul 2025 12:53:22 +0200
-Subject: [PATCH] Bump CMake policies
-
----
- CMakeLists.txt | 8 +++-----
- 1 file changed, 3 insertions(+), 5 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 01fe53ae1..e6a1d03f8 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -2,7 +2,7 @@
- 
- # Current version as of Fedora 16.  Not tested with earlier.
- 
--cmake_minimum_required(VERSION 2.6.3)
-+cmake_minimum_required(VERSION 2.6...4.0)
- 
- set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
- 
-@@ -312,15 +312,13 @@ set( PKG_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}.tar.gz")
- endif (NOT TARGET dist)
- 
- if (NOT TARGET rpm)
--add_custom_target( rpm DEPENDS dist)
--add_custom_command(TARGET rpm
-+add_custom_target( rpm
-                   COMMAND sh -c "rpmbuild -ta ${PKG_NAME}"
- 		  VERBATIM
- 		  DEPENDS dist)
- 
- set(RPMDEST "--define '_srcrpmdir ${CMAKE_CURRENT_BINARY_DIR}'")
--add_custom_target( srpm DEPENDS dist)
--add_custom_command(TARGET srpm
-+add_custom_target( srpm
-                   COMMAND sh -c "rpmbuild ${RPMDEST} -ts ${PKG_NAME}"
- 		  VERBATIM
- 		  DEPENDS dist)

diff --git a/libntirpc.spec b/libntirpc.spec
index 4511cff..4c5f45d 100644
--- a/libntirpc.spec
+++ b/libntirpc.spec
@@ -3,7 +3,7 @@
 
 Name:		libntirpc
 Version:	7.2
-Release:	2%{?dev:%{dev}}%{?dist}
+Release:	3%{?dev:%{dev}}%{?dist}
 Summary:	New Transport Independent RPC Library
 License:	BSD-3-Clause
 Url:		https://github.com/nfs-ganesha/ntirpc
@@ -22,9 +22,6 @@ BuildRequires:	librdmacm
 BuildRequires:	rdma-core-devel
 BuildRequires:	krb5-devel
 BuildRequires:	userspace-rcu-devel
-%if ( 0%{?fedora} && 0%{?fedora} > 27 )
-BuildRequires:  libnsl2-devel
-%endif
 # libtirpc has /etc/netconfig, most machines probably have it anyway
 # for NFS client
 Requires:	libtirpc

                 reply	other threads:[~2026-06-19 11:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178187035508.1.1531103468397958151.rpms-libntirpc-1d995363cfc5@fedoraproject.org \
    --to=kkeithle@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox