Ticket #399 (new defect)

Opened 4 months ago

Last modified 3 months ago

Installation of unified Mac package fails in postflight script

Reported by: vidalia Owned by: developer
Priority: normal Milestone:
Component: Vidalia Version: 0.1.6
Keywords: Cc: rpgoldman@…

Description

  • Your operating system (be specific)

MacOSX 10.5.4

  • Which version of Vidalia you're using (be specific; saying "latest" is not a valid version number)

Unified Mac installer downloaded from stable link on 6 August 2008

  • Which version of Tor you're using (be specific; saying "latest" is not a valid version number)

N/A -- install failed

  • Note on other bugs: From the installer log, this looks like a different installer bug than ticket:299.
  • Steps to reproduce the problem

Run installer

  • Log entries from /var/log/install.log:
Aug  6 10:04:37 macbook-pro Installer[4777]: run postflight script for Tor
Aug  6 10:04:37 macbook-pro runner[4779]: postflight[4819]: usage: chown [-fhv] [-R [-H | -L | -P]] owner[:grou
p] file ...
Aug  6 10:04:37 macbook-pro runner[4779]: postflight[4819]:        chown [-fhv] [-R [-H | -L | -P]] :group file
 ...
Aug  6 10:04:37 macbook-pro runner[4779]: postflight[4819]: 
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: moz_libdir=/usr/local/lib/firefox-3.0.1: Command no
t found.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: 
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: found=0: Command not found.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: progname=/Applications/Firefox.app/Contents/MacOS/f
irefox: Command not found.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: 
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: progname: Undefined variable.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: 
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: curdir=: Command not found.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: 
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: progname: Undefined variable.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: progbase=: Command not found.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: curdir: Undefined variable.
Aug  6 10:04:38 macbook-pro runner[4779]: postflight[4819]: 
Aug  6 10:04:38 macbook-pro Installer[4777]: Install failed: The following install step failed: run postflight 
script for Tor. Contact the software manufacturer for assistance.

Change History

Changed 3 months ago by vidalia

Looking at source:trunk/pkg/osx/TorPostFlight, it looks like there might be an error in line 28:

    chown $TORUSER $LOGFILE

I don't see a definition of TORUSER anywhere in this script. On the other hand, I don't know how this script is to be interpreted, and perhaps TORUSER is bound in the calling context.

One other thing that I was wondering about, because there are so many errors in this script run --- does this script assume that /bin/sh == /bin/bash? If so, I'm not sure that this assumption is justified in OSX, at least in my install:

[macbook-pro:~] user% ls -l /bin/sh
-r-xr-xr-x  1 root  wheel  1244960 Mar  4 23:44 /bin/sh
[macbook-pro:~] user% ls -l /bin/bash
-rwxr-xr-x  1 root  wheel  1244928 Mar  4 23:39 /bin/bash

I know on my linux box, /bin/sh is just an alias for /bin/bash...

Alas, I don't know enough about installers under OSX to be more help than this.

Note: See TracTickets for help on using tickets.