Opened 9 years ago
Closed 2 years ago
#1220 closed defect (wontfix)
Problems with chicken-status -f after using chicken-install -p
Reported by: | Tom Willemse | Owned by: | Christian Kellermann |
---|---|---|---|
Priority: | minor | Milestone: | someday |
Component: | unknown | Version: | 4.10.x |
Keywords: | Cc: | ||
Estimated difficulty: | medium |
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:
- The files have been moved to
/usr/lib/chicken/7/
- 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.
Change History (7)
comment:1 Changed 9 years ago by
Owner: | set to Christian Kellermann |
---|---|
Status: | new → assigned |
comment:2 Changed 9 years ago by
comment:4 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed by d90426a on chicken master and ad0bc66 on chicken-5.
comment:5 Changed 9 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I have just tried this with chicken 4.11.0 and it hasn't been fixed it seems.
comment:6 Changed 8 years ago by
Estimated difficulty: | → medium |
---|
comment:7 Changed 2 years ago by
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
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).
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?