src-install.sh and compat/opensolaris/

Ruslan Ermilov ru at FreeBSD.org
Thu Nov 8 13:55:33 PST 2007


On Wed, Nov 07, 2007 at 04:59:45PM +0800, Mars G Miro wrote:
> Hiya
> 
>   I think there might be a need to add 'compat' in $dists in
> src-install.sh. When the src is extracted from the ISO, compat is left
> out and buildworld fails at:
> 
> mkdep -f .depend -a
> -I/usr/src/cddl/lib/libnvpair/../../../sys/compat/opensolaris
> -I/usr/src/cddl/lib/libnvpair/../../../include
> -I/usr/src/cddl/lib/libnvpair/../../../sys/contrib/opensolaris/uts/common
> -D_SOLARIS_C_SOURCE
> /usr/src/cddl/lib/libnvpair/../../../contrib/opensolaris/lib/libnvpair/libnvpair.c
> /usr/src/cddl/lib/libnvpair/../../../contrib/opensolaris/lib/libnvpair/nvpair_alloc_system.c
> /usr/src/cddl/lib/libnvpair/../../../sys/contrib/opensolaris/common/nvpair/nvpair_alloc_fixed.c
> /usr/src/cddl/lib/libnvpair/../../../sys/contrib/opensolaris/common/nvpair/nvpair.c
> ===> cddl/lib/libumem (depend)
> make: don't know how to make umem.c. Stop
> *** Error code 2
> 
> Stop in /usr/src/cddl/lib.
> *** Error code 1
> 
> because there's no more cddl/ [0]. Of course when csupping it can be
> checked out but for those that do not csup, they may not be able to
> rebuild their world. For instance, I have a 7.0-PRERELEASE box and not
> able to rebuild my world using the 7.0-BETA2 src from the ISO.
> 
> Thanks ;-)

Try the attached patch.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
Index: release/scripts/src-install.sh
===================================================================
RCS file: /home/ncvs/src/release/scripts/src-install.sh,v
retrieving revision 1.11
diff -u -p -r1.11 src-install.sh
--- release/scripts/src-install.sh	28 Jun 2007 18:26:35 -0000	1.11
+++ release/scripts/src-install.sh	8 Nov 2007 21:11:45 -0000
@@ -11,8 +11,8 @@ if [ $# -lt 1 ]; then
 	echo "You must specify which components of src to extract"
 	echo "possible subcomponents are:"
 	echo
-	echo "base bin cddl contrib crypto etc games gnu include krb5 lib"
-	echo "libexec release rescue sbin secure share sys tools ubin"
+	echo "base bin cddl compat contrib crypto etc games gnu include krb5"
+	echo "lib libexec release rescue sbin secure share sys tools ubin"
 	echo "usbin"
 	echo
 	echo "You may also specify all to extract all subcomponents."
@@ -20,7 +20,7 @@ if [ $# -lt 1 ]; then
 fi
 
 if [ "$1" = "all" ]; then
-	dists="base bin cddl contrib crypto etc games gnu include krb5 lib libexec release rescue sbin secure share sys tools ubin usbin"
+	dists="base bin cddl compat contrib crypto etc games gnu include krb5 lib libexec release rescue sbin secure share sys tools ubin usbin"
 else
 	dists="$*"
 fi
Index: usr.sbin/sysinstall/dist.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/sysinstall/dist.c,v
retrieving revision 1.250
diff -u -p -r1.250 dist.c
--- usr.sbin/sysinstall/dist.c	8 Nov 2007 15:40:40 -0000	1.250
+++ usr.sbin/sysinstall/dist.c	8 Nov 2007 21:14:17 -0000
@@ -109,6 +109,7 @@ static Distribution KernelDistTable[] = 
 static Distribution SrcDistTable[] = {
     DTE_TARBALL("sbase",    &SrcDists, SRC_BASE,    "/usr/src"),
     DTE_TARBALL("scddl",    &SrcDists, SRC_CDDL,    "/usr/src"),
+    DTE_TARBALL("scompat",  &SrcDists, SRC_COMPAT,  "/usr/src"),
     DTE_TARBALL("scontrib", &SrcDists, SRC_CONTRIB, "/usr/src"),
     DTE_TARBALL("scrypto",  &SrcDists, SRC_SCRYPTO, "/usr/src"),
     DTE_TARBALL("sgnu",	    &SrcDists, SRC_GNU,	    "/usr/src"),
Index: usr.sbin/sysinstall/dist.h
===================================================================
RCS file: /home/ncvs/src/usr.sbin/sysinstall/dist.h,v
retrieving revision 1.68
diff -u -p -r1.68 dist.h
--- usr.sbin/sysinstall/dist.h	8 Nov 2007 15:40:40 -0000	1.68
+++ usr.sbin/sysinstall/dist.h	8 Nov 2007 21:13:45 -0000
@@ -44,6 +44,7 @@
 #define DIST_SRC_SKERBEROS5	0x40000
 #define DIST_SRC_RESCUE		0x80000
 #define DIST_SRC_CDDL		0x100000
+#define DIST_SRC_COMPAT		0x200000
 #define DIST_SRC_ALL		0x1FFFFF
 
 /* Subtypes for X.Org packages */
Index: usr.sbin/sysinstall/menus.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/sysinstall/menus.c,v
retrieving revision 1.426
diff -u -p -r1.426 menus.c
--- usr.sbin/sysinstall/menus.c	8 Nov 2007 15:40:40 -0000	1.426
+++ usr.sbin/sysinstall/menus.c	8 Nov 2007 21:15:30 -0000
@@ -1066,6 +1066,8 @@ DMenu MenuSrcDistributions = {
 	dmenuFlagCheck,	dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_BASE },
       { " cddl",	"/usr/src/cddl (software from Sun)",
 	dmenuFlagCheck,	dmenuSetFlag, NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CDDL },
+      { " compat",	"/usr/src/compat (compatibility software)",
+	dmenuFlagCheck,	dmenuSetFlag,	NULL, &SrcDists, '[', 'X', ']', DIST_SRC_COMPAT },
       { " contrib",	"/usr/src/contrib (contributed software)",
 	dmenuFlagCheck,	dmenuSetFlag,	NULL, &SrcDists, '[', 'X', ']', DIST_SRC_CONTRIB },
       { " crypto",	"/usr/src/crypto (contrib encryption sources)",


More information about the freebsd-stable mailing list