[Privoxy-devel] new windows build system

Lee ler762 at gmail.com
Fri Apr 29 13:58:20 UTC 2016


On 4/28/16, Fabian Keil <fk at fabiankeil.de> wrote:
> Lee <ler762 at gmail.com> wrote:
>
>> I've been working on getting Privoxy to build under the current
>> cygwin, which requires a 'cross-compiler toolchain'.  The autoconf
>> stuff in privoxy is so old that it doesn't support --host & --build so
>> how do you feel about replacing config.guess & config.sub with
>> current/later versions?  What I've been using is
>>
>> http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob_plain;f=build-aux/config.guess;hb=refs/heads/master
>>
>> http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob_plain;f=build-aux/config.sub;hb=refs/heads/master
>
> We're currently using the last revisions that were licensed under
> GPLv2 or later. The current versions are licensed under GPLv3 or
> later and while there is an exception, it does not apply to Privoxy
> (according to my interpretation) because we don't ship files generated
> by autoconf.

My understanding is the bit about "it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified" allows using the latest version of
autoconf and/or individual autoconf files since it's a generally
available free program that's being used unmodified.  But I'm not a
lawyer, so my understanding isn't worth beans..

> Hopefully that's just an oversight.
>
> I've contacted the FSF to ask if they can change the wording of the
> exception so it covers Privoxy as well.

I'd be surprised if they changed the wording of the GPL.  I wouldn't
expect more than an additional FAQ entry to clarify matters.  In any
case, please let me know their answer.

>> and replacing AC_CANONICAL_HOST with AC_CANONICAL_SYSTEM in configure.in
>
> Did you try adding AC_CANONICAL_SYSTEM without removing AC_CANONICAL_HOST?

I don't remember if I tried it after updating config.guess &
config.sub or not.  And it turns out I shouldn't be using
AC_CANONICAL_SYSTEM anyway - see
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html

*sigh* I need to keep better notes.  What I added was
AC_CONFIG_HEADER([config.h])
dnl LR * AC_CANONICAL_HOST
dnl LR * ac-canonical-host does not set up a compiler toolchain
dnl LR * as in, it does not support cross-compiling???

and I don't remember where I got the idea it doesn't set up a compiler
toolchain.

>> That much gets me to where I can do a cross-compiler toolchain build
>> (with a few source code changes) as well as continue to build privoxy
>> under cygwin 1.5 / gcc v3 -mno-cygwin
>
> Great. What do you use as host system when cross-compiling?

./configure --build=i686-pc-cygwin --host=i686-w64-mingw32  --enable-mingw32

>> Any suggestions on privoxy-regression-test.pl parameters for testing
>> this thing?  I'm a bit surprised it even works at all, but it hasn't
>> crashed yet & old vs. new test results for
>> privoxy-regression-test.pl --max-level 200  --privoxy-address
>> 127.0.0.1:8118
>
> The parameters seem reasonable, but I'm not sure I understand the question.

I don't have much confidence in software built on guesses & cargo-cult
programming (which is what I did).  So I'd like to use
privoxy-regression-test.pl to check as much as I can.  hrmm.. yes, I
should have said that before asking for suggestions on which
parameters to use.  Sorry :(

>> /source/privoxy
>> $ ./run_regression_test
>> Wed Apr 27 00:22:46 EDT 2016
>> 2016-04-27 00:22:46: Asking Privoxy for the number of action files
>> available ...
>> 2016-04-27 00:22:46: Gathering regression tests from 9 action file(s)
>> delivered by Privoxy (Unknown version!).
>> 2016-04-27 00:22:48: Executing regression tests ...
>> 2016-04-27 00:23:47: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
> [...]
>> 2016-04-27 00:24:11: Executed 832 regression tests. Skipped 73. 823
>> successes, 9 failures.
>> Wed Apr 27 00:24:11 EDT 2016
>>
>> so it's close, but not quite there yet :)
>
> Do you get the same errors when only using the default action files?

looks like - at least it's the same number of failures:

$ ./run_regression_test
Fri Apr 29 09:26:43 EDT 2016
2016-04-29 09:26:43: Asking Privoxy for the number of action files available ...
2016-04-29 09:26:43: Gathering regression tests from 4 action file(s)
delivered by Privoxy (Unknown version!).
2016-04-29 09:26:44: Executing regression tests ...
2016-04-29 09:27:16: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:16: Failure for test 439. Header 'If-Modified-Since:
Thu, 1 Jan 1970 00:00:00 GMT' and tag 'hide-if-modified-since{-60}'
2016-04-29 09:27:16: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:16: Failure for test 440. Header 'If-Modified-Since:
Thu, 01-Jan-70 00:00:00 GMT' and tag 'hide-if-modified-since{-60}'
2016-04-29 09:27:16: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:16: Failure for test 441. Header 'If-Modified-Since:
Thursday, 01-Jan-1970 00:00:00 GMT' and tag
'hide-if-modified-since{-60}'
2016-04-29 09:27:16: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:16: Failure for test 442. Header 'If-Modified-Since:
Thu, 01-Jan-1970 00:00:00 GMT' and tag 'hide-if-modified-since{-60}'
2016-04-29 09:27:16: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:16: Failure for test 443. Header 'If-Modified-Since:
Thursday Jan 01 00:00:00 1970 GMT' and tag
'hide-if-modified-since{-60}'
2016-04-29 09:27:17: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:17: Failure for test 449. Header 'If-Modified-Since:
Mon, 1 Jan 2525 00:00:00 GMT' and tag 'hide-if-modified-since{-60}'
2016-04-29 09:27:17: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:17: Failure for test 451. Header 'If-Modified-Since:
Monday, 01-Jan-2525 00:00:00 GMT' and tag
'hide-if-modified-since{-60}'
2016-04-29 09:27:17: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:17: Failure for test 452. Header 'If-Modified-Since:
Mon, 01-Jan-2525 00:00:00 GMT' and tag 'hide-if-modified-since{-60}'
2016-04-29 09:27:17: Ooops. Got: 'REMOVAL' while expecting: SOME CHANGE
2016-04-29 09:27:17: Failure for test 453. Header 'If-Modified-Since:
Monday Jan 01 00:00:00 2525 GMT' and tag 'hide-if-modified-since{-60}'
2016-04-29 09:27:36: Executed 666 regression tests. Skipped 59. 657
successes, 9 failures.
Fri Apr 29 09:27:36 EDT 2016

Lee


More information about the Privoxy-devel mailing list