Your message dated Sun, 20 Jul 2008 11:02:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#491540: fixed in rdate 1:1.1.3-2
has caused the Debian Bug report #491540,
regarding rdate-udeb: Please display a progress indicator when verbose flag 
appears twice
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.)


-- 
491540: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491540
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: rdate-udeb
Version: 1.1.3-1
Severity: wishlist
Tags: d-i

Hi!

The attached patch will allow rdate to display a line with a single dot
('.') on stderr each time an attempt to contact the NTP server is made.
This is only made when "-vv" has been given on the command-line.

This patch would allow us to implement cancelable progress during the
clock-setup step of the debian-installer. [1]

The patch is really simple and would worth an inclusion in Lenny.

[1] See Message-ID <[EMAIL PROTECTED]> on [EMAIL PROTECTED]

Cheers,
-- 
Jérémy Bobbio                        .''`. 
[EMAIL PROTECTED]                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -u rdate-1.1.3/src/rdate.c rdate-1.1.3/src/rdate.c
--- rdate-1.1.3/src/rdate.c
+++ rdate-1.1.3/src/rdate.c
@@ -70,7 +70,7 @@
 #endif
 
 void rfc868time_client (const char *, int, struct timeval *, struct timeval *, int, int, int);
-void ntp_client (const char *, int, struct timeval *, struct timeval *, int, int);
+void ntp_client (const char *, int, struct timeval *, struct timeval *, int, int, int);
 
 extern char    *__progname;
 
@@ -157,7 +157,7 @@
 	hname = argv[optind];
 
 	if (ntp)
-		ntp_client(hname, family, &new, &adjust, corrleaps, port);
+		ntp_client(hname, family, &new, &adjust, corrleaps, port, verbose);
 	else
 		rfc868time_client(hname, family, &new, &adjust, corrleaps, useudp, port);
 
diff -u rdate-1.1.3/src/ntp.c rdate-1.1.3/src/ntp.c
--- rdate-1.1.3/src/ntp.c
+++ rdate-1.1.3/src/ntp.c
@@ -110,8 +110,8 @@
 	u_int64_t	xmitck;
 };
 
-void	ntp_client(const char *, int, struct timeval *, struct timeval *, int, int);
-int	sync_ntp(int, const struct sockaddr *, double *, double *);
+void	ntp_client(const char *, int, struct timeval *, struct timeval *, int, int, int);
+int	sync_ntp(int, const struct sockaddr *, double *, double *, int);
 int	write_packet(int, struct ntp_data *);
 int	read_packet(int, struct ntp_data *, double *, double *);
 void	unpack_ntp(struct ntp_data *, u_char *);
@@ -126,7 +126,7 @@
 
 void
 ntp_client(const char *hostname, int family, struct timeval *new,
-    struct timeval *adjust, int leapflag, int port)
+    struct timeval *adjust, int leapflag, int port, int verbose)
 {
 	struct addrinfo hints, *res0, *res;
 	double offset, error;
@@ -155,7 +155,7 @@
 			((struct sockaddr_in*)res->ai_addr)->sin_port = htons(port);
 		}
 
-		ret = sync_ntp(s, res->ai_addr, &offset, &error);
+		ret = sync_ntp(s, res->ai_addr, &offset, &error, verbose);
 		if (ret < 0) {
 #ifdef DEBUG
 			fprintf(stderr, "try the next address\n");
@@ -181,7 +181,8 @@
 }
 
 int
-sync_ntp(int fd, const struct sockaddr *peer, double *offset, double *error)
+sync_ntp(int fd, const struct sockaddr *peer, double *offset, double *error,
+    int verbose)
 {
 	int attempts = 0, accepts = 0, rejects = 0;
 	int delay = MAX_DELAY, ret;
@@ -200,6 +201,10 @@
 	}
 
 	while (accepts < MAX_QUERIES && attempts < 2 * MAX_QUERIES) {
+		if (verbose >= 2) {
+			fprintf(stderr, ".\n");
+			fflush(stderr);
+		}
 		memset(&data, 0, sizeof(data));
 
 		if (current_time(JAN_1970) > deadline) {
diff -u rdate-1.1.3/debian/changelog rdate-1.1.3/debian/changelog
--- rdate-1.1.3/debian/changelog
+++ rdate-1.1.3/debian/changelog
@@ -1,3 +1,11 @@
+rdate (1:1.1.3-2~~lunar1) UNRELEASED; urgency=low
+
+  * When "-vv" is specified, rdate now displays a dot each time it tries
+    to send a packet to the NTP server.  This is needed to implement
+    cancelation of time synchronisation in the debian-installer.
+
+ -- J�r�my Bobbio <[EMAIL PROTECTED]>  Wed, 12 Mar 2008 08:04:06 +0100
+
 rdate (1:1.1.3-1) unstable; urgency=low
 
   * New upstream release

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: rdate
Source-Version: 1:1.1.3-2

We believe that the bug you reported is fixed in the latest version of
rdate, which is due to be installed in the Debian FTP archive:

rdate-udeb_1.1.3-2_amd64.udeb
  to pool/main/r/rdate/rdate-udeb_1.1.3-2_amd64.udeb
rdate_1.1.3-2.diff.gz
  to pool/main/r/rdate/rdate_1.1.3-2.diff.gz
rdate_1.1.3-2.dsc
  to pool/main/r/rdate/rdate_1.1.3-2.dsc
rdate_1.1.3-2_amd64.deb
  to pool/main/r/rdate/rdate_1.1.3-2_amd64.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.
Anibal Monsalve Salazar <[EMAIL PROTECTED]> (supplier of updated rdate 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: Sun, 20 Jul 2008 20:36:19 +1000
Source: rdate
Binary: rdate rdate-udeb
Architecture: source amd64
Version: 1:1.1.3-2
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Changed-By: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Description: 
 rdate      - sets the system's date from a remote host
 rdate-udeb - sets the system's date from a remote host (udeb)
Closes: 491540
Changes: 
 rdate (1:1.1.3-2) unstable; urgency=low
 .
   [ Jérémy Bobbio ]
   * When "-vv" is specified, rdate now displays a dot each time it tries
     to send a packet to the NTP server.  This is needed to implement
     cancelation of time synchronisation in the debian-installer.
     Closes: 491540.
 .
   [ Anibal Monsalve Salazar ]
   * Standards-Version is 3.8.0
Checksums-Sha1: 
 b0ff350f57bb9d938121470b6ede041a89bec69f 1014 rdate_1.1.3-2.dsc
 b53baa24e3d437ae2b103849d25529ba09f00592 6869 rdate_1.1.3-2.diff.gz
 64593586a670f37a7444d666ea8ce24f37773c9e 16372 rdate_1.1.3-2_amd64.deb
 19893200cd667a446be2d500ca3e153b6a4e1dcb 7768 rdate-udeb_1.1.3-2_amd64.udeb
Checksums-Sha256: 
 1c43d1acb8fae50a6441a8ba8e8915a277c76bddab2e50579db4edf0748da6a6 1014 
rdate_1.1.3-2.dsc
 70a21e8dd6a4c1606970daea120c64b2311a704c6a2b29bcb1bdfd5eb128532e 6869 
rdate_1.1.3-2.diff.gz
 8a7ea5f03478ad5acd4ddffd56a39a722672abdfa6a9732bf76320eabbf91787 16372 
rdate_1.1.3-2_amd64.deb
 0dc086f05ebe06563f0503fab3bbb6e435cde830012268a22117e39735caab3a 7768 
rdate-udeb_1.1.3-2_amd64.udeb
Files: 
 838cf722afaf946bfce6e55e4cab60c7 1014 net optional rdate_1.1.3-2.dsc
 e129a40aa61571720cae6d1427e84bb1 6869 net optional rdate_1.1.3-2.diff.gz
 813f3bb958e587ae08b976ddaafbd4df 16372 net optional rdate_1.1.3-2_amd64.deb
 d7e7955003fd0fe14419e529864d3161 7768 debian-installer optional 
rdate-udeb_1.1.3-2_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiDGjcACgkQgY5NIXPNpFUXVQCg1YuGOZKh6lTv+/FSrWLMQYZj
FIIAoJg2YjOSeCGp9RjgSKuIflOZB589
=DluQ
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to