Skip to content

opencoarrays: fix MPI linkage - #2

Open
Dave-Allured wants to merge 1 commit into
testfrom
opencoarrays-mpi-linkage
Open

opencoarrays: fix MPI linkage#2
Dave-Allured wants to merge 1 commit into
testfrom
opencoarrays-mpi-linkage

Conversation

@Dave-Allured

Copy link
Copy Markdown
Owner

Update and simplify linkage to MPI components.
Remove obsolete methods.

Description

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS x.y
Xcode x.y

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?

Update and simplify linkage to MPI components.
Remove obsolete methods.
Dave-Allured added a commit that referenced this pull request Jul 27, 2025
Dave-Allured added a commit that referenced this pull request Jul 27, 2025
Dave-Allured pushed a commit that referenced this pull request Aug 4, 2026
add-unistd-include.patch was written with CRLF line endings on every
line, including the ---/+++/@@ headers. Older versions of patch(1) see
DOS line endings in the headers, report "(Stripping trailing CRs from
patch.)" and strip the CRs from the context lines too. Since editline.c
itself has CRLF line endings, the stripped context no longer matches and
both hunks fail:

    (Stripping trailing CRs from patch.)
    patching file editline/editline.c
    Hunk #1 FAILED at 63.
    Hunk #2 FAILED at 156.
    2 out of 2 hunks FAILED

Regenerate the patch with diff(1) so the headers use LF and only the
content lines carry CRLF, matching the existing find-va_copy.patch which
applies correctly on every platform.

Also drop the legacy K&R declarations of read() and write() outright
instead of guarding them with the private _UNISTD_H_ macro, since
<unistd.h> supplies the correct prototypes on all supported OS versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant