Update on porting mono 5

David Naylor naylor.b.david at gmail.com
Wed Sep 27 19:00:32 UTC 2017


On Monday, 25 September 2017 23:35:04 Russell Haley wrote:
> Sorry, hit send in gmail somehow. :-/
> 
> Hi David,
> 
> So, point 1: I suck at patching. I'm going to re-attempt when I'm not
> so tired with a fresh ports from svn.
> 
> tldr; I think I failed to apply the patch, but the build started after
> I modified the distinfo file.
> 
> Details:
> I tried the new patch from phabricator, but mucked it up (man wget
> russell!). So I used the patch above. I had items rejected but
> realised the port version on this computer might have been old. I
> reverted, updated and tried again. The patch patch seemed to succeed
> (Output is here http://termbin.com/373z). However, I forgot to clean
> up the *.rej and *.orig files so I'm a little unsure of the state.
> None the less, the build for mono 5 started and ended on the following
> error:
> 
> russellh at prescott:~/FreeBSD/ports/lang/mono% make
> ===>  License MIT accepted by the user
> ===>   mono-5.2.0.215 depends on file: /usr/local/sbin/pkg - found
> => dotnet-coreclr-c7da48a_GH0.tar.gz doesn't seem to exist in
> /usr/home/russellh/FreeBSD/ports/distfiles/.
> => Attempting to fetch
> https://codeload.github.com/dotnet/coreclr/tar.gz/c7da48a?dummy=/dotnet-core
> clr-c7da48a_GH0.tar.gz fetch:
> https://codeload.github.com/dotnet/coreclr/tar.gz/c7da48a?dummy=/dotnet-cor
> eclr-c7da48a_GH0.tar.gz: size mismatch: expected 31762122, actual 31762105
> => Attempting to fetch
> http://distcache.FreeBSD.org/ports-distfiles/dotnet-coreclr-c7da48a_GH0.tar.
> gz fetch:
> http://distcache.FreeBSD.org/ports-distfiles/dotnet-coreclr-c7da48a_GH0.tar
> .gz: Not Found
> => Couldn't fetch it - please try to retrieve this
> => port manually into /usr/home/russellh/FreeBSD/ports/distfiles/ and
> try again.
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/home/russellh/FreeBSD/ports/lang/mono
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/home/russellh/FreeBSD/ports/lang/mono
> 
> I modified the distinfo file and changed the size. I also had to
> change the size of the rosyln download. The last two files of the
> distinfo were modified:
> 
> SHA256 (dotnet-coreclr-c7da48a_GH0.tar.gz) =
> 8529ce9e9dcc524046205487ca8a8e584d8180c3fecb59bc27944326525d8c83
> SIZE (dotnet-coreclr-c7da48a_GH0.tar.gz) = 31762105
> SHA256 (dotnet-roslyn-322bd5b_GH0.tar.gz) =
> 9740a0922f2fafa0251f462e7f27cfd6891dc078c22b008c49e11db6637edeea
> SIZE (dotnet-roslyn-322bd5b_GH0.tar.gz) = 22058637
> 
> I ran the port without checksum, but then the patches failed (see point 1).
> 
> russellh at prescott:~/FreeBSD/ports/lang/mono% make NO_CHECKSUM=yes
> ===>  License MIT accepted by the user
> ===>   mono-5.2.0.215 depends on file: /usr/local/sbin/pkg - found
> ===> Fetching all distfiles required by mono-5.2.0.215 for building
> ===>  Extracting for mono-5.2.0.215
> /bin/mkdir -p
> /usr/home/russellh/FreeBSD/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/cla
> ss/lib/monolite /bin/mv
> /usr/home/russellh/FreeBSD/ports/lang/mono/work/monolite-1050200001-latest
> /usr/home/russellh/FreeBSD/ports/lang/mono/work/mono-mono-5.2.0.215/mcs/cla
> ss/lib/monolite/1050200001 ===>  Patching for mono-5.2.0.215
> ===>  Applying FreeBSD patches for mono-5.2.0.215
> ===>   Ignoring patchfile patch-configure.ac.orig
> ===>   Ignoring patchfile patch-eglib_src_gfile-posix.c.orig
>   I can't seem to find a patch in there anywhere.
> => FreeBSD patch patch-mono_metadata_socket-io.c failed to apply
> cleanly.
> => Patch(es)  patch-configure.ac patch-eglib_src_gfile-posix.c applied
> cleanly.
> *** Error code 1

Oops, I gave you the incorrect incantation for patch.  Something like:
# patch -Ep1 < /path/to/patch

The patch in question should be removed (and should be empty).  See [1] for 
what the patches should look like (minus the .orig files ;-)).  

Regarding distinfo - I've been having issues with a lot (but not all?) of 
them.  It appears the github has changes how they get generated.  I'll need 
verify no changes in the sources though.

[1] https://github.com/DragonSA/ports/tree/mono-5.2.0.215/lang/mono/files
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-mono/attachments/20170927/452eaeef/attachment.sig>


More information about the freebsd-mono mailing list