[59025] trunk/dports/sysutils/bacula
macsforever2000 at macports.org
macsforever2000 at macports.org
Thu Oct 8 10:07:29 PDT 2009
Revision: 59025
http://trac.macports.org/changeset/59025
Author: macsforever2000 at macports.org
Date: 2009-10-08 10:07:27 -0700 (Thu, 08 Oct 2009)
Log Message:
-----------
Fix for Snow Leopard crash. (#21866)
Modified Paths:
--------------
trunk/dports/sysutils/bacula/Portfile
Added Paths:
-----------
trunk/dports/sysutils/bacula/files/patch-3.0.2-mac-path-len.diff
Modified: trunk/dports/sysutils/bacula/Portfile
===================================================================
--- trunk/dports/sysutils/bacula/Portfile 2009-10-08 17:05:54 UTC (rev 59024)
+++ trunk/dports/sysutils/bacula/Portfile 2009-10-08 17:07:27 UTC (rev 59025)
@@ -76,6 +76,11 @@
startupitem.start "\[ -x \${BIN} \] && \${BIN} -c ${prefix}/etc/bacula/bacula-fd.conf"
startupitem.stop "\[ -r \${PID} \] && /bin/kill \$(cat \${PID})"
+platform darwin 10 {
+ # This patch can be removed for version 3.0.3.
+ patchfiles-append patch-3.0.2-mac-path-len.diff
+}
+
variant client_only conflicts mysql4 mysql5 postgresql83 sqlite2 sqlite3 description "Install bacula client (bacula-fd) only" {
configure.args-append --enable-client-only
}
Added: trunk/dports/sysutils/bacula/files/patch-3.0.2-mac-path-len.diff
===================================================================
--- trunk/dports/sysutils/bacula/files/patch-3.0.2-mac-path-len.diff (rev 0)
+++ trunk/dports/sysutils/bacula/files/patch-3.0.2-mac-path-len.diff 2009-10-08 17:07:27 UTC (rev 59025)
@@ -0,0 +1,22 @@
+diff --git a/bacula/src/findlib/find.c b/bacula/src/findlib/find.c
+index ac9e4ce..81e887a 100644
+--- src/findlib/find.c
++++ src/findlib/find.c
+@@ -67,13 +67,13 @@ FF_PKT *init_find_files()
+
+ /* Get system path and filename maximum lengths */
+ path_max = pathconf(".", _PC_PATH_MAX);
+- if (path_max < 1024) {
+- path_max = 1024;
++ if (path_max < 2048) {
++ path_max = 2048;
+ }
+
+ name_max = pathconf(".", _PC_NAME_MAX);
+- if (name_max < 1024) {
+- name_max = 1024;
++ if (name_max < 2048) {
++ name_max = 2048;
+ }
+ path_max++; /* add for EOS */
+ name_max++; /* add for EOS */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091008/3227da8d/attachment.html>
More information about the macports-changes
mailing list