Skip to content

Commit c7f5f2d

Browse files
staticfloatKristofferC
authored and
KristofferC
committed
Set .jl sources as read-only during installation (#55524)
This sets all `.jl` files in `$(prefix)/base` and `$(prefix)/test` to have `0444` permissions, to better match how `Pkg` installs packages (and sets them to be read-only). Fixes JuliaLang/juliaup#865 --------- Co-authored-by: Mosè Giordano <[email protected]> (cherry picked from commit 62e7705)
1 parent f4eda2d commit c7f5f2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@ endif
370370
cp -R -L $(JULIAHOME)/base/* $(DESTDIR)$(datarootdir)/julia/base
371371
cp -R -L $(JULIAHOME)/test/* $(DESTDIR)$(datarootdir)/julia/test
372372
cp -R -L $(build_datarootdir)/julia/* $(DESTDIR)$(datarootdir)/julia
373+
374+
# Set .jl sources as read-only to match package directories
375+
find $(DESTDIR)$(datarootdir)/julia/base -type f -name \*.jl -exec chmod 0444 '{}' \;
376+
find $(DESTDIR)$(datarootdir)/julia/test -type f -name \*.jl -exec chmod 0444 '{}' \;
377+
373378
# Copy documentation
374379
cp -R -L $(BUILDROOT)/doc/_build/html $(DESTDIR)$(docdir)/
375380
# Remove various files which should not be installed

0 commit comments

Comments
 (0)