Bug 200343 - security/keepass fails to build on 10.1
Summary: security/keepass fails to build on 10.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-20 06:49 UTC by pilot513
Modified: 2015-05-26 22:23 UTC (History)
4 users (show)

See Also:
woodsb02: maintainer-feedback+


Attachments
errors, when build (3.24 KB, text/plain)
2015-05-20 06:49 UTC, pilot513
no flags Details
Patch to fix build of security/keepass with mono 4 (11.27 KB, patch)
2015-05-25 14:44 UTC, Ben Woods
woodsb02: maintainer-approval+
Details | Diff
Successful poudriere testport log on FreeBSD 10.1 amd64 (57.54 KB, text/plain)
2015-05-25 14:45 UTC, Ben Woods
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description pilot513 2015-05-20 06:49:47 UTC
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.
Comment 1 Ben Woods freebsd_committer freebsd_triage 2015-05-25 11:51:08 UTC
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/
Comment 2 Ben Woods freebsd_committer freebsd_triage 2015-05-25 14:44:56 UTC
Created attachment 157122 [details]
Patch to fix build of security/keepass with mono 4
Comment 3 Ben Woods freebsd_committer freebsd_triage 2015-05-25 14:45:50 UTC
Created attachment 157123 [details]
Successful poudriere testport log on FreeBSD 10.1 amd64
Comment 4 Ben Woods freebsd_committer freebsd_triage 2015-05-25 14:51:36 UTC
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).
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-05-25 15:37:30 UTC
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
Comment 6 Antoine Brodin freebsd_committer freebsd_triage 2015-05-25 15:39:33 UTC
The patches have been committed,  I converted them to unix end of lines and used dos2unix for .sln/.csproj files
Comment 7 Ben Woods freebsd_committer freebsd_triage 2015-05-25 22:43:30 UTC
Thanks for the quick commit antoine, and for sorting out the dos2unix issue.
Comment 8 pilot513 2015-05-26 16:29:24 UTC
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
Comment 9 Ben Woods freebsd_committer freebsd_triage 2015-05-26 22:23:32 UTC
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 :)