Changes between Initial Version and Version 1 of Ticket #51516, comment 157


Ignore:
Timestamp:
Jun 16, 2024, 10:18:18 PM (2 weeks ago)
Author:
RJVB (René Bertin)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51516, comment 157

    initial v1  
    55I'm not even sure why the previous version worked as apparently the script passed to `package ifneeded` cannot see variables defined in the same file.
    66
    7 But the main problem was that it was too easy to cripple an installation by deactivating `port:MacPorts-libcurl` or `port:MacPorts-pextlib` itself.
     7But the main problem was that it was too easy to cripple an installation by deactivating `port:MacPorts-libcurl` or `port:MacPorts-pextlib` itself. Kind of dumb that I didn't realise that it wouldn't be possible to `port activate MacPorts-libcurl` (or pextlib) after doing that!
    88
    99So the new pkgIndex wrapper installs an "ifneeded script" that `catch`es any error in `load Pextlib-mp.dylib` and then falls back to `load Pextlib.dylib`. For some reason the `$dir` variable is not accessible/defined in this new implementation so I had to use the hardcoded install path but that should be a problem AFAICT.