tags 469855 - patch
thanks

Hi,

On Fri, Mar 07, 2008 at 09:46:56AM -0500, Joe Nahmias wrote:
> It seems that the nut postinst script errors out if udev is not running
> at the time the script is run.  This creates problems in buildds or
> chroots since udev is normally not started in those environments.  See,
> for example, the i386 build log for collectd 4.3.0-2 at:
> http://buildd.debian.org/fetch.cgi?pkg=collectd;ver=4.3.0-2;arch=i386;stamp=1204846772
> 
> The following patch below should fix this:
> 
> --- postinst  2008-02-08 10:13:24.000000000 -0500
> +++ postinst.fixed    2008-03-07 09:38:46.000000000 -0500
> @@ -19,8 +19,10 @@ case "$1" in
>      chmod 770 /var/run/nut /var/lib/nut
>  
>      # restart udev to apply the USB rules to the already plugged devices
> -    [ -x /etc/init.d/udev ] && pidof udevd > /dev/null \
> -             && /usr/sbin/invoke-rc.d udev restart
> +    # only if it's already running
> +    if [ -x /etc/init.d/udev ] && pidof udevd > /dev/null; then
> +        /usr/sbin/invoke-rc.d udev restart
> +    fi
>      ;;
>  
>    abort-upgrade)

Sorry, this patch does not change anything. "a && b" is basically the
same as "if a; then b; fi" which is what you're doing here. This issue
has already been addressed in the fix for #447961.

So, it looks like udevd is running inside the i386 buildd chroot and
thus causes the FTBFS of collectd - at least, that's the only
explanation that makes sense to me. Setting up nut-dev 2.2.1-2 worked
fine on at least armel and powerpc buildds. I'm currently checking if I
can get more information about that.

Imho the severity should be downgraded to "important" or less but I
leave that up to Arnaud (the package maintainer) or Joe.

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to