Re: [racket-users] eq? behavior changed on Racket CS?

2021-05-20 Thread Matthew Flatt
Yes, this is an expected difference. The Racket documentation still
only promises `eq?` for characters with scalar values in the range 0 to
255, but Chez Scheme characters are always `eq?` when they are `eqv?`.

At Thu, 20 May 2021 19:17:04 -0400, Stephen Chang wrote:
> Hi everyone, Has eq? behavior changed with Racket CS? (ie, 8.0+)
> 
> Specifically:
> 
> $ racket79/bin/racket
> Welcome to Racket v7.9 [bc].
> > (eq? (integer->char 955) (integer->char 955))
> #f
> 
> $ plt/racket/bin/racket
> Welcome to Racket v8.1.0.6 [cs].
> > (eq? (integer->char 955) (integer->char 955))
> #t
> 
> Is this expected behavior?
> 
> (I know this has probably been addressed and I wasn't paying
> attention, but I did a quick search of the list and docs and couldnt
> find anything, so just want to double check. Thanks!)
> 
> Steve
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email 
> to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/CAFfiA1LQw_ECHrgRN%3DfrK9H%2BE8kS
> FFEqdShqSdvXXmfCmcB0Eg%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20210520172844.159%40sirmail.smtps.cs.utah.edu.


[racket-users] eq? behavior changed on Racket CS?

2021-05-20 Thread Stephen Chang
Hi everyone, Has eq? behavior changed with Racket CS? (ie, 8.0+)

Specifically:

$ racket79/bin/racket
Welcome to Racket v7.9 [bc].
> (eq? (integer->char 955) (integer->char 955))
#f

$ plt/racket/bin/racket
Welcome to Racket v8.1.0.6 [cs].
> (eq? (integer->char 955) (integer->char 955))
#t

Is this expected behavior?

(I know this has probably been addressed and I wasn't paying
attention, but I did a quick search of the list and docs and couldnt
find anything, so just want to double check. Thanks!)

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAFfiA1LQw_ECHrgRN%3DfrK9H%2BE8kSFFEqdShqSdvXXmfCmcB0Eg%40mail.gmail.com.


Re: [racket-users] Freenode -> libera.chat

2021-05-20 Thread Stephen De Gabrielle
I don’t use IRC much/ever - but in the event the irc links need to change
from freenode, links are present in the following places:

1. Homepage
2. https://racket-lang.org/irc-chat.html
3. Wiki - github
4. Reddit - mod access required

Current text: #racket IRC  on
freenode.net
Replacement text: #racket IRC on irc.libera.chat

Current link: https://webchat.freenode.net/#racket
Replacement link: https://kiwiirc.com/nextclient/irc.libera.chat/#racket
(Thanks to Tony Garnock-Jones )


S.


On Thu, 20 May 2021 at 14:16, Tony Garnock-Jones 
wrote:

> https://web.archive.org/web/20210520002957/http://kline.sh/ is a good
> starting point.
>
> On 20 May 2021, 15:12, at 15:12, David Storrs 
> wrote:
> >What happened with Freenode?
> >
> >On Thu, May 20, 2021 at 8:12 AM Tony Garnock-Jones <
> >to...@leastfixedpoint.com> wrote:
> >
> >> On 5/20/21 1:28 PM, Paulo Matos wrote:
> >> > Tony Garnock-Jones writes:
> >> >> With the recent damage to the Freenode IRC network, a new
> >`#racket` has
> >> >> been founded on irc.libera.chat.
> >> >
> >> > Is this to become the canonical IRC chat room for Racket?
> >>
> >> ¯\_(ツ)_/¯
> >>
> >> I'd be in favour of moving off Freenode, myself.
> >>
> >> What would need updating? Presumably little more than the following:
> >>
> >>- https://racket-lang.org/irc-chat.html
> >>
> >> ? Is freenode mentioned anywhere else?
> >>
> >> Cheers,
> >>Tony
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >Groups
> >> "Racket Users" group.
> >> To unsubscribe from this group and stop receiving emails from it,
> >send an
> >> email to racket-users+unsubscr...@googlegroups.com.
> >> To view this discussion on the web visit
> >>
> >
> https://groups.google.com/d/msgid/racket-users/4956afef-9ef6-cf9d-d2ce-61d83d3780ec%40leastfixedpoint.com
> >> .
> >>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/1fe52f10-762a-483c-b4fc-ea35e3cb0aa8%40leastfixedpoint.com
> .
>
-- 


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAGHj7-%2B180mERTwmRAroKKepSnWMVOxPHcm0-X2EvXK0v6eAMA%40mail.gmail.com.


