Re: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread Andreas Stieger
Hello,

> > > When building SERF, I ran into the following errors
> > >
> > ⋮
> > > Any ideas as to how I can build SERF?
> >
> > Try asking on the Serf mailing list, d...@serf.apache.org (serf doesn't use 
> > a separate users@ list).
> 
> And try including what operating system you're starting from. Porting
> current releases of Subversion to RHEL became a hell of a lot more
> work than anyone was paying me for, which was nothing, so I gave up
> some years back. If you need my last remnants of build tools, you
> might look at httpg://github.com/nkadel/ for various obvious
> subversion releases.and sanitized get-deps.sh.

Maybe this is a case of not really needing to build from source, but wanting 
Subversion installed. Maybe swdev went down an unintended rabbit hole. So if I 
may ask swdev... why are you building from source? Do you just need a 
Subversion server set up with the current version?

The being said, openSUSE has all build dependencies and current versions and 
packages for everything involved here, including patches and rebuild capability 
if you want to change things. Must most of the time you don't have to.

Andreas


Re: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread Nico Kadel-Garcia
On Tue, Sep 3, 2019 at 10:20 PM Daniel Shahaf  wrote:
>
> swdev wrote on Tue, 03 Sep 2019 13:40 +00:00:
> > SERF (from get-deps.sh)
> > 
> > cd serf
> > # clean the build
> > scons -c
> > scons APR=/home/jonny/subversion APU=/home/jonny/subversion
> > ZLIB=/home/jonny/subversion OPENSSL=/home/jonny/subversion
> > PREFIX=/home/jonny/subversion
> >
> >
> > APR, APR-UTIL, ZLIB and OPENSSL all built and installed successfully
> > and passed their own tests.
> >
> > When building SERF, I ran into the following errors
> >
> ⋮
> > Any ideas as to how I can build SERF?
>
> Try asking on the Serf mailing list, d...@serf.apache.org (serf doesn't use a 
> separate users@ list).

And try including what operating system you're starting from. Porting
current releases of Subversion to RHEL became a hell of a lot more
work than anyone was paying me for, which was nothing, so I gave up
some years back. If you need my last remnants of build tools, you
might look at httpg://github.com/nkadel/ for various obvious
subversion releases.and sanitized get-deps.sh.

> Good luck,
>
> Daniel


Re: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread Daniel Shahaf
swdev wrote on Tue, 03 Sep 2019 13:40 +00:00:
> SERF (from get-deps.sh)
> 
> cd serf
> # clean the build
> scons -c 
> scons APR=/home/jonny/subversion APU=/home/jonny/subversion 
> ZLIB=/home/jonny/subversion OPENSSL=/home/jonny/subversion 
> PREFIX=/home/jonny/subversion
> 
> 
> APR, APR-UTIL, ZLIB and OPENSSL all built and installed successfully 
> and passed their own tests.
> 
> When building SERF, I ran into the following errors
> 
⋮ 
> Any ideas as to how I can build SERF?

Try asking on the Serf mailing list, d...@serf.apache.org (serf doesn't use a 
separate users@ list).

Good luck,

Daniel


Re: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread Nathan Hartman
>
> On Tue, Sep 3, 2019 at 11:12 AM swdev  wrote:
>
>> Rebuilding openssl with the PREFIX and OPENSSLDIRS both set to
>> /homejonny/subversion builds successfully.
>> Building serf still fails with the same errors as my original post.
>> I will try copying the missing bio_lcl.h file from the openssl/crypto/bio
>> directory to the common include directory and see if that helps.
>>
>
Argh. Are you using a released version of OpenSSL or latest master?
Could be some work in progress happening which is not becoming apparent
until you try to build serf. I think you should checkout a tagged
release and try with that.


Fwd: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread swdev
Once again, I forgot to use ReplyAll - sorry

-- Forwarded message -
From: swdev 
Date: Tue, 3 Sep 2019 at 18:12
Subject: Re: Trying to build svn 1.12.2 from tarball
To: Nathan Hartman 


