[MacPorts] #24340: libao: patch phase fails on 10.5 and earlier

MacPorts noreply at macports.org
Tue Apr 6 02:46:55 PDT 2010


#24340: libao: patch phase fails on 10.5 and earlier
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  ports                    |     Version:  1.8.2                                
 Keywords:                           |        Port:  libao                                
-------------------------------------+--------------------------------------

Comment(by sinuhet.merlin@…):

 Replying to [comment:10 stephen@…]:
 > For those who, like me, are in a big hurry, I downloaded the patch from
 the link "https://trac.xiph.org/attachment/ticket/1667/libao.patch" (same
 as above) to dports/audio/libao/files/libao.patch, and made the following
 change to dports/audio/libao/Portfile:
 >
 > {{{
 > Index: Portfile
 > ===================================================================
 > --- Portfile  (revision 66043)
 > +++ Portfile  (working copy)
 > @@ -32,7 +32,7 @@
 >
 >  platform darwin {
 >      if {${os.major} < 10} {
 > -        patchfiles patch-AU-src__plugins__macosx__ao_macosx.c
 > +        patchfiles libao.patch
 >      }
 >      post-destroot {
 >          system "echo default_driver=macosx >>
 ${destroot}${prefix}/etc/libao.conf"
 > }}}
 >
 > and was able to successfully upgrade using "sudo port -u upgrade libao"
 on 10.5.8.  The Xiph bugreport cited above says that libao.patch worked on
 Mac OS X 10.4.11, so this should work for MacPorts on Tiger, too.
 >
 > Thanks to ryandesign for the clue!


 Maybe I am an idiot, but I've made the exact modifications you sent here,
 and got another error:

 --->  Computing dependencies for libao
 --->  Applying patches to libao
 Error: Target org.macports.patch returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libao/work/libao-1.0.0"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/rsync.macports.org/release/ports/audio/libao/files/libao.patch'"
 returned error 1
 Command output: can't find file to patch at input line 4
 Perhaps you used the wrong -p or --strip option?
 The text leading up to this was:
 --------------------------
 |diff -ru libao-1.0.0/src/plugins/macosx/ao_macosx.c
 libao-1.0.0-patched/src/plugins/macosx/ao_macosx.c
 |--- libao-1.0.0/src/plugins/macosx/ao_macosx.c 2010-03-24
 07:48:38.000000000 +0100
 |+++ libao-1.0.0-patched/src/plugins/macosx/ao_macosx.c 2010-03-27
 09:30:34.000000000 +0100
 --------------------------
 File to patch:
 Skip this patch? [y]
 Skipping patch.
 5 out of 5 hunks ignored

 Error: Unable to upgrade port: 1
 Before reporting a bug, first run the command again with the -d flag to
 get complete output.

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


More information about the macports-tickets mailing list