Opened 9 years ago

Closed 18 months 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



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

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.

Change History (7)

comment:1 Changed 9 years ago by Christian Kellermann

Owner: set to Christian Kellermann
Status: newassigned

comment:2 Changed 9 years ago by Christian Kellermann

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?

comment:3 Changed 9 years ago by Christian Kellermann

I have a fix and will push it once I can get online again.

comment:4 Changed 9 years ago by Christian Kellermann

Resolution: fixed
Status: assignedclosed

Fixed by d90426a on chicken master and ad0bc66 on chicken-5.

comment:5 Changed 8 years ago by Tom Willemse

Resolution: fixed
Status: closedreopened

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 sjamaan

Estimated difficulty: medium

comment:7 Changed 18 months ago by felix winkelmann

Resolution: wontfix
Status: reopenedclosed

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).

Note: See TracTickets for help on using tickets.