[Privoxy-devel] new windows build system
Fabian Keil
fk at fabiankeil.de
Sat Apr 30 10:41:58 UTC 2016
Lee <ler762 at gmail.com> wrote:
> 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.
I didn't request a change of the GPL itself, but a change of the
exception they added for config.sub and config.guess. From the header:
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program. This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
> >> 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.
Does this mean the autoconf goo works as is?
> >> 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 :(
You could additionally use the --forks and --shuffle-tests which
may reveal thread-related issues, but there is no option to
specifically test cross-compiled builds.
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-devel/attachments/20160430/776a779c/attachment.bin>
More information about the Privoxy-devel
mailing list