webalizer/webalizer.patch

Tue, 29 Mar 2011 20:04:34 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 29 Mar 2011 20:04:34 +0200
changeset 334
4a34d7a82eab
permissions
-rw-r--r--

Rework package yet again, correcting and introducing new buildconf logic:
Conditionally disable bootstrap stage comparison correctly, correct
english grammar, better find system as(1) and ld(1), indotruce detailed
optimization option messages, more completely guess cpu types, allow
profiled bootstrapping without a preinstalled GCC because many other
compilers have long since implemented 64-bit arithmetic, instruct make
to build sequentially (not in sparallel) when building a profiled
bootstrap as GCC online documents recommend, and generally improve
comment blocks.

The single most important correction in this changeset relates to the
GCC changed optimization policy since at least GCC 4.5, in which -march
is always passed and not always correctly guessed. In the case of this
package, allowing GCC to guess the architecture leads to wild build
errors at various subcomponents (zlib, libgcc, libiberty...) and
bootstrap stages. It seems quite platform specific, and the safest
approach to correcting this seems to be explicitly always specifying the
-march argument when bootstrapping GCC. Because the best choice 'native'
is not available when bootstrapping using a foreign (non GCC) compiler,
a guess is made according to rpmmacros l_platform in that case.

It is questionable as to whether these recent optimization changes
on the part of GCC or this package are compatible with each other,
or if either are complete or correct at all. At least applying these
corrections allows this package to build again in most cases test.

michael@156 1 Index: graphs.c
michael@156 2 diff -Nau graphs.c.orig graphs.c
michael@156 3 --- graphs.c.orig 2009-04-14 11:58:01.576710518 +0200
michael@156 4 +++ graphs.c 2009-04-14 12:16:00.411207613 +0200
michael@156 5 @@ -114,7 +114,7 @@
michael@156 6 double fmaxval=0.0;
michael@156 7
michael@156 8 /* initalize the graph */
michael@156 9 - init_graph(title,512,256); /* init as 512 x 256 */
michael@156 10 + init_graph(title,@l_gwidth@,256); /* init as @l_gwidth@ x 256 */
michael@156 11
michael@156 12 gdImageLine(im, 305,25,305,233,black); /* draw section lines */
michael@156 13 gdImageLine(im, 304,25,304,233,white);
michael@156 14 Index: output.c
michael@156 15 diff -Nau output.c.orig output.c
michael@156 16 --- output.c.orig 2009-01-13 06:34:04.000000000 +0100
michael@156 17 +++ output.c 2009-04-14 12:46:38.913442401 +0200
michael@156 18 @@ -2431,9 +2431,9 @@
michael@156 19
michael@156 20 /* year graph */
michael@156 21 fprintf(out_fp,"<IMG SRC=\"usage.png\" ALT=\"%s\" " \
michael@156 22 - "HEIGHT=256 WIDTH=512><P>\n",buffer);
michael@156 23 + "HEIGHT=256 WIDTH=@l_gwidth@><P>\n",buffer);
michael@156 24 /* month table */
michael@156 25 - fprintf(out_fp,"<TABLE WIDTH=600 BORDER=2 CELLSPACING=1 CELLPADDING=1>\n");
michael@156 26 + fprintf(out_fp,"<TABLE WIDTH=@l_gwidth@ BORDER=2 CELLSPACING=1 CELLPADDING=1>\n");
michael@156 27 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
michael@156 28 fprintf(out_fp,"<TR><TH COLSPAN=11 BGCOLOR=\"%s\" ALIGN=center>",GREY);
michael@156 29 fprintf(out_fp,"%s</TH></TR>\n",msg_main_sum);

mercurial