Aquileo | Recent changes to 35: makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/Recent changes to 35: makefiles fail is NITROS9DIR path has spaces in it.enSun, 03 Jul 2022 22:09:59 -0000Aquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#f033<div class="markdown_content"><p><a href="https://nitros9.sourceforge.io/wiki/index.php/Building_NitrOS9" rel="nofollow">https://nitros9.sourceforge.io/wiki/index.php/Building_NitrOS9</a><br/> It says "prebuilt" but that means binaries.</p> <p>Unix/etc allow spaces in filenames, but many tools are not so much at ease with it. If you do shell scripting, adding quotation marks all over (except where you shouldn't) works. If you do Makefiles, it is well, complicated.</p></div>Tormod VoldenSun, 03 Jul 2022 22:09:59 -0000https://sourceforge.neta9bf046a82d1de11c63dcd2a775500419cab36f1Aquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#daef<div class="markdown_content"><blockquote> <p>anyone with a modern Window PC would have defaulted to OneDrive</p> </blockquote> <p>Good grief, I hope you are not right, and I think you aren't.</p> <p>One could say that anyone with a Windows PC usually doesn't build his own software, and that's why we are providing release and snapshot binaries :)</p> <blockquote> <p>And if it can be fixed simply by adding quotes around things in makefiles, why don't we just do that and solve it for everyone?</p> </blockquote> <p>I think you tried that 2 years ago, and I think it is not so easy. GNU Make doesn't deal well with spaces, period. You will often see people install things like Cygwin, Python or many other cross-platform things on their C:\ root and that is for a reason. But here, also C:\Users\allen\Documents\nitros9 or anything like this will work too. Even Microsoft went way from using "Documents &amp; Settings" or whatever stupid standard path element they used in the '95 days.</p> <p>Anyway I think using relative paths instead of NITROS9DIR is a better way to solve this.</p> <blockquote> <p>The days of paths without spaces is long, long gone.</p> </blockquote> <p>That's why we like retro-computing!</p> <blockquote> <p>At the very least, this needs to be documented.</p> </blockquote> <p>Yes, please. If you don't have wiki access just post the text here and I'll copy it it.</p></div>Tormod VoldenSun, 03 Jul 2022 21:20:36 -0000https://sourceforge.net9cfa7e9943d87452ba8c0f949e5c225e6358c4d6Aquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#cf90/7444/a7ec<div class="markdown_content"><p>Is this documented?</p> <p>As it stands today, anyone with a modern Window PC would have defaulted to OneDrive, and would be unable to build this.</p> <p>Likewise, anyone with a modern Mac, with iCloud on by default, would be unable to build this.</p> <p>At the very least, this needs to be documented. I consider myself a far more advanced user than most, and it's bitten me on both operating systems.</p> <p>And if it can be fixed simply by adding quotes around things in makefiles, why don't we just do that and solve it for everyone?</p> <p>The days of paths without spaces is long, long gone. That's been supported by OSes for so long, it's stunning this is still an issue with so many programs -- including commercial ones that cost $$$$.</p></div>Allen HuffmanSun, 03 Jul 2022 20:12:51 -0000https://sourceforge.net8784a376146960de5459e4b9602ee59242b807adAquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#cf90/7444<div class="markdown_content"><p>Go to a folder with no spaces in it, i.e. /Users/allen then create a soft link there:</p> <div class="codehilite"><pre><span></span><code>cd ln -s /Volumes/WhatNot/With Spaces/etc/nitros-9 cd nitros-9 make </code></pre></div> </div>Tormod VoldenSat, 02 Jul 2022 10:31:59 -0000https://sourceforge.net04af5925770a92acc9d232f143e53e1230b9af4dAquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#cf90<div class="markdown_content"><p>This hit me again tonight when I started trying to get NitrOS9 going ;-) It's the first time I've tried to build from an iCloud drive on Mac, and it has the same issue any Windows system with OneDrive has -- space in the path name, darnit.</p></div>Allen HuffmanSat, 02 Jul 2022 02:42:22 -0000https://sourceforge.netc7ef9cb49e5099035e39ca5f29f58ec4b6a8b646Aquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#b8f0<div class="markdown_content"><p>I don't mind doing the "trained monkey" work for massive cleanups like this. I tend to be the one that takes those on at companies I work for because no one else will do it and I know it pays off in the end ;-)</p></div>Allen HuffmanSun, 26 Apr 2020 02:22:48 -0000https://sourceforge.net1b2aa1309e344f42486b4ae2091206cc3b353392Aquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#86db/cdd6<div class="markdown_content"><p>I think it has to quote the whole thing, like if it did:</p> <p>$(NITROS9DIR)/make</p> <p>That whole thing needs quoted:</p> <p>"$(NITROS9DIR)/make"</p> <p>I will do some tests.</p> <p>As to hard-coded path versus relative, going all relative would solve this as well, since as long as the make is ran from the initial directory, everything would be controlled below it and the upper install path (spaces or no) would not matter.</p></div>Tormod VoldenSun, 26 Apr 2020 02:20:04 -0000https://sourceforge.netd30fef5c5764904a88e7179cd0ab0b4595119f3dAquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#86db<div class="markdown_content"><p>This would be a quick way to just add those quotes:<br/> <code>sed -i 's/\$(NITROS9DIR)/"$(NITROS9DIR)"/g' $(find . -name makefile)</code><br/> but frankly I am unsure if that would be enough. "make" simply doesn't deal well with spaces.</p> <p>However we have a mix of using NITROS9DIR and using relative path e.g. ../../../rules.mak that it would be nice to clean up. I think relative paths are good, and they are already used in half of the places for finding rules.mak. Apart from rules.mak, NITROS9DIR is only used a few places.</p></div>Tormod VoldenSat, 25 Apr 2020 23:03:13 -0000https://sourceforge.net8884dfdf73d4d0d13db8684c797d9face23f5141Aquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#9a5a/3ea6<div class="markdown_content"><p>If the work is just quoting all the references, I could knock that out one evening. Assuming that works.</p></div>Allen HuffmanSat, 25 Apr 2020 21:51:22 -0000https://sourceforge.net03ed0cddb73f6cf9bfcfe91434f1b6b12349e5f9Aquileo | #35 makefiles fail is NITROS9DIR path has spaces in it.https://sourceforge.net/p/nitros9/bugs/35/?limit=25#9a5a<div class="markdown_content"><p>Oh, that will be some work :) Take back control! But actually there are workarounds too: On Linux and MacOS and <a class="" href="https://www.techrepublic.com/article/how-to-take-advantage-of-symbolic-links-in-window-10/" rel="nofollow">even on Windows</a> you can use a soft link to the repo in a place without spaces in its path.</p></div>Tormod VoldenSat, 25 Apr 2020 21:49:49 -0000https://sourceforge.net4ff558096b881dc821a17af0b1e4005be2dbad06