Good morning.
I'm currently experimenting with directory scope in Raco with the objective of managing packets in a more efficient way, but I'm stuck with a strange behavior that I can't seem to understand just by looking at the docs.
For what I can comprehend from the config.rkt
reference, the following configuration should allow me to use /usr/racketpkgs
as a directory scope, therefore allowing me to install packages in it while using the dependencies present in the installation scope:
#hash(
(doc-dir . "/usr/share/doc/racket")
(lib-dir . "/usr/lib/racket")
(pkgs-dir . "/usr/share/racket/pkgs")
(share-dir . "/usr/share/racket")
(include-dir . "/usr/include/racket")
(bin-dir . "/usr/bin")
(apps-dir . "/usr/share/applications")
(man-dir . "/usr/share/man")
(absolute-installation? . #t)
(compiled-file-roots . (same "/usr/lib/racket/compiled"))
(build-stamp . "")
(doc-search-url . "https://download.racket-lang.org/releases/8.8/doc/local-redirect/index.html")
(catalogs . ("https://download.racket-lang.org/releases/8.8/catalog/" #f))
(collects-search-dirs . ("/usr/racketpkgs" #f))
(links-search-files . ("/usr/racketpkgs/links.rktd" #f))
(pkgs-search-dirs . ("/usr/racketpkgs" #f))
)
The problem, however, is that when I try to run sudo raco pkg install --scope-dir /usr/racketpkgs/ resource-pool-lib
(with resource-pool-lib
being a simple package I found that only depends on base
) Raco prints out
Resolving "resource-pool-lib" via https://download.racket-lang.org/releases/8.8/catalog/
Resolving "resource-pool-lib" via https://pkgs.racket-lang.org
Using cached16825330941682533094018 for https://github.com/Bogdanp/racket-resource-pool.git?path=resource-pool-lib
The following uninstalled packages are listed as dependencies of resource-pool-lib:
base
Would you like to install these dependencies? [Y/n/a/c/?] n
raco pkg install: missing dependencies
missing packages:
base
suggesting that base is not present on my system.
Since base
is obviously present in the installation scope, I can only conclude that I did something wrong in the configuration that makes Raco only look for the dependencies in the target directory itself, but since the meaning of the single parameters is not so clear to me, I'm unable to find out what.
Thank you in advance to anyone who can help me with this problem.