summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2016-11-08 17:39:13 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2016-11-08 17:39:13 +0000
commite715b2251e60d212c8308ab72e656faee68dbd5f (patch)
treed7c53cae146d26182ac9cf14c5b718174a2ee0dd /gnu/usr.bin/cc
parente4c19ece83833cb45b764f6404365c2f0e52c9da (diff)
Set the permissions of the specs file explicitly so that they don't
depend on the umask. Install headers and info files with group bin like all the other headers and info files. ok stefan
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r--gnu/usr.bin/cc/cc/Makefile3
-rw-r--r--gnu/usr.bin/cc/doc/Makefile4
-rw-r--r--gnu/usr.bin/cc/include/Makefile4
-rw-r--r--gnu/usr.bin/cc/libobjc/Makefile4
4 files changed, 8 insertions, 7 deletions
diff --git a/gnu/usr.bin/cc/cc/Makefile b/gnu/usr.bin/cc/cc/Makefile
index 3ab8c7e6d22..d017212cff7 100644
--- a/gnu/usr.bin/cc/cc/Makefile
+++ b/gnu/usr.bin/cc/cc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/usr.bin/cc/cc/Makefile,v 1.33.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.6 2016/09/27 19:30:01 natano Exp $
+# $OpenBSD: Makefile,v 1.7 2016/11/08 17:39:12 tb Exp $
.include <bsd.own.mk>
@@ -22,5 +22,6 @@ beforeinstall:
afterinstall:
${.OBJDIR}/cc -dumpspecs > ${DESTDIR}${SPECDIR}/specs
chown ${BINOWN}:${BINGRP} ${DESTDIR}${SPECDIR}/specs
+ chmod ${NONBINMODE} ${DESTDIR}${SPECDIR}/specs
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc/doc/Makefile b/gnu/usr.bin/cc/doc/Makefile
index 071f005908f..22cc323f9fe 100644
--- a/gnu/usr.bin/cc/doc/Makefile
+++ b/gnu/usr.bin/cc/doc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/usr.bin/cc/doc/Makefile,v 1.14.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.1 2009/10/15 20:50:20 robert Exp $
+# $OpenBSD: Makefile,v 1.2 2016/11/08 17:39:12 tb Exp $
.include <bsd.own.mk>
@@ -70,7 +70,7 @@ install: ${INFOF}
install-info --quiet --section=${INFOSECTION} --entry=${INFOENTRY_${x}} \
${x}.info ${DESTDIR}/usr/share/info/dir
.endfor
- ${INSTALL} -o ${BINOWN} -g ${LOCALEGRP} -m ${NONBINMODE} ${.ALLSRC} \
+ ${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} ${.ALLSRC} \
${DESTDIR}/usr/share/info
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc/include/Makefile b/gnu/usr.bin/cc/include/Makefile
index 66a486103ce..47f61f244c5 100644
--- a/gnu/usr.bin/cc/include/Makefile
+++ b/gnu/usr.bin/cc/include/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/usr.bin/cc/include/Makefile,v 1.9.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.12 2016/10/16 19:28:44 tb Exp $
+# $OpenBSD: Makefile,v 1.13 2016/11/08 17:39:12 tb Exp $
.include <bsd.own.mk>
@@ -52,7 +52,7 @@ prereq: unwind.h
.if !empty(INCS)
install includes: ${INCS}
- ${INSTALL} -C -o ${BINOWN} -g ${LOCALEGRP} -m ${NONBINMODE} ${.ALLSRC} \
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} \
${DESTDIR}/usr/include
.else
install includes:
diff --git a/gnu/usr.bin/cc/libobjc/Makefile b/gnu/usr.bin/cc/libobjc/Makefile
index 40613ed1ae6..a0548d8211a 100644
--- a/gnu/usr.bin/cc/libobjc/Makefile
+++ b/gnu/usr.bin/cc/libobjc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/lib/libobjc/Makefile,v 1.34.2.1 2009/08/03 08:13:06 kensmith Exp $
-# $OpenBSD: Makefile,v 1.3 2013/07/01 14:22:08 mpi Exp $
+# $OpenBSD: Makefile,v 1.4 2016/11/08 17:39:12 tb Exp $
OBJCDIR=${.CURDIR}/../../../gcc/libobjc
GCCDIR= ${.CURDIR}/../../../gcc/gcc
@@ -43,7 +43,7 @@ SRCS+= ${GENHDRS}
includes: ${INCS}
@test -d ${DESTDIR}/usr/include/objc || \
mkdir ${DESTDIR}/usr/include/objc
- ${INSTALL} -C -o ${BINOWN} -g ${LOCALEGRP} -m ${NONBINMODE} ${.ALLSRC} \
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} \
${DESTDIR}/usr/include/objc
.endif