[MacPorts] #66415: cmake @3.24.3 - patch does not work - attempts to patch an empty directory
MacPorts
noreply at macports.org
Wed Dec 7 18:49:48 UTC 2022
#66415: cmake @3.24.3 - patch does not work - attempts to patch an empty directory
-----------------------+-----------------------
Reporter: snowflake | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.99
Keywords: | Port: cmake
-----------------------+-----------------------
`sudo port patch cmake` does not work. It attempts to patch an empty
directory. This is odd, as it worked last week. It may be related to
using the latest macports-base checkout.
This happens on both El Capitan and Monterey.
Checkouts:
[ffdb7d9ee9e59e9d69a2f29ac08dfd5090f84759/macports-base] (version 2.8.99)
[0cc71e8df56f9a4aa28ec508d45169cde759c00e/macports-ports]
{{{
sudo port clean cmake
sudo port extract cmake
cd $(port work cmake)
ls
cmake-v3.24.3-c974557598645360fbabac71352b083117e3cc17
sudo port -d patch cmake
ls
cmake-3.24.3
cmake-v3.24.3-c974557598645360fbabac71352b083117e3cc17
The directory with the short name, which has now appeared, is empty.
}}}
Here's a partial listing of the log. It's applying the patch to the empty
directory and failing:
{{{
Executing: cd
"/opt/local/var/macports/build/_Users_davidevans_macports_sources_github
.com_macports_macports-ports_devel_cmake/cmake/work/cmake-3.24.3" &&
/usr/bin/patch -p0 <
'/Users/davidevans/macports/sources/github.com/macports/macports-
ports/devel/cmake/files/patch-Modules-noArchCheck.diff'
DEBUG: system: cd
"/opt/local/var/macports/build/_Users_davidevans_macports_sources_github
.com_macports_macports-ports_devel_cmake/cmake/work/cmake-3.24.3" &&
/usr/bin/patch -p0 <
'/Users/davidevans/macports/sources/github.com/macports/macports-
ports/devel/cmake/files/patch-Modules-noArchCheck.diff'
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Modules/BasicConfigVersion-AnyNewerVersion.cmake.in.orig
|+++ Modules/BasicConfigVersion-AnyNewerVersion.cmake.in
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Modules/BasicConfigVersion-ExactVersion.cmake.in.orig
|+++ Modules/BasicConfigVersion-ExactVersion.cmake.in
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 39
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Modules/BasicConfigVersion-SameMajorVersion.cmake.in.orig
|+++ Modules/BasicConfigVersion-SameMajorVersion.cmake.in
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 57
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Modules/BasicConfigVersion-SameMinorVersion.cmake.in.orig
|+++ Modules/BasicConfigVersion-SameMinorVersion.cmake.in
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
Command failed: cd
"/opt/local/var/macports/build/_Users_davidevans_macports_sources_github
.com_macports_macports-ports_devel_cmake/cmake/work/cmake-3.24.3" &&
/usr/bin/patch -p0 <
'/Users/davidevans/macports/sources/github.com/macports/macports-
ports/devel/cmake/files/patch-Modules-noArchCheck.diff'
Exit code: 1
Error: Failed to patch cmake: command execution failed
DEBUG: Error code: CHILDSTATUS 62912 1
--
Ticket URL: <https://trac.macports.org/ticket/66415>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list