[MacPorts] #36072: cmake patch error

MacPorts noreply at macports.org
Mon Sep 10 04:34:06 PDT 2012


#36072: cmake patch error
--------------------------------+-------------------------------------------
 Reporter:  aeronova@…          |       Owner:  css@…           
     Type:  defect              |      Status:  new             
 Priority:  Normal              |   Milestone:                  
Component:  ports               |     Version:  2.1.2           
 Keywords:                      |        Port:  cmake           
--------------------------------+-------------------------------------------

Comment(by gnwiii@…):

 "cmake +gui" fails to build for me on SL at the patch stage, but for
 {{{patch-CMakeLists.txt.diff}}}, not {{{patch-
 CMakeFindFrameworks.cmake.diff}}} as reported here.

 {{{
 $ sudo port clean cmake
 --->  Cleaning cmake
 a$ sudo port configure cmake
 --->  Computing dependencies for cmake
 --->  Fetching distfiles for cmake
 --->  Verifying checksum(s) for cmake
 --->  Extracting cmake
 --->  Applying patches to cmake
 --->  Configuring cmake
 }}}

 but fails when {{{+gui}}} is used:
 {{{
 $ sudo port clean cmake
 --->  Cleaning cmake
 $ sudo port configure cmake +gui
 --->  Computing dependencies for cmake
 --->  Fetching distfiles for cmake
 --->  Verifying checksum(s) for cmake
 --->  Extracting cmake
 --->  Applying patches to cmake
 Error: org.macports.patch for port cmake returned: command execution
 failed
 Please see the log file for port cmake for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_www.macports.org_files_ports_devel_cmake/cmake/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port cmake failed
 }}}

 The problem appears to be with {{{patch-CMakeLists.txt.diff}}}



 {{{
 :info:patch patching file CMakeLists.txt
 :info:patch Hunk #1 succeeded at 528 (offset -14 lines).
 :info:patch Hunk #2 succeeded at 541 (offset -14 lines).
 :info:patch patching file Source/QtDialog/CMakeLists.txt
 :info:patch Hunk #1 FAILED at 59.
 :info:patch Hunk #4 succeeded at 115 with fuzz 1 (offset 1 line).
 :info:patch 1 out of 4 hunks FAILED -- saving rejects to file
 Source/QtDialog/CMakeLists.txt.rej
 :info:patch Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_devel_cmake/cmake/work/cmake-2.8.9"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/www.macports.org/files/ports/devel/cmake/files
 /patch-CMakeLists.txt.diff'
 :info:patch Exit code: 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/36072#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list