Subject: port-hp300/17960: rbootd sources not in release
To: None <gnats-bugs@gnats.netbsd.org>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: netbsd-bugs
Date: 08/17/2002 11:54:53
>Number:         17960
>Category:       port-hp300
>Synopsis:       rbootd.tgz not in hp300 release as notes claim
>Confidential:   yes
>Severity:       serious
>Priority:       low
>Responsible:    port-hp300-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 16 16:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gregory McGarry
>Release:        NetBSD 1.6
>Organization:
	
>Environment:

NetBSD 1.6 & -current

>Description:

The release notes claim that the rbootd sources are available with the
release to allow hp300 network installs from non-NetBSD hosts.  In previous
releases the sources must have been copied over by hand.

It is uncertain whether we should even bother providing our sources
since they aren't really portable to non-NetBSD hosts anyway.  So the
options are:

o provide the sources (see patch below) and not bother about its
  portability,

o consider making our sources more portable (there is at least one other
  open PR on rbootd portability issues), or

o nuke all references to rbootd sources in the install notes and only
  support NetBSD hosts.

Users of the hp700 port may have opinions on the matter too.

>How-To-Repeat:

Try compiling the rbootd sources on a non-NetBSD host.

>Fix:

This patch was submitted to a release engineer early in the 1.6
release cycle, but disappeared in transit.

Index: Makefile
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/rbootd/Makefile,v
retrieving revision 1.8
diff -u -b -p -r1.8 Makefile
--- Makefile	2000/04/13 08:52:44	1.8
+++ Makefile	2002/08/16 23:36:13
@@ -10,4 +10,17 @@ CPPFLAGS+=-DHAVE_IFADDRS_H
 LDADD+=	-lutil
 DPADD+=	${LIBUTIL}
 
+
+.include <bsd.own.mk>
+
+OBJDIR!=	${PRINTOBJDIR}
+SRCFILES=	${SRCS} defs.h pathnames.h rmp.h rmp_var.h Makefile
+CLEANFILES+=	${PROG}.tar.gz
+
+release: check_RELEASEDIR
+	cd ${.CURDIR}/.. && ${PAX} -zwx tar -f ${OBJDIR}/${PROG}.tgz \
+	  ${SRCFILES:S/^/rbootd\//g}
+	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \
+		${OBJDIR}/${PROG}.tgz ${RELEASEDIR}/installation/misc
+
 .include <bsd.prog.mk>
Index: Makefile.inc
===================================================================
RCS file: /cvsroot/basesrc/etc/etc.hp300/Makefile.inc,v
retrieving revision 1.16
diff -u -b -p -r1.16 Makefile.inc
--- Makefile.inc	2002/05/02 15:09:43	1.16
+++ Makefile.inc	2002/08/16 23:38:47
@@ -22,4 +22,5 @@ snap_md_post:
 	cd ${.CURDIR}/../distrib/miniroot && ${MAKE} release
 	cd ${.CURDIR}/../sys/arch/hp300/stand && \
 	  ${MAKE} depend && ${MAKE} && ${MAKE} release
-	${MAKESUMS} -t ${RELEASEDIR}/installation/misc 'SYS*'
+	cd ${.CURDIR}/../usr.sbin/rbootd && ${MAKE} release
+	${MAKESUMS} -t ${RELEASEDIR}/installation/misc 'SYS* rbootd.tgz'

>Release-Note:
>Audit-Trail:
>Unformatted: