You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing a situation where executable files in the root directory are no longer executable in the target directory after running ./gradlew applyPatches
Here's my config:
plugins {
id 'uk.jamierocks.propatcher' version '1.2.3'
id 'java'
}
patches {
root = file("${buildDir}/tensorflow") // This is a directory
target = file("${buildDir}/tensorflow.patched") // This is also a directory
patches = file('patches') // This is again a directory
}
There is a single patch in the patch directory.
build@tensorflow-build:/src/acadia/tensorflow_gradle$ ls -l patches/
total 4
-rw-r--r-- 1 build build 1572 Jan 8 21:55 build_raspberry_pi.sh.patch.txt
./gradlew applyPatches results in the execute bit being lost on all executable files in the target directory. For example:
in the root directory:
-rwxr-xr-x 1 build build 231 Jan 9 14:13 configure
in the target directory:
-rw-r--r-- 1 build build 231 Jan 9 14:13 configure
As of Java 7, file permissions are exposed (see journaldev) - however, as different operating systems have different forms of file permission (e.g. Windows has it own attributes system).
Therefor, I have decided to omit supporting this as the default functionality as it won't work everywhere. However, I have added a copyPosixPermissions field for the propatcher extension for enabling the functionality.
I have not made a release with these changes yet, as I won't have time to get them tested until some point in the weekend (I might have time to test on Saturday, but if not Sunday). However, I have pushed the commit (d6dbbf4) should you want to test it out yourself - I can provide instructions on doing that if you'd like ;)
I am experiencing a situation where executable files in the root directory are no longer executable in the target directory after running
./gradlew applyPatches
Here's my config:
There is a single patch in the patch directory.
./gradlew applyPatches
results in the execute bit being lost on all executable files in the target directory. For example:in the root directory:
-rwxr-xr-x 1 build build 231 Jan 9 14:13 configure
in the target directory:
-rw-r--r-- 1 build build 231 Jan 9 14:13 configure
umask shows:
so I don't believe that is the issue. Any ideas? Thanks.
The text was updated successfully, but these errors were encountered: