Contents of Lib (packaging for RPM)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
Hello Folks,

First let me thank you for making IronPython easy to compile on Mono.
I'm the release manager for the Mono Project at Novell and I'm
currently working on packaging IronPython and IronRuby for openSUSE
(also to be included in the Mono Mac framework package). Where I've
run into trouble is the stdlibs for both. I can see that the -Bin.zip
contains a Lib directory with various standard libraries in it but I
don't see how I can reliably and repeatably get that exact content
into my RPM packages (short of including the -Bin.zip in the build).

Is there a script of some sort that takes the appropriate files from
the correct source and puts them where I need them (the script used to
build the -Bin.zip perhaps?)

Thanks!
Andrew Jorgensen
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Tomas Matousek
[Including IronRuby list].

We have a script in Msi directory called harvest.rb. This is used by another scripts Msi\Python\generate_wxis.rb and Msi\Ruby\generate_wxis.rb that launch it with Python and Ruby specific parameters, respectively. The generated .wxi files fully describe the files and directory hierarchy that is created by the Windows installer on the target machine. I think you can easily run them thru a script that converts them to whatever format you need. They are just XML files.

Would it be possible to create a script (Python or Ruby) that builds RPM package and runs on Windows as well? This would allow us to build new releases in one pass on a single machine and just publish the Mac packages on CodePlex next to .msi's.

Let me know if you had any issues.

Tomas

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
Sent: Wednesday, February 09, 2011 12:42 PM
To: [hidden email]
Subject: [IronPython] Contents of Lib (packaging for RPM)

Hello Folks,

First let me thank you for making IronPython easy to compile on Mono.
I'm the release manager for the Mono Project at Novell and I'm currently working on packaging IronPython and IronRuby for openSUSE (also to be included in the Mono Mac framework package). Where I've run into trouble is the stdlibs for both. I can see that the -Bin.zip contains a Lib directory with various standard libraries in it but I don't see how I can reliably and repeatably get that exact content into my RPM packages (short of including the -Bin.zip in the build).

Is there a script of some sort that takes the appropriate files from the correct source and puts them where I need them (the script used to build the -Bin.zip perhaps?)

Thanks!
Andrew Jorgensen
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Dino Viehland
In the case of IronPython the script is just pulling the files from
Languages/IronPython/StdLib/StdLib.pyproj so you could just go straight
to that MSbuild file to get the list of files to use.

StdLib.pyproj is generated from Languages/IronPython/StdLib/MakeModuleList.py
which you could run on Linux to see if there's any differences between the
modules which can be successfully imported.

> -----Original Message-----
> From: [hidden email] [mailto:users-
> [hidden email]] On Behalf Of Tomas Matousek
> Sent: Wednesday, February 09, 2011 1:01 PM
> To: Discussion of IronPython
> Cc: [hidden email]
> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>
> [Including IronRuby list].
>
> We have a script in Msi directory called harvest.rb. This is used by another
> scripts Msi\Python\generate_wxis.rb and Msi\Ruby\generate_wxis.rb that
> launch it with Python and Ruby specific parameters, respectively. The
> generated .wxi files fully describe the files and directory hierarchy that is
> created by the Windows installer on the target machine. I think you can easily
> run them thru a script that converts them to whatever format you need.
> They are just XML files.
>
> Would it be possible to create a script (Python or Ruby) that builds RPM
> package and runs on Windows as well? This would allow us to build new
> releases in one pass on a single machine and just publish the Mac packages
> on CodePlex next to .msi's.
>
> Let me know if you had any issues.
>
> Tomas
>
> -----Original Message-----
> From: [hidden email] [mailto:users-
> [hidden email]] On Behalf Of Andrew Jorgensen
> Sent: Wednesday, February 09, 2011 12:42 PM
> To: [hidden email]
> Subject: [IronPython] Contents of Lib (packaging for RPM)
>
> Hello Folks,
>
> First let me thank you for making IronPython easy to compile on Mono.
> I'm the release manager for the Mono Project at Novell and I'm currently
> working on packaging IronPython and IronRuby for openSUSE (also to be
> included in the Mono Mac framework package). Where I've run into trouble
> is the stdlibs for both. I can see that the -Bin.zip contains a Lib directory with
> various standard libraries in it but I don't see how I can reliably and
> repeatably get that exact content into my RPM packages (short of including
> the -Bin.zip in the build).
>
> Is there a script of some sort that takes the appropriate files from the correct
> source and puts them where I need them (the script used to build the -
> Bin.zip perhaps?)
>
> Thanks!
> Andrew Jorgensen
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
On Wed, Feb 9, 2011 at 2:42 PM, Dino Viehland <[hidden email]> wrote:
> In the case of IronPython the script is just pulling the files from
> Languages/IronPython/StdLib/StdLib.pyproj so you could just go straight
> to that MSbuild file to get the list of files to use.
>
> StdLib.pyproj is generated from Languages/IronPython/StdLib/MakeModuleList.py
> which you could run on Linux to see if there's any differences between the
> modules which can be successfully imported.

