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

install -D is not portable #321

Closed
carlocab opened this issue Oct 25, 2021 · 8 comments
Closed

install -D is not portable #321

carlocab opened this issue Oct 25, 2021 · 8 comments

Comments

@carlocab
Copy link

d799fe1 changed the mkdir and install calls to install -D, but this flag is not portable. In particular, this leads to build failure on macOS (and, presumably, anywhere else that uses BSD install).

See Homebrew/homebrew-core#87971.

carlocab added a commit to chenrui333/homebrew-core that referenced this issue Oct 26, 2021
Also, remove `SED` flag, as this is no longer necessary.

The build failure has been reported at RichiH/vcsh#321.
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this issue Oct 26, 2021
* vcsh 2.0.3
* vcsh: fix build failure
  Also, remove `SED` flag, as this is no longer necessary.

  The build failure has been reported at RichiH/vcsh#321.

Closes #87971.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
@alerque
Copy link
Collaborator

alerque commented Oct 26, 2021

Oh bother and confound it all, half the point of some of my overhauls has been to improve portability, so sorry about this regression. Sometimes GNU syntax is just so temptingly BETTER! I'll try to get some CI running (perhaps on Cirrus BSD runners) so we're actually testing BSD installs on every commit.

@RichiH
Copy link
Owner

RichiH commented Oct 27, 2021

I didn't see d799fe1 come through at the time (sorry...). Most if not all of my weirdly elaborate and long-form commands are that way because that was the only POSIX/UNIX way to make them work.

See #322 for fix & new release.

@RichiH RichiH closed this as completed in 0b6f03e Oct 27, 2021
@RichiH
Copy link
Owner

RichiH commented Oct 27, 2021

@carlocab thanks for the report. Can you confirm if 2.0.4 builds for you, please?

@carlocab
Copy link
Author

Since you're already using GitHub actions, you can also run your build on macOS CI. It should be as simple as adding macos-latest here:

runs-on: ubuntu-latest

You'll probably need something like

matrix:
    os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

but I'm no expert on GitHub actions.

Can you confirm if 2.0.4 builds for you, please?

Thanks! I'll give it a try.

carlocab added a commit to carlocab/homebrew-core that referenced this issue Oct 27, 2021
The patch has been removed because it is no longer needed. See
RichiH/vcsh#321.
@carlocab
Copy link
Author

The new release works great. Thank you.

@RichiH
Copy link
Owner

RichiH commented Oct 27, 2021

@carlocab thanks for reporting & checking!

Do you want to submit a PR for the build system?

@carlocab
Copy link
Author

I've still got a lot of work at Homebrew (new macOS version just dropped), but ping me in about two weeks and I'll try and help you out with that :)

@RichiH
Copy link
Owner

RichiH commented Oct 27, 2021

I will leave it open then and try to set a reminder for myself to poke you. :)

BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this issue Oct 28, 2021
The patch has been removed because it is no longer needed. See
RichiH/vcsh#321.

Closes #88137.

Signed-off-by: rui <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
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

No branches or pull requests

3 participants