From ed9df90e24e95510fb94a250c234a7e75ba24cf3 Mon Sep 17 00:00:00 2001 From: Garrick Staples Date: Thu, 14 Feb 2008 21:14:23 +0000 Subject: [PATCH] - fix missing NI_MAXSERV on fedora9 --- torque-2.1.10-NI_MAXSERV.patch | 14 ++++++++++++++ torque.spec | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 torque-2.1.10-NI_MAXSERV.patch diff --git a/torque-2.1.10-NI_MAXSERV.patch b/torque-2.1.10-NI_MAXSERV.patch new file mode 100644 index 0000000..a6df41f --- /dev/null +++ b/torque-2.1.10-NI_MAXSERV.patch @@ -0,0 +1,14 @@ +diff -pruN torque-2.1.10_orig/src/include/port_forwarding.h torque-2.1.10/src/include/port_forwarding.h +--- torque-2.1.10_orig/src/include/port_forwarding.h 2006-10-13 11:25:37.000000000 -0700 ++++ torque-2.1.10/src/include/port_forwarding.h 2008-02-14 13:08:05.000000000 -0800 +@@ -16,6 +16,10 @@ + # endif + #endif /* X_UNIX_PATH */ + ++#ifndef NI_MAXSERV ++# define NI_MAXSERV 32 ++#endif /* !NI_MAXSERV */ ++ + + struct pfwdsock { + int sock; diff --git a/torque.spec b/torque.spec index bd8a9b1..a0ff68c 100644 --- a/torque.spec +++ b/torque.spec @@ -3,7 +3,7 @@ %define name torque %define version 2.1.10 #%%define snap 200604251602 -%define release 4 +%define release 5 # The following options are supported: # --with server_name=hostname @@ -101,6 +101,8 @@ BuildRequires: desktop-file-utils, pam-devel, xauth, readline-devel, ncurses-dev Conflicts: pbspro, openpbs, openpbs-oscar Obsoletes: torque-localhost +Patch0: torque-2.1.10-NI_MAXSERV.patch + %if %use_tcl BuildRequires: tcl-devel %endif @@ -120,6 +122,7 @@ This package holds just a few shared files and directories. %prep %setup -q -n torque-%{version}%{?snap:-snap.%snap} +%patch0 -p1 %__install -pm 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} . @@ -405,6 +408,9 @@ A simple PAM module to authorize users on PBS MOM nodes with a running job. %changelog +* Thu Feb 14 2008 Garrick Staples 2.1.10-5 +- fix missing NI_MAXSERV on fedora9 + * Thu Jan 3 2008 Garrick Staples 2.1.10-4 - correct pbs-config build typo