Skip to content

Commit 2c15c61

Browse files
committed
unix: normalize permissions for libtcl*.a, libtk*.a, and libTix*.a
The files were executable and didn't have owner write bit set. Let's use a reasonable file mask.
1 parent 16fbd08 commit 2c15c61

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

cpython-unix/build-tcl.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ CFLAGS="-fPIC -I${TOOLS_PATH}/deps/include" ./configure \
4040
make -j ${NUM_CPUS}
4141
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out
4242
make -j ${NUM_CPUS} install-private-headers DESTDIR=${ROOT}/out
43+
44+
# For some reason libtcl*.a have weird permissions. Fix that.
45+
chmod 644 ${ROOT}/out/tools/deps/lib/libtcl*.a

cpython-unix/build-tix.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ CFLAGS="${CFLAGS}" ./configure \
4141

4242
make -j ${NUM_CPUS}
4343
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out
44+
45+
# For some reason libtk*.a have weird permissions. Fix that.
46+
chmod 644 ${ROOT}/out/tools/deps/lib/Tix*/libTix*.a

cpython-unix/build-tk.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@ make -j ${NUM_CPUS}
4646
touch wish
4747
make -j ${NUM_CPUS} install DESTDIR=${ROOT}/out
4848
make -j ${NUM_CPUS} install-private-headers DESTDIR=${ROOT}/out
49+
50+
# For some reason libtk*.a have weird permissions. Fix that.
51+
chmod 644 /${ROOT}/out/tools/deps/lib/libtk*.a
52+
4953
rm ${ROOT}/out/tools/deps/bin/wish*

0 commit comments

Comments
 (0)