Excellent. Thank you! For now I'll just parse StdLib.pyproj, in future
I'll modify MakeModuleList.py to work on Linux and output a plain list
of paths or something.

Further question though: when I build using "xbuild
Solutions/IronPython.Mono.sln" some files get put into
bin/<Configuration>/Lib, specifically __future__.py iptest/ runpy.py
site.py, and these files are not the same as the ones in
External.LCA_RESTRICTED. Which one should be in my Lib directory in my
package?
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Dino Viehland

Andrew wrote:

> On Wed, Feb 9, 2011 at 2:42 PM, Dino Viehland <[hidden email]> wrote:
> > In the case of IronPython the script is just pulling the files from
> > Languages/IronPython/StdLib/StdLib.pyproj so you could just go
> > straight to that MSbuild file to get the list of files to use.
> >
> > StdLib.pyproj is generated from
> > Languages/IronPython/StdLib/MakeModuleList.py
> > which you could run on Linux to see if there's any differences between
> > the modules which can be successfully imported.
>
> Excellent. Thank you! For now I'll just parse StdLib.pyproj, in future I'll modify
> MakeModuleList.py to work on Linux and output a plain list of paths or
> something.
>
> Further question though: when I build using "xbuild
> Solutions/IronPython.Mono.sln" some files get put into bin/<Configuration>/Lib,
> specifically __future__.py iptest/ runpy.py site.py, and these files are not the
> same as the ones in External.LCA_RESTRICTED. Which one should be in my Lib
> directory in my package?

You want the ones from External.LCA_RESTRICTED.  These are skeleton versions of
Those files there that enable running w/o the standard library.  We used to run all
of tests both w/ and w/o the CPython std lib but we no longer do that - we now
always run w/ the std lib so these are probably obsolete.



_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
Okay, we're making some great progress here now. Last issue I see
immediately is that ir.exe crashes hard when trying to require a
library, also it looks for it in all the wrong places on mono. Ideally
(IMHO) it would first look under a Lib directory under the directory
ir.exe lives in.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Tomas Matousek
What is your installation dir/file layout?

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
Sent: Thursday, February 10, 2011 2:52 PM
To: Discussion of IronPython
Cc: [hidden email]
Subject: Re: [IronPython] Contents of Lib (packaging for RPM)

