Summary

setup-api.scm's `write-info' doesn't check for setup-info's directory existence before writing it

Metadata

Attachments

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