Created attachment 156973 [details] errors, when build When trying to build KeePass 2.29 on FreeBSD 10.1 with Mono 4.0.1.28 and it is failing with the errors below: Project "/usr/ports/security/keepass/work/KeePass-2.29-Source/KeePass.sln" (KeePass target(s)): Target ValidateSolutionConfiguration: : error : Error initializing task Message: Not registered task Message. Build FAILED. Warnings: : warning : Default tasks file /usr/local/lib/mono/3.5/Microsoft.Common.tasks not found, ignoring. /usr/ports/security/keepass/work/KeePass-2.29-Source/KeePassLib/KeePassLib.csproj: warning : Could not find project file /usr/local/lib/mono/3.5/Microsoft.CSharp.targets, to import. Ignoring. /usr/ports/security/keepass/work/KeePass-2.29-Source/KeePass/KeePass.csproj: warning : Could not find project file /usr/local/lib/mono/3.5/Microsoft.CSharp.targets, to import. Ignoring. /usr/ports/security/keepass/work/KeePass-2.29-Source/Translation/TrlUtil/TrlUtil.csproj: warning : Could not find project file /usr/local/lib/mono/3.5/Microsoft.CSharp.targets, to import. Ignoring. Errors: /usr/ports/security/keepass/work/KeePass-2.29-Source/KeePass.sln (KeePass) -> (ValidateSolutionConfiguration target) -> : error : Error initializing task Message: Not registered task Message. 4 Warning(s) 1 Error(s) Time Elapsed 00:00:00.3799920 *** Error code 1 Stop.
I can confirm I am having the same issue and am looking into it. This issue is related to the update of mono to the 4.x branch, which occurred the day after security/keepass was committed to the ports tree. I am already discussing it with the keepass upstream project here: http://sourceforge.net/p/keepass/discussion/329221/thread/72db1a65/
Created attachment 157122 [details] Patch to fix build of security/keepass with mono 4
Created attachment 157123 [details] Successful poudriere testport log on FreeBSD 10.1 amd64
Note that the additional patch files do not have the svn property for eol-style set, as svn was reporting inconsistent line endings. Assume this is because the file is a unix diff of files containing dos line endings in the source. I had to perform the svn add without auto properties, and then add the properties manually (except the eol-style).
A commit references this bug: Author: antoine Date: Mon May 25 15:36:42 UTC 2015 New revision: 387388 URL: https://svnweb.freebsd.org/changeset/ports/387388 Log: Fix build with mono 4 PR: 200343 Submitted by: Ben Woods (maintainer) Changes: head/security/keepass/Makefile head/security/keepass/files/patch-KeePass.sln head/security/keepass/files/patch-KeePassLibSD_KeePassLibSD.csproj head/security/keepass/files/patch-KeePassLib_KeePassLib.csproj head/security/keepass/files/patch-KeePass_KeePass.csproj head/security/keepass/files/patch-Translation_TrlUtil_TrlUtil.csproj
The patches have been committed, I converted them to unix end of lines and used dos2unix for .sln/.csproj files
Thanks for the quick commit antoine, and for sorting out the dos2unix issue.
Thank you all very much for your work! info keepass-2.29 keepass-2.29 Name : keepass Version : 2.29 Installed on : Tue May 26 19:25:18 MSK 2015 Origin : security/keepass Architecture : freebsd:10:x86:64 Prefix : /usr/local Categories : security Licenses : GPLv2 Maintainer : woodsb02@gmail.com WWW : http://keepass.info/ Comment : Light-weight and easy-to-use password manager Annotations : Flat size : 2.59MiB 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #14 r282879
You're welcome. Please let me know if there are any other bugs you find. Even a quick note saying you have been using it for a few days and it works fine is helpful :)