[dev-vcs/subversion*] split subversion-java
Add subversion-java and modified subversion ebuild. The purpose: * we want netbeans-ide that depends on subversion[java], * we don't want subversion compiled with Java support (extra dependency not needed by most users). The solution: split Java bindings from subversion and make separate ebuild for that.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
;;; subversion site-lisp configuration
|
||||
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
(and (< emacs-major-version 22)
|
||||
(add-to-list 'load-path "@SITELISP@/compat"))
|
||||
(add-to-list 'vc-handled-backends 'SVN)
|
||||
|
||||
(defalias 'svn-examine 'svn-status)
|
||||
(autoload 'svn-status "dsvn" "Run `svn status'." t)
|
||||
(autoload 'svn-update "dsvn" "Run `svn update'." t)
|
||||
(autoload 'svn-status "psvn"
|
||||
"Examine the status of Subversion working copy in directory DIR." t)
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -47,6 +47,7 @@
|
||||
SVN_SASL_LIBS = @SVN_SASL_LIBS@
|
||||
SVN_SERF_LIBS = @SVN_SERF_LIBS@
|
||||
SVN_SQLITE_LIBS = @SVN_SQLITE_LIBS@
|
||||
+SVN_XML_LIBS = -lexpat
|
||||
SVN_ZLIB_LIBS = @SVN_ZLIB_LIBS@
|
||||
|
||||
LIBS = @LIBS@
|
||||
--- build/ac-macros/aprutil.m4
|
||||
+++ build/ac-macros/aprutil.m4
|
||||
@@ -77,16 +77,14 @@
|
||||
AC_MSG_ERROR([apu-config --prefix failed])
|
||||
fi
|
||||
|
||||
- dnl When APR stores the dependent libs in the .la file, we don't need
|
||||
- dnl --libs.
|
||||
- SVN_APRUTIL_LIBS="`$apu_config --link-libtool --libs`"
|
||||
+ SVN_APRUTIL_LIBS="`$apu_config --link-libtool`"
|
||||
if test $? -ne 0; then
|
||||
- AC_MSG_ERROR([apu-config --link-libtool --libs failed])
|
||||
+ AC_MSG_ERROR([apu-config --link-libtool failed])
|
||||
fi
|
||||
|
||||
- SVN_APRUTIL_EXPORT_LIBS="`$apu_config --link-ld --libs`"
|
||||
+ SVN_APRUTIL_EXPORT_LIBS="`$apu_config --link-ld`"
|
||||
if test $? -ne 0; then
|
||||
- AC_MSG_ERROR([apu-config --link-ld --libs failed])
|
||||
+ AC_MSG_ERROR([apu-config --link-ld failed])
|
||||
fi
|
||||
|
||||
AC_SUBST(SVN_APRUTIL_INCLUDES)
|
||||
--- build/ac-macros/apr.m4
|
||||
+++ build/ac-macros/apr.m4
|
||||
@@ -74,16 +74,14 @@
|
||||
AC_MSG_ERROR([apr-config --prefix failed])
|
||||
fi
|
||||
|
||||
- dnl When APR stores the dependent libs in the .la file, we don't need
|
||||
- dnl --libs.
|
||||
- SVN_APR_LIBS="`$apr_config --link-libtool --libs`"
|
||||
+ SVN_APR_LIBS="`$apr_config --link-libtool`"
|
||||
if test $? -ne 0; then
|
||||
- AC_MSG_ERROR([apr-config --link-libtool --libs failed])
|
||||
+ AC_MSG_ERROR([apr-config --link-libtool failed])
|
||||
fi
|
||||
|
||||
- SVN_APR_EXPORT_LIBS="`$apr_config --link-ld --libs`"
|
||||
+ SVN_APR_EXPORT_LIBS="`$apr_config --link-ld`"
|
||||
if test $? -ne 0; then
|
||||
- AC_MSG_ERROR([apr-config --link-ld --libs failed])
|
||||
+ AC_MSG_ERROR([apr-config --link-ld failed])
|
||||
fi
|
||||
|
||||
SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
|
||||
@@ -0,0 +1,165 @@
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -198,6 +198,24 @@
|
||||
|
||||
AC_SUBST(LT_LDFLAGS)
|
||||
|
||||
+AC_ARG_ENABLE(local-library-preloading,
|
||||
+ AS_HELP_STRING([--disable-local-library-preloading],
|
||||
+ [Disable preloading of locally built libraries in locally built executables]),
|
||||
+ [
|
||||
+ if test "$enableval" != "no"; then
|
||||
+ TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
|
||||
+ else
|
||||
+ TRANSFORM_LIBTOOL_SCRIPTS=""
|
||||
+ fi
|
||||
+ ], [
|
||||
+ if test "`uname`" != "Darwin"; then
|
||||
+ TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts"
|
||||
+ else
|
||||
+ TRANSFORM_LIBTOOL_SCRIPTS=""
|
||||
+ fi
|
||||
+])
|
||||
+AC_SUBST(TRANSFORM_LIBTOOL_SCRIPTS)
|
||||
+
|
||||
dnl Check if -no-undefined is needed for the platform.
|
||||
dnl It should always work but with libtool 1.4.3 on OS X it breaks the build.
|
||||
dnl So we only turn it on for platforms where we know we really need it.
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -309,7 +309,10 @@
|
||||
|
||||
@INCLUDE_OUTPUTS@
|
||||
|
||||
-local-all: @BUILD_RULES@
|
||||
+local-all: @BUILD_RULES@ @TRANSFORM_LIBTOOL_SCRIPTS@
|
||||
+
|
||||
+transform-libtool-scripts: @BUILD_RULES@
|
||||
+ @$(top_srcdir)/build/transform_libtool_scripts.sh
|
||||
|
||||
locale-gnu-pot:
|
||||
cd $(abs_srcdir) && XGETTEXT="$(XGETTEXT)" MSGMERGE="$(MSGMERGE)" \
|
||||
--- build/transform_libtool_scripts.sh
|
||||
+++ build/transform_libtool_scripts.sh
|
||||
@@ -0,0 +1,121 @@
|
||||
+#!/bin/sh
|
||||
+#
|
||||
+#
|
||||
+# Licensed to the Apache Software Foundation (ASF) under one
|
||||
+# or more contributor license agreements. See the NOTICE file
|
||||
+# distributed with this work for additional information
|
||||
+# regarding copyright ownership. The ASF licenses this file
|
||||
+# to you under the Apache License, Version 2.0 (the
|
||||
+# "License"); you may not use this file except in compliance
|
||||
+# with the License. You may obtain a copy of the License at
|
||||
+#
|
||||
+# http://www.apache.org/licenses/LICENSE-2.0
|
||||
+#
|
||||
+# Unless required by applicable law or agreed to in writing,
|
||||
+# software distributed under the License is distributed on an
|
||||
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
+# KIND, either express or implied. See the License for the
|
||||
+# specific language governing permissions and limitations
|
||||
+# under the License.
|
||||
+#
|
||||
+#
|
||||
+
|
||||
+# Dependencies of libraries
|
||||
+subr="subr"
|
||||
+auth_gnome_keyring="auth_gnome_keyring $subr"
|
||||
+auth_kwallet="auth_kwallet $subr"
|
||||
+delta="delta $subr"
|
||||
+diff="diff $subr"
|
||||
+fs_util="fs_util $subr"
|
||||
+fs_base="fs_base $delta $fs_util $subr"
|
||||
+fs_fs="fs_fs $delta $fs_util $subr"
|
||||
+fs="fs $fs_base $fs_fs $fs_util $subr"
|
||||
+repos="repos $delta $fs $fs_util $subr"
|
||||
+ra_local="ra_local $delta $fs $fs_util $repos $subr"
|
||||
+ra_neon="ra_neon $delta $subr"
|
||||
+ra_serf="ra_serf $delta $subr"
|
||||
+ra_svn="ra_svn $delta $subr"
|
||||
+ra="ra $delta $ra_local $ra_neon $ra_serf $ra_svn $subr"
|
||||
+wc="wc $delta $diff $subr"
|
||||
+client="client $delta $diff $ra $subr $wc"
|
||||
+
|
||||
+# Variable 'libraries' containing names of variables corresponding to libraries
|
||||
+libraries="auth_gnome_keyring auth_kwallet client delta diff fs fs_base fs_fs fs_util ra ra_local ra_neon ra_serf ra_svn repos subr wc"
|
||||
+
|
||||
+for library in $libraries; do
|
||||
+ # Delete duplicates in dependencies of libraries
|
||||
+ library_dependencies="$(echo -n $(for x in $(eval echo "\$$library"); do echo $x; done | sort -u))"
|
||||
+ eval "$library=\$library_dependencies"
|
||||
+done
|
||||
+
|
||||
+# Dependencies of executables
|
||||
+svn="$auth_gnome_keyring $auth_kwallet $client $delta $diff $ra $subr $wc"
|
||||
+svnadmin="$delta $fs $repos $subr"
|
||||
+svndumpfilter="$delta $fs $repos $subr"
|
||||
+svnlook="$delta $diff $fs $repos $subr"
|
||||
+svnserve="$delta $fs $ra_svn $repos $subr"
|
||||
+svnsync="$auth_gnome_keyring $auth_kwallet $delta $ra $subr"
|
||||
+svnversion="$subr $wc"
|
||||
+entries_dump="$subr $wc"
|
||||
+
|
||||
+# Variable 'executables' containing names of variables corresponding to executables
|
||||
+executables="svn svnadmin svndumpfilter svnlook svnserve svnsync svnversion entries_dump"
|
||||
+
|
||||
+for executable in $executables; do
|
||||
+ # Set variables containing paths of executables
|
||||
+ if [ "$executable" != entries_dump ]; then
|
||||
+ eval "${executable}_path=subversion/$executable/$executable"
|
||||
+ else
|
||||
+ eval "${executable}_path=subversion/tests/cmdline/entries-dump"
|
||||
+ fi
|
||||
+ # Delete duplicates in dependencies of executables
|
||||
+ executable_dependencies="$(echo -n $(for x in $(eval echo "\$$executable"); do echo $x; done | sort -u))"
|
||||
+ eval "$executable=\$executable_dependencies"
|
||||
+done
|
||||
+
|
||||
+test_paths="$(find subversion/tests -mindepth 2 -maxdepth 2 -name '*-test' ! -path '*/.libs/*' | sort)"
|
||||
+for test in $test_paths; do
|
||||
+ test_path="$test"
|
||||
+ # Dependencies of tests are based on names of directories containing tests
|
||||
+ test_library="$(echo $test | sed -e 's:^subversion/tests/libsvn_\([^/]*\)/.*:\1:')"
|
||||
+ test_dependencies="$(eval echo "\$$test_library")"
|
||||
+ # Set variables corresponding to tests and containing dependencies of tests
|
||||
+ test="$(echo $test | sed -e 's:^subversion/tests/libsvn_[^/]*/\(.*\):\1:' -e 's/-/_/g')"
|
||||
+ eval "$test=\$test_dependencies"
|
||||
+ # Set variables containing paths of tests
|
||||
+ eval "${test}_path=\$test_path"
|
||||
+ # Set variable 'tests' containing names of variables corresponding to tests
|
||||
+ tests="$tests $test"
|
||||
+done
|
||||
+
|
||||
+# auth-test dynamically loads libsvn_auth_gnome_keyring and libsvn_auth_kwallet libraries
|
||||
+auth_test="auth_gnome_keyring auth_kwallet $auth_test"
|
||||
+
|
||||
+# Usage: sed_append LINE_NUMBER TEXT FILE
|
||||
+sed_append()
|
||||
+{
|
||||
+ sed -e "$1a\\
|
||||
+$2" "$3" > "$3.new"
|
||||
+ mv -f "$3.new" "$3"
|
||||
+}
|
||||
+
|
||||
+current_directory="$(pwd)"
|
||||
+for libtool_script in $executables $tests; do
|
||||
+ eval "libtool_script_path=\$${libtool_script}_path"
|
||||
+ libtool_script_libraries=""
|
||||
+ if [ -f "$libtool_script_path" ]; then
|
||||
+ if { grep LD_LIBRARY_PATH "$libtool_script_path" && ! grep LD_PRELOAD "$libtool_script_path"; } > /dev/null; then
|
||||
+ echo "Transforming $libtool_script_path"
|
||||
+ libtool_script_dependencies="$(eval echo "\$$libtool_script")"
|
||||
+ for libtool_script_dependency in $libtool_script_dependencies; do
|
||||
+ libtool_script_library="$current_directory/subversion/libsvn_$libtool_script_dependency/.libs/libsvn_$libtool_script_dependency-1.so"
|
||||
+ [ -f "$libtool_script_library" ] && libtool_script_libraries="$libtool_script_libraries $libtool_script_library"
|
||||
+ done
|
||||
+ libtool_script_libraries="${libtool_script_libraries# *}"
|
||||
+ # Append definitions of LD_PRELOAD to libtool scripts
|
||||
+ sed_append 4 "LD_PRELOAD=\"$libtool_script_libraries\"" "$libtool_script_path"
|
||||
+ sed_append 5 "export LD_PRELOAD" "$libtool_script_path"
|
||||
+ chmod +x "$libtool_script_path"
|
||||
+ fi
|
||||
+ fi
|
||||
+done
|
||||
@@ -0,0 +1,298 @@
|
||||
https://svn.collab.net/viewvc/svn?view=revision&revision=38004
|
||||
https://svn.collab.net/viewvc/svn?view=revision&revision=38014
|
||||
https://svn.collab.net/viewvc/svn?view=revision&revision=38028
|
||||
https://svn.collab.net/viewvc/svn?view=revision&revision=38122
|
||||
|
||||
--- subversion/libsvn_auth_kwallet/kwallet.cpp
|
||||
+++ subversion/libsvn_auth_kwallet/kwallet.cpp
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
/*** Includes. ***/
|
||||
|
||||
+#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -30,6 +31,9 @@
|
||||
#include "svn_auth.h"
|
||||
#include "svn_config.h"
|
||||
#include "svn_error.h"
|
||||
+#include "svn_io.h"
|
||||
+#include "svn_pools.h"
|
||||
+#include "svn_string.h"
|
||||
#include "svn_version.h"
|
||||
|
||||
#include "private/svn_auth_private.h"
|
||||
@@ -38,13 +42,20 @@
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
#include <QtCore/QCoreApplication>
|
||||
+#include <QtCore/QList>
|
||||
+#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
+#include <QtGui/QApplication>
|
||||
+#include <QtGui/QX11Info>
|
||||
|
||||
#include <kaboutdata.h>
|
||||
#include <kcmdlineargs.h>
|
||||
#include <kcomponentdata.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kwallet.h>
|
||||
+#include <kwindowsystem.h>
|
||||
+#include <netwm.h>
|
||||
+#include <netwm_def.h>
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------------*/
|
||||
@@ -52,6 +63,28 @@
|
||||
/*-----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
+#define INITIALIZE_APPLICATION \
|
||||
+ if (apr_hash_get(parameters, \
|
||||
+ "svn:auth:qapplication-safe", \
|
||||
+ APR_HASH_KEY_STRING)) \
|
||||
+ { \
|
||||
+ QApplication *app; \
|
||||
+ if (! qApp) \
|
||||
+ { \
|
||||
+ int argc = 1; \
|
||||
+ app = new QApplication(argc, (char *[1]) {(char *) "svn"}); \
|
||||
+ } \
|
||||
+ } \
|
||||
+ else \
|
||||
+ { \
|
||||
+ QCoreApplication *app; \
|
||||
+ if (! qApp) \
|
||||
+ { \
|
||||
+ int argc = 1; \
|
||||
+ app = new QCoreApplication(argc, (char *[1]) {(char *) "svn"}); \
|
||||
+ } \
|
||||
+ }
|
||||
+
|
||||
static const char *
|
||||
get_application_name(apr_hash_t *parameters,
|
||||
apr_pool_t *pool)
|
||||
@@ -69,8 +102,7 @@
|
||||
const char *svn_application_name;
|
||||
if (svn_application_name_with_pid)
|
||||
{
|
||||
- long pid = getpid();
|
||||
- svn_application_name = apr_psprintf(pool, "Subversion [%ld]", pid);
|
||||
+ svn_application_name = apr_psprintf(pool, "Subversion [%ld]", long(getpid()));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -102,9 +134,108 @@
|
||||
}
|
||||
}
|
||||
|
||||
+static pid_t
|
||||
+get_parent_pid(pid_t pid,
|
||||
+ apr_pool_t *pool)
|
||||
+{
|
||||
+ pid_t parent_pid = 0;
|
||||
+
|
||||
+#ifdef __linux__
|
||||
+ svn_stream_t *stat_file_stream;
|
||||
+ svn_string_t *stat_file_string;
|
||||
+ const char *preceeding_space, *following_space, *parent_pid_string;
|
||||
+
|
||||
+ const char *path = apr_psprintf(pool, "/proc/%ld/stat", long(pid));
|
||||
+ svn_error_t *err = svn_stream_open_readonly(&stat_file_stream, path, pool, pool);
|
||||
+ if (err == SVN_NO_ERROR)
|
||||
+ {
|
||||
+ err = svn_string_from_stream(&stat_file_string, stat_file_stream, pool, pool);
|
||||
+ if (err == SVN_NO_ERROR)
|
||||
+ {
|
||||
+ if ((preceeding_space = strchr(stat_file_string->data, ' ')))
|
||||
+ {
|
||||
+ if ((preceeding_space = strchr(preceeding_space + 1, ' ')))
|
||||
+ {
|
||||
+ if ((preceeding_space = strchr(preceeding_space + 1, ' ')))
|
||||
+ {
|
||||
+ if ((following_space = strchr(preceeding_space + 1, ' ')))
|
||||
+ {
|
||||
+ parent_pid_string = apr_pstrndup(pool,
|
||||
+ preceeding_space + 1,
|
||||
+ following_space - preceeding_space);
|
||||
+ parent_pid = atol(parent_pid_string);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (err)
|
||||
+ {
|
||||
+ svn_error_clear(err);
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
+ return parent_pid;
|
||||
+}
|
||||
+
|
||||
+static WId
|
||||
+get_wid(apr_hash_t *parameters,
|
||||
+ apr_pool_t *pool)
|
||||
+{
|
||||
+ WId wid = 1;
|
||||
+
|
||||
+ if (apr_hash_get(parameters,
|
||||
+ "svn:auth:qapplication-safe",
|
||||
+ APR_HASH_KEY_STRING))
|
||||
+ {
|
||||
+ QMap<pid_t, WId> process_info_list;
|
||||
+ QList<WId> windows(KWindowSystem::windows());
|
||||
+ QList<WId>::const_iterator i;
|
||||
+ for (i = windows.begin(); i != windows.end(); i++)
|
||||
+ {
|
||||
+ process_info_list[NETWinInfo(QX11Info::display(),
|
||||
+ *i,
|
||||
+ QX11Info::appRootWindow(),
|
||||
+ NET::WMPid).pid()] = *i;
|
||||
+ }
|
||||
+
|
||||
+ apr_pool_t *iterpool = svn_pool_create(pool);
|
||||
+ pid_t pid = getpid();
|
||||
+ while (pid != 0)
|
||||
+ {
|
||||
+ svn_pool_clear(iterpool);
|
||||
+ if (process_info_list.contains(pid))
|
||||
+ {
|
||||
+ wid = process_info_list[pid];
|
||||
+ break;
|
||||
+ }
|
||||
+ pid = get_parent_pid(pid, iterpool);
|
||||
+ }
|
||||
+ svn_pool_destroy(iterpool);
|
||||
+ }
|
||||
+
|
||||
+ if (wid == 1)
|
||||
+ {
|
||||
+ const char *wid_env_string = getenv("WINDOWID");
|
||||
+ if (wid_env_string)
|
||||
+ {
|
||||
+ long wid_env = atol(wid_env_string);
|
||||
+ if (wid_env != 0)
|
||||
+ {
|
||||
+ wid = wid_env;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return wid;
|
||||
+}
|
||||
+
|
||||
static KWallet::Wallet *
|
||||
get_wallet(QString wallet_name,
|
||||
- apr_hash_t *parameters)
|
||||
+ apr_hash_t *parameters,
|
||||
+ apr_pool_t *pool)
|
||||
{
|
||||
KWallet::Wallet *wallet =
|
||||
static_cast<KWallet::Wallet *> (apr_hash_get(parameters,
|
||||
@@ -115,7 +246,7 @@
|
||||
APR_HASH_KEY_STRING))
|
||||
{
|
||||
wallet = KWallet::Wallet::openWallet(wallet_name,
|
||||
- -1,
|
||||
+ pool ? get_wid(parameters, pool) : 1,
|
||||
KWallet::Wallet::Synchronous);
|
||||
}
|
||||
if (wallet)
|
||||
@@ -141,7 +272,7 @@
|
||||
apr_hash_t *parameters = static_cast<apr_hash_t *> (data);
|
||||
if (apr_hash_get(parameters, "kwallet-initialized", APR_HASH_KEY_STRING))
|
||||
{
|
||||
- KWallet::Wallet *wallet = get_wallet(NULL, parameters);
|
||||
+ KWallet::Wallet *wallet = get_wallet(NULL, parameters, NULL);
|
||||
delete wallet;
|
||||
apr_hash_set(parameters,
|
||||
"kwallet-initialized",
|
||||
@@ -172,12 +303,7 @@
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
- QCoreApplication *app;
|
||||
- if (! qApp)
|
||||
- {
|
||||
- int argc = 1;
|
||||
- app = new QCoreApplication(argc, (char *[1]) {(char *) "svn"});
|
||||
- }
|
||||
+ INITIALIZE_APPLICATION
|
||||
|
||||
KCmdLineArgs::init(1,
|
||||
(char *[1]) {(char *) "svn"},
|
||||
@@ -195,7 +321,7 @@
|
||||
QString::fromUtf8(username) + "@" + QString::fromUtf8(realmstring);
|
||||
if (! KWallet::Wallet::keyDoesNotExist(wallet_name, folder, key))
|
||||
{
|
||||
- KWallet::Wallet *wallet = get_wallet(wallet_name, parameters);
|
||||
+ KWallet::Wallet *wallet = get_wallet(wallet_name, parameters, pool);
|
||||
if (wallet)
|
||||
{
|
||||
apr_hash_set(parameters,
|
||||
@@ -242,12 +368,7 @@
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
- QCoreApplication *app;
|
||||
- if (! qApp)
|
||||
- {
|
||||
- int argc = 1;
|
||||
- app = new QCoreApplication(argc, (char *[1]) {(char *) "svn"});
|
||||
- }
|
||||
+ INITIALIZE_APPLICATION
|
||||
|
||||
KCmdLineArgs::init(1,
|
||||
(char *[1]) {(char *) "svn"},
|
||||
@@ -262,7 +383,7 @@
|
||||
QString q_password = QString::fromUtf8(password);
|
||||
QString wallet_name = get_wallet_name(parameters);
|
||||
QString folder = QString::fromUtf8("Subversion");
|
||||
- KWallet::Wallet *wallet = get_wallet(wallet_name, parameters);
|
||||
+ KWallet::Wallet *wallet = get_wallet(wallet_name, parameters, pool);
|
||||
if (wallet)
|
||||
{
|
||||
apr_hash_set(parameters,
|
||||
--- subversion/svn/main.c
|
||||
+++ subversion/svn/main.c
|
||||
@@ -2067,6 +2067,9 @@
|
||||
pool)))
|
||||
svn_handle_error2(err, stderr, TRUE, "svn: ");
|
||||
|
||||
+ /* svn can safely create instance of QApplication class. */
|
||||
+ svn_auth_set_parameter(ab, "svn:auth:qapplication-safe", "1");
|
||||
+
|
||||
ctx->auth_baton = ab;
|
||||
|
||||
/* Set up conflict resolution callback. */
|
||||
--- subversion/svnsync/main.c
|
||||
+++ subversion/svnsync/main.c
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* ====================================================================
|
||||
- * Copyright (c) 2005-2008 CollabNet. All rights reserved.
|
||||
+ * Copyright (c) 2005-2009 CollabNet. All rights reserved.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
@@ -2362,7 +2362,15 @@
|
||||
check_cancel, NULL,
|
||||
pool);
|
||||
if (! err)
|
||||
- err = (*subcommand->cmd_func)(os, &opt_baton, pool);
|
||||
+ {
|
||||
+ /* svnsync can safely create instance of QApplication class. */
|
||||
+ svn_auth_set_parameter(opt_baton.source_auth_baton,
|
||||
+ "svn:auth:qapplication-safe", "1");
|
||||
+ svn_auth_set_parameter(opt_baton.sync_auth_baton,
|
||||
+ "svn:auth:qapplication-safe", "1");
|
||||
+
|
||||
+ err = (*subcommand->cmd_func)(os, &opt_baton, pool);
|
||||
+ }
|
||||
if (err)
|
||||
{
|
||||
/* For argument-related problems, suggest using the 'help'
|
||||
@@ -0,0 +1,10 @@
|
||||
# The commented variables in this file are the defaults that are used
|
||||
# in the init-script. You don't need to uncomment them except to
|
||||
# customize them to different values.
|
||||
|
||||
# Options for svnserve
|
||||
#SVNSERVE_OPTS="--root=/var/svn"
|
||||
|
||||
# User and group as which to run svnserve
|
||||
#SVNSERVE_USER="svn"
|
||||
#SVNSERVE_GROUP="svnusers"
|
||||
@@ -0,0 +1,26 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/files/svnserve.initd,v 1.1 2010/06/22 18:17:21 arfrever Exp $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting svnserve"
|
||||
# Ensure that we run from a readable working dir, and that we do not
|
||||
# lock filesystems when being run from such a location.
|
||||
cd /
|
||||
start-stop-daemon --start --quiet --background --make-pidfile \
|
||||
--pidfile /var/run/svnserve.pid --exec /usr/bin/svnserve \
|
||||
--chuid ${SVNSERVE_USER:-apache}:${SVNSERVE_GROUP:-apache} -- \
|
||||
--foreground --daemon ${SVNSERVE_OPTS:---root=/var/svn}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping svnserve"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/svnserve.pid
|
||||
eend $?
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
service svn
|
||||
{
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = apache
|
||||
group = apache
|
||||
umask = 002
|
||||
protocol = tcp
|
||||
log_on_failure += USERID HOST
|
||||
port = 3690
|
||||
server = /usr/bin/svnserve
|
||||
server_args = -i
|
||||
disable = yes
|
||||
}
|
||||
Reference in New Issue
Block a user