Summary
Problems with chicken-status -f after using chicken-install -p
Metadata
- Id: f07a50daf84673cee084545092af24df1cdd4858
- Trac id: 1220
- Type: defect
- Reporter: ryuslash
- Owner: ckeen
- Cc:
- Status: closed
- Component: unknown
- Estimated difficulty: medium
- Resolution: wontfix
- Priority: minor
- Milestone: someday
- Version: 4.10.x
- Changetime: 2022-10-31 11:20:25 UTC
- Created: 2015-09-11 00:28:36 UTC
- Keywords:
Description
Hi,
When I use `chicken-install -p` to install an extension library to a non-default location and then move it to where all other extension libraries are installed, calling `chicken-install -f` on it produces the wrong results.
For example:
$ chicken-install -r xlib-utils $ cd xlib-utils && mkdir foo $ chicken-install -p foo $ sudo mv foo/lib/chicken/7/* /usr/lib/chicken/7/ $ chicken-status -f xlib-utils /home/slash/xlib-utils/foo/home/slash/xlib-utils/foo/lib/chicken/7/xlib-utils.import.so /home/slash/xlib-utils/foo/home/slash/xlib-utils/foo/lib/chicken/7/xlib-utils.so
This is wrong for two reasons:
1. The files have been moved to `/usr/lib/chicken/7/` 2. The path `/home/slash/xlib-utils/foo/home/slash/xlib-utils/foo/lib/chicken/7/` never existed, it was `/home/slash/xlib-utils/foo/lib/chicken/7/`.
I packaged some extension libraries for the Archlinux User Repository and this is basically how packages are made, they are installed in a kind of staging area and then later put in the proper place from the package.
Everything still seems to work fine, programs depending on extension libraries installed this way don't seem to have any trouble with it, even when I remove the directory where the files were stored before being packaged.
Changes and comments
[2015-09-26 16:41:43 UTC] ckeen changed status from new to assigned
[2015-09-26 16:41:43 UTC] ckeen set owner to ckeen
[2015-09-26 16:52:41 UTC] ckeen wrote:
Yes the path is wrong completely. I am not sure what to do about the moving part. Maybe we can make the path relative to the current repository-path? The info files are only searched there and the path could be converted to an absolute one wherever needed.
Opinions from the others?
[2015-09-27 12:35:03 UTC] ckeen wrote:
I have a fix and will push it once I can get online again.
[2015-09-27 12:49:01 UTC] ckeen changed status from assigned to closed
[2015-09-27 12:49:01 UTC] ckeen set resolution to fixed
[2015-09-27 12:49:01 UTC] ckeen wrote:
Fixed by d90426a on chicken master and ad0bc66 on chicken-5.
[2016-06-12 20:35:21 UTC] ryuslash wrote:
I have just tried this with chicken 4.11.0 and it hasn't been fixed it seems.
[2016-06-12 20:35:21 UTC] ryuslash changed status from closed to reopened
[2016-06-12 20:35:21 UTC] ryuslash removed resolution fixed
[2016-08-25 20:34:38 UTC] sjamaan set difficulty to medium
[2022-10-31 11:20:25 UTC] felix changed status from reopened to closed
[2022-10-31 11:20:25 UTC] felix set resolution to wontfix
[2022-10-31 11:20:25 UTC] felix wrote:
The -p option is no longer existing in CHICKEN 5, we have environment variables for this now, with slightly more control (install-location vs. lookup location).