Skip to content

Commit d28719a

Browse files
staticfloatgiordano
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 <765740+giordano@users.noreply.github.com>
1 parent 3452f92 commit d28719a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ endif
382382
cp -R -L $(JULIAHOME)/base/* $(DESTDIR)$(datarootdir)/julia/base
383383
cp -R -L $(JULIAHOME)/test/* $(DESTDIR)$(datarootdir)/julia/test
384384
cp -R -L $(build_datarootdir)/julia/* $(DESTDIR)$(datarootdir)/julia
385+
386+
# Set .jl sources as read-only to match package directories
387+
find $(DESTDIR)$(datarootdir)/julia/base -type f -name \*.jl -exec chmod 0444 '{}' \;
388+
find $(DESTDIR)$(datarootdir)/julia/test -type f -name \*.jl -exec chmod 0444 '{}' \;
389+
385390
# Copy documentation
386391
cp -R -L $(BUILDROOT)/doc/_build/html $(DESTDIR)$(docdir)/
387392
# Remove various files which should not be installed

0 commit comments

Comments
 (0)