Okay, we're making some great progress here now. Last issue I see immediately is that ir.exe crashes hard when trying to require a library, also it looks for it in all the wrong places on mono. Ideally
(IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
For now it looks like this:
/usr/bin/ir # etc., wrapper scripts to call mono
/usr/lib/ironruby/ir.exe # etc.
/usr/lib/ironruby/IronRuby.dll # etc.
/usr/lib/ironruby/Lib/ironruby # etc. contents pulled from Languages/Ruby/StdLib

When I strace'd running ir and typing require 'foo' it said it was
looking in various directories that make sense if you're running from
the source build.

On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek
<[hidden email]> wrote:

> What is your installation dir/file layout?
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
> Sent: Thursday, February 10, 2011 2:52 PM
> To: Discussion of IronPython
> Cc: [hidden email]
> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>
> Okay, we're making some great progress here now. Last issue I see immediately is that ir.exe crashes hard when trying to require a library, also it looks for it in all the wrong places on mono. Ideally
> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Tomas Matousek
The expected layout is:

/usr/lib/ironruby/bin
   ir.exe
   IronRuby.dll
   IronRuby.Libraries.dll
   IronRuby.Libraries.Yaml.dll
   Microsoft.Scripting.dll
   Microsoft.Dynamic.dll
   Microsoft.scripting.Metadata.dll  

/usr/lib/ironruby/Lib -> StdLib directory
  ironruby
     digest
     mathn
     test
     yaml
     ...
  ruby
     1.9.1
     gems
     site_ruby

It is indeed possible to change it but this is the simplest setup that requires no additional configuration.
Would it work for you?

Tomas
 
-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
Sent: Friday, February 11, 2011 8:05 AM
To: Discussion of IronPython
Cc: [hidden email]
Subject: Re: [IronPython] Contents of Lib (packaging for RPM)

For now it looks like this:
/usr/bin/ir # etc., wrapper scripts to call mono /usr/lib/ironruby/ir.exe # etc.
/usr/lib/ironruby/IronRuby.dll # etc.
/usr/lib/ironruby/Lib/ironruby # etc. contents pulled from Languages/Ruby/StdLib

When I strace'd running ir and typing require 'foo' it said it was looking in various directories that make sense if you're running from the source build.

On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek <[hidden email]> wrote:

> What is your installation dir/file layout?
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Andrew
> Jorgensen
> Sent: Thursday, February 10, 2011 2:52 PM
> To: Discussion of IronPython
> Cc: [hidden email]
> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>
> Okay, we're making some great progress here now. Last issue I see
> immediately is that ir.exe crashes hard when trying to require a
> library, also it looks for it in all the wrong places on mono. Ideally
> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
Yes, that should be fine, I'll give it a try and see if it can load anything.

On Fri, Feb 11, 2011 at 10:23 AM, Tomas Matousek
<[hidden email]> wrote:

> The expected layout is:
>
> /usr/lib/ironruby/bin
>   ir.exe
>   IronRuby.dll
>   IronRuby.Libraries.dll
>   IronRuby.Libraries.Yaml.dll
>   Microsoft.Scripting.dll
>   Microsoft.Dynamic.dll
>   Microsoft.scripting.Metadata.dll
>
> /usr/lib/ironruby/Lib -> StdLib directory
>  ironruby
>     digest
>     mathn
>     test
>     yaml
>     ...
>  ruby
>     1.9.1
>     gems
>     site_ruby
>
> It is indeed possible to change it but this is the simplest setup that requires no additional configuration.
> Would it work for you?
>
> Tomas
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
> Sent: Friday, February 11, 2011 8:05 AM
> To: Discussion of IronPython
> Cc: [hidden email]
> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>
> For now it looks like this:
> /usr/bin/ir # etc., wrapper scripts to call mono /usr/lib/ironruby/ir.exe # etc.
> /usr/lib/ironruby/IronRuby.dll # etc.
> /usr/lib/ironruby/Lib/ironruby # etc. contents pulled from Languages/Ruby/StdLib
>
> When I strace'd running ir and typing require 'foo' it said it was looking in various directories that make sense if you're running from the source build.
>
> On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek <[hidden email]> wrote:
>> What is your installation dir/file layout?
>>
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]] On Behalf Of Andrew
>> Jorgensen
>> Sent: Thursday, February 10, 2011 2:52 PM
>> To: Discussion of IronPython
>> Cc: [hidden email]
>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>
>> Okay, we're making some great progress here now. Last issue I see
>> immediately is that ir.exe crashes hard when trying to require a
>> library, also it looks for it in all the wrong places on mono. Ideally
>> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
It still looks in the wrong place for the libraries, as you can see
from this strace log

> grep date log
read(0, "require 'date'\n", 1024)       = 15
stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
lstat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory)
stat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
stat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
lstat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)

On Fri, Feb 11, 2011 at 5:43 PM, Andrew Jorgensen
<[hidden email]> wrote:

