Opened 11 years ago

Closed 11 years ago

#1048 closed defect (fixed)

chicken-install is broken when TMPDIR=./

Reported by: Ivan Raikov Owned by:
Priority: major Milestone: 4.9.0
Component: core tools Version: 4.8.x
Keywords: chicken-install Cc:
Estimated difficulty:

Description (last modified by Ivan Raikov)

If the environment variable TMPDIR is set to ./ then chicken-install is unable to install eggs:

TMPDIR=./ chicken-install -debug datatype

reading files ...
 datatype located at ./temp72ca.9084/datatype
checking platform for `datatype' ...
checking dependencies for `datatype' ...
install order:
installing datatype:1.4 ...
changing current directory to ./temp72ca.9084/datatype
  '/home/igr/bin/chicken/bin/csi' -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(extension-name-and-version '(\"datatype\" \"1.4\"))" 'temp72ca.9084/datatype/datatype.setup'

Error: (open-input-file) cannot open file - No such file or directory: "temp72ca.9084/datatype/datatype.setup"

	Call history:

	setup-api.scm:582: ->string	  
	setup-api.scm:583: ensure-string	  
	setup-api.scm:582: ->string	  
	setup-api.scm:645: user-install-setup	  
	<syntax>	  (import setup-api)
	<syntax>	  (import scheme chicken foreign irregex utils posix ports extras data-structures srfi-1 srfi-13 files......
	<syntax>	  (##core#undefined)
	<syntax>	  (##core#undefined)
	<syntax>	  (extension-name-and-version (quote ("datatype" "1.4")))
	<syntax>	  (quote ("datatype" "1.4"))
	<syntax>	  (##core#quote ("datatype" "1.4"))
	<eval>	  (extension-name-and-version (quote ("datatype" "1.4")))
	setup-api.scm:583: ensure-string	  
	setup-api.scm:582: ->string	  
	setup-api.scm:583: ensure-string	  
	setup-api.scm:582: ->string	  	<--

Error: shell command terminated with nonzero exit code
"'/home/igr/bin/chicken/bin/csi' -bnq -setup-mode -e \"(require-library setup-ap...

Change History (4)

comment:1 Changed 11 years ago by sjamaan

Milestone: someday4.9.0

IIUC this is a regression, so this ought to be fixed before we release 4.9.0. Updating milestone to reflect this.

comment:2 Changed 11 years ago by Ivan Raikov

Description: modified (diff)
Keywords: cross removed
Summary: Cross compiled chicken-install is broken in Chicken 4.8.2chicken-install is broken when TMPDIR=./

comment:3 Changed 11 years ago by sjamaan

Thanks for reporting this. I've sent a patch to chicken-hackers.

comment:4 Changed 11 years ago by sjamaan

Resolution: fixed
Status: newclosed

Pushed as bf0e0c03c9f3b7cff57848e1655c79505125b87a

Note: See TracTickets for help on using tickets.