Your message dated Mon, 28 May 2012 09:17:12 +0000
with message-id <[email protected]>
and subject line Bug#674081: fixed in apcupsd 3.14.10-2
has caused the Debian Bug report #674081,
regarding apcupsd: serial UPS connection fails on kfreebsd-*
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
674081: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674081
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apcupsd
Version: 3.14.10-1
Severity: grave
User: [email protected]
Usertags: kfreebsd
X-Debbugs-Cc: [email protected]
Tags: patch
Justification: fails to build from source (but built successfully in the
past)
Hi,
On GNU/kFreeBSD, apcupsd fails to connect to a serial smart UPS, e.g.
/dev/cuau0, with "Communications with UPS lost" logged about a minute
after startup.
Debugging with apctest showed a successful initial connection, but
becoming unresponsive after a few bytes had been exchanged with the UPS.
Hours later, I stumbled upon the cause of this; the autoconf script
did not define HAVE_FREEBSD_OS. This resulted in two lines of code
being skipped, where values for c_ispeed and c_ospeed should have been
set in the termio structure. This either meant that tcsetattr() would
de-assert modem control, or possibly it was failing silently without
setting some other necessary parameter on the serial line.
Please see my attached patch which has got my serial smart UPS
functioning, and apcupsd working as a NIS master.
I don't know how to properly regenerate ./configure in this package so I
altered it directly in my patch.
Regards,
--
Steven Chamberlain
[email protected]
Index: apcupsd-3.14.10/autoconf/configure.in
===================================================================
--- apcupsd-3.14.10.orig/autoconf/configure.in 2012-05-22 23:02:44.000000000 +0100
+++ apcupsd-3.14.10/autoconf/configure.in 2012-05-22 23:02:58.465449378 +0100
@@ -349,6 +349,7 @@
*-*-hpux*) AC_DEFINE(HAVE_HPUX_OS) ;;
*-*-linux*) AC_DEFINE(HAVE_LINUX_OS) ;;
*-*-freebsd*) AC_DEFINE(HAVE_FREEBSD_OS) ;;
+ *-*-kfreebsd*)AC_DEFINE(HAVE_FREEBSD_OS) ;;
*-*-netbsd*) AC_DEFINE(HAVE_NETBSD_OS) ;;
*-*-openbsd*) AC_DEFINE(HAVE_OPENBSD_OS) ;;
*-*-bsdi*) AC_DEFINE(HAVE_BSDI_OS) ;;
Index: apcupsd-3.14.10/configure
===================================================================
--- apcupsd-3.14.10.orig/configure 2012-05-22 23:04:47.645447000 +0100
+++ apcupsd-3.14.10/configure 2012-05-22 23:05:25.409449524 +0100
@@ -9509,6 +9509,10 @@
#define HAVE_FREEBSD_OS 1
_ACEOF
;;
+ *-*-kfreebsd*) cat >>confdefs.h <<\_ACEOF
+#define HAVE_FREEBSD_OS 1
+_ACEOF
+ ;;
*-*-netbsd*) cat >>confdefs.h <<\_ACEOF
#define HAVE_NETBSD_OS 1
_ACEOF
--- End Message ---
--- Begin Message ---
Source: apcupsd
Source-Version: 3.14.10-2
We believe that the bug you reported is fixed in the latest version of
apcupsd, which is due to be installed in the Debian FTP archive:
apcupsd-cgi_3.14.10-2_i386.deb
to main/a/apcupsd/apcupsd-cgi_3.14.10-2_i386.deb
apcupsd-doc_3.14.10-2_all.deb
to main/a/apcupsd/apcupsd-doc_3.14.10-2_all.deb
apcupsd_3.14.10-2.diff.gz
to main/a/apcupsd/apcupsd_3.14.10-2.diff.gz
apcupsd_3.14.10-2.dsc
to main/a/apcupsd/apcupsd_3.14.10-2.dsc
apcupsd_3.14.10-2_i386.deb
to main/a/apcupsd/apcupsd_3.14.10-2_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Giuseppe Iuculano <[email protected]> (supplier of updated apcupsd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 28 May 2012 10:42:44 +0200
Source: apcupsd
Binary: apcupsd apcupsd-cgi apcupsd-doc
Architecture: source i386 all
Version: 3.14.10-2
Distribution: unstable
Urgency: low
Maintainer: Giuseppe Iuculano <[email protected]>
Changed-By: Giuseppe Iuculano <[email protected]>
Description:
apcupsd - APC UPS Power Management (daemon)
apcupsd-cgi - APC UPS Power Management (web interface)
apcupsd-doc - APC UPS Power Management (documentation/examples)
Closes: 674081
Changes:
apcupsd (3.14.10-2) unstable; urgency=low
.
* [16893a8] Support serial UPS connection on kfreebsd.
Thanks to Steven Chamberlain (Closes: #674081)
Checksums-Sha1:
1f2eece80f1c693fa26398dd90ed8a4f830f2436 1372 apcupsd_3.14.10-2.dsc
14f6a21a453775631ee0d7acdfaec33429589089 16826 apcupsd_3.14.10-2.diff.gz
6752185445639de163e144d453e09d02be75cbbb 313970 apcupsd_3.14.10-2_i386.deb
a2d664a1016f14216eb41113cddb48c03897135d 71966 apcupsd-cgi_3.14.10-2_i386.deb
0097c51f95c54d63152e68390b6d702bf9887c87 646104 apcupsd-doc_3.14.10-2_all.deb
Checksums-Sha256:
8177c3554d7f89628561460d7977926901dae3ce78a54283f857a3e94a463180 1372
apcupsd_3.14.10-2.dsc
42fa1e4a11d636c3497e01e46eda2529df17822b479d0d16812fc2066502daa7 16826
apcupsd_3.14.10-2.diff.gz
372040116853317a10b31fd76def0168565be0c1c8fb94000664723b3a929e5a 313970
apcupsd_3.14.10-2_i386.deb
ecf62ebb62c8ded0307651ffcd94565e19d533f44fe6d11dbdf01c4396e551e9 71966
apcupsd-cgi_3.14.10-2_i386.deb
e24cfc306258f821e07fb2dda57e539ed79cdf248c7bb08bb41abc3428da8ea7 646104
apcupsd-doc_3.14.10-2_all.deb
Files:
3dd607d45358f9f64ff3d64f18c1e70d 1372 admin extra apcupsd_3.14.10-2.dsc
60d01825a9e30bdc18808be917e2ad68 16826 admin extra apcupsd_3.14.10-2.diff.gz
130370957e54727f5431c0c87a2a85c3 313970 admin extra apcupsd_3.14.10-2_i386.deb
a6f5bd9f90016d103b4f361b4e4c50f7 71966 web extra apcupsd-cgi_3.14.10-2_i386.deb
06f486194c5be90050e5c697385145cd 646104 doc extra apcupsd-doc_3.14.10-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAk/DPkUACgkQNxpp46476apE3QCfZi7rH7OhtaneZy6d8qJY+84s
oqkAn3uMxHXUm34wpu6+mOkM4+ED77s3
=/6HF
-----END PGP SIGNATURE-----
--- End Message ---