[MacPorts] #70350: Provide fgetattrlist via legacysupport
MacPorts
noreply at macports.org
Tue Jul 30 01:51:33 UTC 2024
#70350: Provide fgetattrlist via legacysupport
----------------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords:
Port: legacysupport, ruby |
----------------------------------+--------------------
Comment (by fhgwright):
Replying to [ticket:70350 barracuda156]:
> Is there any reason why `legacysupport` provides `fsetattrlist` but not
`fgetattrlist`? This seems to break ruby with gcc14, since configure check
misdetects `fgetattrlist` as being available, while it is not present in
`/usr/include/unistd.h`. I think this is because of `legacysupport`, and
`autoconf` making a wrong assumption that one implies another
automatically.
>
> Ruby introduced a check here:
https://github.com/ruby/ruby/commit/ddf1f59df5fbff6c659177bc36e161b2ae285d5f
I don't think your diagnosis is correct, since Ruby doesn't use
`fsetattrlist()`, and the code you referenced also doesn't reference it.
If something weird is happening with `gcc14`, you'll have to investigate,
since `gcc14` isn't the normal compiler selection for Ruby on any
supported platform.
> If possible, it is desirable to provide `fgetattrlist` via
`legacysupport`. If it is not possible, then we should find a way to not
use `legacysupport` during configure stage of Ruby. (A temporary fix could
be to set `ac_cv_func_fgetattrlist=no` manually, but it is clearly
suboptimal.)
That's been added as of [https://github.com/macports/macports-legacy-
support/commit/af8a73fc55b153e86d090198e782ca20b7ad2221], but the author
neglected to reference this ticket, and I consequently didn't reference
this ticket in the summary for the port update.
This ticket should be closed as fixed.
--
Ticket URL: <https://trac.macports.org/ticket/70350#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list