Skip to content

Update subversion #1879

Merged
merged 4 commits into from Sep 14, 2020
Merged

Update subversion #1879

merged 4 commits into from Sep 14, 2020

Conversation

donald
Copy link
Collaborator

@donald donald commented Sep 11, 2020

I need a working subversion.

Rebuild and update to fix this problem:

buczek@sigusr2:/scratch/local$  svn co https://svn.resourcespace.com/svn/rs/trunk/
svn: E170000: Unrecognized URL scheme for 'https://svn.resourcespace.com/svn/rs/trunk'
buczek@sigusr2:/scratch/local$  svn co http://svn.resourcespace.com/svn/rs/trunk/
svn: E170000: Unrecognized URL scheme for 'http://svn.resourcespace.com/svn/rs/trunk'

Apache Serf

The serf library is a high performance C-based HTTP client library built
upon the Apache Portable Runtime (APR) library. It is permissively
licensed under the Apache License, v2.

Key features:

    multiplexed, asynchronous connections
    SSL/TLS support
    full HTTP pipelining
    multiple authentication modes (Basic, Digest, Kerberos/NTLM)
    zero-copy support for increased throughput

Serf is the default client library of Apache Subversion and Apache
OpenOffice

Requires SCons build system (available from PyPi)
but this specific package requires python2, because
the SContruct file (which is SCons' Makefile in python
language) uses python2 syntax.

SCons strictly doesn't require build_in_sourcedir (scons -Y), but
I don't see the point of separate sources anyway, when we start
each build from scratch.

I recommend to run this bee file with

    unshare -U -r ./serf.be0

instead of

    sudo ./serf.be0

Well, I think that is better for ANY bee file, but here we
invoke a downloaded PyPi package.
@pmenzel
Copy link
Collaborator

pmenzel commented Sep 11, 2020

Looks good. Two nits:

  1. subversion: Add -lserif should be -lserf
  2. In same commit: wan’t → won’t

Feel free to submit afterward.

. venv0/bin/activate
start_cmd pip install scons
start_cmd scons PREFIX=$PREFIX
# start_cmd scons check
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fail, or does it just take time and is therefore commented out?

Our current subversion install doesn't work at all:

    buczek@sigusr2:/scratch/local$  svn co https://svn.resourcespace.com/svn/rs/trunk/
    svn: E170000: Unrecognized URL scheme for 'https://svn.resourcespace.com/svn/rs/trunk'
    buczek@sigusr2:/scratch/local$  svn co http://svn.resourcespace.com/svn/rs/trunk/
    svn: E170000: Unrecognized URL scheme for 'http://svn.resourcespace.com/svn/rs/trunk'

because subversion won't build with a client library for remote
repositories. Add configuration for Apache Serf.
@donald
Copy link
Collaborator Author

donald commented Sep 14, 2020

/scratch/local/bee-buczek/serf/serf-1.3.9-0/source/venv0/bin/python build/check.py test test
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Test of gzip Content-Encoding</title>
 </head>
 <body>
<h1>This is a test</h1>

<p>This file was created with mod_deflate on the server side.</p>
<pre>curl -i --output gzip.response -H "Accept-Encoding: gzip" http://localhost:8080/1.html</pre>

<hr />
<address>Apache</address>
</body></html>
this is 1 test.
i am a test.this is a test.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>scotch.ics.uci.edu</title>
<!--base href="http://scotch.ics.uci.edu/" /-->
<link href="default.css" rel="stylesheet" type="text/css" />
</head>

<body>

<p>More to come!</p>

<p><a href="manual/">Apache httpd 2.0 manual</a></p>

<p><a href="CA.cert.pem">Trust our CA!</a></p>

<p><img src="apache_pb.gif" alt="Powered by Apache!" /></p>

</body>

</html>
this is 1 test.
i am a test.this is a test.
Trailer-Test: f
............F.FFF.FFF.FF.FFFFF....................................

There were 14 failures:
1) test_ssl_trust_rootca: test/test_util.c:456: expected <0> but was <120199>
2) test_ssl_certificate_chain_with_anchor: test/test_util.c:456: expected <0> but was <120199>
3) test_ssl_certificate_chain_all_from_server: test/test_util.c:456: expected <0> but was <120199>
4) test_ssl_no_servercert_callback_allok: test/test_util.c:456: expected <0> but was <120170>
5) test_ssl_large_response: test/test_util.c:456: expected <0> but was <120170>
6) test_ssl_large_request: test/test_util.c:456: expected <0> but was <120170>
7) test_ssl_client_certificate: test/test_util.c:456: expected <0> but was <120170>
8) test_ssl_future_server_cert: test/test_util.c:456: expected <0> but was <120199>
9) test_setup_ssltunnel: test/test_util.c:456: expected <0> but was <120170>
10) test_ssltunnel_basic_auth: test/test_context.c:2138: expected <0> but was <120170>
11) test_ssltunnel_basic_auth_server_has_keepalive_off: test/test_context.c:2138: expected <0> but was <120170>
12) test_ssltunnel_basic_auth_proxy_has_keepalive_off: test/test_context.c:2138: expected <0> but was <120170>
13) test_ssltunnel_basic_auth_proxy_close_conn_on_200resp: test/test_context.c:2138: expected <0> but was <120170>
14) test_ssltunnel_digest_auth: test/test_util.c:456: expected <0> but was <120170>

!!!FAILURES!!!
Runs: 66 Passes: 52 Fails: 14

== Testing test/testcases/chunked-empty.response ==
== Testing test/testcases/deflate.response ==
== Testing test/testcases/chunked.response ==
== Testing test/testcases/simple.response ==
== Testing test/testcases/chunked-trailers.response ==
== Running the unit tests ==
ERROR: test(s) failed in test_all
scons: *** [check] Error 1
scons: building terminated because of errors.
buczek@machmal:~/git/bee-files (update-subversion)$ 

@donald donald merged commit e9499ad into master Sep 14, 2020
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants