From owner-freebsd-small@FreeBSD.ORG Sun Oct 29 21:21:40 2006 Return-Path: X-Original-To: freebsd-small@FreeBSD.org Delivered-To: freebsd-small@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FA4316A40F; Sun, 29 Oct 2006 21:21:40 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0CB343D4C; Sun, 29 Oct 2006 21:21:39 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 5DCC4279C0; Sun, 29 Oct 2006 22:21:38 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 718329E6C2; Sun, 29 Oct 2006 21:22:21 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 5C1EA405B; Sun, 29 Oct 2006 22:22:21 +0100 (CET) Date: Sun, 29 Oct 2006 22:22:21 +0100 From: Jeremie Le Hen To: Jean Milanez Melo Message-ID: <20061029212221.GR20405@obiwan.tataz.chchile.org> References: <20061024100641.GB20405@obiwan.tataz.chchile.org> <453DE863.7070305@freebsdbrasil.com.br> <20061024115727.GD20405@obiwan.tataz.chchile.org> <453E1FBC.5060700@freebsdbrasil.com.br> <20061025104306.GI20405@obiwan.tataz.chchile.org> <453F5271.70309@freebsdbrasil.com.br> <20061026133637.GJ20405@obiwan.tataz.chchile.org> <20061026133742.GK20405@obiwan.tataz.chchile.org> <4543DA67.4030008@freebsdbrasil.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4543DA67.4030008@freebsdbrasil.com.br> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-small@FreeBSD.org, Julian Elischer , freebsd-current@FreeBSD.org Subject: Re: Handling non-standard directories in tinybsd X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Oct 2006 21:21:40 -0000 Hi Jean, On Sat, Oct 28, 2006 at 08:32:07PM -0200, Jean Milanez Melo wrote: > Your patch was good, but i've made some changes. > > Here the patch. Take a look and tell me what do you think, if it's ok > for you i'll ask Julian to commit. Thank you for looking at it. I think this is a good idea to use BSD.local.dist, and we should certainly keep it. However, some ports create their own subdirectory in ${LOCALBASE}. While those may be converging toward a more standard hierarchy (I'm not sure about the ports policy on this particular point), so we might want to check if the directory exists. I won't argue hard for this, but it might be worth thinking about it. Otherwise, I am ok with this patch. Thank you. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-small@FreeBSD.ORG Mon Oct 30 14:32:51 2006 Return-Path: X-Original-To: freebsd-small@FreeBSD.org Delivered-To: freebsd-small@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EC5C16A412 for ; Mon, 30 Oct 2006 14:32:51 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 1EEF943D55 for ; Mon, 30 Oct 2006 14:32:45 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 3998 invoked by uid 0); 30 Oct 2006 12:33:08 -0200 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.149.10):. Processed in 1.323731 secs); 30 Oct 2006 14:33:08 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=RR47uG77JQaO5HBZwqd2LBRONO8fXPKegG58X4QCycETasSEWRCjAVj3jjnqzjBHUK7Oc4VLaXLcrOuiVYsCqrsHEmtdQ537sSOGO7AsXMUeuEJHP9yS1t8EfVvlv/ph ; Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.17.149.10) by capeta.freebsdbrasil.com.br with SMTP; 30 Oct 2006 12:33:06 -0200 Message-ID: <4545FEDF.7010804@freebsdbrasil.com.br> Date: Mon, 30 Oct 2006 11:32:15 -0200 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Jeremie Le Hen References: <20061024100641.GB20405@obiwan.tataz.chchile.org> <453DE863.7070305@freebsdbrasil.com.br> <20061024115727.GD20405@obiwan.tataz.chchile.org> <453E1FBC.5060700@freebsdbrasil.com.br> <20061025104306.GI20405@obiwan.tataz.chchile.org> <453F5271.70309@freebsdbrasil.com.br> <20061026133637.GJ20405@obiwan.tataz.chchile.org> <20061026133742.GK20405@obiwan.tataz.chchile.org> <4543DA67.4030008@freebsdbrasil.com.br> <20061029212221.GR20405@obiwan.tataz.chchile.org> In-Reply-To: <20061029212221.GR20405@obiwan.tataz.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-small@FreeBSD.org, freebsd-current@FreeBSD.org, Julian Elischer Subject: Re: Handling non-standard directories in tinybsd X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2006 14:32:51 -0000 Jeremie Le Hen wrote: > Hi Jean, > > On Sat, Oct 28, 2006 at 08:32:07PM -0200, Jean Milanez Melo wrote: >> Your patch was good, but i've made some changes. >> >> Here the patch. Take a look and tell me what do you think, if it's ok >> for you i'll ask Julian to commit. > > Thank you for looking at it. I think this is a good idea to use > BSD.local.dist, and we should certainly keep it. However, some > ports create their own subdirectory in ${LOCALBASE}. While those > may be converging toward a more standard hierarchy (I'm not sure > about the ports policy on this particular point), so we might want > to check if the directory exists. I won't argue hard for this, > but it might be worth thinking about it. > > Otherwise, I am ok with this patch. > > Thank you. > Regards, Jeremie, I think in this way it will be better. I'll do a patch to check application directory with config files. BTW, thanks for your work. Julian, could you commit this patch? Thanks. Jean From owner-freebsd-small@FreeBSD.ORG Mon Oct 30 19:50:32 2006 Return-Path: X-Original-To: freebsd-small@freebsd.org Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D8716A5FC; Mon, 30 Oct 2006 19:50:32 +0000 (UTC) (envelope-from prvs=julian=45182861c@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 718B243D49; Mon, 30 Oct 2006 19:50:28 +0000 (GMT) (envelope-from prvs=julian=45182861c@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 30 Oct 2006 11:50:27 -0800 Message-ID: <45465784.8040908@elischer.org> Date: Mon, 30 Oct 2006 11:50:28 -0800 From: Julian Elischer User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Jean Milanez Melo References: <20061024100641.GB20405@obiwan.tataz.chchile.org> <453DE863.7070305@freebsdbrasil.com.br> <20061024115727.GD20405@obiwan.tataz.chchile.org> <453E1FBC.5060700@freebsdbrasil.com.br> <20061025104306.GI20405@obiwan.tataz.chchile.org> <453F5271.70309@freebsdbrasil.com.br> <20061026133637.GJ20405@obiwan.tataz.chchile.org> <20061026133742.GK20405@obiwan.tataz.chchile.org> <4543DA67.4030008@freebsdbrasil.com.br> <20061029212221.GR20405@obiwan.tataz.chchile.org> <4545FEDF.7010804@freebsdbrasil.com.br> In-Reply-To: <4545FEDF.7010804@freebsdbrasil.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Julian Elischer , freebsd-small@freebsd.org Subject: Re: Handling non-standard directories in tinybsd X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2006 19:50:32 -0000 Jean Milanez Melo wrote: > Jeremie Le Hen wrote: >> Hi Jean, >> >> On Sat, Oct 28, 2006 at 08:32:07PM -0200, Jean Milanez Melo wrote: >>> Your patch was good, but i've made some changes. >>> >>> Here the patch. Take a look and tell me what do you think, if it's ok >>> for you i'll ask Julian to commit. >> >> Thank you for looking at it. I think this is a good idea to use >> BSD.local.dist, and we should certainly keep it. However, some >> ports create their own subdirectory in ${LOCALBASE}. While those >> may be converging toward a more standard hierarchy (I'm not sure >> about the ports policy on this particular point), so we might want >> to check if the directory exists. I won't argue hard for this, >> but it might be worth thinking about it. >> >> Otherwise, I am ok with this patch. >> >> Thank you. >> Regards, > > Jeremie, > > I think in this way it will be better. I'll do a patch to check > application directory with config files. BTW, thanks for your work. > > Julian, could you commit this patch? committed > > Thanks. > Jean > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-small@FreeBSD.ORG Wed Nov 1 13:42:49 2006 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59A8116A403 for ; Wed, 1 Nov 2006 13:42:49 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 4A78F43D4C for ; Wed, 1 Nov 2006 13:42:36 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 21194 invoked by uid 0); 1 Nov 2006 11:42:54 -0200 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.149.10):. Processed in 0.529369 secs); 01 Nov 2006 13:42:54 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=XtLW9QYIRvCX6i2lL67uW58Q3cN/tuz2n7kJdwXe87hgCcp7YMmL1GwAPQF1flqO9zQ/2z1Yt1taAOEyRzI7eclRRKPuV+mo3Vxjvozr71IsuJDw9QCM2dMPAkpENvSt ; Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.17.149.10) by capeta.freebsdbrasil.com.br with SMTP; 1 Nov 2006 11:42:53 -0200 Message-ID: <45489618.2000106@freebsdbrasil.com.br> Date: Wed, 01 Nov 2006 10:42:00 -0200 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: small@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: [HEADSUP] TinyBSD and ports applications X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2006 13:42:49 -0000 Hello, I have completly redone the routines for third party applications install, I thought that initial way of doing things as Jeremied had idealized was not very good, and I decided to make it better. Now what I have do works this way: The TinyBSD user will populate the conf//tinybsd.ports file listing the port name (in category/port) he wants to be installed on his tinybsd system, just like: category/application say, for example: www/mini_httpd So based on this information tinybsd will have the path for the port, will cd to that directory, check for the package name with "make -V PKGNAME" and later, run pkg_info to check from its exit code wether the port is installed or not. If not locally installed, tinybsd will "make install" this port in the local system, else (it already locally installed) tinybsd will skip to missing_dir function. On missing_dir function it checks for all directories which are not automatically generated from BSD.local.dist, if the directory does not exist it will "mkdir -p" it under /usr/local PREFIX on TinyBSD workdir, creating on the TinyBSD image the necessary directories hierarchy. Later it goes to copy_ports function where it checks for the applications the port installs, with pkg_info, and updates a listing excluding all things unecessary to a an embedded system, say, all data installed under www,doc,share,include,man (which just makes no sense existing on an embedded system, and would only demand useless storage space). This listing will be called /tmp/ports.files, and will contain all files that need to be added to the tinybsd system the user is building. Later, copy_libraries function will copy all necessary libraries to the image as well, just like the main idea behind the whole TinyBSD. Finally, deinstall_ports will deinstall the port from the local system if and only if it was not installed. It the port was already installed, obviously tinybsd won't remove it from the local system. I believe this is the most efficient way to handle third parties applications on embedded system. At least the easiest way for the users. They can always, of course add or remove binaries or modules themselves, but now we have a subsystem on tinybsd which does the hard work. Julian's just committed the patch and i would like to hear some feedback from you. This latest patchset is fully tested. I built some tinybsd systems from it today. About TinyBSD documentation, we are updating it on tinyBSD website regarding everything that is new, and will soon sgml it. - Jean From owner-freebsd-small@FreeBSD.ORG Wed Nov 1 19:11:02 2006 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F56016A403 for ; Wed, 1 Nov 2006 19:11:02 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 5E0B843D73 for ; Wed, 1 Nov 2006 19:10:51 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 49164 invoked by uid 0); 1 Nov 2006 17:11:11 -0200 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.149.10):. Processed in 0.521302 secs); 01 Nov 2006 19:11:11 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=TqAWESMHqmhtOGZcZ4LYkDs6n9d/qPwHg4zitH87y9ryjMBUHt0S4nL3UPrJzz6UABTkmyxwi53IbfbRMpHWZW+fsUWUnAts6twgFpCxngcRiPFdyxpWS6CJurpIjFOl ; Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.17.149.10) by capeta.freebsdbrasil.com.br with SMTP; 1 Nov 2006 17:11:11 -0200 Message-ID: <4548E309.2030208@freebsdbrasil.com.br> Date: Wed, 01 Nov 2006 16:10:17 -0200 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: small@freebsd.org References: <45489618.2000106@freebsdbrasil.com.br> In-Reply-To: <45489618.2000106@freebsdbrasil.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: [HEADSUP] TinyBSD and ports applications X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2006 19:11:02 -0000 Jean Milanez Melo wrote: > > Julian's just committed the patch and i would like to hear some feedback > from you. > > If you don't use CURRENT, you can download TinyBSD CURRENT at: http://www.tinybsd.org/download/tinybsd-CURRENT.tar.gz Jean From owner-freebsd-small@FreeBSD.ORG Wed Nov 1 19:41:33 2006 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A985916A415; Wed, 1 Nov 2006 19:41:33 +0000 (UTC) (envelope-from prvs=julian=453a8fdc9@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7270643D45; Wed, 1 Nov 2006 19:41:33 +0000 (GMT) (envelope-from prvs=julian=453a8fdc9@elischer.org) Received: from unknown (HELO [192.168.2.4]) ([10.251.60.34]) by a50.ironport.com with ESMTP; 01 Nov 2006 11:41:33 -0800 Message-ID: <4548F86C.5000506@elischer.org> Date: Wed, 01 Nov 2006 11:41:32 -0800 From: Julian Elischer User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Jean Milanez Melo References: <45489618.2000106@freebsdbrasil.com.br> <4548E309.2030208@freebsdbrasil.com.br> In-Reply-To: <4548E309.2030208@freebsdbrasil.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: small@freebsd.org, current@freebsd.org Subject: Re: [HEADSUP] TinyBSD and ports applications X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2006 19:41:33 -0000 Jean Milanez Melo wrote: > Jean Milanez Melo wrote: >> >> Julian's just committed the patch and i would like to hear some >> feedback from you. >> >> > > If you don't use CURRENT, you can download TinyBSD CURRENT at: > > http://www.tinybsd.org/download/tinybsd-CURRENT.tar.gz warning, the README is a bit innacurate as to the arguments.. check the usage statement. > > Jean > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-small@FreeBSD.ORG Thu Nov 2 16:49:04 2006 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB64916A407; Thu, 2 Nov 2006 16:49:03 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5062143D5C; Thu, 2 Nov 2006 16:48:58 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 00EEF5DCD; Thu, 2 Nov 2006 17:48:58 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 740059E6C2; Thu, 2 Nov 2006 16:49:38 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 67A9C405B; Thu, 2 Nov 2006 17:49:38 +0100 (CET) Date: Thu, 2 Nov 2006 17:49:38 +0100 From: Jeremie Le Hen To: Jean Milanez Melo Message-ID: <20061102164938.GU20405@obiwan.tataz.chchile.org> References: <45489618.2000106@freebsdbrasil.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45489618.2000106@freebsdbrasil.com.br> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: small@freebsd.org, current@freebsd.org Subject: Re: [fbsd] [HEADSUP] TinyBSD and ports applications X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 16:49:04 -0000 Hi Jean, On Wed, Nov 01, 2006 at 10:42:00AM -0200, Jean Milanez Melo wrote: > I have completly redone the routines for third party applications > install, I thought that initial way of doing things as Jeremied had > idealized was not very good, and I decided to make it better. > > Now what I have do works this way: > > The TinyBSD user will populate the conf//tinybsd.ports file > listing the port name (in category/port) he wants to be installed on his > tinybsd system, just like: > > category/application > > say, for example: > > www/mini_httpd > > So based on this information tinybsd will have the path for the port, > will cd to that directory, check for the package name with "make -V > PKGNAME" and later, run pkg_info to check from its exit code wether the > port is installed or not. > > If not locally installed, tinybsd will "make install" this port in the > local system, else (it already locally installed) tinybsd will skip to > missing_dir function. > > On missing_dir function it checks for all directories which are not > automatically generated from BSD.local.dist, if the directory does not > exist it will "mkdir -p" it under /usr/local PREFIX on TinyBSD workdir, > creating on the TinyBSD image the necessary directories hierarchy. > > Later it goes to copy_ports function where it checks for the > applications the port installs, with pkg_info, and updates a listing > excluding all things unecessary to a an embedded system, say, all data > installed under www,doc,share,include,man (which just makes no sense > existing on an embedded system, and would only demand useless storage > space). This listing will be called /tmp/ports.files, and will contain > all files that need to be added to the tinybsd system the user is building. > > Later, copy_libraries function will copy all necessary libraries to the > image as well, just like the main idea behind the whole TinyBSD. > > Finally, deinstall_ports will deinstall the port from the local system > if and only if it was not installed. It the port was already installed, > obviously tinybsd won't remove it from the local system. > > I believe this is the most efficient way to handle third parties > applications on embedded system. At least the easiest way for the users. > They can always, of course add or remove binaries or modules themselves, > but now we have a subsystem on tinybsd which does the hard work. > > Julian's just committed the patch and i would like to hear some feedback > from you. > > This latest patchset is fully tested. I built some tinybsd systems from > it today. > > About TinyBSD documentation, we are updating it on tinyBSD website > regarding everything that is new, and will soon sgml it. I read the description thoroughly. This is interesting and neat, but I am anxious about stale dependencies left by "temporary-installed" ports. For instance, lets's you're building a TinyBSD image with net/nemesis which depends on net/libnet10. You neither have this later port installed. The current TinyBSD implementation will leave net/libnet10 installed on the build system, although I agree this is more a problem relatde to port infrastructure which doesn't record whether a port is an implied dependency or has been explicitely installed by the user. AFAIK. A workaround could be to null-mount the ports directory into the temporary folder were the TinyBSD image is built, then chroot into this folder and install the port from here. Afterward you would remove www,doc,share,include,man stuff. I'm not sure if the gain is worth coding. This is maybe going to be fixed in the ports infrastructure. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-small@FreeBSD.ORG Thu Nov 2 18:17:53 2006 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18F3116A403; Thu, 2 Nov 2006 18:17:53 +0000 (UTC) (envelope-from matteo@freebsd.org) Received: from vsmtp3.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3262943D8B; Thu, 2 Nov 2006 18:17:40 +0000 (GMT) (envelope-from matteo@freebsd.org) Received: from kaiser.sig11.org (87.8.189.203) by vsmtp3.tin.it (7.2.072.1) id 453F6B07002E2EE3; Thu, 2 Nov 2006 19:17:18 +0100 Received: from kaiser.sig11.org (rionda@localhost [127.0.0.1]) by kaiser.sig11.org (8.13.8/8.13.8) with ESMTP id kA2IHEws042520; Thu, 2 Nov 2006 19:17:17 +0100 (CET) (envelope-from matteo@freebsd.org) Received: (from rionda@localhost) by kaiser.sig11.org (8.13.8/8.13.8/Submit) id kA2IH15k042517; Thu, 2 Nov 2006 19:17:01 +0100 (CET) (envelope-from matteo@freebsd.org) X-Authentication-Warning: kaiser.sig11.org: rionda set sender to matteo@freebsd.org using -f Date: Thu, 2 Nov 2006 19:17:00 +0100 From: Matteo Riondato To: Jeremie Le Hen Message-ID: <20061102181700.GC30863@kaiser.sig11.org> References: <45489618.2000106@freebsdbrasil.com.br> <20061102164938.GU20405@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GID0FwUMdk1T2AWN" Content-Disposition: inline In-Reply-To: <20061102164938.GU20405@obiwan.tataz.chchile.org> User-Agent: Mutt/1.4.2.2i Cc: small@freebsd.org, current@freebsd.org Subject: Re: [fbsd] [HEADSUP] TinyBSD and ports applications X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 18:17:53 -0000 --GID0FwUMdk1T2AWN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 02, 2006 at 05:49:38PM +0100, Jeremie Le Hen wrote: > A workaround could be to null-mount the ports directory into the > temporary folder were the TinyBSD image is built, then chroot into > this folder and install the port from here. Afterward you would > remove www,doc,share,include,man stuff. This is similar to what freesbie does when the installports plugin is used. Note that if you really want a small image, you should remove build dependencies for the ports you installed. Best regards --=20 Matteo Riondato FreeBSD Committer (http://www.freebsd.org) G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org) --GID0FwUMdk1T2AWN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFSjYc2Mp4pR7Fa+wRAnvmAJ4tOydObIu7bMwCtdKNL0T7N4U1vwCgtiY9 90G8UvWguWP3c10nR3sfTbk= =6Pf8 -----END PGP SIGNATURE----- --GID0FwUMdk1T2AWN-- From owner-freebsd-small@FreeBSD.ORG Thu Nov 2 20:58:47 2006 Return-Path: X-Original-To: small@FreeBSD.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60ADB16A403; Thu, 2 Nov 2006 20:58:47 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBF8B43D45; Thu, 2 Nov 2006 20:58:46 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 75ED05D19; Thu, 2 Nov 2006 21:58:45 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id B75C99E6C2; Thu, 2 Nov 2006 20:59:25 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id A39A8405B; Thu, 2 Nov 2006 21:59:25 +0100 (CET) Date: Thu, 2 Nov 2006 21:59:25 +0100 From: Jeremie Le Hen To: Matteo Riondato Message-ID: <20061102205925.GX20405@obiwan.tataz.chchile.org> References: <45489618.2000106@freebsdbrasil.com.br> <20061102164938.GU20405@obiwan.tataz.chchile.org> <20061102181700.GC30863@kaiser.sig11.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061102181700.GC30863@kaiser.sig11.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: ports@freebsd.org, current@freebsd.org, small@FreeBSD.org Subject: Re: Implicit port tag (was: [HEADSUP] TinyBSD and ports applications) X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 20:58:47 -0000 Hi, (Cc'ed to ports@) On Thu, Nov 02, 2006 at 07:17:00PM +0100, Matteo Riondato wrote: > On Thu, Nov 02, 2006 at 05:49:38PM +0100, Jeremie Le Hen wrote: > > For instance, lets's you're building a TinyBSD image with > > net/nemesis which depends on net/libnet10. You neither have this > > later port installed. The current TinyBSD implementation will > > leave net/libnet10 installed on the build system, although I agree > > this is more a problem relatde to port infrastructure which doesn't > > record whether a port is an implied dependency or has been > > explicitely installed by the user. AFAIK. > > > > A workaround could be to null-mount the ports directory into the > > temporary folder were the TinyBSD image is built, then chroot into > > this folder and install the port from here. Afterward you would > > remove www,doc,share,include,man stuff. > > This is similar to what freesbie does when the installports plugin is > used. Note that if you really want a small image, you should remove Would it be possible to add a tag to ports that have been implicitely installed because of a dependency, either for build-time or run-time ? Cheers, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-small@FreeBSD.ORG Fri Nov 3 14:29:20 2006 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AB7D16A407 for ; Fri, 3 Nov 2006 14:29:20 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 6815243D66 for ; Fri, 3 Nov 2006 14:29:10 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 36674 invoked by uid 0); 3 Nov 2006 12:29:26 -0200 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.149.10):. Processed in 0.525306 secs); 03 Nov 2006 14:29:26 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=v/BZgWBnwx7BXsBY+RkyDqZ1g7N/wy1jrD7ulr1eENDSAgZmalsCMC+/XDmtD9ryPRhw5cb4u9cwQVPQi3FWfyR+4yIA2z4lbaiCP68h8/f+wm7Hmeeby3BybMhLNrRJ ; Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.17.149.10) by capeta.freebsdbrasil.com.br with SMTP; 3 Nov 2006 12:29:25 -0200 Message-ID: <454B43FA.9090303@freebsdbrasil.com.br> Date: Fri, 03 Nov 2006 11:28:26 -0200 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Jeremie Le Hen References: <45489618.2000106@freebsdbrasil.com.br> <20061102164938.GU20405@obiwan.tataz.chchile.org> In-Reply-To: <20061102164938.GU20405@obiwan.tataz.chchile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: small@freebsd.org, current@freebsd.org Subject: Re: [fbsd] [HEADSUP] TinyBSD and ports applications X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 14:29:20 -0000 Jeremie Le Hen wrote: > I read the description thoroughly. This is interesting and neat, > but I am anxious about stale dependencies left by > "temporary-installed" ports. > > For instance, lets's you're building a TinyBSD image with > net/nemesis which depends on net/libnet10. You neither have this > later port installed. The current TinyBSD implementation will > leave net/libnet10 installed on the build system, although I agree > this is more a problem relatde to port infrastructure which doesn't > record whether a port is an implied dependency or has been > explicitely installed by the user. AFAIK. > > A workaround could be to null-mount the ports directory into the > temporary folder were the TinyBSD image is built, then chroot into > this folder and install the port from here. Afterward you would > remove www,doc,share,include,man stuff. > > I'm not sure if the gain is worth coding. This is maybe going to > be fixed in the ports infrastructure. > Yes, that is the question related to ports, i'll follow your advice, i'll make some tests in a nullfs and if everything works fine we can change the install_ports function. Jean From owner-freebsd-small@FreeBSD.ORG Fri Nov 3 14:40:12 2006 Return-Path: X-Original-To: small@freebsd.org Delivered-To: freebsd-small@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A7FB16A403 for ; Fri, 3 Nov 2006 14:40:12 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 7947543D83 for ; Fri, 3 Nov 2006 14:39:59 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 37885 invoked by uid 0); 3 Nov 2006 12:40:20 -0200 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.149.10):. Processed in 0.528205 secs); 03 Nov 2006 14:40:20 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=Ulv/8hWhST2azh4/qsxgq6Fbl8l0GDB8ilL3yHHmXfLD4X74ecvG2FEEiMv4NOsKXscWtSOZWz0Q2XNM9FxyE9CE1CeYTK/bGnsxmWw3V7zsA9tTrP7apzAf0H2kGGrx ; Received: from unknown (HELO ?10.69.69.66?) (jmelo@201.17.149.10) by capeta.freebsdbrasil.com.br with SMTP; 3 Nov 2006 12:40:20 -0200 Message-ID: <454B4680.20108@freebsdbrasil.com.br> Date: Fri, 03 Nov 2006 11:39:12 -0200 From: Jean Milanez Melo User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Matteo Riondato References: <45489618.2000106@freebsdbrasil.com.br> <20061102164938.GU20405@obiwan.tataz.chchile.org> <20061102181700.GC30863@kaiser.sig11.org> In-Reply-To: <20061102181700.GC30863@kaiser.sig11.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: small@freebsd.org, current@freebsd.org Subject: Re: [fbsd] [HEADSUP] TinyBSD and ports applications X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 14:40:12 -0000 Matteo Riondato wrote: > On Thu, Nov 02, 2006 at 05:49:38PM +0100, Jeremie Le Hen wrote: >> A workaround could be to null-mount the ports directory into the >> temporary folder were the TinyBSD image is built, then chroot into >> this folder and install the port from here. Afterward you would >> remove www,doc,share,include,man stuff. > > This is similar to what freesbie does when the installports plugin is > used. Note that if you really want a small image, you should remove > build dependencies for the ports you installed. > > Best regards True, the tinybsd is already doing this. The script does not copy any ports build deps to workdir :) Jean