Ticket #15577 (closed defect: fixed)
Build on Jaguar: cannot determine flag to use for /usr/bin/sed
| Reported by: | ryandesign@… | Owned by: | afb@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts 1.7.0 |
| Component: | base | Version: | 1.7.0 |
| Keywords: | Cc: | ||
| Port: |
Description
Just for fun, I tried to compile MacPorts trunk on Mac OS X 10.2.8 Jaguar. It didn't work:
checking for sed... (cached) /usr/bin/sed checking which sed flag to use for extended regexp... no idea configure: error: cannot determine flag to use for /usr/bin/sed
sed on Jaguar may not have any support for extended (modern) regular expressions. I can't find any mention of them in the manpage.
We still have 99 ports with "platform darwin 6" sections so we may want to un-break building MacPorts on Jaguar. Not many ports use extended regular expressions in reinplace so we could make this a warning rather than a failure and just allow ports that do use extended regexp to fail on Jaguar. But extended regexp support was only recently added to MacPorts; the number of ports using it is sure to increase. Another option is that we could require users to manually install GNU sed first on Jaguar, though I don't know what the latest version is that still compiles on Jaguar (GNU sed 4.1.5 doesn't).


Fixed, r37501.
Makes missing extended regexp for sed a runtime failure. If needing to build a port with extended reinplace on a system that has an old sed, a newer (external) sed must be installed and given as variable sed_command.