Re: [racket-users] Freenode -> libera.chat

2021-05-20 Thread Tony Garnock-Jones
https://web.archive.org/web/20210520002957/http://kline.sh/ is a good starting 
point.

On 20 May 2021, 15:12, at 15:12, David Storrs  wrote:
>What happened with Freenode?
>
>On Thu, May 20, 2021 at 8:12 AM Tony Garnock-Jones <
>to...@leastfixedpoint.com> wrote:
>
>> On 5/20/21 1:28 PM, Paulo Matos wrote:
>> > Tony Garnock-Jones writes:
>> >> With the recent damage to the Freenode IRC network, a new
>`#racket` has
>> >> been founded on irc.libera.chat.
>> >
>> > Is this to become the canonical IRC chat room for Racket?
>>
>> ¯\_(ツ)_/¯
>>
>> I'd be in favour of moving off Freenode, myself.
>>
>> What would need updating? Presumably little more than the following:
>>
>>- https://racket-lang.org/irc-chat.html
>>
>> ? Is freenode mentioned anywhere else?
>>
>> Cheers,
>>Tony
>>
>> --
>> You received this message because you are subscribed to the Google
>Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>>
>https://groups.google.com/d/msgid/racket-users/4956afef-9ef6-cf9d-d2ce-61d83d3780ec%40leastfixedpoint.com
>> .
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1fe52f10-762a-483c-b4fc-ea35e3cb0aa8%40leastfixedpoint.com.


Re: [racket-users] Freenode -> libera.chat

2021-05-20 Thread David Storrs
What happened with Freenode?

On Thu, May 20, 2021 at 8:12 AM Tony Garnock-Jones <
to...@leastfixedpoint.com> wrote:

> On 5/20/21 1:28 PM, Paulo Matos wrote:
> > Tony Garnock-Jones writes:
> >> With the recent damage to the Freenode IRC network, a new `#racket` has
> >> been founded on irc.libera.chat.
> >
> > Is this to become the canonical IRC chat room for Racket?
>
> ¯\_(ツ)_/¯
>
> I'd be in favour of moving off Freenode, myself.
>
> What would need updating? Presumably little more than the following:
>
>- https://racket-lang.org/irc-chat.html
>
> ? Is freenode mentioned anywhere else?
>
> Cheers,
>Tony
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/4956afef-9ef6-cf9d-d2ce-61d83d3780ec%40leastfixedpoint.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAE8gKodDbgZ6jTi9sVN-950ZY_OPLdNvEqWCoZZp1p4gYoBJuQ%40mail.gmail.com.


Re: [racket-users] Freenode -> libera.chat

2021-05-20 Thread Tony Garnock-Jones

On 5/20/21 1:28 PM, Paulo Matos wrote:

Tony Garnock-Jones writes:

With the recent damage to the Freenode IRC network, a new `#racket` has
been founded on irc.libera.chat.


Is this to become the canonical IRC chat room for Racket?


¯\_(ツ)_/¯

I'd be in favour of moving off Freenode, myself.

What would need updating? Presumably little more than the following:

  - https://racket-lang.org/irc-chat.html

? Is freenode mentioned anywhere else?

Cheers,
  Tony

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/4956afef-9ef6-cf9d-d2ce-61d83d3780ec%40leastfixedpoint.com.


Re: [racket-users] Freenode -> libera.chat

2021-05-20 Thread Paulo Matos


Tony Garnock-Jones writes:

