Tue, 29 Mar 2011 20:04:34 +0200
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.
1 ##
2 ## @l_prefix@/etc/spamassassin/local.cf -- site-wide defaults for SpamAssassin
3 ## (see 'perldoc Mail::SpamAssassin::Conf' for details of what can be tweaked)
4 ##
6 # configuration branding
7 version_tag openpkg
9 # required score for mail to be considered as spam
10 required_score 5.0
12 # whitelist and blacklist addresses
13 #whitelist_from *@example.com
14 #whitelist_to *@example.com
16 # use a terse header instead of X-Spam-Report
17 remove_header all Report
19 # encapsulate spam in an attachment
20 report_safe 0
22 # enable the Bayes system
23 use_bayes 1
25 # enable Bayes autolearning
26 bayes_auto_learn 1
28 # enable or disable network checks
29 #skip_rbl_checks 1
30 #use_razor2 1
31 #use_dcc 1
32 #use_pyzor 1
34 # DCC/Razor/Pyzor parameters
35 #dcc_body_max 999999
36 #dcc_fuz1_max 999999
37 #dcc_fuz2_max 999999
38 #dcc_timeout 8
39 #dcc_home <homepath>
40 #dcc_dccifd_path <socketpath>
41 #dcc_path <clientpath>
42 #dcc_options <[0-9A-Za-z ,._/-]>
43 #dccifd_options <[0-9A-Za-z ,._/-]>
44 #razor_timeout 5
45 #razor_config <filename>
46 #pyzor_max 5
47 #pyzor_timeout 3.5
48 #pyzor_options --homedir @l_prefix@/etc/spamassassin
49 #pyzor_path @l_prefix@/bin/pyzor
51 # mail using languages used in these country codes will not
52 # be marked as being possibly spam in a foreign language.
53 #ok_languages all
55 # mail using locales used in these country codes will not
56 # be marked as being possibly spam in a foreign language.
57 #ok_locales all