Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#62640 closed defect (fixed)

Qemu Failed to patch Hunk #1 FAILED at 879

Reported by: stealer05172 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: raimue (Rainer Müller)
Port: qemu

Description

Attempting to compile Qemu on my 2008 BlackBook running 10.5 I get the following error:

--->  Applying patches to qemu
Error: Failed to patch qemu: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/main.log for details.

Inside that log file:

:info:patch patching file Makefile
:info:patch Hunk #1 FAILED at 879.
:info:patch 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
:info:patch Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_emulators_qemu/qemu/work/qemu-5.2.0" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/emulators/qemu/files/patch-Makefile-legacy-mktemp-to-coreutils.diff'
:info:patch Exit code: 1
:error:patch Failed to patch qemu: command execution failed
:debug:patch Error code: CHILDSTATUS 66535 1
:debug:patch Backtrace: command execution failed
:debug:patch     while executing
:debug:patch "system {*}$notty {*}$nice $fullcmdstring"
:debug:patch     invoked from within
:debug:patch "command_exec patch "" "< '$patch'""
:debug:patch     (procedure "portpatch::patch_main" line 41)
:debug:patch     invoked from within
:debug:patch "$procedure $targetname"

I have never used ports before this week so I have no idea what I'm doing, so some hand holding may be necessary to investigate further.

Attachments (1)

main.log (252.6 KB) - added by stealer05172 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by stealer05172

Attachment: main.log added

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 6185971a397e6609373d00be673832f7a8f019f4/macports-ports (master):

qemu: Remove old patchfile

The build system now uses meson and ninja and the parts of the Makefile
that this patch was patching no longer exist.

Closes: #62640

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue added

It looks like although the developers of qemu state that it can be used on Mac OS X 10.5 and later, it requires a much newer macOS in order to be built. They say you need one of the two most recent macOS versions to build — Catalina (10.15) or Big Sur (11). In fact it appears to build fine in MacPorts on Sierra (10.12) and later, but unfortunately not on earlier versions. Sorry.

Note: See TracTickets for help on using tickets.