-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuild with custom userimg.jl? #117
Comments
There..... is not an easy way to do this via Homebrew. Ideally, we should support this in Julia itself. I have a PR open over here that (among a few other things) would allow you to rebuild your system image from within Julia. I think the best thing for you to do here is to just comment on that PR that you'd like the ability to rebuild your system image. |
I'm going to close this now, as this isn't something that we can do on the Homebrew side, sorry. |
Looks like a nice PR :-) As for the Homebrew angle: I don't mean rebuilding just the sysimg – I get that that's tricky. I'm thinking more along the lines of
I.e., just copying the given file into |
Hmmmm. That is definitely more doable. Since the current directory in a homebrew formula is the build directory, you can just say |
Ah, nice. As for the Base.isfile("userimg.jl") && Base.include("userimg.jl") So this is an “official but undocumented” hack. Which is used as part of the build process. And that's why I thought it would be useful for |
Fair enough! Submit a PR and I'll test + merge it. :) |
Done. |
Thanks again for this. |
No prob. Thanks for merging :-) |
How is this supposed to work? I ran the command:
but I didn't see any userimg.jl in How do I use this option and then trigger the full rebuild of sysimg? |
Well, you need to refer to an actual file; if you have a custom Second, you might need to use So, yeah, either use |
@mlhetland yes of course, the file
Notice that under each of the two methods ( Any other suggestions. Also, even when I do get the userimg to work, how do I get that into the sysimg? Thank you |
Are you sure you've updated the formula? The one you're running doesn't seem to be executing the proper |
That is, I guess my suggestion boils down to running |
Sorry for making these really basic suggestions, BTW. (“Is it plugged in?” <wink>) Actually, I can't get it to work myself, now, so … I guess something is broken. I'll have a look. |
The problem is that the formula is installing a Homebrew bottle (binary), rather than compiling it. Try to add |
Meh. Using |
The build-from-source issue was the following, BTW:
|
Actually, I got the same error trying to build @staticfloat: (1) If this isn't just a snafu in my current brew state, it should perhaps be added as an issue? And (2) if |
I added a PR (#128) for the build instructions. Not sure how to fix the compile issues, though. |
Aaand … I've broken my Julia. Even running
My Xcode is up to date. Not sure if this is related to the state of my OS X or my Homebrew… |
Hahaha, I love waking up to long threads like these. :) First off; the fact that passing Secondly, the reason you're running into these
|
Right—that'll teach me to actually read the README ;-) Just curious, though: Isn't this kind of updating of versions exactly what a package manager like Homebrew is for? I mean, doing it automatically?-) I guess there's some technical reason why you can't just add some version requirement in the formula? Anyway, after this fix, running with @spencerlyon2: The thing to look for in your build log is the line
|
Yes, this is exactly what Homebrew is for. Unfortunately, there are some oddities with regards to |
OK, thanks! |
OK, revisiting this again.
The first point: I haven't worked too hard on figuring out what's going on there, as the whole switch is probably a lot less useful now, anyway, with the more standard (albeit probably stop-gap) mechanism. The issue with
it works. I.e., I can run the following to rebuild with my userimg:
It also works if I install the sysimg elsewhere, and load it manually with the
I.e., it seems this is a scenario that should be possible. (I even seem to think it worked earlier?) So:
For now, though, I can always just add a |
I agree with you; we should |
If one adds a
userimg.jl
file withrequire
statements in thebase
subdirectory of the install and rebuilds Julia, one can get cached, precompiled versions of modules one might use often. Highly useful. And … if one already uses Homebrew to build Julia, it would be very useful if one could somehow manage to do this with the requisite Homebrew formula…Is there any way you could add something like that? Perhaps some environment variable indicating a
userimg.jl
file to be copied in, or some extra switch to the build command or something? (I'm a Homebrew n00b, so I don't know if there's a standard way of doing something like this…)The text was updated successfully, but these errors were encountered: