[MacPorts] #33264: p5.12-xml-parser doesn't respect build_arch

MacPorts noreply at macports.org
Sat Mar 17 21:10:14 PDT 2012


#33264: p5.12-xml-parser doesn't respect build_arch
--------------------------------+-------------------------------------------
 Reporter:  jhkoivis@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  2.0.3                                
 Keywords:                      |        Port:  p5.12-xml-parser                     
--------------------------------+-------------------------------------------

Comment(by gvibe06@…):

 Wow!

 First I noticed that some files are not removed during uninstall...thus I
 had to force delete the /opt/local/lib/perl5 folder.

 Then, I had to go all the way back to python27, including any
 dependencies, and the dependencies of those dependencies to make this
 work.  Dependencies are (not in order): ncurses, libedit, gdbm, gettext,
 readline, sqlite3, libiconv, xz, expat. Adding the following os.arch if
 statement to each and rebuilding.

 {{{
 if { ${os.arch}=="i386" } {
      configure.compiler  gcc-4.2
      configure.cflags-append -m32
      configure.ldflags-append -m32
      configure.optflags-append   -m32
     } else {
      configure.compiler  gcc-4.2
      configure.cflags-append -m64
      configure.ldflags-append -m64
      configure.optflags-append   -m64
 }
 }}}

 I couldn't figure out how to force -arch flag from being used, but it
 didn't seem to matter because I think it was ignored anyway.
 I ran the perl -e command and did not receive an error...so it appears to
 have worked.

 {{{
 root /opt/local # /opt/local/bin/perl5.12 -E "require XML::Parser"
 root /opt/local #
 }}}

 And installing intltool (which pulls in xz, glib2, and pkgconfig) just for
 completeness and here is the results from that:

 {{{
 --->  Activating intltool @0.50.2_0
 --->  Cleaning intltool
 --->  Removing work directory for intltool
 }}}

 {{{
 root /opt/local # port installed | grep intltool
   intltool @0.50.2_0 (active)
 }}}

 Question is, how can this be simplified so that Macports will do this
 without reinventing the wheel.

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


More information about the macports-tickets mailing list