> Yes, that should be fine, I'll give it a try and see if it can load anything.
>
> On Fri, Feb 11, 2011 at 10:23 AM, Tomas Matousek
> <[hidden email]> wrote:
>> The expected layout is:
>>
>> /usr/lib/ironruby/bin
>>   ir.exe
>>   IronRuby.dll
>>   IronRuby.Libraries.dll
>>   IronRuby.Libraries.Yaml.dll
>>   Microsoft.Scripting.dll
>>   Microsoft.Dynamic.dll
>>   Microsoft.scripting.Metadata.dll
>>
>> /usr/lib/ironruby/Lib -> StdLib directory
>>  ironruby
>>     digest
>>     mathn
>>     test
>>     yaml
>>     ...
>>  ruby
>>     1.9.1
>>     gems
>>     site_ruby
>>
>> It is indeed possible to change it but this is the simplest setup that requires no additional configuration.
>> Would it work for you?
>>
>> Tomas
>>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
>> Sent: Friday, February 11, 2011 8:05 AM
>> To: Discussion of IronPython
>> Cc: [hidden email]
>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>
>> For now it looks like this:
>> /usr/bin/ir # etc., wrapper scripts to call mono /usr/lib/ironruby/ir.exe # etc.
>> /usr/lib/ironruby/IronRuby.dll # etc.
>> /usr/lib/ironruby/Lib/ironruby # etc. contents pulled from Languages/Ruby/StdLib
>>
>> When I strace'd running ir and typing require 'foo' it said it was looking in various directories that make sense if you're running from the source build.
>>
>> On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek <[hidden email]> wrote:
>>> What is your installation dir/file layout?
>>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [mailto:[hidden email]] On Behalf Of Andrew
>>> Jorgensen
>>> Sent: Thursday, February 10, 2011 2:52 PM
>>> To: Discussion of IronPython
>>> Cc: [hidden email]
>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>
>>> Okay, we're making some great progress here now. Last issue I see
>>> immediately is that ir.exe crashes hard when trying to require a
>>> library, also it looks for it in all the wrong places on mono. Ideally
>>> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
Oh, nevermind, now I see this is configured in the .config files, I
can probably fix this myself.

On Fri, Feb 11, 2011 at 5:59 PM, Andrew Jorgensen
<[hidden email]> wrote:

> It still looks in the wrong place for the libraries, as you can see
> from this strace log
>
>> grep date log
> read(0, "require 'date'\n", 1024)       = 15
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
>
> On Fri, Feb 11, 2011 at 5:43 PM, Andrew Jorgensen
> <[hidden email]> wrote:
>> Yes, that should be fine, I'll give it a try and see if it can load anything.
>>
>> On Fri, Feb 11, 2011 at 10:23 AM, Tomas Matousek
>> <[hidden email]> wrote:
>>> The expected layout is:
>>>
>>> /usr/lib/ironruby/bin
>>>   ir.exe
>>>   IronRuby.dll
>>>   IronRuby.Libraries.dll
>>>   IronRuby.Libraries.Yaml.dll
>>>   Microsoft.Scripting.dll
>>>   Microsoft.Dynamic.dll
>>>   Microsoft.scripting.Metadata.dll
>>>
>>> /usr/lib/ironruby/Lib -> StdLib directory
>>>  ironruby
>>>     digest
>>>     mathn
>>>     test
>>>     yaml
>>>     ...
>>>  ruby
>>>     1.9.1
>>>     gems
>>>     site_ruby
>>>
>>> It is indeed possible to change it but this is the simplest setup that requires no additional configuration.
>>> Would it work for you?
>>>
>>> Tomas
>>>
>>> -----Original Message-----
>>> From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
>>> Sent: Friday, February 11, 2011 8:05 AM
>>> To: Discussion of IronPython
>>> Cc: [hidden email]
>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>
>>> For now it looks like this:
>>> /usr/bin/ir # etc., wrapper scripts to call mono /usr/lib/ironruby/ir.exe # etc.
>>> /usr/lib/ironruby/IronRuby.dll # etc.
>>> /usr/lib/ironruby/Lib/ironruby # etc. contents pulled from Languages/Ruby/StdLib
>>>
>>> When I strace'd running ir and typing require 'foo' it said it was looking in various directories that make sense if you're running from the source build.
>>>
>>> On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek <[hidden email]> wrote:
>>>> What is your installation dir/file layout?
>>>>
>>>> -----Original Message-----
>>>> From: [hidden email]
>>>> [mailto:[hidden email]] On Behalf Of Andrew
>>>> Jorgensen
>>>> Sent: Thursday, February 10, 2011 2:52 PM
>>>> To: Discussion of IronPython
>>>> Cc: [hidden email]
>>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>>
>>>> Okay, we're making some great progress here now. Last issue I see
>>>> immediately is that ir.exe crashes hard when trying to require a
>>>> library, also it looks for it in all the wrong places on mono. Ideally
>>>> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Doug Blank
In reply to this post by Andrew Jorgensen-2
On Wed, Feb 9, 2011 at 3:41 PM, Andrew Jorgensen
<[hidden email]> wrote:

