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

WinRPM does not install on 0.5.0_ (Win64) #76

Open
PaulSoderlind opened this issue May 31, 2016 · 11 comments
Open

WinRPM does not install on 0.5.0_ (Win64) #76

PaulSoderlind opened this issue May 31, 2016 · 11 comments

Comments

@PaulSoderlind
Copy link

Hi,
I am trying to prepare for 0.5.0, so I gave WinRPM a try (actually, to get HDF5 working) on 0.5.0-dev+4402 (Win64).

The required packages seem to install fine, but on trying to install WInRPM it hangs with the warning message below. Thanks in advance for having a look at it. /Paul S

while loading C:\Users\psoderlind.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 501
WARNING: bytestring(p::Union{Ptr{Int8},Ptr{UInt8}}) is deprecated, use String(p) instead.
in depwarn(::String, ::Symbol) at .\deprecated.jl:64
in bytestring(::Ptr{UInt8}) at .\deprecated.jl:50
in end_element(::Ptr{Void}, ::Ptr{UInt8}) at C:\Users\psoderlind.julia\v0.5\LibExpat\src\LibExpat.jl:
in XML_Parse(::Ptr{Void}, ::String, ::Int64, ::Int64) at C:\Users\psoderlind.julia\v0.5\LibExpat\src
in xp_parse(::String) at C:\Users\psoderlind.julia\v0.5\LibExpat\src\LibExpat.jl:288
in update(::Bool, ::Bool) at C:\Users\psoderlind.julia\v0.5\WinRPM\src\WinRPM.jl:153
in init() at C:\Users\psoderlind.julia\v0.5\WinRPM\src\WinRPM.jl:41
in include_from_node1(::String) at .\loading.jl:426
in eval(::Module, ::Any) at .\boot.jl:225
in require(::Symbol) at .\loading.jl:357
in eval(::Module, ::Any) at .\boot.jl:225
in macro expansion at .\REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at .\event.jl:46
while loading C:\Users\psoderlind.julia\v0.5\WinRPM\src\WinRPM.jl, in expression starting on line 501

@nalimilan
Copy link
Member

AFAICT the deprecation warning needs to be fixed in LibExpat.jl. Could you file an issue there?

That said, it shouldn't cause a hang, so maybe something else is going on.

@PaulSoderlind
Copy link
Author

That said, it shouldn't cause a hang, so maybe something else is going on.

Can you give me a hint on how to narrow down the problem? (To see where in the process is hangs?) Some useful commands? /Paul S

@tkelman
Copy link
Contributor

tkelman commented May 31, 2016

Try something like

using URIParser, LibExpat, WinRPM, Compat
xml = xp_parse(readstring(joinpath(WinRPM.getcachedir(WinRPM.sources[1]),escape("repodata/repomd.xml"))))

@PaulSoderlind
Copy link
Author

Try something like
using URIParser, LibExpat, WinRPM, Compat

WinRPM refuses to build (same as before). Anything earlier in this chain?

@tkelman
Copy link
Contributor

tkelman commented May 31, 2016

using URIParser, LibExpat, Compat
xml = xp_parse(readstring(joinpath(Pkg.dir("WinRPM", "cache", "1", escape("repodata/repomd.xml")))))

@PaulSoderlind
Copy link
Author

Seems to work (or?). Apart from deprecation warnings, it finishes with

7b982d4f496bdacd728c607fccfd34e605551dc150c332897a3115ca5c80256c 960fbb5f7eb58070c206a19b9df3e171b2e0e07261e849c0aa95f3bd97114495 1464610018 369284 3367104

@PaulSoderlind
Copy link
Author

sorry, that's not how it looked like when I typed it in. Basically, it ends with a block like
"data type="primary"....
and closes with
repomd

@tkelman
Copy link
Contributor

tkelman commented May 31, 2016

Best to surround code snippets with triple backticks so github doesn't think xml is html.

Try adding a @show data and @show pkg at the start of the for-loops here https://github.com/JuliaLang/WinRPM.jl/blob/36daa0c596322563b8b00bac84b3eb0f508dba65/src/WinRPM.jl#L155-L163 then see if it's actually making progress. It might just be really slow.

@PaulSoderlind
Copy link
Author

PaulSoderlind commented May 31, 2016

Thanks. You are right. It works hard - and is done after 20 minutes. Same thing happens when I just say using WinRPM (it also takes 20 minutes). In either case, it ends with

<location href="noarch/mingw64-inkscape-lang-0.91-6.1.noarch.rpm"/>
  <format>
    <rpm:license>LGPL-2.1+</rpm:license>
    <rpm:vendor>obs://build.opensuse.org/windows:mingw</rpm:vendor>
    <rpm:group>System/Localization</rpm:group>
    <rpm:buildhost>build75</rpm:buildhost>
    <rpm:sourcerpm>mingw64-inkscape-0.91-6.1.src.rpm</rpm:sourcerpm>
    <rpm:header-range start="440" end="12776"/>
    <rpm:provides>
      <rpm:entry name="mingw64-inkscape-lang-all" flags="EQ" epoch="0" ver="0.91"/>
      <rpm:entry name="mingw64-inkscape-lang" flags="EQ" epoch="0" ver="0.91" rel="6.1"/>
    </rpm:provides>
    <rpm:requires>
      <rpm:entry name="mingw64-inkscape" flags="EQ" epoch="0" ver="0.91"/>
    </rpm:requires>
    <rpm:supplements>
      <rpm:entry name="packageand(bundle-lang-other:mingw64-inkscape)"/>
    </rpm:supplements>
  </format>
</package>

@nalimilan
Copy link
Member

Deprecation warnings cause an important slowdown, so maybe that's the explanation.

@kEviN1H
Copy link

kEviN1H commented Apr 24, 2017

唉 这个 出错 真是癌症 从来都没有成功过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants