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

649: SKARA will not build/install without termcap #830

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -188,6 +188,7 @@ if [ "${OS}" = "Linux" ]; then
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export TERM=${TERM:-dumb}
Copy link

@ghost ghost Sep 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TERM=dumb will work as a workaround (dropping the fancy progress bar) but TERM not being set is not the proper condition for lack of termcap support (e.g. when terminfo is used and TERM set accordingly).

Copy link
Member Author

@edvbld edvbld Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phedlin I'm not sure that there is a way to determine whether a process uses termcap or terminfo, do you know of a reliable way? I think the best we can do here is to add some documentation to README.md, instructing the user to run sh gradlew --console=plain as a workaround. Or do you have any other suggestions?

Copy link
Member Author

@edvbld edvbld Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phedlin I might have a way to default to --console=plain while still allowing Skara developers to opt-in to a more fancy console. Can you please try building with sh gradlew --console=plain and see if it works on your system?

Copy link

@ghost ghost Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JAVA_HOME=~/local/jdk14-import/build/linux-aarch64/images/jdk sh ./gradlew --console=plain

FAILURE: Build failed with an exception.

* What went wrong:
Could not open terminal for stdout: could not get termcap entry

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

fi

exec "${GRADLE_LAUNCHER}" "$@"