Bug#571633: install: '/etc/default/adjtimex: 8: Syntax error: ) unexpected'

2010-03-19 Thread A. Costa
On Sat, 27 Feb 2010 20:22:26 -0500
James R. Van Zandt j...@comcast.net wrote:

 
 dash installs/reinstalls it fine here:
...
 I see your second attempt succeeded.  Maybe that wasn't because of
 bash, but just because it was the second attempt.  To help track this
 down, I'd appreciate some more information:
 
  - Your printout reports a problem with a paren in
/etc/default/adjtimex.  Could you report the contents of that file
before the first installation attempt? (e.g. from the previous
backup file.  You do have backups, right? :-)

Yes, but unfortunately that particular file's not available.

  - Is the problem repeatable, by re-installing 1.28-3, or by
downgrading to your previous version of adjtimex then installing
1.28-3, or by purging adjtimex then installing 1.28-3?  Please type
out the contents of /etc/default/adjtimex before each installation
attempt, in case that tells us something.

It's repeatable, but on more recent repeats, (after 'purge'-ing the
package), I'm seeing a new 'preconfigure' error, without the 2/27/10
'post-installation' error.  More on which later...
 
  - What version of adjtimex were you replacing?

v1.28-1

  - What version of dash do you have installed?  (I am using
0.5.5.1-3).

'dash' version, same as yours: 0.5.5.1-3, then and now.

 Thanks for your report.

Thanks, and apologies for the late response to your prompt reply.

Well on to some tests.  The other night, I downgraded and upgraded:

% cat /etc/default/adjtimex
#  /etc/default/adjtimex - configuration file for adjtimex(8)
#
#  you may adjust these values manually or by calling 
/usr/sbin/adjtimexconfig
#
#  This file is sourced by /etc/init.d/adjtimex
#
TICK=10005
FREQ=1807105

# get the old version
% feta install 
http://altruistic.lbl.gov/mirrors/ubuntu/pool/universe/a/adjtimex/adjtimex_1.28-1_i386.deb

Running: wget -c -O '/tmp/adjtimex_1.28-1_i386.deb' 
'http://altruistic.lbl.gov/mirrors/ubuntu/pool/universe/a/adjtimex/adjtimex_1.28-1_i386.deb'
 2 '/dev/null'
Downloading 
http://altruistic.lbl.gov/mirrors/ubuntu/pool/universe/a/adjtimex/adjtimex_1.28-1_i386.deb
 to /tmp/adjtimex_1.28-1_i386.deb... Done

Running: dpkg --install '/tmp/adjtimex_1.28-1_i386.deb'
dpkg: warning: downgrading adjtimex from 1.28-3 to 1.28-1.
(Reading database ... 265644 files and directories currently installed.)
Preparing to replace adjtimex 1.28-3 (using 
/tmp/adjtimex_1.28-1_i386.deb) ...
Unpacking replacement adjtimex ...
Setting up adjtimex (1.28-1) ...
update-rc.d: warning: adjtimex start runlevel arguments (S) do not 
match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: adjtimex stop runlevel arguments (none) do not 
match LSB Default-Stop values (0 1 6)
Regulating system clock...done.
Comparing clocks (this will take 70 sec)...done.
awk: BEGIN{print ((to-1)*100 + override)./65536.)*.0864}
awk:^ syntax error
awk: BEGIN{print ((to-1)*100 + override)./65536.)*.0864}
awk:  ^ unterminated regexp
awk: cmd. line:1: BEGIN{print ((to-1)*100 + 
override)./65536.)*.0864}
awk: cmd. line:1:   
 ^ unexpected newline or end of string
Adjusting system time by  sec/day to agree with CMOS clock...done.
Processing triggers for man-db ...

% cat /etc/default/adjtimex
#  /etc/default/adjtimex - configuration file for adjtimex(8)
#
#  you may adjust these values manually or by calling 
/usr/sbin/adjtimexconfig
#
#  This file is sourced by /etc/init.d/adjtimex
#
TICK=to
FREQ=override).

Seems TICK  FREQ were corrupted by the downgrade, and bugs:

#559882 When updating adjtimex an awk error occurs
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559882
#557949 generates an invalid /etc/default/adjtimex
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557949

...appeared, (which probably should be merged).

Next an upgrade:

% apt-get install adjtimex
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following packages will be upgraded:
  adjtimex
1 upgraded, 0 newly installed, 0 to remove and 265 not upgraded.
Need to get 0B/57.1kB of archives.
After this operation, 0B of additional disk space will be used.
Reading changelogs... Done
Preconfiguring packages ...
Can't exec /tmp/adjtimex.config.78111: Permission denied at 
/usr/share/perl/5.10/IPC/Open3.pm line 168.
open2: exec of /tmp/adjtimex.config.78111 configure 1.28-1 failed at 
/usr/share/perl5/Debconf/ConfModule.pm 

