mailman/rc.mailman

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
parent 9
871621b80702
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.

     1 #!@l_prefix@/bin/openpkg rc
     2 ##
     3 ##  rc.mailman -- Run-Commands
     4 ##
     6 %config
     7     mailman_enable="$openpkg_rc_def"
     9 %common
    10     mailman_ctl="@l_prefix@/libexec/mailman/bin/mailmanctl"
    11     qrunner_pidfile="@l_prefix@/var/mailman/data/master-qrunner.pid"
    12     qrunner_signal () {
    13         [ -f $qrunner_pidfile ] && kill -$1 `cat $qrunner_pidfile`
    14     }
    16 %status -u @l_susr@ -o
    17     mailman_usable="unknown"
    18     mailman_active="no"
    19     rcService mailman enable yes && \
    20         qrunner_signal 0 && mailman_active="yes"
    21     echo "mailman_enable=\"$mailman_enable\""
    22     echo "mailman_usable=\"$mailman_usable\""
    23     echo "mailman_active=\"$mailman_active\""
    25 %start -u @l_susr@
    26     rcService mailman enable yes || exit 0
    27     rcService mailman active yes && exit 0
    28     @l_prefix@/bin/python ${mailman_ctl} -s -q start
    30 %stop -u @l_susr@
    31     rcService mailman enable yes || exit 0
    32     rcService mailman active no  && exit 0
    33     @l_prefix@/bin/python ${mailman_ctl} -q stop
    34     sleep 2
    36 %restart -u @l_susr@
    37     rcService mailman enable yes || exit 0
    38     rcService mailman active no  && exit 0
    39     @l_prefix@/bin/python ${mailman_ctl} -q restart
    40     sleep 2
    42 %quarterly -u @l_susr@
    43     rcService mailman enable yes || exit 0
    44     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/gate_news
    46 %daily -u @l_nusr@
    47     rcService mailman enable yes || exit 0
    48     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/checkdbs
    49     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/disabled
    50     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/senddigests
    51     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/nightly_gzip
    53 %monthly -u @l_susr@
    54     rcService mailman enable yes || exit 0
    55     @l_prefix@/bin/python -S @l_prefix@/libexec/mailman/cron/mailpasswds

mercurial