Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of 'sed' in build system/makefiles is not portable #4459

Closed
mc-butler opened this issue May 19, 2023 · 8 comments
Closed

Usage of 'sed' in build system/makefiles is not portable #4459

mc-butler opened this issue May 19, 2023 · 8 comments
Assignees
Labels
area: build Build system and (cross-)compilation prio: medium Has the potential to affect progress
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4459
Reporter karlson2k (karlson2k@….com)

In the build system the sed command used with unportable "inplace" options ("-i").
The leads to build failures on some platforms, like Solaris, and reduces portability in general.

Similar issues were fixed already in the past: #3479

The configure script is already detecting suitable sed command in LT_INIT macro, so it worth to use the result of this detection to reduce portability problems.

On the other hand, workaround for "inplace" use is very simple and straightforward, so for the best portability it would be better to avoid unportable sed commands.

POSIX sed specification: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html

Suggested fix: #184

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by karlson2k (karlson2k@….com) on May 19, 2023 at 17:53 UTC

@mc-butler
Copy link
Author

Changed by karlson2k (karlson2k@….com) on May 19, 2023 at 17:53 UTC

@mc-butler
Copy link
Author

Changed by karlson2k (karlson2k@….com) on May 19, 2023 at 17:54 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 19, 2023 at 18:13 UTC (comment 1)

  • Status changed from new to accepted
  • Milestone changed from Future Releases to 4.8.30
  • Component changed from mc-core to compilation
  • Owner set to andrew_b

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 20, 2023 at 17:06 UTC (comment 2)

  • Branch state changed from no branch to on review

Branch: 4459_sed
Initial [054a051]

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 20, 2023 at 17:07 UTC (comment 3)

  • Branch state changed from on review to approved
  • Votes set to andrew_b

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 20, 2023 at 17:09 UTC (comment 4)

  • Branch state changed from approved to merged
  • Votes changed from andrew_b to committed-master
  • Status changed from accepted to testing
  • Resolution set to fixed

Merged to master: [2e3e3a3].

git log --pretty=oneline e5911c1ef..2e3e3a377

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 20, 2023 at 17:10 UTC (comment 5)

  • Status changed from testing to closed

Thanks for the patches!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Build system and (cross-)compilation prio: medium Has the potential to affect progress
Development

No branches or pull requests

2 participants