From owner-freebsd-arch@FreeBSD.ORG Wed Nov 30 07:45:53 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27F3216A41F for ; Wed, 30 Nov 2005 07:45:53 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id D704943D5C for ; Wed, 30 Nov 2005 07:45:50 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 92343 invoked by uid 399); 29 Nov 2005 12:59:10 -0000 Received: from localhost (HELO ?192.168.0.5?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 29 Nov 2005 12:59:10 -0000 Message-ID: <438C509D.9070905@FreeBSD.org> Date: Tue, 29 Nov 2005 04:59:09 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-arch@freebsd.org, freebsd-ports@FreeBSD.org X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: [Fwd: Adding /usr/local/etc/rc.d to the base rcorder] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 07:45:53 -0000 I sent the following message to the -rc list this morning. I'm interested in any input that you might have as well. I'd prefer followups to the -rc list, but if you feel more comfortable responding to _one_ of the lists above, I'll follow that discussion as well. Thanks, Doug -------- Original Message -------- Subject: Adding /usr/local/etc/rc.d to the base rcorder Date: Tue, 29 Nov 2005 03:13:37 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ To: freebsd-rc@FreeBSD.org Howdy, The idea to incorporate the scripts in the local startup directories (currently defined as /usr/local/etc/rc.d /usr/X11R6/etc/rc.d, or substitute whatever your PREFIX/LOCALBASE/X11BASE is), into the overall rcorder that the scripts in /etc/rc.d follow has been around basically since the new rc.d framework was introduced, but has been very difficult to implement. A thread on the freebsd-rc list back in June discussed the ramifications of this change, and how it might possibly be implemented safely. Since then, I've put together a set of patches that implement one approach to this change. Now that 6.0-RELEASE is done, I'd like to move fairly quickly in implementing this in HEAD, and once the bogons are shaken out, I'd like to MFC it to RELENG_6 prior to 6.1-RELEASE. I want to point out several things at the outset. This is _one_ possible approach to this problem. One that I believe will work well, and minimizes the pain of the transition. However, I am not necessarily tied into every detail of my patch, or even the approach generally. However, we need to move forward on this, and without compelling reasons to do things differently, I am confident that this approach will work. 1. In order for this to work, we need to first get the disks mounted. (Thanks to Brooks for this, and other important insights). Therefore I'm proposing that we split the rcorder function into two parts, one "early" stage that takes care of everything up to mountcritremote; then redo rcorder, skipping the scripts that were done in the early stage, and incorporating the scripts in /usr/local/etc/rc.d, etc. This is not a "perfect" approach, as theoretically some cases where a local package might want to insert itself into rcorder before mountcritremote, however given the various tradeoffs we have to make (for example, diskless booting), this is at least a reasonable place to start. Compare http://people.freebsd.org/~dougb/rcorder.all and http://people.freebsd.org/~dougb/rcorder.early to see how the ordering as it exists in HEAD at the moment would be affected. Of 127 scripts, 52 would be in the early stage. (/etc/rc.d/tmp is being forced into the early stage by my patch in order to avoid non-deterministic behavior when local scripts are added to rcorder. This could just as easily be forced into the late stage.) My method for implementing the distinction between the early boot stage and the later is derived from an idea suggested by J.R. Oldroyd. It stops processing in the early stage once mountcritremote is done. The "late" stage first finds scripts in the local directories, then runs rcorder again over both lists. It starts processing after mountcritremote is reached. 2. The next aspect of this plan is how to manage the transition for the ports. There are two phases to this. First, adding code to /etc/rc (and rc.subr) to pick up those scripts in local_startup that are ready to be added to rcorder. This is done by grep'ing for '^# PROVIDE:' in the script. This method is not entirely foolproof, as for example the cups.sh startup script is (from our perspective) an "old style" script, however it contains the PROVIDE line for NetBSD's purposes. Thus, some care will have to be taken during the transition period to avoid problems. By my count, there are roughly 640 ports that install some sort of startup script. Of these, roughly 345 have transitioned to the new style of rc.d scripts (based on the presence of USE_RCORDER/USE_RC_SUBR in the Makefile). Thus, there are roughly 300 ports with scripts that would _potentially_ have problems. Of these, I'm confident that the vast majority would work without modification, as the number of possibly fatal error conditions are very small. The situation with cups.sh above is the only one I've encountered, but there may be others. There are two more potential problems with the new style scripts that are already in the ports tree. First, there are probably some scripts that have errors in them that will not be exposed until they are run within the rcorder context. The other problems that are almost sure to arise are scripts whose ordering needs to be adjusted (via REQUIRE/BEFORE, etc.). These things will need to happen in order for the transition to be successful in any case, so although it is sure to be a non-zero amount of work, it's work that will have to be done regardless of what method is chosen to incorporate the local_startup scripts into rcorder. The other part of this transition is to modify the localpkg script. This is done using some ideas and code from J.R. Oldroyd. Brooks, and myself. First we sort out the scripts that start with a number (like 000.foo.sh) and run them in numerical order, as a lot of work has gone into this style of ordering already. Then we run the scripts that start with a letter. The original idea here was to use rcorder in localpkg, however in my testing I found that it's simpler to just run the new style scripts in the base rcorder, and run everything else in localpkg. Therefore, the function that searches for these scripts eliminates any that use the new rc.d style first. These changes dramatically simplify the localpkg script. 3. The last part of this proposal is to apply the same changes to how we pick up local scripts in rc to the shutdown process, both in rc.shutdown and in localpkg. My patch to implement all this is at http://people.freebsd.org/~dougb/local-rcorder.diff. Comments are welcome. Regards, Doug -- This .signature sanitized for your protection -- This .signature sanitized for your protection From owner-freebsd-arch@FreeBSD.ORG Fri Dec 2 06:23:54 2005 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E16F16A420 for ; Fri, 2 Dec 2005 06:23:54 +0000 (GMT) (envelope-from vbhanu@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1D3E43D49 for ; Fri, 2 Dec 2005 06:23:53 +0000 (GMT) (envelope-from vbhanu@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so999wri for ; Thu, 01 Dec 2005 22:23:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=huJ7AKoac2kf3kksN0CcDL3Zyx62+AComAJcl6erfb5LWCqAF/3RfmNJDSpFJgXP7/REndUZBA506vIgHD+WdBPF4YIpTWFtlg9oEjtkdta2wbJZOgzAXMpmVUP3UZN4rlW5VBCHJyKP73UiJf+lWxiz7DBbglbxQ2pRmvVYsvw= Received: by 10.65.197.18 with SMTP id z18mr1298092qbp; Thu, 01 Dec 2005 22:23:21 -0800 (PST) Received: by 10.65.235.20 with HTTP; Thu, 1 Dec 2005 22:23:21 -0800 (PST) Message-ID: <950bc01d0512012223g34083957s8250079a6aeccf39@mail.gmail.com> Date: Fri, 2 Dec 2005 11:53:21 +0530 From: Bhanu Chandra To: phk@freebsd.org, arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: Looking for a project to get started with kernel programming X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 06:23:54 -0000 Dear, I went through http://people.freebsd.org/~phk/TODO/ and found some inetersting projects. The one that i found the most captivating is the "Kernel stack depth warning" project. I am a student and I am interested in Operating Systems and intend to take up Research in the same field. You can find my resume in vairous formats at http://home.iitk.ac.in/~vbhanu . I have been a consistent performer in academics and am very much motivated to work on projects related to Operating Systems to get hands on experience. If for some reason you cannot give the above said project to me then please suggest other projects that you can. Anticipating a positive reply, Thank you, V Bhanu Chandra Third Year Undergraduate (B. Tech.) Dept of Computer Science and Engineering. Indian Institute of Technology Kanpur. Kanpur. India From owner-freebsd-arch@FreeBSD.ORG Fri Dec 2 06:32:25 2005 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DB0116A41F; Fri, 2 Dec 2005 06:32:25 +0000 (GMT) (envelope-from julian@elischer.org) Received: from delight.idiom.com (outbound.idiom.com [216.240.47.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6A2F43D4C; Fri, 2 Dec 2005 06:32:22 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 668B6228A3C; Thu, 1 Dec 2005 22:32:22 -0800 (PST) Received: from [192.168.2.5] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id jB26WMoH016841; Thu, 1 Dec 2005 22:32:22 -0800 (PST) (envelope-from julian@elischer.org) Message-ID: <438FEA75.9040901@elischer.org> Date: Thu, 01 Dec 2005 22:32:21 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bhanu Chandra References: <950bc01d0512012223g34083957s8250079a6aeccf39@mail.gmail.com> In-Reply-To: <950bc01d0512012223g34083957s8250079a6aeccf39@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org Subject: Re: Looking for a project to get started with kernel programming X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 06:32:25 -0000 Bhanu Chandra wrote: >Dear, > >I went through http://people.freebsd.org/~phk/TODO/ and found some >inetersting projects. The one that i found the most captivating is the >"Kernel stack depth warning" project. I am a student and I am >interested in Operating Systems and intend to take up Research in the >same field. You can find my resume in vairous formats at >http://home.iitk.ac.in/~vbhanu . > >I have been a consistent performer in academics and am very much >motivated to work on projects related to Operating Systems to get >hands on experience. > >If for some reason you cannot give the above said project to me then >please suggest other projects that you can. > > >Anticipating a positive reply, > > you don't need to ask for a project.. just start, and tell us that you are doing it. >Thank you, > >V Bhanu Chandra >Third Year Undergraduate (B. Tech.) >Dept of Computer Science and Engineering. >Indian Institute of Technology Kanpur. >Kanpur. >India >_______________________________________________ >freebsd-arch@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-arch >To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" > > From owner-freebsd-arch@FreeBSD.ORG Fri Dec 2 15:06:41 2005 Return-Path: X-Original-To: arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA23016A41F; Fri, 2 Dec 2005 15:06:41 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2C9243D53; Fri, 2 Dec 2005 15:06:40 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F66F.dip.t-dialin.net [84.165.246.111]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id jB2Eda8O034510; Fri, 2 Dec 2005 15:39:36 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id jB2F6WW5008571; Fri, 2 Dec 2005 16:06:32 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 02 Dec 2005 16:06:32 +0100 Message-ID: <20051202160632.2r44gowajowsw88g@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 02 Dec 2005 16:06:32 +0100 From: Alexander Leidinger To: Julian Elischer References: <950bc01d0512012223g34083957s8250079a6aeccf39@mail.gmail.com> <438FEA75.9040901@elischer.org> In-Reply-To: <438FEA75.9040901@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: Bhanu Chandra , joel@FreeBSD.org, arch@FreeBSD.org Subject: Re: Looking for a project to get started with kernel programming X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 15:06:41 -0000 Julian Elischer wrote: >> I went through http://people.freebsd.org/~phk/TODO/ and found some >> inetersting projects. The one that i found the most captivating is the >> "Kernel stack depth warning" project. > you don't need to ask for a project.. > just start, and tell us that you are doing it. Additionally: if you wait a couple of days (maybe next week), you will be able to choose from a much larger set of projects. We're about to commit a list of projects for volunteers. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 People who push both buttons should get their wish. From owner-freebsd-arch@FreeBSD.ORG Fri Dec 2 22:12:38 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 340A516A41F for ; Fri, 2 Dec 2005 22:12:38 +0000 (GMT) (envelope-from o_sleep@belovedarctos.com) Received: from einstein.baruch.cuny.edu (einstein.baruch.cuny.edu [150.210.155.52]) by mx1.FreeBSD.org (Postfix) with SMTP id 9145943D45 for ; Fri, 2 Dec 2005 22:12:37 +0000 (GMT) (envelope-from o_sleep@belovedarctos.com) Received: (qmail 30879 invoked by uid 27); 2 Dec 2005 22:12:36 -0000 Received: from 10.1.2.45 by einstein (envelope-from , uid 82) with qmail-scanner-1.25 (clamdscan: 0.86.2/1107. Clear:RC:1(10.1.2.45):. Processed in 0.036804 secs); 02 Dec 2005 22:12:36 -0000 X-Qmail-Scanner-Mail-From: o_sleep@belovedarctos.com via einstein X-Qmail-Scanner: 1.25 (Clear:RC:1(10.1.2.45):. Processed in 0.036804 secs) Received: from unknown (HELO ?10.1.2.45?) (10.1.2.45) by einstein.baruch.cuny.edu with SMTP; 2 Dec 2005 22:12:36 -0000 Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-arch@freebsd.org From: Bjorn Nelson Date: Fri, 2 Dec 2005 17:12:35 -0500 X-Mailer: Apple Mail (2.746.2) Subject: local ports category X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 22:12:38 -0000 All, I propose a new port category called local or site. This would not get updated with the cvsup, but would allow people to have a place to put ports that they want to keep internal to their site. I am currently exporting a ports tree to a bunch of other hosts and it would be handy if I could just put ports for our proprietary apps in there and not worry about keeping a forked bsd.port.mk. Sincerely, Bjorn Nelson From owner-freebsd-arch@FreeBSD.ORG Fri Dec 2 23:09:28 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 262BF16A41F for ; Fri, 2 Dec 2005 23:09:28 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF18243D46 for ; Fri, 2 Dec 2005 23:09:27 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jB2N9MnD018534; Fri, 2 Dec 2005 15:09:22 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jB2N9Mxh018533; Fri, 2 Dec 2005 15:09:22 -0800 Date: Fri, 2 Dec 2005 15:09:22 -0800 From: Brooks Davis To: Bjorn Nelson Message-ID: <20051202230922.GA32621@odin.ac.hmc.edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-arch@freebsd.org Subject: Re: local ports category X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 23:09:28 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 02, 2005 at 05:12:35PM -0500, Bjorn Nelson wrote: >=20 > I propose a new port category called local or site. This would not =20 > get updated with the cvsup, but would allow people to have a place to =20 > put ports that they want to keep internal to their site. I am =20 > currently exporting a ports tree to a bunch of other hosts and it =20 > would be handy if I could just put ports for our proprietary apps in =20 > there and not worry about keeping a forked bsd.port.mk. You can add your own categories by setting VALID_CATEGORIES=3D in /etc/make.conf. A more interesing addition from my perspective would the ability to add new non-virtual categories with a single variable. Perhaps EXTRA_PHYSICAL_CATEGORIES would be a good choice with an EXTRA_VIRTUAL_CATEGORIES as well for symetry. Both could be added to VALID_CATEGORIES and EXTRA_PHYSICAL_CATEGORIES could be added to SUBDIR in ${PORTSDIR}/Makefile. -- Brooks P.S. freebsd-ports would probably be a better place to discuss this. --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDkNQhXY6L6fI4GtQRAno4AJ9WNkSZuiSIyoNe+0+TIeOhfR44TwCdECzZ XCYPuImhOrBBvXukijoK+AI= =fwOq -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--