Bug#571633: install: '/etc/default/adjtimex: 8: Syntax error: ) unexpected'

2010-02-27 Thread James R. Van Zandt

dash installs/reinstalls it fine here:

  vanzandt:/usr/local/src/adjtimex/deb/adjtimex-1.28# sudo debi
  (Reading database ... 290479 files and directories currently installed.)
  Preparing to replace adjtimex 1.28-3 (using adjtimex_1.28-3_i386.deb) ...
  Unpacking replacement adjtimex ...
  Setting up adjtimex (1.28-3) ...
  Processing triggers for man-db ...
  vanzandt:/usr/local/src/adjtimex/deb/adjtimex-1.28# ls -l /bin/sh
  lrwxrwxrwx 1 root root 4 Feb 27 13:05 /bin/sh - dash
  vanzandt:/usr/local/src/adjtimex/deb/adjtimex-1.28# dpkg --purge adjtimex
  (Reading database ... 290478 files and directories currently installed.)
  Removing adjtimex ...
  Purging configuration files for adjtimex ...
  removing debconf db entries
  Use of uninitialized value $template in length at 
/usr/share/perl5/Debconf/Question.pm line 212, GEN0 line 1.
  removed debconf db entries
  Use of uninitialized value $template in length at 
/usr/share/perl5/Debconf/Question.pm line 212, GEN0 line 2.
  Processing triggers for man-db ...
  vanzandt:/usr/local/src/adjtimex/deb/adjtimex-1.28# sudo debi
  Selecting previously deselected package adjtimex.
  (Reading database ... 290467 files and directories currently installed.)
  Unpacking adjtimex (from adjtimex_1.28-3_i386.deb) ...
  Setting up adjtimex (1.28-3) ...
  Configuring adjtimex
  
  
  Running adjtimex at system startup will set the kernel time parameters to the 
values in /etc/default/adjtimex.
  ...
  Regulating system clock...done.
  Comparing clocks (this will take 70 sec)...done.
  Adjusting system time by -7.2242 sec/day to agree with CMOS clock...done.
  Processing triggers for man-db ...
  vanzandt:/usr/local/src/adjtimex/deb/adjtimex-1.28# 


I see your second attempt succeeded.  Maybe that wasn't because of
bash, but just because it was the second attempt.  To help track this
down, I'd appreciate some more information:

 - Your printout reports a problem with a paren in
   /etc/default/adjtimex.  Could you report the contents of that file
   before the first installation attempt? (e.g. from the previous
   backup file.  You do have backups, right? :-)

 - Is the problem repeatable, by re-installing 1.28-3, or by
   downgrading to your previous version of adjtimex then installing
   1.28-3, or by purging adjtimex then installing 1.28-3?  Please type
   out the contents of /etc/default/adjtimex before each installation
   attempt, in case that tells us something.

 - What version of adjtimex were you replacing?

 - What version of dash do you have installed?  (I am using
   0.5.5.1-3).

Thanks for your report.

  - Jim Van Zandt



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#571633: install: '/etc/default/adjtimex: 8: Syntax error: ) unexpected'

2010-02-26 Thread A. Costa
Package: adjtimex
Version: 1.28-3
Severity: important


During my last install:

Setting up adjtimex (1.28-3) ...
update-rc.d: warning: adjtimex start runlevel arguments (S) do not match 
LSB Default-Start values (2 3 4 5)
update-rc.d: warning: adjtimex stop runlevel arguments (none) do not match 
LSB Default-Stop values (0 1 6)
/etc/default/adjtimex: 8: Syntax error: ) unexpected
invoke-rc.d: initscript adjtimex, action start failed.
dpkg: error processing adjtimex (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 adjtimex

Looks like a 'bashism' somewhere; this kludge allowed 'adjtimex' to install:

# link '/bin/sh' to bash
rm /bin/sh ; ln -s /bin/bash /bin/sh
apt-get -f install
# link '/bin/sh' back to dash
rm /bin/sh ; ln -s /bin/dash /bin/sh  

I'm not sure where the 'bashism' is though.

Hope this helps...



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages adjtimex depends on:
ii  debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii  libc6 2.10.2-5   Embedded GNU C Library: Shared lib

adjtimex recommends no packages.

Versions of packages adjtimex suggests:
ii  ntpdate 1:4.2.4p8+dfsg-1 client for setting system time fro

-- debconf information:
* adjtimex/run_daemon: true
* adjtimex/compare_rtc: true



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org