[Pkg-mono-devel] Rebuilding mono (libmono-system?)

Jo Shields directhex at apebox.org
Tue Sep 17 12:08:32 UTC 2013


On Tue, 2013-09-17 at 04:52 -0700, SiHaswell wrote:
> Hi,
> 
> I'm new to mono but reasonably familiar with Debian tools etc. 
> 
> I have a third-party c# .net based dll that I would like to using in a Linux
> environment - so I've been looking at mono. Unfortunately, the dll makes
> some calls - specifically SerialPort.DiscardNull - which throw an 'not
> implemented' exception.
> 
> So I'd like to get the mono sources and rebuild them - initially with a stub
> function then possibly look at adding this functionality if required. My
> question is how best to go about this. I downloaded a tar file from the
> links on the mono website and I can see the source *cs files. Is this the
> correct approach or should I be looking at taking the source package from
> the Debian archive? If so, which one?

To take the package from the Debian archive, use "apt-get build-dep
mono" to install all the packages required to compile, "apt-get source
mono" to download the source, and "dpkg-buildpackage" to generate a set
of binary packages from the root of the unpacked source package. The
file you want is mcs/class/System/System.IO.Ports/SerialPort.cs






More information about the Pkg-mono-devel mailing list