Skip to content

execute bit lost in target directory #4

@ddresser

Description

@ddresser

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

umask shows:

build@tensorflow-build:/src/acadia/tensorflow_gradle$ umask
0022

so I don't believe that is the issue. Any ideas? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions