Accepting request 124109 from home:AndreasStieger:branches:devel:tools:scm:svn
- add subversion-1.7.5-libsvn_auth_kwallet-r1345740.patch from trunk to fix build with gcc 4.7 in openSUSE Factory - move checks for schemes handled by ra modules into %check section - do not run regression tests by default: * too many failed builds * doesn't include http tests - only require iproute2 when running regression tests OBS-URL: https://build.opensuse.org/request/show/124109 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=98
This commit is contained in:
parent
a52a5628f5
commit
a4350a867e
59
subversion-1.7.5-libsvn_auth_kwallet-r1345740.patch
Normal file
59
subversion-1.7.5-libsvn_auth_kwallet-r1345740.patch
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
svn diff -c1345740 https://svn.apache.org/repos/asf/subversion/trunk
|
||||||
|
|
||||||
|
r1345740 | peters | 2012-06-03 19:54:26 +0100 (Sun, 03 Jun 2012) | 7 lines
|
||||||
|
Changed paths:
|
||||||
|
M /subversion/trunk/subversion/libsvn_auth_kwallet/kwallet.cpp
|
||||||
|
|
||||||
|
Remove a cast that is both ugly, and apparently illegal in g++ 4.7.
|
||||||
|
|
||||||
|
* subversion/libsvn_auth_kwallet/kwallet.cpp
|
||||||
|
(q_argc, q_argv): New.
|
||||||
|
(kwallet_password_get, kwallet_password_set):
|
||||||
|
Use q_argc and q_argv instead of trying to open-code them.
|
||||||
|
|
||||||
|
Index: subversion/libsvn_auth_kwallet/kwallet.cpp
|
||||||
|
===================================================================
|
||||||
|
--- subversion/libsvn_auth_kwallet/kwallet.cpp.orig 2010-12-30 20:46:50.000000000 +0000
|
||||||
|
+++ subversion/libsvn_auth_kwallet/kwallet.cpp 2012-06-07 18:01:02.000000000 +0100
|
||||||
|
@@ -60,6 +60,9 @@
|
||||||
|
/* KWallet simple provider, puts passwords in KWallet */
|
||||||
|
/*-----------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
+static int q_argc = 1;
|
||||||
|
+static char q_argv0[] = "svn"; // Build non-const char * from string constant
|
||||||
|
+static char *q_argv[] = { q_argv0 };
|
||||||
|
|
||||||
|
static const char *
|
||||||
|
get_application_name(apr_hash_t *parameters,
|
||||||
|
@@ -203,12 +206,11 @@ kwallet_password_get(const char **passwo
|
||||||
|
QCoreApplication *app;
|
||||||
|
if (! qApp)
|
||||||
|
{
|
||||||
|
- int argc = 1;
|
||||||
|
- app = new QCoreApplication(argc, (char *[1]) {(char *) "svn"});
|
||||||
|
+ int argc = q_argc;
|
||||||
|
+ app = new QCoreApplication(argc, q_argv);
|
||||||
|
}
|
||||||
|
|
||||||
|
- KCmdLineArgs::init(1,
|
||||||
|
- (char *[1]) {(char *) "svn"},
|
||||||
|
+ KCmdLineArgs::init(q_argc, q_argv,
|
||||||
|
get_application_name(parameters, pool),
|
||||||
|
"subversion",
|
||||||
|
ki18n(get_application_name(parameters, pool)),
|
||||||
|
@@ -273,12 +275,11 @@ kwallet_password_set(apr_hash_t *creds,
|
||||||
|
QCoreApplication *app;
|
||||||
|
if (! qApp)
|
||||||
|
{
|
||||||
|
- int argc = 1;
|
||||||
|
- app = new QCoreApplication(argc, (char *[1]) {(char *) "svn"});
|
||||||
|
+ int argc = q_argc;
|
||||||
|
+ app = new QCoreApplication(argc, q_argv);
|
||||||
|
}
|
||||||
|
|
||||||
|
- KCmdLineArgs::init(1,
|
||||||
|
- (char *[1]) {(char *) "svn"},
|
||||||
|
+ KCmdLineArgs::init(q_argc, q_argv,
|
||||||
|
get_application_name(parameters, pool),
|
||||||
|
"subversion",
|
||||||
|
ki18n(get_application_name(parameters, pool)),
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 7 17:08:01 UTC 2012 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
- add subversion-1.7.5-libsvn_auth_kwallet-r1345740.patch from trunk
|
||||||
|
to fix build with gcc 4.7
|
||||||
|
- move checks for schemes handled by ra modules into %check section
|
||||||
|
- do not run regression tests by default:
|
||||||
|
* too many failed builds
|
||||||
|
* doesn't include http tests
|
||||||
|
- only require iproute2 when running regression tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 21 19:58:48 UTC 2012 - andreas.stieger@gmx.de
|
Mon May 21 19:58:48 UTC 2012 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
@ -35,13 +35,8 @@
|
|||||||
|
|
||||||
%bcond_without serf
|
%bcond_without serf
|
||||||
|
|
||||||
# do not run regression tests for Factory, unless --with=regression_tests
|
# run build --with=regression_tests to run test suite
|
||||||
%if 0%{?suse_version} > 1210
|
|
||||||
%bcond_with regression_tests
|
%bcond_with regression_tests
|
||||||
%else
|
|
||||||
# run regression tests for previous releases, unless --without=regression_tests
|
|
||||||
%bcond_without regression_tests
|
|
||||||
%endif # suse_version
|
|
||||||
|
|
||||||
%if 0%{?sles_version} > 10 && 0%{?sles_version} < 12
|
%if 0%{?sles_version} > 10 && 0%{?sles_version} < 12
|
||||||
%define with_bashcomp 0
|
%define with_bashcomp 0
|
||||||
@ -109,8 +104,10 @@ BuildRequires: libneon-devel
|
|||||||
BuildRequires: neon-devel
|
BuildRequires: neon-devel
|
||||||
BuildRequires: openldap2-devel
|
BuildRequires: openldap2-devel
|
||||||
%endif # suse_version > 1030
|
%endif # suse_version > 1030
|
||||||
# for %check section, to find a free port:
|
%if %{with regression_tests}
|
||||||
|
# for check section, to find a free port:
|
||||||
BuildRequires: iproute2
|
BuildRequires: iproute2
|
||||||
|
%endif # with regression_tests
|
||||||
#
|
#
|
||||||
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
||||||
#
|
#
|
||||||
@ -165,6 +162,8 @@ Patch37: subversion-no-build-date.patch
|
|||||||
Patch38: subversion-neon-systemproxy.patch
|
Patch38: subversion-neon-systemproxy.patch
|
||||||
# PATCH-FIX-UPSTREAM subversion-1.7.4-ruby-1.9-RbConfig.patch andreas.stieger@gmx.de -- Fixes warning/error in ruby 1.9 "Use RbConfig instead of obsolete and deprecated Config"
|
# PATCH-FIX-UPSTREAM subversion-1.7.4-ruby-1.9-RbConfig.patch andreas.stieger@gmx.de -- Fixes warning/error in ruby 1.9 "Use RbConfig instead of obsolete and deprecated Config"
|
||||||
Patch39: subversion-1.7.4-ruby-1.9-RbConfig.patch
|
Patch39: subversion-1.7.4-ruby-1.9-RbConfig.patch
|
||||||
|
# PATCH-FIX-UPSTREAM subversion-1.7.5-libsvn_auth_kwallet-r1345740.patch peters@apache.org -- Remove a cast that is both ugly, and apparently illegal in g++ 4.7.
|
||||||
|
Patch40: subversion-1.7.5-libsvn_auth_kwallet-r1345740.patch
|
||||||
#
|
#
|
||||||
%if %with_ruby
|
%if %with_ruby
|
||||||
%if %{!?rb_arch:1}0
|
%if %{!?rb_arch:1}0
|
||||||
@ -338,6 +337,7 @@ popd #./sqlite-amalgamation
|
|||||||
%patch37
|
%patch37
|
||||||
%patch38
|
%patch38
|
||||||
%patch39
|
%patch39
|
||||||
|
%patch40
|
||||||
|
|
||||||
SQLITE_RECOMMENDED_VER=$(grep -E '^SQLITE_RECOMMENDED_VER=' configure.ac|cut -f2 -d=|cut -f2 -d\")
|
SQLITE_RECOMMENDED_VER=$(grep -E '^SQLITE_RECOMMENDED_VER=' configure.ac|cut -f2 -d=|cut -f2 -d\")
|
||||||
#"
|
#"
|
||||||
@ -530,27 +530,6 @@ python_ctypes_target=
|
|||||||
find "%{buildroot}%{py_prefix}/lib/python%{py_ver}/site-packages/csvn/" -name "*.pyc" | xargs %__rm -f
|
find "%{buildroot}%{py_prefix}/lib/python%{py_ver}/site-packages/csvn/" -name "*.pyc" | xargs %__rm -f
|
||||||
%__python "%{py_libdir}/compileall.py" -f -d "%{py_prefix}/lib/python%{py_ver}/site-packages/csvn" "%{buildroot}/%{py_prefix}/lib/python%{py_ver}/csvn"
|
%__python "%{py_libdir}/compileall.py" -f -d "%{py_prefix}/lib/python%{py_ver}/site-packages/csvn" "%{buildroot}/%{py_prefix}/lib/python%{py_ver}/csvn"
|
||||||
%endif # with_python_ctypes
|
%endif # with_python_ctypes
|
||||||
#
|
|
||||||
# double check that the essential repository access schemes have been compiled in
|
|
||||||
#
|
|
||||||
schemes=$(LD_LIBRARY_PATH="${RPM_BUILD_ROOT}%{_libdir}" "${RPM_BUILD_ROOT}%{_bindir}/svn" --version | %__grep "'" | cut -d\' -f2 | sort -u)
|
|
||||||
# reset vim syntax: '
|
|
||||||
test "$schemes" = "file
|
|
||||||
http
|
|
||||||
https
|
|
||||||
svn"
|
|
||||||
#
|
|
||||||
%if %{with serf}
|
|
||||||
#
|
|
||||||
# double check that when building with serf support, ra_serf is actually available and handles http and https schemes
|
|
||||||
#
|
|
||||||
serf_schemes=$(LD_LIBRARY_PATH="${RPM_BUILD_ROOT}%{_libdir}" "${RPM_BUILD_ROOT}%{_bindir}/svn" --version | %__grep -A2 "ra_serf" | %__grep "'" | cut -d\' -f2 )
|
|
||||||
# reset vim syntax: '
|
|
||||||
test "$serf_schemes" = "http
|
|
||||||
https"
|
|
||||||
#
|
|
||||||
%endif # with serf
|
|
||||||
#
|
|
||||||
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%find_lang %name
|
%find_lang %name
|
||||||
@ -602,6 +581,28 @@ rm -f %{buildroot}/var/adm/perl-modules/subversion
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
|
#
|
||||||
|
# double check that the essential repository access schemes have been compiled in
|
||||||
|
#
|
||||||
|
schemes=$(LD_LIBRARY_PATH="${RPM_BUILD_ROOT}%{_libdir}" "${RPM_BUILD_ROOT}%{_bindir}/svn" --version | %__grep "'" | cut -d\' -f2 | sort -u)
|
||||||
|
# reset vim syntax: '
|
||||||
|
test "$schemes" = "file
|
||||||
|
http
|
||||||
|
https
|
||||||
|
svn"
|
||||||
|
#
|
||||||
|
%if %{with serf}
|
||||||
|
#
|
||||||
|
# double check that when building with serf support, ra_serf is actually available and handles http and https schemes
|
||||||
|
#
|
||||||
|
serf_schemes=$(LD_LIBRARY_PATH="${RPM_BUILD_ROOT}%{_libdir}" "${RPM_BUILD_ROOT}%{_bindir}/svn" --version | %__grep -A2 "ra_serf" | %__grep "'" | cut -d\' -f2 )
|
||||||
|
# reset vim syntax: '
|
||||||
|
test "$serf_schemes" = "http
|
||||||
|
https"
|
||||||
|
#
|
||||||
|
%endif # with serf
|
||||||
|
#
|
||||||
|
|
||||||
%if %{with regression_tests}
|
%if %{with regression_tests}
|
||||||
|
|
||||||
ulimit -a
|
ulimit -a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user