Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31505 closed defect (fixed)

canna @3.7p3_3: fails to build due to broken darwin.cf (xorg-cf-files)

Reported by: takanori@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: xorg-cf-files

Description


Attachments (2)

buildlog_canna.txt (5.3 MB) - added by takanori@… 13 years ago.
xorg-cf-files.diff (799 bytes) - added by takanori@… 13 years ago.

Change History (6)

Changed 13 years ago by takanori@…

Attachment: buildlog_canna.txt added

comment:1 Changed 13 years ago by takanori@…

Tested on Xcode 4.2 GM/Lion.

This is because xorg-cf-files built with clang produces broken darwin.cf file. (due to lack of clang's configure.cpp)

Changed 13 years ago by takanori@…

Attachment: xorg-cf-files.diff added

comment:2 Changed 13 years ago by takanori@…

Resolution: fixed
Status: newclosed

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Is there something we should change in base here? I know gcc -E doesn't behave quite the same as cpp, so is this a situation where the latter is needed, i.e. the RAWCPP variable used in other ports? Or does clang -E behave as needed?

comment:4 Changed 13 years ago by takanori@…

Well, as far as I've tested, declaring clang's configure.cpp as 'llvm-cpp-4.2' in base could fix this problem.

--- portconfigure.tcl.orig      2011-10-07 15:24:19.000000000 +0900
+++ portconfigure.tcl           2011-10-07 15:32:31.000000000 +0900
@@ -431,6 +431,7 @@
                         set ret ${developer_dir}/usr/bin/llvm-g++-4.2
                     }
                 }
+                cpp { set ret ${developer_dir}/usr/bin/llvm-cpp-4.2 }
             }
         }
         apple-gcc-3.3 {

Though this might be not so elegant solution.. FYI. ;-)

Note: See TracTickets for help on using tickets.