[MacPorts] #34357: sqlgrey - make port independent on perl version installed

MacPorts noreply at macports.org
Sun May 6 15:59:11 PDT 2012


#34357: sqlgrey - make port independent on perl version installed
--------------------------------------+-------------------------------------
 Reporter:  macintosh@…               |       Owner:  pixilla@…           
     Type:  enhancement               |      Status:  new                 
 Priority:  Normal                    |   Milestone:                      
Component:  ports                     |     Version:  2.0.4               
 Keywords:  haspatch                  |        Port:  sqlgrey             
--------------------------------------+-------------------------------------

Comment(by macintosh@…):

 hmmm ... wouldn't a 'port upgrade --force sqlgrey' ('''without''' -n) fix
 that problem?

 I've just personally switched from perl 5.12 to perl 5.14 and did some
 nasty pieces of script to get updated:

 {{{
 port install perl5.14

 port installed \
 | grep p5.12 \
 | while read portname version active
 do
     port -f deactivate ${portname}
     port -f install ${portname/12/14}
 done

 # use perl5 port to switch to perl 5.14
 # use cpan to initialise again
 cpan
 port -f uninstall perl5.12

 ( ( port installed \
 | grep p5.12 \
 | while read portname version active
 do
     port -q dependents ${portname}
 done ) \
 | sort \
 | uniq \
 | grep -v p5.12 ) |
 xargs -n1 port -n upgrade --force

 # this is possibly overkill but resolved my problems with the modules
 looking for perl5.12 instaed of perl 5.14
 cpan -l | while read module version
 do
     cpan -f -i ${module}
 done
 }}}

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


More information about the macports-tickets mailing list