Changes between Initial Version and Version 1 of Ticket #51516, comment 157
- Timestamp:
- Jun 16, 2024, 10:18:18 PM (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #51516, comment 157
initial v1 5 5 I'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. 6 6 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. 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. Kind of dumb that I didn't realise that it wouldn't be possible to `port activate MacPorts-libcurl` (or pextlib) after doing that! 8 8 9 9 So 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.