Opened 18 years ago

Closed 16 years ago

Last modified 16 years ago

#11663 closed defect (duplicate)

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

Reported by: frank.mcpherson@… Owned by: mww@…
Priority: High Milestone:
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 (4)

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

Download all attachments as: .zip

Change History (14)

comment:1 Changed 18 years 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 years ago by frank.mcpherson@…

Attachment: patch-NAnt_Core-Task_cs added

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

Changed 18 years ago by frank.mcpherson@…

Attachment: patch-Portfile added

comment:2 Changed 18 years 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 17 years ago by brennan@…

Attachment: nant_fail.txt added

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

comment:3 Changed 17 years ago by brennan@…

port builds with patch, please commit changes :D

comment:4 Changed 17 years ago by mww@…

Resolution: fixed
Status: newclosed

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

comment:5 Changed 17 years ago by mww@…

actually it tries to write to ~/.wapi

comment:6 Changed 17 years ago by aronnax@…

Resolution: fixed
Status: closedreopened

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?

comment:7 Changed 17 years 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 17 years ago by aronnax@…

Attachment: new_nant_fail.txt added

Build log from Leopard

comment:8 Changed 17 years ago by aronnax@…

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

comment:9 Changed 16 years ago by nox@…

Resolution: duplicate
Status: reopenedclosed

see #15137

comment:10 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.