ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Zubkov <icesik@mail.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] diald-1.0-alt4.1: rebuild failed [1]
Date: Thu, 12 Oct 2006 20:50:18 +0300
Message-ID: <200610122050.21994.icesik@mail.ru> (raw)
In-Reply-To: <452E6DE2.7040506@solin.spb.ru>


[-- Attachment #1.1: Type: text/plain, Size: 584 bytes --]

В сообщении от 12 октября 2006 19:31 Aleksey Avdeev написал(a):
> QA Team Robot пишет:
> > Package: diald-1.0-alt4.1
> > Packager: Aleksey Avdeev <solo@altlinux>
> > Build Statistics:
> > 	4 time(s) (last time: Tue Aug 17 2004) by Aleksey Avdeev <solo@altlinux>
> > 	1 time(s) (last time: Thu Jan 12 2006) by ALT QA Team Robot
> > <qa-robot@altlinux> Status: rebuild failed.
> > Cannot build this package for 1 week(s) (since Wed Oct 04 2006).
> > Please investigate.
>
>   Этот пакет меня больше не интересует.

Патч для починики прилагаю. (спек тоже не плохо было бы почистить). ;)

[-- Attachment #1.2: diald-1.0-alt-glibc25.patch --]
[-- Type: text/x-diff, Size: 3108 bytes --]

æÁÊÌÙ diald-1.0.orig/access.o É diald-1.0/access.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/buffer.o É diald-1.0/buffer.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/bufio.o É diald-1.0/bufio.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/dev.o É diald-1.0/dev.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/diald É diald-1.0/diald ÒÁÚÌÉÞÁÀÔÓÑ
diff -urN diald-1.0.orig/diald.c diald-1.0/diald.c
--- diald-1.0.orig/diald.c	2006-10-12 20:40:44 +0300
+++ diald-1.0/diald.c	2006-10-12 20:48:30 +0300
@@ -189,10 +189,10 @@
         if (proxy.fd >= 0) FD_SET(proxy.fd, &readfds);
         if (snoopfd >= 0) FD_SET(snoopfd, &readfds);
 	/* Compute the likely timeout for the next second boundary */
-	ts = tstamp + PAUSETIME*CLK_TCK - ticks();
+	ts = tstamp + PAUSETIME*sysconf(_SC_CLK_TCK) - ticks();
 	if (ts < 0) ts = 0;
-    	timeout.tv_sec = ts/CLK_TCK;
-    	timeout.tv_usec = 1000*(ts%CLK_TCK)/CLK_TCK;
+    	timeout.tv_sec = ts/sysconf(_SC_CLK_TCK);
+    	timeout.tv_usec = 1000*(ts%sysconf(_SC_CLK_TCK))/sysconf(_SC_CLK_TCK);
 	sel = select(256,&readfds,0,0,&timeout);
 	if (sel < 0 && errno == EBADF) {
 	    PIPE *p;
@@ -278,7 +278,7 @@
 	/* check if ticks() has advanced a second since last check.
 	 * This is immune to wall clock skew because we use the ticks count.
 	 */
-	ts = tstamp + PAUSETIME*CLK_TCK - ticks();
+	ts = tstamp + PAUSETIME*sysconf(_SC_CLK_TCK) - ticks();
 	if (ts <= 0) {
 	    tstamp = ticks();
 	    fire_timers();
æÁÊÌÙ diald-1.0.orig/diald.o É diald-1.0/diald.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/filter.o É diald-1.0/filter.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/firewall.o É diald-1.0/firewall.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/fsm.o É diald-1.0/fsm.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/lock.o É diald-1.0/lock.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/log.o É diald-1.0/log.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/modem.o É diald-1.0/modem.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/options.o É diald-1.0/options.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/parse.o É diald-1.0/parse.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/ppp.o É diald-1.0/ppp.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/proxyarp.o É diald-1.0/proxyarp.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/proxy_dev.o É diald-1.0/proxy_dev.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/proxy.o É diald-1.0/proxy.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/proxy_slip.o É diald-1.0/proxy_slip.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/proxy_tap.o É diald-1.0/proxy_tap.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/proxy_tun.o É diald-1.0/proxy_tun.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/route.o É diald-1.0/route.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/shell.o É diald-1.0/shell.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/slip.o É diald-1.0/slip.o ÒÁÚÌÉÞÁÀÔÓÑ
diff -urN diald-1.0.orig/timer.c diald-1.0/timer.c
--- diald-1.0.orig/timer.c	2006-10-12 20:40:44 +0300
+++ diald-1.0/timer.c	2006-10-12 20:48:51 +0300
@@ -36,7 +36,7 @@
 unsigned long timestamp()
 {
    struct tms buf;
-   return times(&buf)/CLK_TCK;
+   return times(&buf)/sysconf(_SC_CLK_TCK);
 }
 
 unsigned long ticks()
æÁÊÌÙ diald-1.0.orig/timer.o É diald-1.0/timer.o ÒÁÚÌÉÞÁÀÔÓÑ
æÁÊÌÙ diald-1.0.orig/utils.o É diald-1.0/utils.o ÒÁÚÌÉÞÁÀÔÓÑ

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-10-12 17:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 16:31 ` Aleksey Avdeev
2006-10-12 17:50   ` Igor Zubkov [this message]
2006-10-12 18:24     ` Aleksey Avdeev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610122050.21994.icesik@mail.ru \
    --to=icesik@mail.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git