> Hello Folks,
>
> First let me thank you for making IronPython easy to compile on Mono.
> I'm the release manager for the Mono Project at Novell and I'm
> currently working on packaging IronPython and IronRuby for openSUSE
> (also to be included in the Mono Mac framework package). Where I've
> run into trouble is the stdlibs for both. I can see that the -Bin.zip
> contains a Lib directory with various standard libraries in it but I
> don't see how I can reliably and repeatably get that exact content
> into my RPM packages (short of including the -Bin.zip in the build).
>
> Is there a script of some sort that takes the appropriate files from
> the correct source and puts them where I need them (the script used to
> build the -Bin.zip perhaps?)

+1 Happy Happy Joy Joy

I was wondering if there is any effort to document (or publish) this
build process on Linux so that other distributions can also build
these packages for distributation?

Everyone working together... sometimes it is hard to believe that we
made it to this point :)

Thanks to all!

-Doug

> Thanks!
> Andrew Jorgensen
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Tomas Matousek
In reply to this post by Andrew Jorgensen-2
Yes, it is possible. You shouldn't need to change the config file. We don't have a config file in the Windows installation.

Tomas

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
Sent: Friday, February 11, 2011 5:07 PM
To: Discussion of IronPython
Cc: [hidden email]
Subject: Re: [IronPython] Contents of Lib (packaging for RPM)

Oh, nevermind, now I see this is configured in the .config files, I can probably fix this myself.

On Fri, Feb 11, 2011 at 5:59 PM, Andrew Jorgensen <[hidden email]> wrote:

> It still looks in the wrong place for the libraries, as you can see
> from this strace log
>
>> grep date log
> read(0, "require 'date'\n", 1024)       = 15
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
> 0x7fff01eb9510) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> stat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
> lstat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
> 0x7fff01eb9580) = -1 ENOENT (No such file or directory)
>
> On Fri, Feb 11, 2011 at 5:43 PM, Andrew Jorgensen
> <[hidden email]> wrote:
>> Yes, that should be fine, I'll give it a try and see if it can load anything.
>>
>> On Fri, Feb 11, 2011 at 10:23 AM, Tomas Matousek
>> <[hidden email]> wrote:
>>> The expected layout is:
>>>
>>> /usr/lib/ironruby/bin
>>>   ir.exe
>>>   IronRuby.dll
>>>   IronRuby.Libraries.dll
>>>   IronRuby.Libraries.Yaml.dll
>>>   Microsoft.Scripting.dll
>>>   Microsoft.Dynamic.dll
>>>   Microsoft.scripting.Metadata.dll
>>>
>>> /usr/lib/ironruby/Lib -> StdLib directory
>>>  ironruby
>>>     digest
>>>     mathn
>>>     test
>>>     yaml
>>>     ...
>>>  ruby
>>>     1.9.1
>>>     gems
>>>     site_ruby
>>>
>>> It is indeed possible to change it but this is the simplest setup that requires no additional configuration.
>>> Would it work for you?
>>>
>>> Tomas
>>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [mailto:[hidden email]] On Behalf Of Andrew
>>> Jorgensen
>>> Sent: Friday, February 11, 2011 8:05 AM
>>> To: Discussion of IronPython
>>> Cc: [hidden email]
>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>
>>> For now it looks like this:
>>> /usr/bin/ir # etc., wrapper scripts to call mono /usr/lib/ironruby/ir.exe # etc.
>>> /usr/lib/ironruby/IronRuby.dll # etc.
>>> /usr/lib/ironruby/Lib/ironruby # etc. contents pulled from
>>> Languages/Ruby/StdLib
>>>
>>> When I strace'd running ir and typing require 'foo' it said it was looking in various directories that make sense if you're running from the source build.
>>>
>>> On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek <[hidden email]> wrote:
>>>> What is your installation dir/file layout?
>>>>
>>>> -----Original Message-----
>>>> From: [hidden email]
>>>> [mailto:[hidden email]] On Behalf Of Andrew
>>>> Jorgensen
>>>> Sent: Thursday, February 10, 2011 2:52 PM
>>>> To: Discussion of IronPython
>>>> Cc: [hidden email]
>>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>>
>>>> Okay, we're making some great progress here now. Last issue I see
>>>> immediately is that ir.exe crashes hard when trying to require a
>>>> library, also it looks for it in all the wrong places on mono.
>>>> Ideally
>>>> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Tomas Matousek
In reply to this post by Andrew Jorgensen-2
The directory should be called Lib, not StdLib. The repo has it under StdLib but the installer creates Lib.
 
