Project

General

Profile

Actions

Bug #961

closed

Slight change to /usr/src/etc/Makefile?

Added by dave1 almost 17 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I'd like to propose the following change to /usr/src/etc/Makefile
as part of "make upgrade". What this does is allow one to say

make upgrade ETC_UPGRADE_ONLY=1

so that the upgrade process only affects files in /etc and doesn't
try to do anything else.

RCS file: /home/DragonFly/cvs-mirror/src/etc/Makefile,v
retrieving revision 1.211
diff u -u -r1.211 Makefile
--
Makefile 2 Feb 2008 18:24:00 -0000 1.211
+++ Makefile 5 Mar 2008 01:09:00 -0000
@ -127,9 +127,11 @
pw -V ${DESTDIR}/etc groupadd _sdpd -g 70

upgrade_etc:   preupgrade remove-obsolete-files
.if !defined(ETC_UPGRADE_ONLY)
.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
cd ${UPGRADE_SRCDIR}/../share/mk; ${MAKE} install
.endif
.endif
cd ${UPGRADE_SRCDIR}; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${BINUPDATE} ${DESTDIR}/etc; \
@ -169,6 +171,8 @
.endif
.endfor
.endif
.if !defined(ETC_UPGRADE_ONLY)
# Counting on the fact that no other ETC upgrade stuff appears below this line
.if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
cd ${UPGRADE_SRCDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${FREEBSD} ${DESTDIR}/
@ -269,6 +273,8 @
.endif
.endif
.endif
# the below line matches .if defined(ETC_UPGRADE_ONLY)
.endif
distribution:
cd ${.CURDIR}; \
Actions #1

Updated by tuxillo over 15 years ago

What is the general opinion about this?
make upgrade has changed a bit in last year it seems.

Actions #2

Updated by dillon over 15 years ago

I don't think there was enough interest in limiting make upgrade to /etc. The
recent addition of DEVFS means make upgrade no longer has to mess with devices,
which was the biggest annoyance people had with it.

-Matt

Actions

Also available in: Atom PDF