Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11663 (reopened defect)

Opened 18 months ago

Last modified 4 months ago

Bug: nant-0.85-rc4 fails to build under mono-1.2.3

Reported by: frank.mcpherson@… Owned by: mww@…
Priority: High Milestone: Port Bugs
Component: ports Version: 1.4
Keywords: Cc:
Port:

Description

I had a build failure with nant and did some googling. Apparently it's related to changes in csc with mono-1.2.3, which recently dropped on the ports tree. The nant-dev mailing list has a post describing the issue and offers the solution of removing the Obsolete keyword from the offending line in one of the source files.

While I was in there investigating this problem, I noted that nant-0.85 had been released so I updated the Portfile to bump the revision as well.

Attachments

patch-NAnt_Core-Task_cs (0.6 kB) - added by frank.mcpherson@… 18 months ago.
Remove Obsolete tag from Task.cs, causes build failure with csc-1.2.3
patch-Portfile (0.6 kB) - added by frank.mcpherson@… 18 months ago.
nant_fail.txt (2.6 kB) - added by brennan@… 10 months ago.
nant 0.85-rc4 still fails to build with current version of dports
new_nant_fail.txt (7.8 kB) - added by aronnax@… 4 months ago.
Build log from Leopard

Change History

Changed 18 months ago by frank.mcpherson@…

The post I mentioned tells how to fix this; it's trivial, you just comment out or delete the Obsolete marker near line 400 of src/NAnt.Core/Task.cs. However, I'm unable to produce a diff that will work with patch. I think the problem is related the CRLF line endings in all the NAnt.Core files.

If someone could point me to instructions on how to successfully diff and patch files with CRLF line endings on Tiger, I'd be grateful.

Changed 18 months ago by frank.mcpherson@…

Remove Obsolete tag from Task.cs, causes build failure with csc-1.2.3

Changed 18 months ago by frank.mcpherson@…

Changed 18 months ago by frank.mcpherson@…

Finally figured it out. The diff output has to have CRLF since that's what the source has, but the file header that tells patch which file to apply has to have Unix line endings.

Changed 10 months ago by brennan@…

nant 0.85-rc4 still fails to build with current version of dports

Changed 10 months ago by brennan@…

port builds with patch, please commit changes :D

Changed 10 months ago by mww@…

  • status changed from new to closed
  • resolution set to fixed

The build process fails with "-d" (trace mode) cause it tries to write temp-files to /var/root/; I submitted it though.

Changed 10 months ago by mww@…

actually it tries to write to ~/.wapi

Changed 4 months ago by aronnax@…

  • status changed from closed to reopened
  • resolution fixed deleted

Nant is failing to build for me on Leopard and it looks like it is the same error as mentioned in this bug report. Can someone please commit the new portfile?

Changed 4 months ago by aronnax@…

Never mind. I do have the right portfile, but I am seeing the same types of errors. I am attaching the output of my build.

Changed 4 months ago by aronnax@…

Build log from Leopard

Changed 4 months ago by aronnax@…

Actually, this new problem is better described by #15137. Please re-close this ticket.

Note: See TracTickets for help on using tickets.