Local resource paths - #936
Conversation
|
I'll look this over, just want to reference issue #495 as well. |
|
Please include this patch. It’s a hassle because the First Program tutorial doesn’t even work on a standard Linux distribution (/usr/lib/* not writable). |
|
Perhaps a better solution would be to not write to |
|
@bjourne I realize that we forgot about this pull request, but maybe when you're bored you can rebase it on master so we can revisit it? |
|
@bjourne it would be good to rebase this at some point because |
|
(Or rather, just re-apply the commits in question to master and force push into this PR). I tried, but it was all conflict-y and I gave up for the moment. |
|
This one is ancient and probably not of much use anymore. I hope we can eventually look into my waf pr #934 instead. It is a better attempt which I've kept uptodate with master. |
|
How does |
|
Emphasizing that I do not think that CMake is a great piece of software, I feel obliged to point out that going to CMake instead would give us a bunch of instant integration with lots of toolchains that waf doesn't. I do volunteer to look at writing a |
|
cmake and a much simpler build.sh to automate the cmake + bootstrap process On Wed, Mar 30, 2016 at 5:06 PM, Benjamin Pollack notifications@github.com
|
…ath and site-resource-path. it is the groundwork required to make factor eventually work installed in a read-only location
16991aa to
828eb20
Compare
|
I've resurrected the pr. But not tested it. It adds |
|
@mrjbq7, waf helps because it makes installation easy. On Linux you want the binary in one directory, the .factor files in another, icons in a third and if we ever add .so files in a fourth. It's a mess.. So the Factor changes needed is to make it so a factor binary in |
|
@bpollack if you want to investigate using CMake, you should look at my wscript too: https://github.com/bjourne/factor/blob/waf-build-system/wscript There is a lot of "wrinkles" to automating the compilation to be aware about. Especially Windows is a pita, and cross-compilation. |
Just confirming that the First Program tutorial still doesn't work in Arch Linux in 2020. I've managed to find this github issue which explains why but with my near non-existent knowledge of Factor I don't know how to work around it. Maybe the tutorial can be updated with a Linux work-around? Fwiw, I set the |
|
It's supposed to look like this: It looks like you installed Factor into Did you install a PKGBUILD version of Factor or something? Here's what I recommend: |
Yeah I did. I'll uninstall it and do it using your steps, thanks erg. |
|
Can you please link me to the pkgbuild and tell me how you found it? I'd
rather it not exist because it's not doing things the right way. Or we can
fix it all...
…On Sun, Aug 2, 2020, 3:14 PM Peter Roehlen ***@***.***> wrote:
Did you install a PKGBUILD version of Factor or something?
Yeah I did. I'll uninstall it and do it using your steps, thanks erg.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#936 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGWJU2X22RMP2W7FQJLJDR6XCK7ANCNFSM4AHZ4B6Q>
.
|
|
@erg Yeah sure, it's an AUR package so nothing official but this is the one I used: https://aur.archlinux.org/packages/factor/ |
|
I also just stumbled upon the As someone new to Factor I think I would definitely find it more intuitive to have a user resource path separate from the site resource path. Especially because I may want to customize my user resource directory after building Factor. Plus, distros that ship binaries have no way of knowing in advance what the user's Or is the idea that Factor should not be installed as a pre-built binary and the user should always compile it from source themselves? |
|
Thank you for the reminder. We have a few things to improve in this context, and decisions to make, not just about where a user-specific "work" directory might be, but also what does it mean to have a system-level |
I am not a Factor contributor (yet), so my opinion might not be worth much, but now that I am a bit more familiar with how Factor works, I would say that this idea sounds good to me. Maybe Factor should always In case it is useful to anyone, the workaround I'm using for this in the meantime is the following (which I have added to my SYMBOL: my-work-dir
"/home/user/misc/factor" my-work-dir set-global
my-work-dir get-global add-vocab-root
! my-scaffold-work can be used instead of scaffold-work until this bug is fixed/PR merged: https://github.com/factor/factor/pull/936
: my-scaffold-work ( str -- )
my-work-dir get-global swap scaffold-vocab-in ;Just make sure you change the |
|
@AndydeCleyre yes and we have the xdg vocabulary (https://docs.factorcode.org/content/vocab-xdg.html) with words for all their defined directories. |
|
Ah, I thought current plans for this were to use e.g. ~/.factor and not follow the xdg defaults or overrides. |
|
I would hope to follow platform defaults for linux, mac, and windows! Which includes XDG, but we haven't implemented it that way yet. |
The idea of the pr is to make it easier to put Factor in a read-only system directory by splitting resource-path into site-resource-path and user-resource-path. Then the boot images can be written to the directory ~/.factor which from a Unix perspective is much saner than the same directory as the binary executable. The pr can be applied as it is I think. In the future it would be nice to also put factor.image in ~/.factor, but that is a bigger job.