Changes between Initial Version and Version 9 of Ticket #29658


Ignore:
Timestamp:
Dec 2, 2015, 8:00:13 AM (8 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Replying to rudloff@…:

Here is a patch that adds php as a dependency and changes the shebang.

Does making this change fix some problem? Does using the OS X version of php no longer work, for example because newer versions of OS X include newer versions of php?

Since your proposed patch changes the files the port installs, the port's revision must be increased.

The patch is not correct: it adds a port:php52 dependency and changes the shebang line to "#!/usr/bin/env php", but the php52 port does not provide a program called php; it provides a program called php52. (This has changed in the years since this ticket was filed.) If you're declaring a hard dependency on the php52 port, then you should make sure the program installed by the php52 port is the one that gets used, by making the shebang line "#!${prefix}/bin/php52".

php52 is end of life, as is php53. If phpstylist will work with later versions of php, those should be used instead. But if not—if the whole purpose of this change is to prevent newer incompatible versions of php from being used by this 8-year-old software—then using php52 is fine.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29658

    • Property Cc ryandesign@… added
    • Property Owner changed from macports-tickets@… to rudloff@…
    • Property Version changed from 1.9.2 to
    • Property Keywords haspatch maintainer added
  • Ticket #29658 – Description

    initial v9  
    44adds
    55
    6 {{{#!/usr/bin/php}}}  [[BR]]
    7 
     6{{{
     7#!/usr/bin/php
     8}}}
    89 
    910to the code. Wouldn't it be more in keeping with MacPorts to make that
    1011
    11 {{{#!/usr/bin/env php}}}
     12{{{
     13#!/usr/bin/env php
     14}}}