> Just a heads up,
>
> With the recent damage to the Freenode IRC network, a new `#racket` has 
> been founded on irc.libera.chat.
>
> I've moved over there (nick `tonyg` still) and deleted my Freenode account 
> (such as it was).

Is this to become the canonical IRC chat room for Racket?

-- 
Paulo Matos

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/874kex63vt.fsf%40linki.tools.


[racket-users] Freenode -> libera.chat

2021-05-20 Thread Tony Garnock-Jones

Just a heads up,

With the recent damage to the Freenode IRC network, a new `#racket` has 
been founded on irc.libera.chat.

I've moved over there (nick `tonyg` still) and deleted my Freenode account 
(such as it was).

Cheers,
  Tony

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/b60d3ddc-601b-4166-89ce-98bb1a1d49d9n%40googlegroups.com.


Re: [racket-users] I want a package at installation scope but also to keep my install clean

2021-05-20 Thread Nathaniel W Griswold
Hm, I think maybe i will just abort this effort on my system since it seems 
like Matthew is already kinda working on making this exact thing better (as he 
said earlier) at https://github.com/racket/racket/commit/dfbb7040a

I'll just use user scope now and wait until this kind of thing is explicitly 
supported, unless you guys think it's possible to do correctly now?

Nate

> On May 20, 2021, at 4:00 AM, Nathaniel W Griswold  
> wrote:
> 
> To be clear:
> 
> "/opt/Racket/Racket 8.1" is the system racket which the unprivileged user 
> cannot write.
> "/opt/Racket/Packages/8.1" is a unprivileged-writable directory intended for 
> use as a package destination.
> 
> Nate
> 
>> On May 20, 2021, at 3:55 AM, Nathaniel W Griswold  
>> wrote:
>> 
>> Oh, and i'll just duplicate the issue here for Matthew / the Racket side 
>> since it could just be racket related:
>> 
>> The errors i ran into are when using a custom PLTCONFIGDIR with this 
>> config.rktd:
>> 
>> ---
>> #hash((build-stamp . "")
>> (catalogs
>>  .
>>  ("https://download.racket-lang.org/releases/8.1/catalog/; #f))
>> (default-scope . "installation")
>> (doc-dir . "/opt/Racket/Packages/8.1/doc")
>> (doc-search-dirs . (#f "/opt/Racket/Racket 8.1/doc"))
>> (doc-search-url
>>  .
>>  
>> "https://download.racket-lang.org/releases/8.1/doc/local-redirect/index.html;)
>> (links-file . "/opt/Racket/Packages/8.1/links.rktd")
>> (links-search-files . (#f "/opt/Racket/Racket 8.1/share/links.rktd"))
>> (pkgs-dir . "/opt/Racket/Packages/8.1/pkgs")
>> (pkgs-search-dirs . (#f "/opt/Racket/Racket 8.1/share/pkgs")))
>> ---
>> 
>> The files that `raco pkg install` as an unprivileged user ends up trying to 
>> delete are:
>> 
>> open-output-file: error deleting file
>> path: /opt/Racket/Racket 8.1/share/shares.rktd
>> system error: Permission denied; errno=13
>> 
>> open-output-file: error deleting file
>> path: /opt/Racket/Racket 8.1/lib/launchers.rktd
>> system error: Permission denied; errno=13
>> 
>> 
>> Is this expected behavior?
>> 
>> Nate
>> 
>> 
>>> On May 20, 2021, at 3:48 AM, Nathaniel W Griswold  
>>> wrote:
>>> 
>>> Sam,
>>> 
>>> Yes, the tool and PLTCONFIGDIR help me better control things. I think the 
>>> tool is helpful. I ran into a problem with racket trying to delete files 
>>> and posted it on github at 
>>> https://github.com/samdphillips/raco-pkg-env/issues/3
>>> 
>>> I don't think it's really a raco-pkg-env issue, though, i guess it wouldbe 
>>> more of a racket issue if it is a problem and not a mistake on my part.
>>> 
>>> Nate
>>> 
 On May 18, 2021, at 12:06 PM, Sam Tobin-Hochstadt  
 wrote:
 
 You might also be interested in the new `raco-pkg-env` tool:
 https://github.com/samdphillips/raco-pkg-env/
 
 Sam
 
 On Tue, May 18, 2021 at 12:20 PM Matthew Flatt  wrote:
> 
> Yes, this approach can work. I don't think the existing Racket tools
> will help much with persisting a configuration across versions, though,
> so you'd probably have to script that.
> 
> One potential drawback of your approach is that executables,
> documentation, etc., associated with the extra package will get
> rendered into the main installation area instead of the "/opt/Racket"
> are. That may be fine for your purposes, but a more strictly layered
> installation is meant to be possible. It turns out that some pieces
> have been missing for layering, and fixing that is an area of current
> work (https://github.com/racket/racket/commit/dfbb7040a).
> 
> At Sun, 16 May 2021 23:43:52 -0500, Nathaniel W Griswold wrote:
>> Hello,
>> 
>> I was setting up Racket on my linux box and i realized that there are a 
>> lot of
>> options for path configuration and i forgot a lot of what i discovered 
>> last
>> time i dug into this. I was trying to set up installation scope but 
>> maybe a
>> little cleanly and figured someone might have some input.
>> 
>> I want a package at roughly installation scope, but i kinda wanted to 
>> know what
>> was added by me and what was part of the default installation. Is this
>> reasonable or should i just deal with it and dump stuff in 
>> $RACKET/share/pkgs?
>> If it is reasonable then what is the best way to set this up?
>> 
>> Just FYI I did an in-place install of Racket in "/opt/Racket/Racket\ 8.1"
>> symlinked to /opt/Racket...
>> 
>> I think maybe what i want is to set  to something like
>> 
>> (in /opt/Racket/etc/config.rktd)
>> 
>> #hash(... (pkgs-search-dirs . "/opt/Racket 8.1/share/pkgs-system" #f)
>> (links-search-files . ("/opt/Racket/share/pkgs-system/links.rktd" #f)) 
>> ...)
>> 
>> Then i just did a `sudo /opt/Racket/bin/raco pkg install --scope-dir
>> /opt/Racket/share/pkgs-system rash`
>> 
>> ... and the new package seems to be working fine for my users.
>> 
>> 

Re: [racket-users] I want a package at installation scope but also to keep my install clean

2021-05-20 Thread Nathaniel W Griswold
To be clear:

"/opt/Racket/Racket 8.1" is the system racket which the unprivileged user 
cannot write.
"/opt/Racket/Packages/8.1" is a unprivileged-writable directory intended for 
use as a package destination.

Nate

> On May 20, 2021, at 3:55 AM, Nathaniel W Griswold  
> wrote:
> 
> Oh, and i'll just duplicate the issue here for Matthew / the Racket side 
> since it could just be racket related:
> 
> The errors i ran into are when using a custom PLTCONFIGDIR with this 
> config.rktd:
> 
> ---
> #hash((build-stamp . "")
>  (catalogs
>   .
>   ("https://download.racket-lang.org/releases/8.1/catalog/; #f))
>  (default-scope . "installation")
>  (doc-dir . "/opt/Racket/Packages/8.1/doc")
>  (doc-search-dirs . (#f "/opt/Racket/Racket 8.1/doc"))
>  (doc-search-url
>   .
>   
> "https://download.racket-lang.org/releases/8.1/doc/local-redirect/index.html;)
>  (links-file . "/opt/Racket/Packages/8.1/links.rktd")
>  (links-search-files . (#f "/opt/Racket/Racket 8.1/share/links.rktd"))
>  (pkgs-dir . "/opt/Racket/Packages/8.1/pkgs")
>  (pkgs-search-dirs . (#f "/opt/Racket/Racket 8.1/share/pkgs")))
> ---
> 
> The files that `raco pkg install` as an unprivileged user ends up trying to 
> delete are:
> 
> open-output-file: error deleting file
>  path: /opt/Racket/Racket 8.1/share/shares.rktd
>  system error: Permission denied; errno=13
> 
> open-output-file: error deleting file
>  path: /opt/Racket/Racket 8.1/lib/launchers.rktd
>  system error: Permission denied; errno=13
> 
> 
> Is this expected behavior?
> 
> Nate
> 
> 
>> On May 20, 2021, at 3:48 AM, Nathaniel W Griswold  
>> wrote:
>> 
>> Sam,
>> 
>> Yes, the tool and PLTCONFIGDIR help me better control things. I think the 
>> tool is helpful. I ran into a problem with racket trying to delete files and 
>> posted it on github at https://github.com/samdphillips/raco-pkg-env/issues/3
>> 
>> I don't think it's really a raco-pkg-env issue, though, i guess it wouldbe 
>> more of a racket issue if it is a problem and not a mistake on my part.
>> 
>> Nate
>> 
>>> On May 18, 2021, at 12:06 PM, Sam Tobin-Hochstadt  
>>> wrote:
>>> 
>>> You might also be interested in the new `raco-pkg-env` tool:
>>> https://github.com/samdphillips/raco-pkg-env/
>>> 
>>> Sam
>>> 
>>> On Tue, May 18, 2021 at 12:20 PM Matthew Flatt  wrote:
 
 Yes, this approach can work. I don't think the existing Racket tools
 will help much with persisting a configuration across versions, though,
 so you'd probably have to script that.
 
 One potential drawback of your approach is that executables,
 documentation, etc., associated with the extra package will get
 rendered into the main installation area instead of the "/opt/Racket"
 are. That may be fine for your purposes, but a more strictly layered
 installation is meant to be possible. It turns out that some pieces
 have been missing for layering, and fixing that is an area of current
 work (https://github.com/racket/racket/commit/dfbb7040a).
 
 At Sun, 16 May 2021 23:43:52 -0500, Nathaniel W Griswold wrote:
> Hello,
> 
> I was setting up Racket on my linux box and i realized that there are a 
> lot of
> options for path configuration and i forgot a lot of what i discovered 
> last
> time i dug into this. I was trying to set up installation scope but maybe 
> a
> little cleanly and figured someone might have some input.
> 
> I want a package at roughly installation scope, but i kinda wanted to 
> know what
> was added by me and what was part of the default installation. Is this
> reasonable or should i just deal with it and dump stuff in 
> $RACKET/share/pkgs?
> If it is reasonable then what is the best way to set this up?
> 
> Just FYI I did an in-place install of Racket in "/opt/Racket/Racket\ 8.1"
> symlinked to /opt/Racket...
> 
> I think maybe what i want is to set  to something like
> 
> (in /opt/Racket/etc/config.rktd)
> 
> #hash(... (pkgs-search-dirs . "/opt/Racket 8.1/share/pkgs-system" #f)
> (links-search-files . ("/opt/Racket/share/pkgs-system/links.rktd" #f)) 
> ...)
> 
> Then i just did a `sudo /opt/Racket/bin/raco pkg install --scope-dir
> /opt/Racket/share/pkgs-system rash`
> 
> ... and the new package seems to be working fine for my users.
> 
> Is that what i wanted or is there something better? Is there a way to 
> configure
> config.rktd additions that will persist across upgrades or will i have to
> update my config.rktd for every racket release? Do other people do this 
> kind of
> thing or just dump stuff in the installation scope? Maybe there are more
> options with a unix-style install, i haven't really tried one yet.
> 
> Thanks!
> 
> Nate
 
 --
 You received this message because you are subscribed to the Google Groups 
 "Racket Users" 

Re: [racket-users] I want a package at installation scope but also to keep my install clean

2021-05-20 Thread Nathaniel W Griswold
Oh, and i'll just duplicate the issue here for Matthew / the Racket side since 
it could just be racket related:

The errors i ran into are when using a custom PLTCONFIGDIR with this 
config.rktd:

---
#hash((build-stamp . "")
  (catalogs
   .
   ("https://download.racket-lang.org/releases/8.1/catalog/; #f))
  (default-scope . "installation")
  (doc-dir . "/opt/Racket/Packages/8.1/doc")
  (doc-search-dirs . (#f "/opt/Racket/Racket 8.1/doc"))
  (doc-search-url
   .
   
"https://download.racket-lang.org/releases/8.1/doc/local-redirect/index.html;)
  (links-file . "/opt/Racket/Packages/8.1/links.rktd")
  (links-search-files . (#f "/opt/Racket/Racket 8.1/share/links.rktd"))
  (pkgs-dir . "/opt/Racket/Packages/8.1/pkgs")
  (pkgs-search-dirs . (#f "/opt/Racket/Racket 8.1/share/pkgs")))
---

The files that `raco pkg install` as an unprivileged user ends up trying to 
delete are:

open-output-file: error deleting file
  path: /opt/Racket/Racket 8.1/share/shares.rktd
  system error: Permission denied; errno=13

open-output-file: error deleting file
  path: /opt/Racket/Racket 8.1/lib/launchers.rktd
  system error: Permission denied; errno=13


Is this expected behavior?

Nate


> On May 20, 2021, at 3:48 AM, Nathaniel W Griswold  
> wrote:
> 
> Sam,
> 
> Yes, the tool and PLTCONFIGDIR help me better control things. I think the 
> tool is helpful. I ran into a problem with racket trying to delete files and 
> posted it on github at https://github.com/samdphillips/raco-pkg-env/issues/3
> 
> I don't think it's really a raco-pkg-env issue, though, i guess it wouldbe 
> more of a racket issue if it is a problem and not a mistake on my part.
> 
> Nate
> 
>> On May 18, 2021, at 12:06 PM, Sam Tobin-Hochstadt  
>> wrote:
>> 
>> You might also be interested in the new `raco-pkg-env` tool:
>> https://github.com/samdphillips/raco-pkg-env/
>> 
>> Sam
>> 
>> On Tue, May 18, 2021 at 12:20 PM Matthew Flatt  wrote:
>>> 
>>> Yes, this approach can work. I don't think the existing Racket tools
>>> will help much with persisting a configuration across versions, though,
>>> so you'd probably have to script that.
>>> 
>>> One potential drawback of your approach is that executables,
>>> documentation, etc., associated with the extra package will get
>>> rendered into the main installation area instead of the "/opt/Racket"
>>> are. That may be fine for your purposes, but a more strictly layered
>>> installation is meant to be possible. It turns out that some pieces
>>> have been missing for layering, and fixing that is an area of current
>>> work (https://github.com/racket/racket/commit/dfbb7040a).
>>> 
>>> At Sun, 16 May 2021 23:43:52 -0500, Nathaniel W Griswold wrote:
 Hello,
 
 I was setting up Racket on my linux box and i realized that there are a 
 lot of
 options for path configuration and i forgot a lot of what i discovered last
 time i dug into this. I was trying to set up installation scope but maybe a
 little cleanly and figured someone might have some input.
 
 I want a package at roughly installation scope, but i kinda wanted to know 
 what
 was added by me and what was part of the default installation. Is this
 reasonable or should i just deal with it and dump stuff in 
 $RACKET/share/pkgs?
 If it is reasonable then what is the best way to set this up?
 
 Just FYI I did an in-place install of Racket in "/opt/Racket/Racket\ 8.1"
 symlinked to /opt/Racket...
 
 I think maybe what i want is to set  to something like
 
 (in /opt/Racket/etc/config.rktd)
 
 #hash(... (pkgs-search-dirs . "/opt/Racket 8.1/share/pkgs-system" #f)
 (links-search-files . ("/opt/Racket/share/pkgs-system/links.rktd" #f)) ...)
 
 Then i just did a `sudo /opt/Racket/bin/raco pkg install --scope-dir
 /opt/Racket/share/pkgs-system rash`
 
 ... and the new package seems to be working fine for my users.
 
 Is that what i wanted or is there something better? Is there a way to 
 configure
 config.rktd additions that will persist across upgrades or will i have to
 update my config.rktd for every racket release? Do other people do this 
 kind of
 thing or just dump stuff in the installation scope? Maybe there are more
 options with a unix-style install, i haven't really tried one yet.
 
 Thanks!
 
 Nate
>>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to racket-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/racket-users/20210518102000.1b1%40sirmail.smtps.cs.utah.edu.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop 

Re: [racket-users] I want a package at installation scope but also to keep my install clean

2021-05-20 Thread Nathaniel W Griswold
Sam,

Yes, the tool and PLTCONFIGDIR help me better control things. I think the tool 
is helpful. I ran into a problem with racket trying to delete files and posted 
it on github at https://github.com/samdphillips/raco-pkg-env/issues/3

I don't think it's really a raco-pkg-env issue, though, i guess it wouldbe more 
of a racket issue if it is a problem and not a mistake on my part.

Nate

> On May 18, 2021, at 12:06 PM, Sam Tobin-Hochstadt  
> wrote:
> 
> You might also be interested in the new `raco-pkg-env` tool:
> https://github.com/samdphillips/raco-pkg-env/
> 
> Sam
> 
> On Tue, May 18, 2021 at 12:20 PM Matthew Flatt  wrote:
>> 
>> Yes, this approach can work. I don't think the existing Racket tools
>> will help much with persisting a configuration across versions, though,
>> so you'd probably have to script that.
>> 
>> One potential drawback of your approach is that executables,
>> documentation, etc., associated with the extra package will get
>> rendered into the main installation area instead of the "/opt/Racket"
>> are. That may be fine for your purposes, but a more strictly layered
>> installation is meant to be possible. It turns out that some pieces
>> have been missing for layering, and fixing that is an area of current
>> work (https://github.com/racket/racket/commit/dfbb7040a).
>> 
>> At Sun, 16 May 2021 23:43:52 -0500, Nathaniel W Griswold wrote:
>>> Hello,
>>> 
>>> I was setting up Racket on my linux box and i realized that there are a lot 
>>> of
>>> options for path configuration and i forgot a lot of what i discovered last
>>> time i dug into this. I was trying to set up installation scope but maybe a
>>> little cleanly and figured someone might have some input.
>>> 
>>> I want a package at roughly installation scope, but i kinda wanted to know 
>>> what
>>> was added by me and what was part of the default installation. Is this
>>> reasonable or should i just deal with it and dump stuff in 
>>> $RACKET/share/pkgs?
>>> If it is reasonable then what is the best way to set this up?
>>> 
>>> Just FYI I did an in-place install of Racket in "/opt/Racket/Racket\ 8.1"
>>> symlinked to /opt/Racket...
>>> 
>>> I think maybe what i want is to set  to something like
>>> 
>>> (in /opt/Racket/etc/config.rktd)
>>> 
>>> #hash(... (pkgs-search-dirs . "/opt/Racket 8.1/share/pkgs-system" #f)
>>> (links-search-files . ("/opt/Racket/share/pkgs-system/links.rktd" #f)) ...)
>>> 
>>> Then i just did a `sudo /opt/Racket/bin/raco pkg install --scope-dir
>>> /opt/Racket/share/pkgs-system rash`
>>> 
>>> ... and the new package seems to be working fine for my users.
>>> 
>>> Is that what i wanted or is there something better? Is there a way to 
>>> configure
>>> config.rktd additions that will persist across upgrades or will i have to
>>> update my config.rktd for every racket release? Do other people do this 
>>> kind of
>>> thing or just dump stuff in the installation scope? Maybe there are more
>>> options with a unix-style install, i haven't really tried one yet.
>>> 
>>> Thanks!
>>> 
>>> Nate
>> 
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/20210518102000.1b1%40sirmail.smtps.cs.utah.edu.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/CAK%3DHD%2Ba2G41L5C3v1wPjackfsn0VwtRZEWO7XiW9POS7mWa85Q%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/743645C7-A08D-4F73-B974-74416C975E75%40manicmind.earth.