Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#35081 closed defect (fixed)

mpd @0.17: patch fails to apply on Snow Leopard

Reported by: coredumpling@… Owned by: rmstonecipher@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: snowleopard haspatch Cc: flobakk@…, dale+macports@…
Port: mpd

Description

Attempting to upgrade mpd to v0.17 or reinstall from scratch fails when trying to apply the macports patch:

$ sudo port install mpd
--->  Computing dependencies for mpd
--->  Fetching archive for mpd
--->  Attempting to fetch mpd-0.17_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/mpd
--->  Fetching distfiles for mpd
--->  Verifying checksum(s) for mpd
--->  Extracting mpd
--->  Applying patches to mpd
Error: org.macports.patch for port mpd returned: command execution failed
Please see the log file for port mpd for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_mpd/mpd/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mpd failed

It appears that v0.17 made some substantial changes to src/output/osx_output_plugin.c such that the patch will no longer apply cleanly. The package will still build and run if I replace the patch file with an empty text file, or if I make the analogous changes in the work directory. See attachment for diffs -- I am only following the pattern I see in the original patch file and cannot confirm the validity of this.

Attachments (1)

osx_output_plugin.c.diff (1.8 KB) - added by coredumpling@… 12 years ago.

Download all attachments as: .zip

Change History (13)

Changed 12 years ago by coredumpling@…

Attachment: osx_output_plugin.c.diff added

comment:1 Changed 12 years ago by coredumpling@…

Cc: coredumpling@… added

Cc Me!

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

Cc: milosh@… added; coredumpling@… removed
Keywords: snowleopard haspatch added
Owner: changed from macports-tickets@… to rmstonecipher@…
Summary: Unable to install mpd 0.17mpd: patch fails to apply on Snow Leopard

comment:3 Changed 12 years ago by coredumpling@…

Oops - thanks for correcting the title to match your guidelines. I must've skimmed past that part of the guide.

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

Cc: milosh@… removed

comment:5 Changed 12 years ago by flobakk@…

Cc: flobakk@… added

Cc Me!

comment:6 Changed 12 years ago by dale+macports@…

Cc: dale+macports@… added

Cc Me!

comment:7 Changed 12 years ago by jmroot (Joshua Root)

Summary: mpd: patch fails to apply on Snow Leopardmpd @0.17: patch fails to apply on Snow Leopard

Please don't remove the version info, Ryan.

comment:8 Changed 12 years ago by jmroot (Joshua Root)

This is definitely still broken with 0.17.1. But surely if the changes are needed on 10.6, they are also needed on newer OS versions?

comment:9 Changed 12 years ago by flobakk@…

Still broken when trying to install mpd @0.17.2_0 on Snow Leopard.

Log:

:notice:patch --->  Applying patches to mpd
:info:patch --->  Applying patch-src-output-osx_plugin.c
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_mpd/mpd/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_mpd/mpd/work/mpd-0.17.2" && /usr/bin/patch -p0'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_mpd/mpd/work/mpd-0.17.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/mpd/files/patch-src-output-osx_plugin.c'
:info:patch can't find file to patch at input line 3
:info:patch Perhaps you used the wrong -p or --strip option?
:info:patch The text leading up to this was:
:info:patch --------------------------
:info:patch |--- src/output/osx_plugin.c.orig	2009-09-11 00:11:55.000000000 -0500
:info:patch |+++ src/output/osx_plugin.c	2009-09-11 22:02:46.000000000 -0500
:info:patch --------------------------
:info:patch File to patch: 
:info:patch Skip this patch? [y] 
:info:patch Skipping patch.
:info:patch 6 out of 6 hunks ignored
:info:patch Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_mpd/mpd/work/mpd-0.17.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/mpd/files/patch-src-output-osx_plugin.c'
:info:patch Exit code: 1
:error:patch org.macports.patch for port mpd returned: command execution failed
:debug:patch Error code: CHILDSTATUS 48329 1
:debug:patch Backtrace: command execution failed
    while executing
"system $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec patch "" "< '$patch'""
    (procedure "portpatch::patch_main" line 35)
    invoked from within
"$procedure $targetname"
:info:patch Warning: targets not executed for mpd: org.macports.install org.macports.patch org.macports.configure org.macports.build org.macports.destroot
:notice:patch Please see the log file for port mpd for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_mpd/mpd/main.log

comment:10 Changed 11 years ago by rmstonecipher@…

This patch was added in r57514 to fix syntax deprecated in Snow Leopard.
This port builds on Lion without the patch, so I have removed the version-specific patch from the portfile and will see if the Snow Leopard BuildBot has errors.

Ryan Stonecipher

comment:11 Changed 11 years ago by rmstonecipher@…

Resolution: fixed
Status: newclosed

I received no buildbot error reports. I am considering this fixed as of r99166.

comment:12 in reply to:  11 Changed 11 years ago by coredumpling@…

Replying to rmstonecipher@…:

I received no buildbot error reports. I am considering this fixed as of r99166.

Successful build confirmed by original reporter. Thank you very much!

Note: See TracTickets for help on using tickets.