On Thu, Dec 16, 2021 at 12:59:54AM +0000, James Cook wrote:
> > I don't see anything wrong with that but I don't know why you have that
> > dir. Run the command "raco pkg config" as regular user. You should have
> > something like this output:
> > 
> > current-amd64$ raco pkg config
> > name:
> > 8.3
> > catalogs:
> > https://download.racket-lang.org/releases/8.3/catalog/
> > https://pkgs.racket-lang.org
> > https://planet-compats.racket-lang.org
> > default-scope:
> > user
> > download-cache-dir:
> > /home/juanfra/.racket/download-cache
> > download-cache-max-files:
> > 1024
> > download-cache-max-bytes:
> > 134217728
> > git-checkout-credentials:
> > trash-max-packages:
> > 512
> > trash-max-seconds:
> > 172800
> > network-retries:
> > 5
> > 
> > default-scope should say "user" and the download dir should be the same
> > but with your user. Running "racket-user-bin-paths" you should see the
> > bin directory path within $HOME/.racket.
> > 
> > And this is the right config file in /etc/racket/config.rktd:
> > ;; generated by unixstyle-install
> > #hash(
> >       (doc-dir . "/usr/local/share/doc/racket")
> >       (lib-dir . "/usr/local/lib/racket")
> >       (pkgs-dir . "/usr/local/share/racket/pkgs")
> >       (share-dir . "/usr/local/share/racket")
> >       (include-dir . "/usr/local/include/racket")
> >       (bin-dir . "/usr/local/bin")
> >       (apps-dir . "/usr/local/share/applications")
> >       (man-dir . "/usr/local/man")
> >       (absolute-installation? . #t)
> >       (compiled-file-roots . (same "/usr/local/lib/racket/compiled"))
> >       (build-stamp . "")
> >       (doc-search-url . 
> > "https://download.racket-lang.org/releases/8.3/doc/local-redirect/index.html";)
> >       (catalogs . ("https://download.racket-lang.org/releases/8.3/catalog/"; 
> > #f))
> > )
> > 
> > -- 
> > Juan Francisco Cantero Hurtado http://juanfra.info
> 
> For reproducibility, I wrote the below script and created another new
> VM.
> 
> 
> #!/bin/sh
> sysctl kern.version
> pkg_add racket-minimal-8.3
> su falsifian -c "raco pkg install base"
> su falsifian -c "raco pkg config"
> 
> 
> I ran the script as root on another freshly created OpenBSD vm. The
> script was the first command run on the system, except for scp and
> chmod to set up the script.
> 
> After running the script I confirmed that
> /home/falsifian/.local/share/racket/8.3 exists.
> 
> Here is the full output. I noticed that download-cache-dir is different
> from yours.
> 
> 
> kern.version=OpenBSD 7.0-current (GENERIC.MP) #168: Tue Dec 14 15:32:01 MST 
> 2021
>     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> quirks-4.89 signed on 2021-12-15T15:12:59Z
> New and changed readme(s):
>       /usr/local/share/doc/pkg-readmes/racket-minimal
> Resolving "base" via https://download.racket-lang.org/releases/8.3/catalog/
> Downloading https://download.racket-lang.org/releases/8.3/pkgs/base.zip
> raco setup: version: 8.3
> raco setup: platform: x86_64-openbsd [cs]
> raco setup: target machine: ta6ob
> raco setup: installation name: 8.3
> raco setup: variants: cs
> raco setup: main collects: /usr/local/share/racket/collects/
> raco setup: collects paths: 
> raco setup:   /home/falsifian/.local/share/racket/8.3/collects
> raco setup:   /usr/local/share/racket/collects/
> raco setup: main pkgs: /usr/local/share/racket/pkgs
> raco setup: pkgs paths: 
> raco setup:   /usr/local/share/racket/pkgs
> raco setup:   /home/falsifian/.local/share/racket/8.3/pkgs
> raco setup: links files: 
> raco setup:   /usr/local/share/racket/links.rktd
> raco setup:   /home/falsifian/.local/share/racket/8.3/links.rktd
> raco setup: compiled-file roots: 
> raco setup:   same
> raco setup:   /usr/local/lib/racket/compiled
> raco setup: main docs: /usr/local/share/doc/racket
> raco setup: --- updating info-domain tables ---                    [0:53:11]
> raco setup: --- pre-installing collections ---                     [0:53:11]
> raco setup: --- installing foreign libraries ---                   [0:53:11]
> raco setup: --- installing shared files ---                        [0:53:11]
> raco setup: --- compiling collections ---                          [0:53:11]
> raco setup: --- parallel build using 4 jobs ---                    [0:53:11]
> raco setup: --- creating launchers ---                             [0:53:13]
> raco setup: --- installing man pages ---                           [0:53:13]
> raco setup: --- installing collections ---                         [0:53:13]
> raco setup: --- post-installing collections ---                    [0:53:13]
> name:
>   8.3
> catalogs:
>   https://download.racket-lang.org/releases/8.3/catalog/
>   https://pkgs.racket-lang.org
>   https://planet-compats.racket-lang.org
> default-scope:
>   user
> download-cache-dir:
>   /home/falsifian/.cache/racket/download-cache
> download-cache-max-files:
>   1024
> download-cache-max-bytes:
>   134217728
> git-checkout-credentials:
> trash-max-packages:
>   512
> trash-max-seconds:
>   172800
> network-retries:
>   5

Thanks. I've been checking the Racket code and upstream has been
creating these kind of directories for the last year. For some reason,
Racket always creates the old directories for me even when I remove all
the old directories and files.

Your installation is fine and I was wrong. The reason why I was worried
about the directories is because sometimes the users change the default
scopes and when I update the port to a new version their systems are
broken.

Anyway, sorry for all the noise.


-- 
Juan Francisco Cantero Hurtado http://juanfra.info

Reply via email to