Page MenuHomeFreeBSD

misc/sword: remove unnecessary use of REINPLACE_CMD
ClosedPublic

Authored by swills on Feb 7 2020, 1:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 17, 8:30 AM
Unknown Object (File)
Tue, Sep 16, 8:42 AM
Unknown Object (File)
Tue, Sep 16, 5:27 AM
Unknown Object (File)
Fri, Sep 12, 7:13 AM
Unknown Object (File)
Sun, Sep 7, 12:47 PM
Unknown Object (File)
Thu, Sep 4, 9:17 AM
Unknown Object (File)
Aug 4 2025, 8:04 AM
Unknown Object (File)
Aug 2 2025, 1:02 PM

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 29228
Build 27152: arc lint + arc unit

Event Timeline

I understand that the file you add does the same thing than the ${REINPLACE_CMD}, but why do you prefer using a file? I do not see the advantage. On the contrary I see disadvantages:

  • your file is more byte expensive than the ${REINPLACE_CMD} (sure, in 2020 it does not do much difference for most users, but we never know);
  • your file is harder to maintain: it might need to be recreated for any update of the port, while the ${REINPLACE_CMD} will most probably always work.

I understand that the file you add does the same thing than the ${REINPLACE_CMD}, but why do you prefer using a file? I do not see the advantage. On the contrary I see disadvantages:

  • your file is more byte expensive than the ${REINPLACE_CMD} (sure, in 2020 it does not do much difference for most users, but we never know);
  • your file is harder to maintain: it might need to be recreated for any update of the port, while the ${REINPLACE_CMD} will most probably always work.

REINPLACE_CMD can break silently; that is, it stops working, but nothing tells you that.

You're right.
Let's commit it then.

This revision is now accepted and ready to land.Feb 7 2020, 2:59 PM

It seems this review has been forgotten for a month. In the meantime I became a (mentored) committer: do you want me to commit it?

I added my mentors to the review. If they approve it, I will commit it (commit message identical to the title of this review).

Looks fine (assuming you have tested as usual).

Just a comment on the commit message: the use of REINPLACE_CMD was not unnecessary, you are changing it for a different approach, so perhaps "Replace use of REINPLACEMENT_CMD by a patch" or something along those lines?