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

Give sed POSIX-compliant input to remove the need for gsed. Add FreeBSD support. #546

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mtbakerguy
Copy link

This is the first of two patches that make it easier to run shiny-server on FreeBSD.

@mtbakerguy
Copy link
Author

mtbakerguy commented Jan 29, 2023

/^.*"version": .*$/!d;s/",//;s/^.*"//

Delete every line w/o the version in it; drop the trailing ", and all the characters through the final double quote.

@mtbakerguy
Copy link
Author

The second patch could be simpler but FreeBSD's deprecated procfs: https://man.freebsd.org/cgi/man.cgi?query=procfs&sektion=5

@mtbakerguy
Copy link
Author

Forgot to mention the delete[] newargs; change was a fixup for a minor issue the clang compiler found.

@goshkis
Copy link

goshkis commented Feb 3, 2023

Nice. +1 to have it in.

@mtbakerguy mtbakerguy changed the title Give sed POSIX-compliant input to remove the need for gsed. Give sed POSIX-compliant input to remove the need for gsed. Add FreeBSD support. Oct 6, 2023
@noamross
Copy link

noamross commented Apr 7, 2024

@mtbakerguy I've been looking for a way to install Shiny Server on FreeBSD, based on your posts here and on the Posit forum it seems you have it figured it out. Besides making the changes in this PR, have you written down anywhere the steps taken to do so? I'd be most grateful! 🙏

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.

3 participants