Rebuilding openssl with the PREFIX and OPENSSLDIRS both set to
/homejonny/subversion builds successfully.
Building serf still fails with the same errors as my original post.
I will try copying the missing bio_lcl.h file from the openssl/crypto/bio
directory to the common include directory and see if that helps.


Fwd: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread swdev
I forgot to use ReplyAll - sorry

-- Forwarded message -
From: swdev 
Date: Tue, 3 Sep 2019 at 17:13
Subject: Re: Trying to build svn 1.12.2 from tarball
To: Nathan Hartman 


Thanks for the link.

I have only one bio_lcl.h file and it is in
/home/jonny/subversion/subversion-1.12.2/openssl/crypto/bio/.

There are many header files in /home/jonny/subversion/include/openssl.

I had a look at the link you posted (
https://wiki.openssl.org/index.php/Compilation_and_Installation#PREFIX_and_OPENSSLDIR)
and will try to complie with both PREFIX and OPENSSLDIR set to the same
value (/home/jonny/subversion).


Re: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread Nathan Hartman
On Tue, Sep 3, 2019 at 9:41 AM swdev  wrote:

> OPENSSL (manual download)
> ===
> cd openssl
> git clone git://git.openssl.org/openssl.git .
> ./config --prefix=/home/jonny/subversion
> --openssldir=/home/jonny/subversion/etc/ssl/openssl.cnf
> make
> make test
> make install
> cd ..
>

You might also want to look at:
https://wiki.openssl.org/index.php/Compilation_and_Installation#PREFIX_and_OPENSSLDIR


Re: Trying to build svn 1.12.2 from tarball

2019-09-03 Thread Nathan Hartman
On Tue, Sep 3, 2019 at 9:41 AM swdev  wrote:

> Hi
>
> I downloaded the following  tarball
> http://mirrors.netix.net/apache/subversion/subversion-1.12.2.tar.bz2 and
> verified its checksum.
> I want to be able to build subversin so that I can run the static analysis
> tool PVS-Studio (https://www.viva64.com/en/pvs-studio/).
>
> I ran get-deps.sh.
> I built the various libraries as follows:
>
> APR (from get-deps.sh)
> ===
> cd apr
> ./buildconf --verbose
> ./configure --verbose --enable-maintainer-mode
> --prefix=/home/jonny/subversion
> make check
> make install
> cd ..
>
> APR-UTIL (from get-deps.sh)
> 
> cd apr-util
> ./buildconf --verbose
> ./configure --verbose --prefix=/home/jonny/subversion
> --with-apr=/home/jonny/subversion
> make check
> make install
> cd ..
>
>
> ZLIB (from get-deps.sh)
> 
> cd zlib
> make maintainer-clean
> ./configure --prefix=/home/jonny/subversion
> make
> make check
> make install
> cd ..
>
>
> OPENSSL (manual download)
> ===
> cd openssl
> git clone git://git.openssl.org/openssl.git .
> ./config --prefix=/home/jonny/subversion
> --openssldir=/home/jonny/subversion/etc/ssl/openssl.cnf
> make
> make test
> make install
> cd ..
>
>
> SERF (from get-deps.sh)
> 
> cd serf
> # clean the build
> scons -c
> scons APR=/home/jonny/subversion APU=/home/jonny/subversion
> ZLIB=/home/jonny/subversion OPENSSL=/home/jonny/subversion
> PREFIX=/home/jonny/subversion
>
>
> APR, APR-UTIL, ZLIB and OPENSSL all built and installed successfully and
> passed their own tests.
>
> When building SERF, I ran into the following errors
>
> scons APR=/home/jonny/subversion APU=/home/jonny/subversion
> ZLIB=/home/jonny/subversion OPENSSL=/home/jonny/subversion
> PREFIX=/home/jonny/subversion CFLAGS="-I/home/jonny/subversion/include"
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> gcc -o buckets/ssl_buckets.o -c -I/home/jonny/subversion/include -std=c89
> -Wdeclaration-after-statement -g -O2 -Wall -Wmissing-prototypes
> -Wstrict-prototypes -Wmissing-declarations -pthread -DDEBUG -D_DEBUG
> -D_REENTRANT -D_GNU_SOURCE -I. -I/home/jonny/subversion/include/apr-1
> -I/home/jonny/subversion/include buckets/ssl_buckets.c
> buckets/ssl_buckets.c: In function 'bio_bucket_read':
> buckets/ssl_buckets.c:250:34: error: dereferencing pointer to incomplete
> type 'BIO {aka struct bio_st}'
>  serf_ssl_context_t *ctx = bio->ptr;
>   ^~
> buckets/ssl_buckets.c: At top level:
> buckets/ssl_buckets.c:402:1: error: variable 'bio_bucket_method' has
> initializer but incomplete type
>  static BIO_METHOD bio_bucket_method = {
>  ^~
> In file included from buckets/ssl_buckets.c:49:0:
> /home/jonny/subversion/include/openssl/bio.h:34:34: warning: excess
> elements in struct initializer
>  # define BIO_TYPE_MEM( 1|BIO_TYPE_SOURCE_SINK)
>   ^
> buckets/ssl_buckets.c:403:5: note: in expansion of macro 'BIO_TYPE_MEM'
>  BIO_TYPE_MEM,
>  ^~~~
> /home/jonny/subversion/include/openssl/bio.h:34:34: note: (near
> initialization for 'bio_bucket_method')
>  # define BIO_TYPE_MEM( 1|BIO_TYPE_SOURCE_SINK)
>   ^
> buckets/ssl_buckets.c:403:5: note: in expansion of macro 'BIO_TYPE_MEM'
>  BIO_TYPE_MEM,
>  ^~~~
> buckets/ssl_buckets.c:404:5: warning: excess elements in struct initializer
>  "Serf SSL encryption and decryption buckets",
>  ^~~~
> buckets/ssl_buckets.c:404:5: note: (near initialization for
> 'bio_bucket_method')
> buckets/ssl_buckets.c:405:5: warning: excess elements in struct initializer
>  bio_bucket_write,
>  ^~~~
> buckets/ssl_buckets.c:405:5: note: (near initialization for
> 'bio_bucket_method')
> buckets/ssl_buckets.c:406:5: warning: excess elements in struct initializer
>  bio_bucket_read,
>  ^~~
> buckets/ssl_buckets.c:406:5: note: (near initialization for
> 'bio_bucket_method')
> buckets/ssl_buckets.c:407:5: warning: excess elements in struct initializer
>  NULL,/* Is this called? */
>  ^~~~
> buckets/ssl_buckets.c:407:5: note: (near initialization for
> 'bio_bucket_method')
> buckets/ssl_buckets.c:408:5: warning: excess elements in struct initializer
>  NULL,/* Is this called? */
>  ^~~~
> buckets/ssl_buckets.c:408:5: note: (near initialization for
> 'bio_bucket_method')
> buckets/ssl_buckets.c:409:5: warning: excess elements in struct initializer
>  bio_bucket_ctrl,
>  ^~~
> buckets/ssl_buckets.c:409:5: note: (near initialization for
> 'bio_bucket_method')
> buckets/ssl_buckets.c:410:5: warning: excess elements in struct initializer
>  bio_bucket_create,
>  ^
> buckets/ssl_buckets.c:410:5: note: (near initialization for
> 'bio_bucket_method')
> buckets/ssl_buckets.c:411:5: warning: excess

Trying to build svn 1.12.2 from tarball

2019-09-03 Thread swdev
Hi

I downloaded the following  tarball
http://mirrors.netix.net/apache/subversion/subversion-1.12.2.tar.bz2 and
verified its checksum.
I want to be able to build subversin so that I can run the static analysis
tool PVS-Studio (https://www.viva64.com/en/pvs-studio/).

I ran get-deps.sh.
I built the various libraries as follows:

APR (from get-deps.sh)
===
cd apr
./buildconf --verbose
./configure --verbose --enable-maintainer-mode
--prefix=/home/jonny/subversion
make check
make install
cd ..

APR-UTIL (from get-deps.sh)

cd apr-util
./buildconf --verbose
./configure --verbose --prefix=/home/jonny/subversion
--with-apr=/home/jonny/subversion
make check
make install
cd ..


ZLIB (from get-deps.sh)

cd zlib
make maintainer-clean
./configure --prefix=/home/jonny/subversion
make
make check
make install
cd ..


OPENSSL (manual download)
===
cd openssl
git clone git://git.openssl.org/openssl.git .
./config --prefix=/home/jonny/subversion
--openssldir=/home/jonny/subversion/etc/ssl/openssl.cnf
make
make test
make install
cd ..


SERF (from get-deps.sh)

cd serf
# clean the build
scons -c
scons APR=/home/jonny/subversion APU=/home/jonny/subversion
ZLIB=/home/jonny/subversion OPENSSL=/home/jonny/subversion
PREFIX=/home/jonny/subversion


APR, APR-UTIL, ZLIB and OPENSSL all built and installed successfully and
passed their own tests.

When building SERF, I ran into the following errors

scons APR=/home/jonny/subversion APU=/home/jonny/subversion
ZLIB=/home/jonny/subversion OPENSSL=/home/jonny/subversion
PREFIX=/home/jonny/subversion CFLAGS="-I/home/jonny/subversion/include"
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o buckets/ssl_buckets.o -c -I/home/jonny/subversion/include -std=c89
-Wdeclaration-after-statement -g -O2 -Wall -Wmissing-prototypes
-Wstrict-prototypes -Wmissing-declarations -pthread -DDEBUG -D_DEBUG
-D_REENTRANT -D_GNU_SOURCE -I. -I/home/jonny/subversion/include/apr-1
-I/home/jonny/subversion/include buckets/ssl_buckets.c
buckets/ssl_buckets.c: In function 'bio_bucket_read':
buckets/ssl_buckets.c:250:34: error: dereferencing pointer to incomplete
type 'BIO {aka struct bio_st}'
 serf_ssl_context_t *ctx = bio->ptr;
  ^~
buckets/ssl_buckets.c: At top level:
buckets/ssl_buckets.c:402:1: error: variable 'bio_bucket_method' has
initializer but incomplete type
 static BIO_METHOD bio_bucket_method = {
 ^~
In file included from buckets/ssl_buckets.c:49:0:
/home/jonny/subversion/include/openssl/bio.h:34:34: warning: excess
elements in struct initializer
 # define BIO_TYPE_MEM( 1|BIO_TYPE_SOURCE_SINK)
  ^
buckets/ssl_buckets.c:403:5: note: in expansion of macro 'BIO_TYPE_MEM'
 BIO_TYPE_MEM,
 ^~~~
/home/jonny/subversion/include/openssl/bio.h:34:34: note: (near
initialization for 'bio_bucket_method')
 # define BIO_TYPE_MEM( 1|BIO_TYPE_SOURCE_SINK)
  ^
buckets/ssl_buckets.c:403:5: note: in expansion of macro 'BIO_TYPE_MEM'
 BIO_TYPE_MEM,
 ^~~~
buckets/ssl_buckets.c:404:5: warning: excess elements in struct initializer
 "Serf SSL encryption and decryption buckets",
 ^~~~
buckets/ssl_buckets.c:404:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:405:5: warning: excess elements in struct initializer
 bio_bucket_write,
 ^~~~
buckets/ssl_buckets.c:405:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:406:5: warning: excess elements in struct initializer
 bio_bucket_read,
 ^~~
buckets/ssl_buckets.c:406:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:407:5: warning: excess elements in struct initializer
 NULL,/* Is this called? */
 ^~~~
buckets/ssl_buckets.c:407:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:408:5: warning: excess elements in struct initializer
 NULL,/* Is this called? */
 ^~~~
buckets/ssl_buckets.c:408:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:409:5: warning: excess elements in struct initializer
 bio_bucket_ctrl,
 ^~~
buckets/ssl_buckets.c:409:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:410:5: warning: excess elements in struct initializer
 bio_bucket_create,
 ^
buckets/ssl_buckets.c:410:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:411:5: warning: excess elements in struct initializer
 bio_bucket_destroy,
 ^~
buckets/ssl_buckets.c:411:5: note: (near initialization for
'bio_bucket_method')
buckets/ssl_buckets.c:413:5: warning: excess elements in struct initializer
 NULL /* sslc does not have the callback_ctrl field */
 ^~~~
buckets/s

Re: [SVN-4827] svn x-shelve gives E200014: Checksum mismatch when using eol-style=native

2019-09-03 Thread Mark P.
On 2019-09-03 12:30, Julian Foad wrote:
> Johan Corveleyn wrote:
>> Mark P. wrote:
>>> svn x-shelve shelf1
>>> [...] Transmitting file data .svn: E200014: Checksum mismatch [...]
>>
>> Is the file main.cpp "translated" into Windows end-of-line style [...]
> 
> Thanks for the report. I see you filed it as
> 
>   https://issues.apache.org/jira/browse/SVN-4827
> 
> It is indeed caused by not handling keywords and/or EOL translation. On
> Linux I can reproduce using keywords instead, so I added a regression
> test for that.
> 
> I'm not sure when I'll be able to work on a fix.

Thanks for your assistance.

Disclaimer: http://www2.peralex.com/disclaimer.html




[SVN-4827] svn x-shelve gives E200014: Checksum mismatch when using eol-style=native

2019-09-03 Thread Julian Foad

Johan Corveleyn wrote:

Mark P. wrote:

svn x-shelve shelf1
[...] Transmitting file data .svn: E200014: Checksum mismatch [...]


Is the file main.cpp "translated" into Windows end-of-line style [...]


Thanks for the report. I see you filed it as

  https://issues.apache.org/jira/browse/SVN-4827

It is indeed caused by not handling keywords and/or EOL translation. On 
Linux I can reproduce using keywords instead, so I added a regression 
test for that.


I'm not sure when I'll be able to work on a fix.

- Julian


svn mergeinfo inconsistencies?

2019-09-03 Thread Mikael Stålhammar
Hi
I am having issues identifying what is left to be merged from trunk to a 
feature branch, without involving a working copy and doing a dry run merge. I 
thought I could use the "svn mergeinfo" command but it doesn't seem to be 
completely accurate. Here's my scenario:


The SVN server is 1.8.5

I have a trunk branch and a feature branch.

I have the feature branch sparse checked out since it’s a quite big project.

I want to query the repository for trunk changes eligible to be merged to the 
feature branch. To do that I use “svn mergeinfo --show-revs eligible   --recursive --log -v”.

Now, from the list returned I identified some of the files to be “cherry 
picked” and merged, i.e. as subtree merges.

I sparse updated my feature branch project to bring those particular files into 
the working copy.

I merged and committed the cherry picked files to the feature branch, i.e. the 
files got explicit mergeinfo properties.

The next time I ran that “svn mergeinfo” command from above, I expected to see 
the files remaining to be merged, without the recently merged and committed 
ones. However, the list is now empty instead!? How come? What have I missed 
here? Thanks in advance!


//UPDATE 🙂
Just as I finished writing this I did another googling and found this:
https://svn.haxx.se/dev/archive-2009-08/0291.shtml
where I think my issue might be explained. The articles mentioned here are a 
bit dated though. I wonder what's the current status of this. Does "svn 
mergeinfo" consider explicit mergeinfo from subtrees in the more recent 
versions of SVN? Or, is there any other way to identify what needs to be merged 
from trunk to a feature branch, without involving a working copy (i.e. besides 
dry  running a merge)?


Regards,

Mikael