Tomas
 
-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of Andrew Jorgensen
Sent: Friday, February 11, 2011 4:59 PM
To: Discussion of IronPython
Cc: [hidden email]
Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
 
It still looks in the wrong place for the libraries, as you can see from this strace log
 
> grep date log
read(0, "require 'date'\n", 1024)       = 15
stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/site_ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/usr/lib/Languages/Ruby/StdLib/ruby/1.9.1/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) lstat("/home/ajorg/packages-provo/Mono/ironruby/date.rb",
0x7fff01eb9510) = -1 ENOENT (No such file or directory) stat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/home/ajorg/packages-provo/Mono/ironruby/date.dll",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/home/ajorg/packages-provo/Mono/ironruby/date.so",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) stat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory) lstat("/home/ajorg/packages-provo/Mono/ironruby/date.exe",
0x7fff01eb9580) = -1 ENOENT (No such file or directory)
 
On Fri, Feb 11, 2011 at 5:43 PM, Andrew Jorgensen <[hidden email]> wrote:
> Yes, that should be fine, I'll give it a try and see if it can load anything.
>
> On Fri, Feb 11, 2011 at 10:23 AM, Tomas Matousek
> <[hidden email]> wrote:
>> The expected layout is:
>>
>> /usr/lib/ironruby/bin
>>   ir.exe
>>   IronRuby.dll
>>   IronRuby.Libraries.dll
>>   IronRuby.Libraries.Yaml.dll
>>   Microsoft.Scripting.dll
>>   Microsoft.Dynamic.dll
>>   Microsoft.scripting.Metadata.dll
>>
>> /usr/lib/ironruby/Lib -> StdLib directory
>>  ironruby
>>     digest
>>     mathn
>>     test
>>     yaml
>>     ...
>>  ruby
>>     1.9.1
>>     gems
>>     site_ruby
>>
>> It is indeed possible to change it but this is the simplest setup that requires no additional configuration.
>> Would it work for you?
>>
>> Tomas
>>
>> -----Original Message-----
>> From: [hidden email]
>> [[hidden email]] On Behalf Of Andrew
>> Jorgensen
>> Sent: Friday, February 11, 2011 8:05 AM
>> To: Discussion of IronPython
>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>
>> For now it looks like this:
>> /usr/bin/ir # etc., wrapper scripts to call mono /usr/lib/ironruby/ir.exe # etc.
>> /usr/lib/ironruby/IronRuby.dll # etc.
>> /usr/lib/ironruby/Lib/ironruby # etc. contents pulled from
>> Languages/Ruby/StdLib
>>
>> When I strace'd running ir and typing require 'foo' it said it was looking in various directories that make sense if you're running from the source build.
>>
>> On Thu, Feb 10, 2011 at 4:01 PM, Tomas Matousek <[hidden email]> wrote:
>>> What is your installation dir/file layout?
>>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [[hidden email]] On Behalf Of Andrew
>>> Jorgensen
>>> Sent: Thursday, February 10, 2011 2:52 PM
>>> To: Discussion of IronPython
>>> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>>>
>>> Okay, we're making some great progress here now. Last issue I see
>>> immediately is that ir.exe crashes hard when trying to require a
>>> library, also it looks for it in all the wrong places on mono.
>>> Ideally
>>> (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.
>>> _______________________________________________
>>> Users mailing list
>>>
>>> _______________________________________________
>>> Users mailing list
>>>
>> _______________________________________________
>> Users mailing list
>>
>> _______________________________________________
>> Users mailing list
>>
>
_______________________________________________
Users mailing list
 

_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
In reply to this post by Tomas Matousek
On Fri, Feb 11, 2011 at 7:28 PM, Tomas Matousek
<[hidden email]> wrote:
> Yes, it is possible. You shouldn't need to change the config file. We don't have a config file in the Windows installation.

This comes from Config/Signed/App.config (which becomes
ir.exe.config), which has the following line
      <set language="Ruby" option="StandardLibrary"
value="..\..\Languages\Ruby\StdLib"/>
which must be changed to
      <set language="Ruby" option="StandardLibrary" value="..\Lib"/>
for ir.exe to find libraries. Of course the first is correct for the
built copy, just not correct when installed.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Tomas Matousek
Yes, but the .config file doesn't need to be there at all. "../Lib" is the default value.

The files in Config directory are for development env only.

Tomas

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
Sent: Friday, February 11, 2011 6:44 PM
To: Discussion of IronPython
Cc: [hidden email]
Subject: Re: [IronPython] Contents of Lib (packaging for RPM)

On Fri, Feb 11, 2011 at 7:28 PM, Tomas Matousek <[hidden email]> wrote:
> Yes, it is possible. You shouldn't need to change the config file. We don't have a config file in the Windows installation.

This comes from Config/Signed/App.config (which becomes ir.exe.config), which has the following line
      <set language="Ruby" option="StandardLibrary"
value="..\..\Languages\Ruby\StdLib"/>
which must be changed to
      <set language="Ruby" option="StandardLibrary" value="..\Lib"/> for ir.exe to find libraries. Of course the first is correct for the built copy, just not correct when installed.
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Andrew Jorgensen-2
On Fri, Feb 11, 2011 at 8:03 PM, Tomas Matousek
<[hidden email]> wrote:
> Yes, but the .config file doesn't need to be there at all. "../Lib" is the default value.
>
> The files in Config directory are for development env only.

Ah, see I was just copying all the contents of bin/<Configuration> to
/usr/lib/ironruby

Are there other files I should /not/ be installing?
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Tomas Matousek
Might be. You can compare your layout with the one for Windows - this zip file has the right layout:

http://ironruby.codeplex.com/releases/view/55250#DownloadId=206131

Just exclude .bat files and Samples, Silverlight and WP7 directories.

Tomas

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
Sent: Friday, February 11, 2011 7:14 PM
To: Discussion of IronPython
Cc: [hidden email]
Subject: Re: [IronPython] Contents of Lib (packaging for RPM)

On Fri, Feb 11, 2011 at 8:03 PM, Tomas Matousek <[hidden email]> wrote:
> Yes, but the .config file doesn't need to be there at all. "../Lib" is the default value.
>
> The files in Config directory are for development env only.

Ah, see I was just copying all the contents of bin/<Configuration> to /usr/lib/ironruby

Are there other files I should /not/ be installing?
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Contents of Lib (packaging for RPM)

Daniel D.-4
Tough path head for non-Windows deployment...

Looking at subprocess.py saw that it calls into _suprocess, which is a
wrapper for Win32 calls over interop. After being done with the
directory structure, some code will still blow up because of direct
reliance on things like

DllImport("kernel32.dll", EntryPoint = "CreateProcess"...

I wonder how wide-spread this practice is in Iron*.

Daniel.

On Fri, Feb 11, 2011 at 19:23, Tomas Matousek
<[hidden email]> wrote:

> Might be. You can compare your layout with the one for Windows - this zip file has the right layout:
>
> http://ironruby.codeplex.com/releases/view/55250#DownloadId=206131
>
> Just exclude .bat files and Samples, Silverlight and WP7 directories.
>
> Tomas
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Jorgensen
> Sent: Friday, February 11, 2011 7:14 PM
> To: Discussion of IronPython
> Cc: [hidden email]
> Subject: Re: [IronPython] Contents of Lib (packaging for RPM)
>
> On Fri, Feb 11, 2011 at 8:03 PM, Tomas Matousek <[hidden email]> wrote:
>> Yes, but the .config file doesn't need to be there at all. "../Lib" is the default value.
>>
>> The files in Config directory are for development env only.
>
> Ah, see I was just copying all the contents of bin/<Configuration> to /usr/lib/ironruby
>
> Are there other files I should /not/ be installing?
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com