<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>19617</bug_id>
          
          <creation_ts>2003-04-19 12:23 0000</creation_ts>
          <short_desc>FEATURE: Run mono binaries using the &quot;misc binaries&quot; feature of Linux</short_desc>
          <delta_ts>2003-05-14 08:38:28 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tuxie@dekadance.se</reporter>
          <assigned_to>foser@gentoo.org</assigned_to>
          <cc>scandium@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>tuxie@dekadance.se</who>
            <bug_when>2003-04-19 12:23:19 0000</bug_when>
            <thetext>Here is an init-script for mono that will register .NET-binaries with
/usr/bin/mono so you can remove that ugly .exe-extension from the binaries and
install them in /usr/bin just like native programs, instead of running them with
&quot;mono program.exe&quot;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuxie@dekadance.se</who>
            <bug_when>2003-04-19 12:23:59 0000</bug_when>
            <thetext>Created an attachment (id=10875)
/etc/init.d/mono
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-04-29 06:38:29 0000</bug_when>
            <thetext>reassigned to foser</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-04-30 07:20:46 0000</bug_when>
            <thetext>it looks good to me. A few questions.

Can you explain exactly how it works, especially the syntax of the echo line used. I suppose MZ is the indentifier for .NET binaries used. Is that tight enough ?

Is it possible to unregister the .NET handler ? in essence, is it possible to implement a stop function ?

Thirdly i would like this script run from a conf.d setting where we can select which runtime to use, so we can (currently) use it for both mono and dotgnu.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tuxie@dekadance.se</who>
            <bug_when>2003-05-01 07:48:21 0000</bug_when>
            <thetext>If you compiled &quot;MISC binaries&quot; in your kernel you get an empty directory 
/proc/sys/fs/binfmt_misc on which a binfmt_misc filesystem has to be mounted. Then 
you can register handles through the proc-interface. I don&apos;t know how to unregister 
though.. 
 
Some info on how binfmt_misc works can be found here: 
http://www.tat.physik.uni-tuebingen.de/~rguenth/linux/binfmt_misc.html 
 
The echo-line I just took from this page: 
http://www.gotmono.com/docs/installation/linux.html#kernel_support </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-05-10 11:16:39 0000</bug_when>
            <thetext>I played around with that script and added the possibility to choose what interpreter to use and added a stop() function.

I think those two files should be added to the mono and pnet ebuild (without a default setting for the runtime so that it doesn&apos;t harm anything if you merge both etc. ?).

Comments ? ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-05-10 11:17:30 0000</bug_when>
            <thetext>Created an attachment (id=11760)
/etc/conf.d/dotnet
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-05-10 11:18:00 0000</bug_when>
            <thetext>Created an attachment (id=11761)
/etc/init.d/dotnet
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-05-12 13:05:03 0000</bug_when>
            <thetext>I added the script with some minor enhancements to
pnet-0.5.6-r2,
mono-0.23-r1 (stable) and mono-0.24-r1 (~)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2003-05-14 08:30:21 0000</bug_when>
            <thetext>resolved / fixed
seems to be fine with everybody :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2003-05-14 08:38:28 0000</bug_when>
            <thetext>thnx scandium for the good work</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10875</attachid>
            <date>2003-04-19 12:23 0000</date>
            <desc>/etc/init.d/mono</desc>
            <filename>mono</filename>
            <type>text/plain</type>
            <data encoding="base64">IyEvc2Jpbi9ydW5zY3JpcHQKIyBDb3B5cmlnaHQgMTk5OS0yMDAzIEdlbnRvbyBUZWNobm9sb2dp
ZXMsIEluYy4KIyBEaXN0cmlidXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFs
IFB1YmxpYyBMaWNlbnNlLCB2MiBvciBsYXRlcgojICRIZWFkZXI6ICQKCgpzdGFydCgpIHsKCWVi
ZWdpbiAiTWFraW5nIC5ORVQgYmluYXJpZXMgdXNlIC91c3IvYmluL21vbm8iCgoJaWYgWyAhIC1k
IC9wcm9jL3N5cy9mcy9iaW5mbXRfbWlzYyBdOyB0aGVuCgkJZWVycm9yICJZb3UgbmVlZCBzdXBw
b3J0IGZvciBcIm1pc2MgYmluYXJpZXNcIiBpbiB5b3VyIGtlcm5lbCEiCgkJZXhpdCAxCglmaQoK
CW1vdW50IHwgZ3JlcCAtcSBiaW5mbXRfbWlzYwoJaWYgWyAkPyAhPSAwIF07IHRoZW4KCQltb3Vu
dCAtdCBiaW5mbXRfbWlzYyBiaW5mbXRfbWlzYyAvcHJvYy9zeXMvZnMvYmluZm10X21pc2MKCQlp
ZiBbICQ/ICE9IDAgXTsgdGhlbgoJCQllZW5kIDEKCQkJZXhpdCAxCgkJZmkKCWZpCgoJZWNobyAn
OkNMUjpNOjpNWjo6L3Vzci9iaW4vbW9ubzonID4gL3Byb2Mvc3lzL2ZzL2JpbmZtdF9taXNjL3Jl
Z2lzdGVyCgoJZWVuZCAwCn0KCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11760</attachid>
            <date>2003-05-10 11:17 0000</date>
            <desc>/etc/conf.d/dotnet</desc>
            <filename>conf.d_dotnet</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBjb25maWd1cmF0aW9uIGZpbGUgZm9yIGRvdG5ldAoKIyBEZWZpbmUgd2hhdCB0byByZWdpc3Rl
ciB3aXRoIC5ORVQgSUwgYmluYXJpZXMgc28geW91IGNhbiBhdm9pZAojIHJ1bm5pbmcgdGhlbSB3
aXRoICI8cnVudGltZT4gcHJvZ3JhbS5leGUiCiMgTk9URTogSW4gb3JkZXIgdG8gZ2V0IHRoaXMg
d29ya2luZyB5b3UgbmVlZCB0byAiY2htb2QgK3giIHlvdXIgcHJvZ3JhbQoKIyBWYWxpZCBvcHRp
b25zIGFyZToKIyAibW9ubyIgLSB1c2UgdGhlIG1vbm8gSklUIGNvbXBpbGVyICdtb25vJwojICJt
aW50IiAtIHVzZSB0aGUgbW9ubyBpbnRlcnByZXRlciAnbWludCcKIyAiaWxydW4iIC0gdXNlIHRo
ZSBEb3RHTlUgUG9ydGFibGUgLk5FVCBpbnRlcnByZXRlciAnaWxydW4nCgpET1RORVRfUlVOVElN
RT0iIgo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11761</attachid>
            <date>2003-05-10 11:18 0000</date>
            <desc>/etc/init.d/dotnet</desc>
            <filename>init.d_dotnet</filename>
            <type>text/plain</type>
            <data encoding="base64">IyEvc2Jpbi9ydW5zY3JpcHQKIyBDb3B5cmlnaHQgMTk5OS0yMDAzIEdlbnRvbyBUZWNobm9sb2dp
ZXMsIEluYy4KIyBEaXN0cmlidXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFs
IFB1YmxpYyBMaW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