Skip to content

Commit 1cd939a

Browse files
committed
make install: ressource files should have 644 as permissions. Closes: #8638
1 parent d71ab03 commit 1cd939a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

GNUmakefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ manpages: build-coreutils
388388
install-manpages: manpages
389389
mkdir -p $(DESTDIR)$(DATAROOTDIR)/man/man1
390390
$(foreach prog, $(INSTALLEES), \
391-
$(INSTALL) $(BUILDDIR)/man/$(PROG_PREFIX)$(prog).1 $(DESTDIR)$(DATAROOTDIR)/man/man1/ $(newline) \
391+
$(INSTALL) -m 644 $(BUILDDIR)/man/$(PROG_PREFIX)$(prog).1 $(DESTDIR)$(DATAROOTDIR)/man/man1/ $(newline) \
392392
)
393393
else
394394
install-manpages:
@@ -408,9 +408,9 @@ install-completions: completions
408408
mkdir -p $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions
409409
mkdir -p $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d
410410
$(foreach prog, $(INSTALLEES), \
411-
$(INSTALL) $(BUILDDIR)/completions/zsh/_$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/ $(newline) \
412-
$(INSTALL) $(BUILDDIR)/completions/bash/$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/ $(newline) \
413-
$(INSTALL) $(BUILDDIR)/completions/fish/$(PROG_PREFIX)$(prog).fish $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/ $(newline) \
411+
$(INSTALL) -m 644 $(BUILDDIR)/completions/zsh/_$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/ $(newline) \
412+
$(INSTALL) -m 644 $(BUILDDIR)/completions/bash/$(PROG_PREFIX)$(prog) $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/ $(newline) \
413+
$(INSTALL) -m 644 $(BUILDDIR)/completions/fish/$(PROG_PREFIX)$(prog).fish $(DESTDIR)$(DATAROOTDIR)/fish/vendor_completions.d/ $(newline) \
414414
)
415415
else
416416
install-completions:
@@ -422,7 +422,7 @@ locales:
422422
@if [ -d "$(BASEDIR)/src/uucore/locales" ]; then \
423423
mkdir -p "$(BUILDDIR)/locales/uucore"; \
424424
for locale_file in "$(BASEDIR)"/src/uucore/locales/*.ftl; do \
425-
$(INSTALL) -v "$$locale_file" "$(BUILDDIR)/locales/uucore/"; \
425+
$(INSTALL) -m 644 -v "$$locale_file" "$(BUILDDIR)/locales/uucore/"; \
426426
done; \
427427
fi; \
428428
# Copy utility-specific locales
@@ -431,7 +431,7 @@ locales:
431431
mkdir -p "$(BUILDDIR)/locales/$$prog"; \
432432
for locale_file in "$(BASEDIR)"/src/uu/$$prog/locales/*.ftl; do \
433433
if [ "$$(basename "$$locale_file")" != "en-US.ftl" ]; then \
434-
$(INSTALL) -v "$$locale_file" "$(BUILDDIR)/locales/$$prog/"; \
434+
$(INSTALL) -m 644 -v "$$locale_file" "$(BUILDDIR)/locales/$$prog/"; \
435435
fi; \
436436
done; \
437437
fi; \
@@ -444,7 +444,7 @@ install-locales:
444444
mkdir -p "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog"; \
445445
for locale_file in "$(BASEDIR)"/src/uu/$$prog/locales/*.ftl; do \
446446
if [ "$$(basename "$$locale_file")" != "en-US.ftl" ]; then \
447-
$(INSTALL) -v "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog/"; \
447+
$(INSTALL) -m 644 -v "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/$$prog/"; \
448448
fi; \
449449
done; \
450450
fi; \
@@ -460,16 +460,16 @@ ifneq ($(OS),Windows_NT)
460460
$(INSTALL) -m 755 $(BUILDDIR)/deps/libstdbuf* $(DESTDIR)$(LIBSTDBUF_DIR)/
461461
endif
462462
ifeq (${MULTICALL}, y)
463-
$(INSTALL) $(BUILDDIR)/coreutils $(INSTALLDIR_BIN)/$(PROG_PREFIX)coreutils
463+
$(INSTALL) -m 755 $(BUILDDIR)/coreutils $(INSTALLDIR_BIN)/$(PROG_PREFIX)coreutils
464464
$(foreach prog, $(filter-out coreutils, $(INSTALLEES)), \
465465
cd $(INSTALLDIR_BIN) && ln -fs $(PROG_PREFIX)coreutils $(PROG_PREFIX)$(prog) $(newline) \
466466
)
467467
$(if $(findstring test,$(INSTALLEES)), cd $(INSTALLDIR_BIN) && ln -fs $(PROG_PREFIX)coreutils $(PROG_PREFIX)[)
468468
else
469469
$(foreach prog, $(INSTALLEES), \
470-
$(INSTALL) $(BUILDDIR)/$(prog) $(INSTALLDIR_BIN)/$(PROG_PREFIX)$(prog) $(newline) \
470+
$(INSTALL) -m 755 $(BUILDDIR)/$(prog) $(INSTALLDIR_BIN)/$(PROG_PREFIX)$(prog) $(newline) \
471471
)
472-
$(if $(findstring test,$(INSTALLEES)), $(INSTALL) $(BUILDDIR)/test $(INSTALLDIR_BIN)/$(PROG_PREFIX)[)
472+
$(if $(findstring test,$(INSTALLEES)), $(INSTALL) -m 755 $(BUILDDIR)/test $(INSTALLDIR_BIN)/$(PROG_PREFIX)[)
473473
endif
474474

475475
uninstall:

0 commit comments

Comments
 (0)