Bug #961

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

Added by dave1 over 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


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
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
@@ -169,6 +171,8 @@
+.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 \
@@ -269,6 +273,8 @@
+# the below line matches .if defined(ETC_UPGRADE_ONLY)

cd ${.CURDIR}; \


#1 Updated by tuxillo over 6 years ago

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

#2 Updated by dillon over 6 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.


Also available in: Atom PDF