NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/58200: ./makeobsolete uses platform's sed



>Number:         58200
>Category:       toolchain
>Synopsis:       ./makeobsolete uses platform's sed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 26 15:35:00 +0000 2024
>Originator:     Kouichi Hashikawa
>Release:        NetBSD-current, 10
>Organization:
>Environment:
>Description:
When building, src/distrib/set/makeobsolete uses platform's sed.
(actual place of using sed is at src/distrib/set/sets.subr).


do-obsolete ===> .
install-obsolete-lists ===> etc
mkdir -p /usr/obj/buildobs/obj/usr/obj/c/src/etc/obsolete.dir
(cd /usr/src/c/src/distrib/sets &&  AWK=/usr/obj/c/buildobs/tools/bin/nbawk MAKE=/usr/obj/c/buildobs/tools/bin/nbmake /bin/sh ./makeobsolete -b -t /usr/obj/c/buildobs/obj/current/netbsd/c/src/etc/obsolete.dir)
>How-To-Repeat:
always.
>Fix:
I think,

--- src/etc/Makefile-146621	2023-12-01 12:32:36.507114386 +0900
+++ src/etc/Makefile	2024-04-26 08:35:02.282337963 +0900
@@ -393,10 +393,10 @@
 	mkdir -p ${OBSOLETE.dir}
 .if ${MKX11} != "no"
 	(cd ${NETBSDSRCDIR}/distrib/sets && \
-	    AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -b -t ${OBSOLETE.dir})
+	    AWK=${TOOL_AWK:Q} SED=${TOOL_SED:Q} MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -b -t ${OBSOLETE.dir})
 .else
 	(cd ${NETBSDSRCDIR}/distrib/sets && \
-	    AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -t ${OBSOLETE.dir})
+	    AWK=${TOOL_AWK:Q} SED=${TOOL_SED:Q} MAKE=${MAKE:Q} ${HOST_SH} ./makeobsolete -t ${OBSOLETE.dir})
 .endif
 .for file in ${OBSOLETE.files}
 	${_MKMSG_INSTALL} ${DESTDIR}/var/db/obsolete/${file}



Home | Main Index | Thread Index | Old Index