gradle / gradle-native

The home of Gradle's support for natively compiled languages
https://blog.gradle.org/introducing-the-new-cpp-plugins
Apache License 2.0
92 stars 8 forks source link

Binaries on Linux should be relocatable within the install package #930

Closed lacasseio closed 5 years ago

lacasseio commented 5 years ago

Expected Behavior

Test coverage showing that once an application is installed the original binaries can be deleted while keeping the installed application working.

Moreover, the binaries fetched from cache should work when installed in a different location.

Current Behavior

macOS handle relocation even though we have absolute paths in the binary. However, Linux is true to the absolute path and will fail if the original binaries can't be found.

Context

Steps to Reproduce (for bugs)

Your Environment

lacasseio commented 5 years ago

PR: https://github.com/gradle/gradle/pull/6176 contains what needs to be fixed.

big-guy commented 5 years ago

@lacasseio I left comments on the PR