FreeBSD Bugzilla – Attachment 237216 Details for
Bug 266970
net/nss-pam-ldapd: Very slow startup on machines with lots of RAM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patches nslcd to use closefrom instead of close
nslcd-closefrom.diff (text/plain), 3.27 KB, created by
Alan Somers
on 2022-10-11 15:14:41 UTC
(
hide
)
Description:
Patches nslcd to use closefrom instead of close
Filename:
MIME Type:
Creator:
Alan Somers
Created:
2022-10-11 15:14:41 UTC
Size:
3.27 KB
patch
obsolete
>diff --git a/net/nss-pam-ldapd/Makefile b/net/nss-pam-ldapd/Makefile >index 28d6cdc1f8fd..f0a212f9665a 100644 >--- a/net/nss-pam-ldapd/Makefile >+++ b/net/nss-pam-ldapd/Makefile >@@ -1,9 +1,14 @@ > PORTNAME= nss-pam-ldapd > PORTVERSION= 0.9.12 >+PORTREVISION= 1 > CATEGORIES= net > MASTER_SITES= http://arthurdejong.org/nss-pam-ldapd/ \ > ZI > >+PATCH_SITES= https://github.com/arthurdejong/nss-pam-ldapd/commit/ >+PATCHFILES+= 2f6e65ab384917a9b2ee4b25a172acc107a640b3.diff:-p1 >+PATCHFILES+= 1c9b021e78dc67b9cdca5f9ad10cbde08418ee28.diff:-p1 >+ > MAINTAINER?= zi@FreeBSD.org > COMMENT?= Advanced fork of nss_ldap > WWW= https://arthurdejong.org/nss-pam-ldapd/ >diff --git a/net/nss-pam-ldapd/distinfo b/net/nss-pam-ldapd/distinfo >index a276aed8191e..6f032996f4a2 100644 >--- a/net/nss-pam-ldapd/distinfo >+++ b/net/nss-pam-ldapd/distinfo >@@ -1,3 +1,7 @@ >-TIMESTAMP = 1649433966 >+TIMESTAMP = 1665441122 > SHA256 (nss-pam-ldapd-0.9.12.tar.gz) = c6d661e74693cbf531a790631ca93b73f291fb23cc39465b09deb8da2bfb0e14 > SIZE (nss-pam-ldapd-0.9.12.tar.gz) = 791983 >+SHA256 (2f6e65ab384917a9b2ee4b25a172acc107a640b3.diff) = ae0070f28b67d0df164c85b7ba98a5048d85d9a43b28791ed313935839c8dbbc >+SIZE (2f6e65ab384917a9b2ee4b25a172acc107a640b3.diff) = 3039 >+SHA256 (1c9b021e78dc67b9cdca5f9ad10cbde08418ee28.diff) = 82ca6448bd60c515cb6a67e0862797045414f6a2f9cda4607c555f142b50b518 >+SIZE (1c9b021e78dc67b9cdca5f9ad10cbde08418ee28.diff) = 301 >diff --git a/net/nss-pam-ldapd/files/patch-Makefile.am b/net/nss-pam-ldapd/files/patch-Makefile.am >new file mode 100644 >index 000000000000..a7213355a5f9 >--- /dev/null >+++ b/net/nss-pam-ldapd/files/patch-Makefile.am >@@ -0,0 +1,11 @@ >+--- Makefile.am.orig 2022-10-10 22:26:17 UTC >++++ Makefile.am >+@@ -61,7 +61,7 @@ install-nslcd_conf: >+ echo "$(DESTDIR)$(NSLCD_CONF_PATH) already exists, install will not overwrite"; \ >+ else \ >+ $(mkinstalldirs) `dirname $(DESTDIR)$(NSLCD_CONF_PATH)`; \ >+- $(INSTALL) -m 600 $(srcdir)/nslcd.conf $(DESTDIR)$(NSLCD_CONF_PATH); \ >++ $(INSTALL) -m 600 $(srcdir)/nslcd.conf $(DESTDIR)$(NSLCD_CONF_PATH).sample; \ >+ fi >+ uninstall-nslcd_conf: >+ -rm -f $(DESTDIR)$(NSLCD_CONF_PATH) >diff --git a/net/nss-pam-ldapd/files/patch-config.h.in b/net/nss-pam-ldapd/files/patch-config.h.in >new file mode 100644 >index 000000000000..e9ab0c2bf48b >--- /dev/null >+++ b/net/nss-pam-ldapd/files/patch-config.h.in >@@ -0,0 +1,12 @@ >+--- config.h.in.orig 2022-10-10 21:16:40 UTC >++++ config.h.in >+@@ -30,6 +30,9 @@ >+ /* Define to 1 if you have the `clearenv' function. */ >+ #undef HAVE_CLEARENV >+ >++/* Define to 1 if you have the `closefrom' function. */ >++#undef HAVE_CLOSEFROM >++ >+ /* Define to 1 if you have the <ctype.h> header file. */ >+ #undef HAVE_CTYPE_H >+ >diff --git a/net/nss-pam-ldapd/files/patch-configure b/net/nss-pam-ldapd/files/patch-configure >new file mode 100644 >index 000000000000..d97e0366b1af >--- /dev/null >+++ b/net/nss-pam-ldapd/files/patch-configure >@@ -0,0 +1,16 @@ >+--- configure.orig 2021-11-20 13:07:41 UTC >++++ configure >+@@ -9684,6 +9684,13 @@ then : >+ >+ fi >+ >++ ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" >++if test "x$ac_cv_func_closefrom" = xyes >++then : >++ printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h >++ >++fi >++ >+ >+ # replace some functions if they are not on the system >+ ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 266970
: 237216