Skip to content
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

Remove windows specific juliarc.jl #21540

Merged
merged 2 commits into from
Aug 3, 2017
Merged

Remove windows specific juliarc.jl #21540

merged 2 commits into from
Aug 3, 2017

Conversation

musm
Copy link
Contributor

@musm musm commented Apr 25, 2017

close #18769

@StefanKarpinski StefanKarpinski changed the title Remove windows specific juliarc.jl POST-0.6: Remove windows specific juliarc.jl Apr 25, 2017
@musm
Copy link
Contributor Author

musm commented Apr 26, 2017

embedding example is failing for some reason, any ideas?
Specifically this line https://github.com/JuliaLang/julia/blob/master/examples/embedding/embedding-test.jl#L15

@StefanKarpinski StefanKarpinski changed the title POST-0.6: Remove windows specific juliarc.jl POST 0.6: Remove windows specific juliarc.jl Apr 26, 2017
@kshyatt kshyatt added the system:windows Affects only Windows label Apr 26, 2017
@musm musm force-pushed the julrc branch 3 times, most recently from fbd9a93 to 58242f2 Compare April 27, 2017 22:01
@musm
Copy link
Contributor Author

musm commented Apr 28, 2017

@tkelman anyideas on the embedding failure, is busybox or 7z somehow needed for that ? Not sure how to test locally last time I tried to build on windows using the readme was not successful .

@tkelman
Copy link
Contributor

tkelman commented Apr 28, 2017

last time I tried to build on windows using the readme was not successful .

You're going to need to be more specific than "not successful"

@tkelman
Copy link
Contributor

tkelman commented Apr 28, 2017

For the embedding executable to run on windows, libjulia either needs to be copied into the same directory as the embedding executable, or we can do the path appending as part of embedding-test.jl

@@ -3,6 +3,11 @@
# tests the output of the embedding example is correct
using Base.Test

if is_windows()
# libjulia needs to be in the same directory as the embedding executable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

, or on the path

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to update the makefile to also copy libjulia if you feel that it's also useful to do that for external users copying the makefile

@musm
Copy link
Contributor Author

musm commented Apr 28, 2017

great tests now pass

@musm
Copy link
Contributor Author

musm commented Apr 29, 2017

not a lot of packages that explicitly use 7z

@StefanKarpinski StefanKarpinski changed the title POST 0.6: Remove windows specific juliarc.jl Remove windows specific juliarc.jl May 2, 2017
@musm
Copy link
Contributor Author

musm commented May 5, 2017

bump, FYI this will need a tag on WinRPM and BinDeps before merging

@musm
Copy link
Contributor Author

musm commented May 16, 2017

WinRPM and BinDeps have been tagged, this should be good to go now. Unless someone requests something else.

@musm
Copy link
Contributor Author

musm commented Jul 13, 2017

Updated to include NEWS entry.

NEWS.md Outdated
@@ -175,6 +175,8 @@ Deprecated or removed
* The forms of `read`, `readstring`, and `eachline` that accepted both a `Cmd` object and an
input stream are deprecated. Use e.g. `read(pipeline(stdin, cmd))` instead ([#22762]).

* The default `juliarc.jl` file on Windows has been removed. Use `joinpath(JULIA_HOME, "7z.exe")`
if you need access, e.g., to `7z.exe` on Windows ([#21540]).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's nothing specific to 7z about this - it's the case for any executable or library in julia's bin dir

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, that is why I put an e.g. in the entry. Will update since it may not be clear.

NEWS.md Outdated
@@ -175,6 +175,9 @@ Deprecated or removed
* The forms of `read`, `readstring`, and `eachline` that accepted both a `Cmd` object and an
input stream are deprecated. Use e.g. `read(pipeline(stdin, cmd))` instead ([#22762]).

* The default `juliarc.jl` file on Windows has been removed. Now must explicitly include the
file if you need access to executables or libraries in the `JULIA_HOME` directory, e.g.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the full path

@musm musm force-pushed the julrc branch 3 times, most recently from 675f497 to 7c64576 Compare July 13, 2017 21:02
@iblislin
Copy link
Member

iblislin commented Jul 14, 2017

The FreeBSD CI build error is unrelated (caused by #22566)

@musm
Copy link
Contributor Author

musm commented Jul 14, 2017

Interesting (unrelated) failure on 64 bit windows

https://gist.github.com/musm/117d2a64cc8dc874455de45283b230df

@musm
Copy link
Contributor Author

musm commented Jul 14, 2017

The error looks similar to #11083

@musm
Copy link
Contributor Author

musm commented Jul 24, 2017

restarting for travis

@musm musm closed this Jul 24, 2017
@musm musm reopened this Jul 24, 2017
@musm
Copy link
Contributor Author

musm commented Jul 24, 2017

Unrelated errors on Travis. Is this good to go now?

@musm
Copy link
Contributor Author

musm commented Jul 25, 2017

@tkelman can we proceed with this? It would be nice to have the same experience as in linux and since the juliarc file is not needed it makes sense to me to remove it. FWIW I hit the original issue twice (first time to report the issue, which was noted by totalverb, second time I opened this PR to fix the issue) Thanks.

@musm
Copy link
Contributor Author

musm commented Jul 28, 2017

Rebased PR.

@musm
Copy link
Contributor Author

musm commented Aug 3, 2017

bump

@tkelman
Copy link
Contributor

tkelman commented Aug 3, 2017

I don't personally think the issue this fixes is consequential, but the changes it's making could be. Windows shared libraries are searched for in PATH, on other platforms that's handled differently.

@musm
Copy link
Contributor Author

musm commented Aug 3, 2017

I don't personally think the issue this fixes is consequential, but the changes it's making could be. Windows shared libraries are searched for in PATH, on other platforms that's handled differently

I think all the libs are loaded when julia is started irrespective of whether there are in the .juliarc file. For example I haven't ran into any issues with running julia without this file and calling functions that are linked to the lib in the bin folder, such as eig which properly seems to find openlibblas without the addition to the juliarc file: (see below)
image

@vtjnash you made this comment here #18769 (comment)
do you have any thoughts on this?

I agree it's not necessary, but I hate stuff that exists or is there without a purpose. I just would like to confirm that this is in fact needed before closing the PR.

@tkelman tkelman merged commit a6c44bf into JuliaLang:master Aug 3, 2017
@tkelman
Copy link
Contributor

tkelman commented Aug 3, 2017

It's not pure Julia code I'm concerned about, it's packages or external programs that might be trying to find libraries included in Julia, and may have a harder time doing so with this change.

@musm
Copy link
Contributor Author

musm commented Aug 3, 2017

How about we test this out and if there are any reported issues, we can revert the change?

@StefanKarpinski
Copy link
Member

The trouble is that this won't get widespread testing until after it's too late to revert this (i.e. 1.0). Still, I guess we're going ahead with trying it.

@musm
Copy link
Contributor Author

musm commented Aug 3, 2017

Fair enough, feel free to revert .

@tkelman
Copy link
Contributor

tkelman commented Aug 3, 2017

If it is determined to be a problem during 0.7 feature freeze or rc's, I don't think it would break anything to revert even fairly late in the 0.7 release cycle.

@musm musm deleted the julrc branch August 3, 2017 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:windows Affects only Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method definition warning that only shows up on Windows
5 participants