Bugs solved on radvd-1.1-3: serious :#498038 init script fails and breaks upgrade if ipv6 forwarding disabled important (optional package): #473804 fails to start when /var/run is on tmpfs Both fixes patch de init.d/radvd file so i include a single diff for those ones: ==================================================================== diff -u radvd-1.1/debian/radvd.init radvd-1.1/debian/radvd.init --- radvd-1.1/debian/radvd.init +++ radvd-1.1/debian/radvd.init @@ -14,8 +14,10 @@ NAME=radvd DESC=radvd CONFIG=/etc/radvd.conf -PIDFILE=/var/run/radvd/radvd.pid +PIDDIR=/var/run/radvd +PIDFILE=$PIDDIR/radvd.pid OPTIONS="-u radvd -p $PIDFILE" +PROC_SYS_IP6_FORWARDING=/proc/sys/net/ipv6/conf/all/forwarding test -x $DAEMON || exit 0 @@ -34,6 +36,13 @@ echo "* See /usr/share/doc/radvd/README.Debian" echo "* radvd will *not* be started." exit 0 + elif [ ! -e $PROC_SYS_IP6_FORWARDING -o \ + "$(cat $PROC_SYS_IP6_FORWARDING)" = "0" ]; then + echo "" + echo "* IPv6 forwarding seems to be disabled." + echo "* See /usr/share/doc/radvd/README.Debian" + echo "* radvd will *not* be started." + exit 0 fi } @@ -43,7 +52,10 @@ chkconfig # We must enable IPv6 forwarding for radvd to work - #echo 1 > /proc/sys/net/ipv6/conf/all/forwarding + # echo 1 > /proc/sys/net/ipv6/conf/all/forwarding + + # Anything under /var/run can go away on reboot + [ -e $PIDDIR ] || install -d -o radvd -g root -m 4755 $PIDDIR # Check for stale pidfile; radvd won't start if one is lying around if [ -f $PIDFILE ] && ! ps `cat $PIDFILE` > /dev/null; then ========================================================================= normal #456205 unaligned traps on Alpha platform This fix doesn't apply for unfreeze exceptions, but comes from a NMU from vorlon (Steve Langasek) that can be tagged serious acording to bug report (quoting vorlon bug report: "...but I don't think that should be a blocker for implementing this patch, considering this bug almost certainly causes radvd to die with SIGBUS on sparc - I haven't tested this myself, or else I would raise the bug's severity to 'serious'. " current testing version: 1.1-2 NMU: 1.1-2.1 desired unfree version: 1.1-3 ====================================================================== debian/patch/send.c-unaligned-traps.patch --- radvd-1.1.orig/send.c +++ radvd-1.1/send.c @@ -27,7 +27,7 @@ struct msghdr mhdr; struct cmsghdr *cmsg; struct iovec iov; - char chdr[CMSG_SPACE(sizeof(struct in6_pktinfo))]; + char __attribute__((aligned(8))) chdr[CMSG_SPACE(sizeof(struct in6_pktinfo))]; struct nd_router_advert *radvert; struct AdvPrefix *prefix; struct AdvRoute *route; ====================================================================== Thx and sorry for this. Ghe Rivero -- .''`. Pienso, Luego Incordio : :' : `. `' `- www.debian.org www.hispalinux.es GPG Key: 26F020F7 GPG fingerprint: 4986 39DA D152 050B 4699 9A71 66DB 5A36 26F0 20F7
Attachment:
signature.asc
Description: Digital signature