Summary
setup-api.scm's `write-info' doesn't check for setup-info's directory existence before writing it
Metadata
- Id: 4bf706130544bca6ed0930c4c0fc5bbf2c7abab9
- Trac id: 556
- Type: defect
- Reporter: mario
- Owner: felix
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: 4.9.0
- Version: 4.6.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2011-04-04 15:32:47 UTC
- Keywords: setup-api.scm, write-info, install-extension, setup-helper
Attachments
- 4bf706130544bca6ed0930c4c0fc5bbf2c7abab9/attachments/setup-api-write-info.diff
Description
Usually PREFIX/lib/chicken/BINVERSION exists when write-info is called, but there are certain corner cases (e.g., setup-helper on cross environments) which make write-info fail on trying to write to a file in a directory which has not been created.
The corner case triggered by setup-helper is that it doesn't contain any file to be installed on PREFIX/lib/chicken/BINVERSION besides the setup-info.
The attached patch fixes the problem by making write-info call ensure-directory before actually writing the setup-info file.
Changes and comments
[2011-04-04 15:33:14 UTC] mario attached setup-api-write-info.diff (description=#f)
[2011-04-05 13:18:25 UTC] felix changed status from new to closed
[2011-04-05 13:18:25 UTC] felix set resolution to fixed
[2011-04-05 13:18:25 UTC] felix wrote:
Thanks - applied in experimental.
[2011-06-01 09:00:41 UTC] felix changed milestone from 4.7.0 to 4.8.0
[2011-06-01 09:00:41 UTC] felix wrote:
Milestone 4.7.0 deleted
[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted