From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 00:24:07 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7166F16A402 for ; Sun, 13 May 2007 00:24:07 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id EF43F13C45D for ; Sun, 13 May 2007 00:24:06 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hn1sO-0001d9-UI for freebsd-hackers@freebsd.org; Sun, 13 May 2007 02:23:53 +0200 Received: from 89-172-56-80.adsl.net.t-com.hr ([89.172.56.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 May 2007 02:23:52 +0200 Received: from ivoras by 89-172-56-80.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 May 2007 02:23:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sun, 13 May 2007 02:23:41 +0200 Lines: 37 Message-ID: References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8BA5732858CAA00DAB10578A" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-56-80.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <20070512222435.GA28981@xor.obsecurity.org> X-Enigmail-Version: 0.94.3.0 Sender: news Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 00:24:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8BA5732858CAA00DAB10578A Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kris Kennaway wrote: > It seems to me that you do not appreciate the reasons behind this > conservatism. A very important one is that we have two students who > have committed to spending their summer working on improving the > existing pkg_tools in ways that will solve some of the real problems > we are facing, and the project we have agreed upon is that they will > be using existing tools rather than rewriting from scratch as part of > a not-yet-defined larger project. So change their project :) I'm only half-serious but SoC hasn't officialy started yet and Google's ok with projects' goals being modified. Of course, the students should decide. --------------enig8BA5732858CAA00DAB10578A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGRlqNldnAQVacBcgRAnt6AKDHWVoh/drJf6v3JZykCutybk7z3ACcCzF6 qsmhOS4e3Y7QpyRcalBTDcI= =xdjV -----END PGP SIGNATURE----- --------------enig8BA5732858CAA00DAB10578A-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 04:06:44 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 27EAC16A400 for ; Sun, 13 May 2007 04:06:44 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.freebsd.org (Postfix) with ESMTP id E624713C448 for ; Sun, 13 May 2007 04:06:43 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from ip01.eastlink.ca ([24.222.10.5]) by mta02.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0JHY000DKOR38JT0@mta02.eastlink.ca> for freebsd-hackers@freebsd.org; Sun, 13 May 2007 01:06:39 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO dwpc.dwlabs.ca) ([24.224.199.230]) by ip01.eastlink.ca with ESMTP; Sun, 13 May 2007 00:36:49 -0300 Received: from dwpc.dwlabs.ca (www.dwlabs.ca [192.168.0.10]) by dwpc.dwlabs.ca (8.13.8/8.13.8) with ESMTP id l4D46paL007734; Sun, 13 May 2007 01:06:57 -0300 (ADT envelope-from duane@dwpc.dwlabs.ca) Received: (from duane@localhost) by dwpc.dwlabs.ca (8.13.8/8.13.8/Submit) id l4D46pEa007733; Sun, 13 May 2007 01:06:51 -0300 (ADT envelope-from duane) Date: Sun, 13 May 2007 01:06:51 -0300 From: Duane Whitty To: Garrett Cooper Message-id: <20070513040651.GB1017@dwpc.dwlabs.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAIQrRkYY4MfmdGdsb2JhbACBXI5a X-IronPort-AV: i="4.14,526,1170648000"; d="scan'208"; a="213609271:sNHT38670516" X-Virus-Scanned: ClamAV 0.88.6/3231/Sat May 12 12:57:12 2007 on dwpc.dwlabs.ca X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on dwpc.dwlabs.ca User-Agent: Mutt/1.4.2.2i X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Cc: freebsd-hackers@freebsd.org Subject: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 04:06:44 -0000 Garrett, Sounds like you're involved in a cool project. What kind of community collaboration/involvement would be helpful to you? Once, a long, long time ago, I wrote quite a bit of bdb 1.85 code. At that time it WAS the current version :) I might actually remember a bit if I start working with it again. But what would be most useful to you? And if I may ask about a design decision: Why did you choose a hash structure? Perhaps if you have time you could give a little more info but whatever fits your schedule. Good luck on your project. Duane From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 04:22:45 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 42B1816A405 for ; Sun, 13 May 2007 04:22:44 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.freebsd.org (Postfix) with ESMTP id 130EA13C458 for ; Sun, 13 May 2007 04:22:43 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from ip01.eastlink.ca ([24.222.10.5]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0JHY00FADPHVJJI0@mta01.eastlink.ca> for freebsd-hackers@freebsd.org; Sun, 13 May 2007 01:22:43 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO dwpc.dwlabs.ca) ([24.224.199.230]) by ip01.eastlink.ca with ESMTP; Sun, 13 May 2007 00:52:53 -0300 Received: from dwpc.dwlabs.ca (imap.dwlabs.ca [192.168.0.10]) by dwpc.dwlabs.ca (8.13.8/8.13.8) with ESMTP id l4D4MtUp007790; Sun, 13 May 2007 01:23:01 -0300 (ADT envelope-from duane@dwpc.dwlabs.ca) Received: (from duane@localhost) by dwpc.dwlabs.ca (8.13.8/8.13.8/Submit) id l4D4Mto2007789; Sun, 13 May 2007 01:22:55 -0300 (ADT envelope-from duane) Date: Sun, 13 May 2007 01:22:54 -0300 From: Duane Whitty In-reply-to: <4643E10A.5030104@u.washington.edu> To: Garrett Cooper Message-id: <20070513042254.GC1017@dwpc.dwlabs.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAFQuRkYY4MfmdGdsb2JhbACBXI5a X-IronPort-AV: i="4.14,526,1170648000"; d="scan'208"; a="213616729:sNHT203212152" X-Virus-Scanned: ClamAV 0.88.6/3231/Sat May 12 12:57:12 2007 on dwpc.dwlabs.ca X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on dwpc.dwlabs.ca References: <200705102105.27271.blackdragon@highveldmail.co.za> <4643E10A.5030104@u.washington.edu> User-Agent: Mutt/1.4.2.2i X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Cc: freebsd-hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 04:22:46 -0000 On Thursday, 10 May 2007 at 20:20:42 -0700, Garrett Cooper wrote: > David Naylor wrote: > >Dear Jordan > > > >Recently I stumbled across a document you wrote in 2001, entitled "FreeBSD > >installation and package tools, past, present and future". I find FreeBSD > >appealing and I would like to contribute it its success, and as your > >article describes, the installation and packaging system is lacking. > >Since the installation system is being tackled under a SoC project I am > >hoping to give the packaging system a go. > > > >I was hoping you could help me with an update about the situation with > >pkg. I have searched the FreeBSD mailing lists and have found little > >information on the package system. Once I have a (much more) complete > >understanding of the packaging system (and providing there is work to be > >done) I would like to write up a proposal to solve the problems, and > >perhaps provide some innovating new capabilities. > > > >After that I will gladly contribute what I can to this (possible) project > >and hopefully further and improve FreeBSD. Any assistance or information > >you can give I will be greatly appreciate. > > > >I look forward to your reply. > > > >David > > Yipes. The name of the game is to get something working in the base > system, instead of dragging in multiple 3rd party packages, with > licensing schemes that may not be aligned with the BSD license. > > SQL's great, SQL's wonderful for db use, but the problem is that > supporting it from my POV would cause a lot more grief and waiting than > having me wait a few months to get a BDB compatible scheme out the door. > I'm a little out of practice, however, perhaps the routines that manipulate the ports meta-data could be sufficiently agnostic about how the data is being manipulated that it would facilitate experimentation with different back-ends at a later time. Just a thought and perhaps I'm way off. Duane > If only Oracle didn't make BDB 3.x non-BSD license friendly though.. > that would be nice.. > > -Garrett > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 08:14:36 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADE0E16A405 for ; Sun, 13 May 2007 08:14:36 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (imap.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 2243C13C469 for ; Sun, 13 May 2007 08:14:35 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l4D7kH4I029484; Sun, 13 May 2007 08:46:18 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l4D7kH4I029484 Message-ID: <4646C249.6070103@infracaninophile.co.uk> Date: Sun, 13 May 2007 08:46:17 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Kris Kennaway References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> In-Reply-To: <20070512222435.GA28981@xor.obsecurity.org> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 13 May 2007 08:46:28 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.2/3235/Sun May 13 07:12:17 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, DK_POLICY_SIGNSOME, NO_RELAYS, UPPERCASE_25_50 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 08:14:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Kris Kennaway wrote: > The problem is that maintaining the INDEX is expensive and/or tricky. > p5-FreeBSD-Portindex comes close but seems to have some wrinkles. If you'ld just tell me what you perceive the wrinkles to be, then I'd have a fighting chance at addressing them, which I would be glad to do... Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGRsJI8Mjk52CukIwRCCK/AJ0YAGY7HWil/8Lctfr8N4dVfPXUdwCfQeDQ q38/HxnVPoTNBcM25eWWNh8= =y8AK -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 08:44:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D994B16A402 for ; Sun, 13 May 2007 08:44:05 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id C61CE13C43E for ; Sun, 13 May 2007 08:44:05 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 492731A3C19; Sun, 13 May 2007 01:44:53 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DA8E552C45; Sun, 13 May 2007 04:44:04 -0400 (EDT) Date: Sun, 13 May 2007 04:44:04 -0400 From: Kris Kennaway To: Matthew Seaman Message-ID: <20070513084404.GA35648@xor.obsecurity.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> <4646C249.6070103@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4646C249.6070103@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 08:44:05 -0000 On Sun, May 13, 2007 at 08:46:17AM +0100, Matthew Seaman wrote: > Kris Kennaway wrote: > > > The problem is that maintaining the INDEX is expensive and/or tricky. > > p5-FreeBSD-Portindex comes close but seems to have some wrinkles. > > If you'ld just tell me what you perceive the wrinkles to be, then I'd > have a fighting chance at addressing them, which I would be glad to do... I only looked today so I didn't have time to fully investigate things, which is why you didn't hear from me directly yet :) Basically there are some differences (extra whitespace, etc) that are cosmetic but which make validation against the full INDEX build more difficult, but the major one seems to be that ports that change their name dynamically (depending on e.g. installed ports detected, or changes in build options) do not seem to have this reflected in the incremental index. Kris From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 09:21:24 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97D2816A403 for ; Sun, 13 May 2007 09:21:24 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.freebsd.org (Postfix) with ESMTP id 19E0D13C447 for ; Sun, 13 May 2007 09:21:24 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [85.21.245.235] (helo=phonon.SpringDaemons.com) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1HnAGY-0005yZ-2L; Sun, 13 May 2007 13:21:22 +0400 Received: from localhost (localhost [127.0.0.1]) by phonon.SpringDaemons.com (Postfix) with SMTP id 3471911403; Sun, 13 May 2007 13:20:07 +0400 (MSD) Date: Sun, 13 May 2007 13:20:02 +0400 From: Stanislav Sedov To: Ivan Voras Message-Id: <20070513132002.dbb26f31.stas@FreeBSD.org> In-Reply-To: References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070512155059.92011d54.stas@FreeBSD.org> <4645AFAF.7010704@free.fr> <20070512165053.8e53f5a3.stas@FreeBSD.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-ICQ: 208105021 X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__13_May_2007_13_20_02_+0400_rdFMYXYIKmZcsU9." X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.6.0 Cc: freebsd-hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 09:21:24 -0000 --Signature=_Sun__13_May_2007_13_20_02_+0400_rdFMYXYIKmZcsU9. Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Sat, 12 May 2007 16:26:53 +0200 Ivan Voras mentioned: > Stanislav Sedov wrote: > > > I agree, that there's a lot of ready tools for parsing xml, but why > > not use much simple language that can be parsed by sed or awk in few > > lines? > > Because of mindshare. Young people know SQL and XML, but not grep. > > And this way we should replace all handy tools with XML and SQL? FreeBSD isn't for moderate user, there's Mac, Win and Linux for him. Of course, we can have additional tools for use in ports and distributions like PC-BSD, but this shouldn't became mainstream, since the system will become unusable for ordinal people like me. What FreeBSD was always proud of is the perfectionism everywhere, so we don't introduce new complexity where is doesn't needed. Yup, young people often use PHP, SQL, probably wsh. It doesn't mean we should replace /bin/sh by php, for example, thought a lot (in fact 99 % in hosting enviropments, where I work) use php to perform greps, file operations, sending mail, etc. I'll definitely don't like such system. If people want, they can always write an SQL/XML backend to ordinal tools and use it (I beleive, it's not very hard to implement SQLite-like interface to any existing database and make a converter to transform ordinal configuration structures to XML if it's simplier to read to someone). E.g. I use dbm hash to store configuration information in security/pam_af for fast lookup, and have XML-like interface to it. -- Stanislav Sedov ST4096-RIPE --Signature=_Sun__13_May_2007_13_20_02_+0400_rdFMYXYIKmZcsU9. Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGRthCK/VZk+smlYERAmAsAJ9nQvw5z82RV1e4+6a3/4zVTb0fxgCcC3Ba LhnT1xWiTFmzqRKyBQK1ZZ4= =i6ly -----END PGP SIGNATURE----- --Signature=_Sun__13_May_2007_13_20_02_+0400_rdFMYXYIKmZcsU9.-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 09:39:19 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D300F16A400 for ; Sun, 13 May 2007 09:39:19 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.freebsd.org (Postfix) with ESMTP id 563D513C4AD for ; Sun, 13 May 2007 09:39:19 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [85.21.245.235] (helo=phonon.SpringDaemons.com) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1HnAXt-0000Kd-UB; Sun, 13 May 2007 13:39:18 +0400 Received: from localhost (localhost [127.0.0.1]) by phonon.SpringDaemons.com (Postfix) with SMTP id C144A11403; Sun, 13 May 2007 13:38:00 +0400 (MSD) Date: Sun, 13 May 2007 13:38:00 +0400 From: Stanislav Sedov To: Bert JW Regeer Message-Id: <20070513133800.defd8c51.stas@FreeBSD.org> In-Reply-To: <8916C4D5-4DB5-49C0-AF8D-07F9FFA0A6E0@0x58.com> References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070512155059.92011d54.stas@FreeBSD.org> <4645AFAF.7010704@free.fr> <8916C4D5-4DB5-49C0-AF8D-07F9FFA0A6E0@0x58.com> Organization: The FreeBSD Project X-Mailer: carrier-pigeon X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-ICQ: 208105021 X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__13_May_2007_13_38_00_+0400_2b7zIYn+2ezDyfxY" X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.6.0 Cc: freebsd-hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 09:39:20 -0000 --Signature=_Sun__13_May_2007_13_38_00_+0400_2b7zIYn+2ezDyfxY Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Sat, 12 May 2007 11:31:59 -0700 Bert JW Regeer mentioned: > > SQLite is compiled inside a program, and as such does not require any > resources other than one file handle and some CPU time when querying. > The file is stored on disk, and requires no separate process to be > running to query. Maybe I misunderstood what you were trying to say. > SQLite will require less resources than flat text files, since SQLite > is a one time open then process, instead of what is currently > happening, having to open and close hundreds of files depending on > how many ports are installed. With this regard, SQLite is like BDB. > Where SQLite uses standards compliant SQL statements to get data. > It isn't a feature of SQLite per-se, it's a feature of using a single db file instead of a bunch of files/dirs. But again, a single file is much simpler to occasionally drop/lose/etc and it's very hard to restore if something goes wrong. Having a backup old-style database with a single db file, that hashes information from it will bring bot a fast operation (since all lookups will be done in database, not flat files) as well as an ability to easily restore database or fix it by rebuilding from original files. Writing metadata to both location will not require much resources obviously. > > I am able to understand many of the gripes with using a databases, > and have to import yet another code base into the FreeBSD base, > however as one of the young ones, and knowing sed/awk/grep and SQL, I > prefer SQL over having to process hundreds of text files using text > processing tools. It saddens me each time I run one of the pkg_* > tools that needs to parse the flat file structure since it takes so > long. I have friends running Ubuntu and their apt-get returns results > much faster. > > In a world where hard drives are becoming more reliable, and are > automatically relocating sectors that go bad, do we really have to > worry about database corruption as much? I feel that many of the > fears that are being put forward will do harm to a text based > "storage" system as well. If one block drops out, it can cause tools > to not be able to parse the files. Create a backup copy of the > database after each successful transaction? There are ways to battle > data corruption. > > Using BDB is not an real option either. I can not even count the > amount of times that the BDB database that portupgrade created has > become corrupt because I accidently ran two portupgrades at the same > time, or even remembered that I did not want to upgrade something and > hit Ctrl+C. The experience I got from running SVN with BDB as the > back-end database to store my data, I say no thanks. In that case I > would much rather stick with the flat text files than go with a > database. > Every thing can be implemented both in good and bad way, it's not a problem of bdb at all. Furthermore, we probably doesn't need a very complex database structure, just a hashed info from current db/pkg database. For concurrent access we can even use a simple file-based locking, since concurrent writing to pkg database doesn't seems useful operation to me. We can even use cdb to hash this information, and rebuild cdb file each time it modified (not by rebuilding an entire database, but by using information from previous cdb copy and adding new info to it). This solution ll be reasonable fast (in fact it will not differ much from SQLite solution at all), and will have transaction safety. Just IMO, anyway. Of course, a transaction safe database will be a better solution anyway, but please - not SQL, it's complex and we don't need it for a such simple task. Probably, we can add transactions to our bdb 1.85, it seems not very hard to me. -- Stanislav Sedov ST4096-RIPE --Signature=_Sun__13_May_2007_13_38_00_+0400_2b7zIYn+2ezDyfxY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGRtx4K/VZk+smlYERApGeAJ9w95UdhkUUD885EduJeYJW4e4S/wCZAY0B ZJrpBDJuf4Fl9n5Qk2+aH2A= =WehG -----END PGP SIGNATURE----- --Signature=_Sun__13_May_2007_13_38_00_+0400_2b7zIYn+2ezDyfxY-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 09:47:00 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6844E16A407 for ; Sun, 13 May 2007 09:47:00 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.freebsd.org (Postfix) with ESMTP id DFBC613C45A for ; Sun, 13 May 2007 09:46:59 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [85.21.245.235] (helo=phonon.SpringDaemons.com) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1HnAfJ-0001Du-QL; Sun, 13 May 2007 13:46:58 +0400 Received: from localhost (localhost [127.0.0.1]) by phonon.SpringDaemons.com (Postfix) with SMTP id 67E4111403; Sun, 13 May 2007 13:45:42 +0400 (MSD) Date: Sun, 13 May 2007 13:45:42 +0400 From: Stanislav Sedov To: Ivan Voras Message-Id: <20070513134542.7a1c7f71.stas@FreeBSD.org> In-Reply-To: References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070512155059.92011d54.stas@FreeBSD.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-ICQ: 208105021 X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__13_May_2007_13_45_42_+0400_iOxMvA=9WYJQGcL=" X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.6.0 Cc: freebsd-hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 09:47:00 -0000 --Signature=_Sun__13_May_2007_13_45_42_+0400_iOxMvA=9WYJQGcL= Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Sat, 12 May 2007 16:25:06 +0200 Ivan Voras mentioned: > It's not SQL I'm interested in, it's the "additional" features: > > - performance > - transaction safety ("commit all changes or none") > - constraints (like "unique" keys - sqlite unfortunately doesn't support > foreign keys) > - concurrent access (allowing to run multiple portupgrades at the same time) > - easy interface to C programs > > If a BDB variety or some other storage layer can achieve these things, > I'll likely support them. > > I know "Sleepycat" BDB implementations boast "transaction processing", > but can they offer this across multiple stores / databases at the same > time (i.e. like one transaction includes updates to multiple tables)? > Efficient (performance-wise) storage would probably need to use more > than one store, at least to index data by different keys. > I agree with everything, but, as was mentioned before, having such a complex product in base will involve a lot of pain. Furthermore, SQLite have a lot of features we don't need for our task. Probably, we should just sit, document features we need and implement required logic in e.g. bdb if not yet. -- Stanislav Sedov ST4096-RIPE --Signature=_Sun__13_May_2007_13_45_42_+0400_iOxMvA=9WYJQGcL= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGRt5GK/VZk+smlYERAjIeAJ9ORi1AYEopOMNZmAhZzXm5/0hTOQCfa4o0 8fWahpiNuK9I+cmGnLiysps= =8i69 -----END PGP SIGNATURE----- --Signature=_Sun__13_May_2007_13_45_42_+0400_iOxMvA=9WYJQGcL=-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 10:38:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F02A16A403 for ; Sun, 13 May 2007 10:38:01 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id DFD0F13C458 for ; Sun, 13 May 2007 10:38:00 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l4DAbxho056437; Sun, 13 May 2007 20:37:59 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l4DAbwvb056422; Sun, 13 May 2007 20:37:58 +1000 (EST) (envelope-from peter) Date: Sun, 13 May 2007 20:37:57 +1000 From: Peter Jeremy To: Michel Talon Message-ID: <20070513103757.GA33322@turion.vk2pj.dyndns.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <20070512214422.GA88480@lpthe.jussieu.fr> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 10:38:01 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-May-12 23:44:22 +0200, Michel Talon wrote: >Really i don't think at all this way. I think that *perhaps* SQLite >may marginally better than a Berkeley database for solving part of the >problem, not much more. What i reacted to, was the conservatism which=20 >pervades the community as soon as someone emits the idea of using a new to= ol.=20 So far, the proposal has basically been "SQLite will solve all your problems". Similar magic bullets have been offered in the past and either fail to eventuate or fail to work as promised. If someone were to come up with a concrete proposal and a prototype (possibly in collaboration with one of the SoC people) that actually demonstrated some of the claims then I'm sure you will receive a warmer welcome. >To answer the slowness problem in registering installed packages, one may >think about making use of the INDEX file. In fact all the information that >is necessary to fill the dependency entries is contained in INDEX, and >accessible here in milliseconds with any tool such as awk. The problem is that the master reference for port names and dependency information is the port Makefile. It is very difficult to see how to change this arrangement without causing unaccepable upheaval. Parsing and searching INDEX is very fast but creating it requires running 17000 "make describe"s - which is very slow. You can view INDEX as a cache but working out when (and where) it is out of date is extremely difficult (eg changing a flag in /etc/make.conf can affect the INDEX). The options I can see are: - Ignore the existence of INDEX - which makes computing dependencies very time consuming - Fully rebuild INDEX via "make describe" whenever you update any ports - this takes of the order of an hour - Find and rebuild the changed bits of INDEX - p5-FreeBSD-Portindex uses this approach. - Build a tool that functionally does "make describe" but does it in bulk much faster (eg by pre-parsing the include files once instead of 17000 times). >Yes, and i don't buy the idea that using *existing* tools is better than >using the best tool for the job (assuming one can prove what is the best t= ool, >considering power, familiarity, etc.). Demonstrate a better tool. --=20 Peter Jeremy --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGRuqF/opHv/APuIcRArC4AJoDNQPrWoEPpL04DndUjNiRurbXrwCeJZLN nUcTE0uBRWGBJN4/Jg0S01c= =kx3L -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 11:03:50 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B9A716A400 for ; Sun, 13 May 2007 11:03:50 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 0848013C44B for ; Sun, 13 May 2007 11:03:49 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l4DB3WGV030823; Sun, 13 May 2007 12:03:34 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l4DB3WGV030823 Message-ID: <4646F084.3080601@infracaninophile.co.uk> Date: Sun, 13 May 2007 12:03:32 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Kris Kennaway References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> <4646C249.6070103@infracaninophile.co.uk> <20070513084404.GA35648@xor.obsecurity.org> In-Reply-To: <20070513084404.GA35648@xor.obsecurity.org> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 13 May 2007 12:03:44 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.2/3236/Sun May 13 08:23:27 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING, DK_POLICY_SIGNSOME, NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 11:03:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Kris Kennaway wrote: > On Sun, May 13, 2007 at 08:46:17AM +0100, Matthew Seaman wrote: >> Kris Kennaway wrote: >> >>> The problem is that maintaining the INDEX is expensive and/or tricky. >>> p5-FreeBSD-Portindex comes close but seems to have some wrinkles. >> If you'ld just tell me what you perceive the wrinkles to be, then I'd >> have a fighting chance at addressing them, which I would be glad to do... > > I only looked today so I didn't have time to fully investigate things, > which is why you didn't hear from me directly yet :) > > Basically there are some differences (extra whitespace, etc) that are > cosmetic but which make validation against the full INDEX build more > difficult, but the major one seems to be that ports that change their > name dynamically (depending on e.g. installed ports detected, or > changes in build options) do not seem to have this reflected in the > incremental index. Extra whitespace I can fix for you -- it's just the COMMENT field which is affected IIRC. I just copy the string exactly as shown in the port's Makefile. make index collapses multiple whitespace to single. As you say, cosmetic. Also I get the sorting 'for free' by using the properties of BDB btrees. Unfortunately it disagrees somewhat with the collation order generated by sort. Ports that change their name dynamically are tricky. If it really is an automatic change without administrative intervention then there's not a lot I can do -- and I believe such behaviour is held to be a bug by the ports system. I do use the port directory as the unique key for referring to any port, whereas make index uses the pkgname when writing out the INDEX, which causes some differences. An example: games/freeciv. If you have one of the gtk packages installed (as I do) it will automatically change package name: happy-idiot-talk:...ports/games/freeciv:% make -V PKGNAME freeciv-gtk2-2.0.8_2 This generates an warning about 'duplicate package name' with make index, (due to a collision with the games/freeciv-gtk2 slave port) and only one row in the final INDEX. With FreeBSD::Portindex, no errors are generated at all, and there are entries for both the main and slave ports like so: happy-idiot-talk:/usr/ports:% grep ^freeciv-gtk2 INDEX-6 | cut -c 1-78 freeciv-gtk2-2.0.8_2|/usr/ports/games/freeciv|/usr/local|Free turn-based multi freeciv-gtk2-2.0.8_2|/usr/ports/games/freeciv-gtk2|/usr/local|Free turn-based I can certainly add a check for duplicate PKGNAME and emit warnings. In order to be sure of getting the canonical INDEX-N you'ld need a system with no ports installed. Well, other than p5-FreeBSD-Portindex and dependencies -- none of which suffer from this problem. Where the package name changes due to explicit administrative choice, in the main that's either due to setting variables in the environment (which make later picks up), setting variables in the make infrastructure (eg /etc/make.conf) or using one of those blue and grey options screens, which changes a Makefile under /var/db/ports. There's already a facility for scrubbing everything out of the environment except USER, HOME, PATH, SHELL, TERM and TERMCAP Changes in well known Makefiles like /etc/make.conf or any Makefiles under /usr/ports will either trigger a warning message (generally saying you need to reinitialise the cache, because otherwise it would lead to rechecking every port, which might be a big waste of time depending on the nature of the changes to the makefile) or cause any port that includes that Makefile to be re-checked and its cache entry updated. That will pick up most of the places where an administrator might make changes to affect how ports are compiled, although a sufficiently ingenious admin could still put things in such odd places p5-FreeBSD-Portindex wouldn't find them... Tracking changes to OPTIONS settings is a good point though. I need to implement that. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGRvCE8Mjk52CukIwRCEvTAJ98KhyNpbVoSNQ7Aisk6MNQIrDg9ACfXeGc Pjnzdg9a5syzSFs6lKsJkzg= =/Vzb -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 12:26:02 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0AB7616A403 for ; Sun, 13 May 2007 12:26:02 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp805.mail.ird.yahoo.com (smtp805.mail.ird.yahoo.com [217.146.188.65]) by mx1.freebsd.org (Postfix) with SMTP id 8C2DA13C459 for ; Sun, 13 May 2007 12:26:01 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 56519 invoked from network); 13 May 2007 11:59:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=Kv5Q30c7iS9IfLoaCs7mMmsFf8R2MiesFwOee0KozKa6ArG4n5593cp/w/kPA/oGCuxhmOMlxiEYZtpZZo5mQpj3baOY9LjpnkJerCnUAKTR4jQT2+fmbk20XLsP5NPdYsPhtnAwEpNBiQUU5wUY+Qfd/GH+9ILFTj/HrhyzKX8= ; Received: from unknown (HELO ?192.168.0.22?) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp805.mail.ird.yahoo.com with SMTP; 13 May 2007 11:59:18 -0000 X-YMail-OSG: R0eWN3cVM1lNrsXtPONWUe7v90Vw8SoRJK3G9lS9BBC1qGLNF524OT9EMO.cXXNV.A6n_NSsuw-- From: Thomas Sparrevohn To: freebsd-hackers@freebsd.org Date: Sun, 13 May 2007 12:58:49 +0100 User-Agent: KMail/1.9.6 References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070512214422.GA88480@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> In-Reply-To: <20070513103757.GA33322@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705131258.50309.Thomas.Sparrevohn@btinternet.com> Cc: Michel Talon Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 12:26:02 -0000 On Sunday 13 May 2007 11:37:57 Peter Jeremy wrote: > > The options I can see are: > - Ignore the existence of INDEX - which makes computing dependencies > very time consuming > - Fully rebuild INDEX via "make describe" whenever you update any ports > - this takes of the order of an hour > - Find and rebuild the changed bits of INDEX - p5-FreeBSD-Portindex > uses this approach. > - Build a tool that functionally does "make describe" but does it in > bulk much faster (eg by pre-parsing the include files once instead > of 17000 times). > Having played around with using Postgres as a database for ports - I must stress that its not a database vs. flatfile issue - It is quite easy to build a reasonable "Ports database" - however it does not help on the issue - namely that dependencies and options means that it is needed to run make in order to gurantee that the INDEX file are correct It seems to be a non-debate what format the database is in if there not a good answer to how ensure that only ports that has changed are updated. At the end of the day - "make based ports" are the only real safe way to manage ports - However the focus on the indexing side seems misplaced - example - make INDEX on this host take 8-12 Minutes - compiling all ports installed takes 24 Hours - now if I "hand build" the dependencies structure and run the builds in parallel it takes down to 4-5 Hours - so lets say we half the time it takes to maintain the index - well - it cuts minimum time off the entire build process and the effort and energy proberly better spend on trying to define a build sequence that allows ports to build with "make -j x" and with parallel builds where "-j n" does not work Using XML for INDEX are a very good idea mainly because it allows "ports" to interface in an easy way to external tools - e.g. java frontends - web browsers etc, etc. However there are drawbacks - Yet I feel that the discussion about what tool to use as indexing are completely misplaced if the only point is that somebody likes SQL better than a directory tree. > >Yes, and i don't buy the idea that using *existing* tools is better than > >using the best tool for the job (assuming one can prove what is the best tool, > >considering power, familiarity, etc.). > Remind me - we are told that SQL are the answer but what was the question again? > Demonstrate a better tool. > Always the best way ;-) From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 14:07:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 267B016A402 for ; Sun, 13 May 2007 14:07:05 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by mx1.freebsd.org (Postfix) with ESMTP id C6FD313C45B for ; Sun, 13 May 2007 14:07:04 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so1586307nze for ; Sun, 13 May 2007 07:07:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=rEO1pOKaKz0oieQT2iEsuHsIP7p5APB93sfrph3B5iPiajNrbE2nEp04vaofEuy8ZEZYcFP0KPxNgSrPthAfTY/l9BEDhLl7xQHzrkUvONNFMuzxdERTlwu7z7cuqazPXB4pjhO88XttkQ/Ni7R9vr2r0brqq1P3f74txzRecjE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=Gs1qGyD7n1jzftH63Occ1WIT86kpVoom89KPE9SUUaMt2s0S1Z1RVhR6eUCbu6yP90x0SU9AOcgEtGlRGuN2a5ERkS+vbk4eW9J1jBZtzxXklfEqLkPa13JLgGf2OL9egK1jLEH5O5U5HcW/XBKgdcf1CydVy03SSMdENF/M/+w= Received: by 10.64.250.7 with SMTP id x7mr8419734qbh.1179064788560; Sun, 13 May 2007 06:59:48 -0700 (PDT) Received: by 10.65.124.5 with HTTP; Sun, 13 May 2007 06:59:48 -0700 (PDT) Message-ID: Date: Sun, 13 May 2007 17:29:48 +0330 From: "Mohsen Pahlevanzadeh" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mohsen@pahlevanzadeh.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 14:07:05 -0000 Dear all, I need to a code piece that it gets serial number of hdd. Please help me.... From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 14:16:15 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1900916A400 for ; Sun, 13 May 2007 14:16:15 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id CE35513C469 for ; Sun, 13 May 2007 14:16:14 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1189746pyh for ; Sun, 13 May 2007 07:16:14 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=BvqvyMILWw6BpL7M3mqKygJ5H1JqPhYCfIXe8nMWFxafCNrUz/QhaV9PdJlKMIdg7AzXm45RqI7h783R277SM2VdN6fGB5srPjJYc1HrorO1ewoPH0sQN5G04CQUyWFwaafsKApYb4BO89nzGHjGXX0VdE4hPVQmUINjk1uzeOI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=lp0T5PH1KNwLf2uv9hcValPA6Gfk7JDLJJ2x6DDXVYczlfAHxYopcxyR2MmSTu5IVAIXNyeTOCXFuX2ZQe27I57mHmz/Q9XvNn0maaLKo+q7gllkDkC+GtckCuMdqTGyBgHUCYjfj4AoDSmp7cXZs/rlDUDJxZ3xeioDv/+BzoQ= Received: by 10.65.119.14 with SMTP id w14mr1282341qbm.1179064210813; Sun, 13 May 2007 06:50:10 -0700 (PDT) Received: by 10.65.124.5 with HTTP; Sun, 13 May 2007 06:50:10 -0700 (PDT) Message-ID: Date: Sun, 13 May 2007 17:20:10 +0330 From: "Mohsen Pahlevanzadeh" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ioctl & serial number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mohsen@pahlevanzadeh.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 14:16:15 -0000 Dear all, I need to a code piece that it gets serial number of hdd. Please help me...... From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 15:18:41 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EBF3216A402 for ; Sun, 13 May 2007 15:18:41 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from lnx130.hrz.tu-darmstadt.de (lnx130.hrz.tu-darmstadt.de [130.83.174.24]) by mx1.freebsd.org (Postfix) with ESMTP id 8127C13C483 for ; Sun, 13 May 2007 15:18:41 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from mailserver3.hrz.tu-darmstadt.de (lnx115.hrz.tu-darmstadt.de [130.83.174.27]) by lnx130.hrz.tu-darmstadt.de (8.13.4/8.12.10) with ESMTP id l4DEw6fY024948 for ; Sun, 13 May 2007 16:58:06 +0200 Received: from [217.224.75.196] (helo=local.lan.fli4l) by mailserver3.hrz.tu-darmstadt.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1HnFWP-0002cK-Q7 for freebsd-hackers@freebsd.org; Sun, 13 May 2007 16:58:06 +0200 From: Viktor Vasilev To: freebsd-hackers@freebsd.org Date: Sun, 13 May 2007 16:57:37 +0200 User-Agent: KMail/1.9.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_jdyRGqmdhJIzSly" Message-Id: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> X-TUD-HRZ-MailScanner: Found to be clean X-TUD-HRZ-MailScanner-SpamCheck: X-MailScanner-From: viktor.vasilev@stud.tu-darmstadt.de X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 15:18:42 -0000 --Boundary-00=_jdyRGqmdhJIzSly Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > Dear all, > I need to a code piece that it gets serial number of hdd. > Please help me.... For an ATA disk you can use the IOCATAGPARM ioctl to get the information. See the attached C source for example. Be sure to have a look at /usr/src/sys/sys/ata.h for other relevant fields and sizes. Cheers, Vik --Boundary-00=_jdyRGqmdhJIzSly-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 15:30:37 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B34A816A402 for ; Sun, 13 May 2007 15:30:37 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from lnx130.hrz.tu-darmstadt.de (lnx130.hrz.tu-darmstadt.de [130.83.174.24]) by mx1.freebsd.org (Postfix) with ESMTP id 4A8E813C43E for ; Sun, 13 May 2007 15:30:36 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from mailserver3.hrz.tu-darmstadt.de (lnx117.hrz.tu-darmstadt.de [130.83.174.26]) by lnx130.hrz.tu-darmstadt.de (8.13.4/8.12.10) with ESMTP id l4DFUamN007991 for ; Sun, 13 May 2007 17:30:36 +0200 Received: from [217.224.75.196] (helo=local.lan.fli4l) by mailserver3.hrz.tu-darmstadt.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1HnG1q-0007wB-TI for freebsd-hackers@freebsd.org; Sun, 13 May 2007 17:30:36 +0200 From: Viktor Vasilev To: freebsd-hackers@freebsd.org Date: Sun, 13 May 2007 17:30:25 +0200 User-Agent: KMail/1.9.4 References: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> In-Reply-To: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_T8yRGJ+P/Dq1H7W" Message-Id: <200705131730.27958.viktor.vasilev@stud.tu-darmstadt.de> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 15:30:37 -0000 --Boundary-00=_T8yRGJ+P/Dq1H7W Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sunday 13 May 2007 16:57 Viktor Vasilev wrote: > On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > > Dear all, > > I need to a code piece that it gets serial number of hdd. > > Please help me.... > > For an ATA disk you can use the IOCATAGPARM ioctl to get the information. > See the attached C source for example. Be sure to have a look > at /usr/src/sys/sys/ata.h for other relevant fields and sizes. i'll inline the source since it didn't came through.. #include #include #include #include #include int main() { struct ata_params ap; int fd, i; if((fd = open("/dev/ad0", O_RDONLY)) == -1) { err(1, "error opening /dev/ad0"); } if (ioctl (fd, IOCATAGPARM, &ap) == -1) { err(1, "error executing ioctl"); } printf("Model: "); for(i = 0; i < 40 && ap.model[i] != '\0'; i++) printf("%c", ap.model[i]); putchar('\n'); printf("Revision: "); for(i = 0; i < 8 && ap.revision[i] != '\0'; i++) printf("%c", ap.revision[i]); putchar('\n'); printf("Serial: "); for(i = 0; i < 20 && ap.serial[i] != '\0'; i++) printf("%c", ap.serial[i]); putchar('\n'); return 0; } Cheers, Vik --Boundary-00=_T8yRGJ+P/Dq1H7W-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 15:47:48 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0702116A402 for ; Sun, 13 May 2007 15:47:48 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 8CA5413C458 for ; Sun, 13 May 2007 15:47:47 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l4DFC627027084; Sun, 13 May 2007 17:12:06 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l4DFBs1x029578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 May 2007 17:11:54 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l4DFBsCB046653; Sun, 13 May 2007 17:11:54 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l4DFBrhD046652; Sun, 13 May 2007 17:11:53 +0200 (CEST) (envelope-from ticso) Date: Sun, 13 May 2007 17:11:53 +0200 From: Bernd Walter To: mohsen@pahlevanzadeh.org Message-ID: <20070513151153.GH42550@cicely12.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-hackers@freebsd.org Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 15:47:48 -0000 On Sun, May 13, 2007 at 05:29:48PM +0330, Mohsen Pahlevanzadeh wrote: > Dear all, > I need to a code piece that it gets serial number of hdd. > Please help me.... "atacontrol cap" shows you the serial number. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 16:01:03 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD27616A402 for ; Sun, 13 May 2007 16:01:03 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 767C213C465 for ; Sun, 13 May 2007 16:01:03 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.14.1/8.14.1) with ESMTP id l4DFh8Mb048629; Sun, 13 May 2007 08:43:16 -0700 (PDT) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.14.1/8.14.1/Submit) with ESMTP id l4DFh8Ys048626; Sun, 13 May 2007 08:43:08 -0700 (PDT) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Sun, 13 May 2007 08:43:08 -0700 (PDT) From: mjacob@freebsd.org To: mohsen@pahlevanzadeh.org In-Reply-To: Message-ID: <20070513084214.V48567@ns1.feral.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: ioctl & serial number X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 16:01:03 -0000 On Sun, 13 May 2007, Mohsen Pahlevanzadeh wrote: > Dear all, > I need to a code piece that it gets serial number of hdd. > Please help me...... > _______________________________________________ see source for 'atacontrol info' for ATA type disks. see source for 'camcontrol inquiry' for SCSI type disks. From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 16:17:22 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6007416A400 for ; Sun, 13 May 2007 16:17:22 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id E1BA313C469 for ; Sun, 13 May 2007 16:17:21 +0000 (UTC) (envelope-from m.pahlevanzadeh@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so1610587nze for ; Sun, 13 May 2007 09:17:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ek8GQ0tufbp0WxrBVM2UaxnxVw3wVPY0A9mGeM1zcfXHIOvvAbVn+0lqLUmaVQQvpQSPtbYblKDxbdAWIAbHcSqHRyI4+UtO/IWsX/BqgAOuQYVMyFxUWa558Zlqzg/6mSMUZpyR/RGq+mEUTbDFQQHGmDTgo+ZfpF+KFspjfpw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BzTevkoR64pWv4EMHcmCYQQXSaaedJbONPZGpxW1JVWBZAs5KU5NVU75mqyrVJ2UuyMx7F2pORZLZ7sgeArVS1fZDC8QVB79VKNV951i/SY+ZJ6sznrEjdnfGA/juXYQesVeDP8kgZYLsF46R/ZQLgUC67MSsbfUlsqbineGCnw= Received: by 10.65.59.11 with SMTP id m11mr8646309qbk.1179073041209; Sun, 13 May 2007 09:17:21 -0700 (PDT) Received: by 10.65.124.5 with HTTP; Sun, 13 May 2007 09:17:21 -0700 (PDT) Message-ID: Date: Sun, 13 May 2007 19:47:21 +0330 From: "Mohsen Pahlevanzadeh" To: "Viktor Vasilev" In-Reply-To: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> MIME-Version: 1.0 References: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mohsen@pahlevanzadeh.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 16:17:22 -0000 Dear all, When i compile it,gcc tell me that IOCATAGPARM isn't declare. May i patch for kernel? Yours,Mohsen On 5/13/07, Viktor Vasilev wrote: > > On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > > Dear all, > > I need to a code piece that it gets serial number of hdd. > > Please help me.... > > For an ATA disk you can use the IOCATAGPARM ioctl to get the information. > See the attached C source for example. Be sure to have a look > at /usr/src/sys/sys/ata.h for other relevant fields and sizes. > > > Cheers, > Vik > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 16:51:47 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 16E0416A402 for ; Sun, 13 May 2007 16:51:47 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from lnx131.hrz.tu-darmstadt.de (lnx131.hrz.tu-darmstadt.de [130.83.174.25]) by mx1.freebsd.org (Postfix) with ESMTP id 885E513C44C for ; Sun, 13 May 2007 16:51:46 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from mailserver3.hrz.tu-darmstadt.de (lnx116.hrz.tu-darmstadt.de [130.83.174.28]) by lnx131.hrz.tu-darmstadt.de (8.13.4/8.12.10) with ESMTP id l4DGpf7Z008982 for ; Sun, 13 May 2007 18:51:41 +0200 Received: from [217.224.75.196] (helo=local.lan.fli4l) by mailserver3.hrz.tu-darmstadt.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1HnHIJ-0000Xb-HO for freebsd-hackers@freebsd.org; Sun, 13 May 2007 18:51:41 +0200 From: Viktor Vasilev To: freebsd-hackers@freebsd.org Date: Sun, 13 May 2007 18:51:27 +0200 User-Agent: KMail/1.9.4 References: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705131851.29229.viktor.vasilev@stud.tu-darmstadt.de> X-TUD-HRZ-MailScanner: Found to be clean X-TUD-HRZ-MailScanner-SpamCheck: X-MailScanner-From: viktor.vasilev@stud.tu-darmstadt.de Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 16:51:47 -0000 On Sunday 13 May 2007 18:17 Mohsen Pahlevanzadeh wrote: > On 5/13/07, Viktor Vasilev wrote: > > On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > > > Dear all, > > > I need to a code piece that it gets serial number of hdd. > > > Please help me.... > > > > For an ATA disk you can use the IOCATAGPARM ioctl to get the > > information. See the attached C source for example. Be sure to have a > > look > > at /usr/src/sys/sys/ata.h for other relevant fields and sizes. > > > Dear all, > When i compile it,gcc tell me that IOCATAGPARM isn't declare. > May i patch for kernel? > Yours,Mohsen Maybe you just didn't install the src distribution. Please look at the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html the note that says "If there is not a /usr/src/sys directory on your system...". Cheers, Vik From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 17:25:36 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD36616A400 for ; Sun, 13 May 2007 17:25:36 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 166F913C465 for ; Sun, 13 May 2007 17:25:35 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l4DHPJfl033594; Sun, 13 May 2007 18:25:20 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l4DHPJfl033594 Message-ID: <464749FF.9090009@infracaninophile.co.uk> Date: Sun, 13 May 2007 18:25:19 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Kris Kennaway References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> <4646C249.6070103@infracaninophile.co.uk> <20070513084404.GA35648@xor.obsecurity.org> <4646F084.3080601@infracaninophile.co.uk> In-Reply-To: <4646F084.3080601@infracaninophile.co.uk> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 13 May 2007 18:25:30 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.2/3236/Sun May 13 08:23:27 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, DK_POLICY_SIGNSOME,NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 17:25:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Matthew Seaman wrote: > Extra whitespace I can fix for you -- it's just the COMMENT field which > is affected IIRC. I just copy the string exactly as shown in the port's > Makefile. make index collapses multiple whitespace to single. As you say, > cosmetic. Also I get the sorting 'for free' by using the properties > of BDB btrees. Unfortunately it disagrees somewhat with the collation > order generated by sort. Here's the result of crunching multiple spaces in the COMMENT fields: happy-idiot-talk:/tmp:% diff -C 0 -u bar foo - --- bar Sun May 13 18:12:08 2007 +++ foo Sun May 13 18:12:01 2007 @@ -1402 +1402 @@ - -lrzsz-0.12.20_1|Receive/Send files via X/Y/ZMODEM protocol. (unrestrictive) +lrzsz-0.12.20_1|Receive/Send files via X/Y/ZMODEM protocol. (unrestrictive) @@ -1476 +1476 @@ - -zmtx-zmrx-1.02|Receive/Send files via ZMODEM protocol. (unrestrictive) +zmtx-zmrx-1.02|Receive/Send files via ZMODEM protocol. (unrestrictive) @@ -1809,2 +1809,2 @@ - -p5-DBI-1.54|The perl5 Database Interface. Required for DBD::* modules - -p5-DBI-1.37_1|The perl5 Database Interface. Required for DBD::* modules +p5-DBI-1.54|The perl5 Database Interface. Required for DBD::* modules +p5-DBI-1.37_1|The perl5 Database Interface. Required for DBD::* modules @@ -1962 +1962 @@ - -postgresql-libpq++-4.0_3|C++ interface for PostgreSQL +postgresql-libpq++-4.0_3|C++ interface for PostgreSQL @@ -2287 +2287 @@ - -vym-1.8.1|VYM (View Your Mind) is a tool to generate and manipulate maps +vym-1.8.1|VYM (View Your Mind) is a tool to generate and manipulate maps @@ -2490 +2490 @@ - -cvs+ipv6-1.11.17_1|IPv6 enabled cvs. You can use IPv6 connection when using pserver +cvs+ipv6-1.11.17_1|IPv6 enabled cvs. You can use IPv6 connection when using pserver @@ -3046 +3046 @@ - -newt-0.51.0_3|Not Erik's Windowing Toolkit: console I/O handling library +newt-0.51.0_3|Not Erik's Windowing Toolkit: console I/O handling library @@ -4189 +4189 @@ - -py24-simpletal-4.1|Stand alone TAL Python implementation to power HTML & XML templates +py24-simpletal-4.1|Stand alone TAL Python implementation to power HTML & XML templates @@ -4783 +4783 @@ - -vile-9.5n|VI Like Emacs. a vi "workalike", with many additional features +vile-9.5n|VI Like Emacs. a vi "workalike", with many additional features @@ -4943 +4943 @@ - -vMac-0.1.9.3_1|Emulates a MacPlus machine! Runs MacOS versions up to 7.5.5 +vMac-0.1.9.3_1|Emulates a MacPlus machine! Runs MacOS versions up to 7.5.5 @@ -5582 +5582 @@ - -libfov-1.0.2|C library for calculating fields of view on low resolution rasters +libfov-1.0.2|C library for calculating fields of view on low resolution rasters @@ -6039 +6039 @@ - -xkobo-1.11|Multi-way scrolling shoot 'em up game for X. Strangely addictive +xkobo-1.11|Multi-way scrolling shoot 'em up game for X. Strangely addictive @@ -7304 +7304 @@ - -ja-mypaedia-fpw-1.4.3_2|An encyclopedia "Mypaedia" (EPWING V1 format) +ja-mypaedia-fpw-1.4.3_2|An encyclopedia "Mypaedia" (EPWING V1 format) @@ -9582 +9582 @@ - -xless-1.7|An X11 viewer for text files. Useful as an add-on tool for other apps +xless-1.7|An X11 viewer for text files. Useful as an add-on tool for other apps @@ -11135 +11135 @@ - -sniffit-0.3.7b_2|A packet sniffer program. For educational use +sniffit-0.3.7b_2|A packet sniffer program. For educational use @@ -11562 +11562 @@ - -cups-samba-6.0|The Common UNIX Printing System: MS Windows client drivers +cups-samba-6.0|The Common UNIX Printing System: MS Windows client drivers @@ -11825 +11825 @@ - -ru-apache-1.3.37+30.23|The extremely popular Apache http server. Very fast, very clean +ru-apache-1.3.37+30.23|The extremely popular Apache http server. Very fast, very clean @@ -12023 +12023 @@ - -chrootuid-1.3|A simple wrapper that combines chroot(8) and su(1) into one program +chrootuid-1.3|A simple wrapper that combines chroot(8) and su(1) into one program @@ -14936 +14936 @@ - -mozex-1.07_5|Mozex allows users of to use external programs for mail, news, etc. +mozex-1.07_5|Mozex allows users of to use external programs for mail, news, etc. @@ -15712 +15712 @@ - -webreport-1.5|WebReport is a web log statistics program for web hosting sites +webreport-1.5|WebReport is a web log statistics program for web hosting sites This is after running the generated INDEX files through: cut -d '|' -f 1,4 INDEX Mostly it's the standard 'two spaces after a full stop', but there are a number of what look to me like mistakes. I can't parse that mosex entry at all.. Cheers, MAtthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGR0n+8Mjk52CukIwRCLyrAJwLkZYKcgYfXBsvLVHvUkSIAQ0GSACggbmA mXIlkODfEB/3AgGxqA7tth8= =GsVE -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 18:32:37 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D519916A404; Sun, 13 May 2007 18:32:36 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 93AB913C447; Sun, 13 May 2007 18:32:36 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id BF2ED20AA; Sun, 13 May 2007 20:32:32 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 3C63620A6; Sun, 13 May 2007 20:32:32 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 0CF3855BE; Sun, 13 May 2007 20:32:32 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Roman Divacky References: <200705102105.27271.blackdragon@highveldmail.co.za> <46450EE1.300@hcl-club.lu> <20070512120643.GA34770@freebsd.org> Date: Sun, 13 May 2007 20:32:31 +0200 In-Reply-To: <20070512120643.GA34770@freebsd.org> (Roman Divacky's message of "Sat\, 12 May 2007 14\:06\:43 +0200") Message-ID: <86veewzi9s.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Ivan Voras Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 18:32:37 -0000 Roman Divacky writes: > ruby2.0 will come with a virtual machine which should speed up things. ru= by2.0 > is expected "soon enough" (2008?) Sure, just like Perl 6... DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 18:42:52 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6015B16A40B for ; Sun, 13 May 2007 18:42:52 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 20D5113C448 for ; Sun, 13 May 2007 18:42:52 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 3456520AA; Sun, 13 May 2007 20:42:48 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id B042720A6; Sun, 13 May 2007 20:42:47 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 94CC255C1; Sun, 13 May 2007 20:42:47 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Michel Talon References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> Date: Sun, 13 May 2007 20:42:47 +0200 In-Reply-To: <20070512090935.GA13929@lpthe.jussieu.fr> (Michel Talon's message of "Sat\, 12 May 2007 11\:09\:35 +0200") Message-ID: <86r6pkzhso.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 18:42:52 -0000 Michel Talon writes: > Seriously, the FreeBSD package system is in great need of a profound > overhaul, pretending it works well is complete denial of reality. Perhaps, but I seriously doubt that you are the correct person for the job. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 18:46:42 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0A9C16A400 for ; Sun, 13 May 2007 18:46:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9076813C457 for ; Sun, 13 May 2007 18:46:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 24D7220AC; Sun, 13 May 2007 20:46:39 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 9074620A6; Sun, 13 May 2007 20:46:38 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 700E555C4; Sun, 13 May 2007 20:46:38 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Viktor Vasilev References: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> <200705131851.29229.viktor.vasilev@stud.tu-darmstadt.de> Date: Sun, 13 May 2007 20:46:38 +0200 In-Reply-To: <200705131851.29229.viktor.vasilev@stud.tu-darmstadt.de> (Viktor Vasilev's message of "Sun\, 13 May 2007 18\:51\:27 +0200") Message-ID: <86mz08zhm9.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 18:46:42 -0000 Viktor Vasilev writes: > On Sunday 13 May 2007 18:17 Mohsen Pahlevanzadeh wrote: > > When i compile it,gcc tell me that IOCATAGPARM isn't declare. > > May i patch for kernel? > Maybe you just didn't install the src distribution. He doesn't need to. Your code should build cleanly on a stock install of FreeBSD 6.0 or newer. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 18:49:20 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B12B016A405 for ; Sun, 13 May 2007 18:49:20 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6FB3A13C4BF for ; Sun, 13 May 2007 18:49:20 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 5D1F820A7; Sun, 13 May 2007 20:25:56 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 2D14820A6; Sun, 13 May 2007 20:25:56 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 0DF1B55BC; Sun, 13 May 2007 20:25:56 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Mike Meyer References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070511051852.GA89359@xor.obsecurity.org> <17988.32573.910854.388638@bhuda.mired.org> <200705111011.52212.fcash@ocis.net> <17988.46905.9205.461424@bhuda.mired.org> Date: Sun, 13 May 2007 20:25:55 +0200 In-Reply-To: <17988.46905.9205.461424@bhuda.mired.org> (Mike Meyer's message of "Fri\, 11 May 2007 14\:34\:33 -0400") Message-ID: <86zm48ziks.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 18:49:20 -0000 Mike Meyer writes: > Moving the OS into the package system has been on the "todo" list for > a long time (assuming it's still there - there are people opposed to > that). It has *never* been on the todo list. > How would setting LOCALBASE=3D/usr break this? Of course, equally valid > is the question "what will break if I set LOCALBASE=3D/usr"? Hmm. I > think I may found out.... For one, man pages for ports will end up in the wrong place (/usr/man instead of /usr/share/man). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 19:11:03 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2BB3F16A406 for ; Sun, 13 May 2007 19:11:03 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.freebsd.org (Postfix) with ESMTP id 94C6E13C44B for ; Sun, 13 May 2007 19:11:02 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (c-82-192-240-247.customer.ggaweb.ch [82.192.240.247]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id l4DIgWaL010765; Sun, 13 May 2007 20:42:33 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id D8F952E21E; Sun, 13 May 2007 20:42:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a45GZY4FP5c2; Sun, 13 May 2007 20:42:27 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 93DB12E201; Sun, 13 May 2007 20:42:27 +0200 (CEST) From: Benjamin Lutz To: freebsd-hackers@freebsd.org Date: Sun, 13 May 2007 20:42:21 +0200 User-Agent: KMail/1.9.5 References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> In-Reply-To: <200705131258.50309.Thomas.Sparrevohn@btinternet.com> X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"=?utf-8?q?=5F+=0A=09R2?=@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@=?utf-8?q?g=3F=0A=094f?=,\c7|Ghwb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1204437.PcLmCfjE24"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200705132042.26167.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.61 on 213.160.40.60 Cc: Thomas Sparrevohn , Michel Talon Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 19:11:03 -0000 --nextPart1204437.PcLmCfjE24 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 13 May 2007 13:58, Thomas Sparrevohn wrote: > Using XML for INDEX are a very good idea mainly because it allows > "ports" to interface in an easy way to external tools - e.g. java > frontends - web browsers etc, etc. However there are drawbacks - Yet > I feel that the discussion about what tool to use as indexing are > completely misplaced if the only point is that somebody likes SQL > better than a directory tree. I'd have said that using XML for INDEX is a bad idea, because INDEX can=20 then no longer be easily processed with any of the tools in the FreeBSD=20 base system. With the format it uses now, I can easily grep, awk, etc=20 it. If you need an XML version of INDEX, it's easy to have just these=20 tools build one for you though. Not to mention that INDEX is already big enough as it is, imo. I don't=20 see why it should be bloated even more with redundant information. Cheers Benjamin --nextPart1204437.PcLmCfjE24 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGR1wSzZEjpyKHuQwRAo3AAKCSjPk9KNk/bBvLF8DuZ6g9N8xD6wCbBw/I 53yqAAWQB2cJ30jN4KZ2URg= =6Zl8 -----END PGP SIGNATURE----- --nextPart1204437.PcLmCfjE24-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 19:25:03 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2090D16A403 for ; Sun, 13 May 2007 19:25:03 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id B14E813C468 for ; Sun, 13 May 2007 19:25:02 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (obsolete.xs4all.nl [82.95.250.254]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id l4DJ8wEj029892; Sun, 13 May 2007 21:09:03 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.8/8.13.3) with ESMTP id l4DJ8w9I003921; Sun, 13 May 2007 21:08:58 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.8/8.13.6/Submit) id l4DJ8wAQ003920; Sun, 13 May 2007 21:08:58 +0200 (CEST) (envelope-from wb) Date: Sun, 13 May 2007 21:08:58 +0200 From: Wilko Bulte To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20070513190858.GB3881@freebie.xs4all.nl> References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070511051852.GA89359@xor.obsecurity.org> <17988.32573.910854.388638@bhuda.mired.org> <200705111011.52212.fcash@ocis.net> <17988.46905.9205.461424@bhuda.mired.org> <86zm48ziks.fsf@dwp.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86zm48ziks.fsf@dwp.des.no> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner Cc: hackers@freebsd.org, Mike Meyer Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 19:25:03 -0000 On Sun, May 13, 2007 at 08:25:55PM +0200, Dag-Erling Smrgrav wrote.. > Mike Meyer writes: > > Moving the OS into the package system has been on the "todo" list for > > a long time (assuming it's still there - there are people opposed to > > that). > > It has *never* been on the todo list. And lets hope that will never change either. If you want to install a gazillion different components check out Linux. -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 20:07:25 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78EF916A403 for ; Sun, 13 May 2007 20:07:25 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 64C9A13C45A for ; Sun, 13 May 2007 20:07:25 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 7B3251A3C19; Sun, 13 May 2007 13:08:13 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B316952A38; Sun, 13 May 2007 16:07:23 -0400 (EDT) Date: Sun, 13 May 2007 16:07:23 -0400 From: Kris Kennaway To: Matthew Seaman Message-ID: <20070513200723.GA62750@xor.obsecurity.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> <4646C249.6070103@infracaninophile.co.uk> <20070513084404.GA35648@xor.obsecurity.org> <4646F084.3080601@infracaninophile.co.uk> <464749FF.9090009@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464749FF.9090009@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 20:07:25 -0000 On Sun, May 13, 2007 at 06:25:19PM +0100, Matthew Seaman wrote: > Matthew Seaman wrote: > > > Extra whitespace I can fix for you -- it's just the COMMENT field which > > is affected IIRC. I just copy the string exactly as shown in the port's > > Makefile. make index collapses multiple whitespace to single. As you say, > > cosmetic. Also I get the sorting 'for free' by using the properties > > of BDB btrees. Unfortunately it disagrees somewhat with the collation > > order generated by sort. > > Here's the result of crunching multiple spaces in the COMMENT fields: > This is after running the generated INDEX files through: > > cut -d '|' -f 1,4 INDEX > > Mostly it's the standard 'two spaces after a full stop', but there are a > number of what look to me like mistakes. I can't parse that mosex entry > at all.. COMMENT= Mozex allows users of ${GEKO} to use external programs for mail, news, etc. It's supposed to be ${GECKO} I guess...it's another variant that will change when the user (or a port) changes the value of that variable. Kris From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 20:21:59 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84E5316A402 for ; Sun, 13 May 2007 20:21:59 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp814.mail.ird.yahoo.com (smtp814.mail.ird.yahoo.com [217.146.188.74]) by mx1.freebsd.org (Postfix) with SMTP id F041A13C45E for ; Sun, 13 May 2007 20:21:58 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 90270 invoked from network); 13 May 2007 20:21:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:Reply-To:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=ZmOiGh+KeKVrSq7stBDASG7a5OS0mL3eDCjrWfwjiyqXQSr2jjUREgTUFXsMw5BK9fri2GjRaIyDdUZztTyKHZgWxNTv7RPuzRM/fmaSEqmDYGO1tjZFMHFpHca+6jKIZlx1QrfokLLSQ3bLJU3WLBmbUCh1z+DbeLHzK+2qp/w= ; Received: from unknown (HELO w2fzz0vc03) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp814.mail.ird.yahoo.com with SMTP; 13 May 2007 20:21:57 -0000 X-YMail-OSG: ralh9eEVM1k9FgrrNBe910_VGLbmmltNoonTC75O6IJXNKMQA_7l3MtNegYoOZ6Dy9DttoBLXA-- From: "Thomas Sparrevohn" To: "'Benjamin Lutz'" , References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> <200705132042.26167.mail@maxlor.com> In-Reply-To: <200705132042.26167.mail@maxlor.com> Date: Sun, 13 May 2007 21:21:56 +0100 Message-ID: <001701c7959c$5ab84110$1028c330$@Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AceVjnjsvFACvNZRTXCuvdKgXtDliAAC/hMg Content-Language: en-gb Cc: 'Michel Talon' Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 20:21:59 -0000 Well - Naturally if the only index format was based upon XML it would not be very practical - However XML currently seems to take the lead when the talk is on portability as a data format and it is very easy to convert to "Pure Text" - There seems to be a bias towards SNMP MIB format generally in FreeBSD e.g. sysctl etc. which has even worse drawbacks But as I said - I very much doubt that the format of the INDEX file and the on disk package db structure is the most burning issue for ports - I am sure that there are optimisations that could improve the current performance without having to change the structure into SQL - If however that is the target then XML would be a significantly better candidate because a proper XML schema can be used as a middle layer for all the tools - regardless the storage structure of the package db etc. - If we introduced a proper abstraction - then people can use SQL/ flat files / existing structures But the tools we still only need one common interface to XML > -----Original Message----- > From: Benjamin Lutz [mailto:mail@maxlor.com] > Sent: 13 May 2007 19:42 > To: freebsd-hackers@freebsd.org > Cc: Thomas Sparrevohn; Michel Talon > Subject: Re: DPS Initial Ideas > > On Sunday 13 May 2007 13:58, Thomas Sparrevohn wrote: > > Using XML for INDEX are a very good idea mainly because it allows > > "ports" to interface in an easy way to external tools - e.g. java > > frontends - web browsers etc, etc. However there are drawbacks - Yet > I > > feel that the discussion about what tool to use as indexing are > > completely misplaced if the only point is that somebody likes SQL > > better than a directory tree. > > I'd have said that using XML for INDEX is a bad idea, because INDEX can > then no longer be easily processed with any of the tools in the FreeBSD > base system. With the format it uses now, I can easily grep, awk, etc > it. If you need an XML version of INDEX, it's easy to have just these > tools build one for you though. > > Not to mention that INDEX is already big enough as it is, imo. I don't > see why it should be bloated even more with redundant information. > > Cheers > Benjamin From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 20:27:38 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B7DDC16A402 for ; Sun, 13 May 2007 20:27:38 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id A55BF13C459 for ; Sun, 13 May 2007 20:27:38 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id C0F0D1A3C19; Sun, 13 May 2007 13:28:26 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C787A51406; Sun, 13 May 2007 16:27:37 -0400 (EDT) Date: Sun, 13 May 2007 16:27:37 -0400 From: Kris Kennaway To: Thomas Sparrevohn Message-ID: <20070513202737.GA63102@xor.obsecurity.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> <200705132042.26167.mail@maxlor.com> <001701c7959c$5ab84110$1028c330$@Sparrevohn@btinternet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001701c7959c$5ab84110$1028c330$@Sparrevohn@btinternet.com> User-Agent: Mutt/1.4.2.2i Cc: 'Benjamin Lutz' , freebsd-hackers@freebsd.org, 'Michel Talon' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 20:27:38 -0000 On Sun, May 13, 2007 at 09:21:56PM +0100, Thomas Sparrevohn wrote: > Well - Naturally if the only index format was based upon XML it would not be > very practical - > However XML currently seems to take the lead when the talk is on portability > as a data format > and it is very easy to convert to "Pure Text" - There seems to be a bias > towards SNMP MIB format > generally in FreeBSD e.g. sysctl etc. which has even worse drawbacks > > But as I said - I very much doubt that the format of the INDEX file and the > on disk package db > structure is the most burning issue for ports - I am sure that there are > optimisations that could improve > the current performance without having to change the structure into SQL - If > however that is the target > then XML would be a significantly better candidate because a proper XML > schema can be used as a > middle layer for all the tools - regardless the storage structure of the > package db etc. - > If we introduced a proper abstraction - then people can use SQL/ flat files > / existing structures > But the tools we still only need one common interface to XML FYI, "Using XML" and other buzzword-compliance is not currently on the table either. Let's all try to maintain some focus, OK? Kris From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:00:50 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 22E8616A400 for ; Sun, 13 May 2007 21:00:50 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp808.mail.ird.yahoo.com (smtp808.mail.ird.yahoo.com [217.146.188.68]) by mx1.freebsd.org (Postfix) with SMTP id 8AA5A13C46C for ; Sun, 13 May 2007 21:00:49 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 14985 invoked from network); 13 May 2007 21:00:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:Reply-To:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=TpifbI+ZRzMxVldroRLplmTN2Wiiyc6YCCk7w9B9xxpXrU9rXeGO6vXPTOTgX+uixyItHyHUG8GvFIaXwVMQ3/YMfR1mwWrh7pO7YzQF8RjL0yWk1RJafdFPKobyxecIjOGEZYrgDp8XOPWQQKjGQOF/BBRI/qfdibWxoILW90w= ; Received: from unknown (HELO w2fzz0vc03) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp808.mail.ird.yahoo.com with SMTP; 13 May 2007 21:00:48 -0000 X-YMail-OSG: 6cWSSEkVM1kyltzIUxC.QHt94gqBdMuPn7.AOkV3hKD_fARvzD.c6hBrfJQlW_mXKM5VnGzSYg-- From: "Thomas Sparrevohn" To: "'Kris Kennaway'" References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> <200705132042.26167.mail@maxlor.com> <001701c7959c$5ab84110$1028c330$@Sparrevohn@btinternet.com> <20070513202737.GA63102@xor.obsecurity.org> In-Reply-To: <20070513202737.GA63102@xor.obsecurity.org> Date: Sun, 13 May 2007 22:00:46 +0100 Message-ID: <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AceVnTqqePyw1IxHToq+8yGma8HJEgAAk5Bw Content-Language: en-gb Cc: 'Benjamin Lutz' , freebsd-hackers@freebsd.org, 'Michel Talon' Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:00:50 -0000 > FYI, "Using XML" and other buzzword-compliance is not currently on the > table either. Let's all try to maintain some focus, OK? > Well - I now heard the SQL buzzword quite a bit ;-) - but whatever - No matter what angle I take on the register/make INDEX timing issues they are insignificant compared to potential gains in the "single vs. Parallel" builds scenario - even with my UP system - a total rebuild of the ports I had installed took way > 24 hours of which the time used in "register" etc was and are only a fraction In my view ports should be self contained within the FreeBSD system - Focusing on The on-disk format seems to be the wrong angle on the issue - The current structure Works well - but it has a number of drawbacks - however it no way clear whether that The answer is another INDEX/storage structure From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:04:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 66F3D16A400 for ; Sun, 13 May 2007 21:04:21 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 502FC13C4B8 for ; Sun, 13 May 2007 21:04:21 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 77CC41A3C19; Sun, 13 May 2007 14:05:09 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6A0A252FB9; Sun, 13 May 2007 17:04:20 -0400 (EDT) Date: Sun, 13 May 2007 17:04:20 -0400 From: Kris Kennaway To: Thomas Sparrevohn Message-ID: <20070513210419.GA63733@xor.obsecurity.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> <200705132042.26167.mail@maxlor.com> <20070513202737.GA63102@xor.obsecurity.org> <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> User-Agent: Mutt/1.4.2.2i Cc: 'Benjamin Lutz' , freebsd-hackers@freebsd.org, 'Michel Talon' , 'Kris Kennaway' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:04:21 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 13, 2007 at 10:00:46PM +0100, Thomas Sparrevohn wrote: > The answer is another INDEX/storage structure =20 Great, I look forward to your detailed proposal. Kris --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGR31TWry0BWjoQKURAh4RAJ9BQ5z0L9T8YQ3XX1RPWTg6M9AdwgCg/eDo 2VG5thwKU6hwZNFqDgou5WE= =VTfu -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:20:54 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8710516A403 for ; Sun, 13 May 2007 21:20:54 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.freebsd.org (Postfix) with ESMTP id 4D48E13C487 for ; Sun, 13 May 2007 21:20:54 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from ip04.eastlink.ca ([24.222.10.20]) by mta02.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0JI000F3J0MP8PI0@mta02.eastlink.ca> for freebsd-hackers@freebsd.org; Sun, 13 May 2007 18:20:49 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO dwpc.dwlabs.ca) ([24.224.199.230]) by ip04.eastlink.ca with ESMTP; Sun, 13 May 2007 17:50:20 -0300 Received: from dwpc.dwlabs.ca (mail.dwlabs.ca [192.168.0.10]) by dwpc.dwlabs.ca (8.13.8/8.13.8) with ESMTP id l4DLKxTs011120; Sun, 13 May 2007 18:21:05 -0300 (ADT envelope-from duane@dwpc.dwlabs.ca) Received: (from duane@localhost) by dwpc.dwlabs.ca (8.13.8/8.13.8/Submit) id l4DLKxGL011119; Sun, 13 May 2007 18:20:59 -0300 (ADT envelope-from duane) Date: Sun, 13 May 2007 18:20:59 -0300 From: Duane Whitty In-reply-to: <20070513210419.GA63733@xor.obsecurity.org> To: Kris Kennaway Message-id: <20070513212059.GD1017@dwpc.dwlabs.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CABgeR0YY4MfmdGdsb2JhbACPfwE2 X-IronPort-AV: i="4.14,527,1170648000"; d="scan'208"; a="215980188:sNHT32950881" X-Virus-Scanned: ClamAV 0.88.6/3236/Sun May 13 04:23:27 2007 on dwpc.dwlabs.ca X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on dwpc.dwlabs.ca References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> <200705132042.26167.mail@maxlor.com> <20070513202737.GA63102@xor.obsecurity.org> <20070513210419.GA63733@xor.obsecurity.org> User-Agent: Mutt/1.4.2.2i X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Cc: freebsd-hackers@freebsd.org, Thomas.Sparrevohn@btinternet.com Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:20:54 -0000 On Sunday, 13 May 2007 at 17:04:20 -0400, Kris Kennaway wrote: > On Sun, May 13, 2007 at 10:00:46PM +0100, Thomas Sparrevohn wrote: > > > The answer is another INDEX/storage structure > > Great, I look forward to your detailed proposal. > > Kris I believe this is closer to what Thomas meant: but it has a number of drawbacks - however it [is in] no way clear whether the answer is another INDEX/storage structure Correct me if I am wrong Thomas. Duane From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:40:03 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE43B16A402 for ; Sun, 13 May 2007 21:40:03 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6391813C45B for ; Sun, 13 May 2007 21:40:03 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l4DLdkvD035792; Sun, 13 May 2007 22:39:48 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l4DLdkvD035792 Message-ID: <464785A2.8090001@infracaninophile.co.uk> Date: Sun, 13 May 2007 22:39:46 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Kris Kennaway References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> <4646C249.6070103@infracaninophile.co.uk> <20070513084404.GA35648@xor.obsecurity.org> <4646F084.3080601@infracaninophile.co.uk> In-Reply-To: <4646F084.3080601@infracaninophile.co.uk> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 13 May 2007 22:39:58 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.2/3236/Sun May 13 08:23:27 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, DK_POLICY_SIGNSOME,NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:40:04 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Matthew Seaman wrote: > I can certainly add a check for duplicate PKGNAME and emit warnings. In > order to be sure of getting the canonical INDEX-N you'ld need a system > with no ports installed. Well, other than p5-FreeBSD-Portindex and > dependencies -- none of which suffer from this problem. Hmmm, well, I have the first cut at this now. As an added bonus, it enforces having the port mentioned in the $SUBDIR variable of the category Makefile before it will add it to the INDEX[*]. Turns out there are at least 6 ports present in the tree but not hooked up in that way: happy-idiot-talk:/tmp:% portindex -o INDEX.m |& grep 'not referenced' FreeBSD::Portindex::Tree:printindex(): /usr/ports/emulators/linux-vmware-toolbox6 is not referenced from the /usr/ports/emulators category -- not added to INDEX FreeBSD::Portindex::Tree:printindex(): /usr/ports/emulators/vmware-guestd6 is not referenced from the /usr/ports/emulators category -- not added to INDEX FreeBSD::Portindex::Tree:printindex(): /usr/ports/net-mgmt/nipper is not referenced from the /usr/ports/net-mgmt category -- not added to INDEX FreeBSD::Portindex::Tree:printindex(): /usr/ports/net/asterisk12-app-ldap is not referenced from the /usr/ports/net category -- not added to INDEX FreeBSD::Portindex::Tree:printindex(): /usr/ports/x11-fonts/libXfont is not referenced from the /usr/ports/x11-fonts category -- not added to INDEX FreeBSD::Portindex::Tree:printindex(): /usr/ports/x11-fonts/xfs is not referenced from the /usr/ports/x11-fonts category -- not added to INDEX as well as a number of duplicate PKGNAMEs -- mostly to do with A4 vs letter paper size. Cheers, Matthew [*] Should this always be enforced? Hmmm... I think I'll add a '--strict' option, including that. Being able to add arbitrary ports into the INDEX can be vaguely useful sometimes. - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGR4Wi8Mjk52CukIwRCKGwAJ9sflhEHhm7980YfgGWmqGeubMjjgCcDPIi veocs5SgrNnmF6CJ7XBFfL0= =xCKf -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:44:28 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8594016A404 for ; Sun, 13 May 2007 21:44:28 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 706B413C45D for ; Sun, 13 May 2007 21:44:28 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 7ECF41A3C19; Sun, 13 May 2007 14:45:16 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 52B6B52C9B; Sun, 13 May 2007 17:44:27 -0400 (EDT) Date: Sun, 13 May 2007 17:44:27 -0400 From: Kris Kennaway To: Matthew Seaman Message-ID: <20070513214426.GA64291@xor.obsecurity.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> <4646C249.6070103@infracaninophile.co.uk> <20070513084404.GA35648@xor.obsecurity.org> <4646F084.3080601@infracaninophile.co.uk> <464785A2.8090001@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464785A2.8090001@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:44:28 -0000 On Sun, May 13, 2007 at 10:39:46PM +0100, Matthew Seaman wrote: > Matthew Seaman wrote: > > > I can certainly add a check for duplicate PKGNAME and emit warnings. In > > order to be sure of getting the canonical INDEX-N you'ld need a system > > with no ports installed. Well, other than p5-FreeBSD-Portindex and > > dependencies -- none of which suffer from this problem. > > Hmmm, well, I have the first cut at this now. As an added bonus, it > enforces having the port mentioned in the $SUBDIR variable of the > category Makefile before it will add it to the INDEX[*]. > > Turns out there are at least 6 ports present in the tree but not hooked > up in that way: > > happy-idiot-talk:/tmp:% portindex -o INDEX.m |& grep 'not referenced' > FreeBSD::Portindex::Tree:printindex(): /usr/ports/emulators/linux-vmware-toolbox6 is not referenced from the /usr/ports/emulators category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/emulators/vmware-guestd6 is not referenced from the /usr/ports/emulators category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/net-mgmt/nipper is not referenced from the /usr/ports/net-mgmt category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/net/asterisk12-app-ldap is not referenced from the /usr/ports/net category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/x11-fonts/libXfont is not referenced from the /usr/ports/x11-fonts category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/x11-fonts/xfs is not referenced from the /usr/ports/x11-fonts category -- not added to INDEX I think they're all repo-copies in progress, and should indeed not appear in the index yet. > as well as a number of duplicate PKGNAMEs -- mostly to do with A4 vs > letter paper size. What I would like is for the incrementally built index to be identical to the 'make index' version, or at least up to cosmetic differences that I can post-process away automatically. Then I can set up a comparison that validates the incremental index over a period of time to look for remaining corner cases where it gets out of sync. Kris From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:55:19 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C5D0416A406 for ; Sun, 13 May 2007 21:55:19 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5A29E13C459 for ; Sun, 13 May 2007 21:55:19 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (c-82-192-240-247.customer.ggaweb.ch [82.192.240.247]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id l4DLtF4P079976; Sun, 13 May 2007 23:55:15 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id D5D9B2E21F; Sun, 13 May 2007 23:55:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SwrGHxVA-O-N; Sun, 13 May 2007 23:55:06 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 973BA2E201; Sun, 13 May 2007 23:55:06 +0200 (CEST) From: Benjamin Lutz To: freebsd-hackers@freebsd.org, Thomas.Sparrevohn@btinternet.com Date: Sun, 13 May 2007 23:55:02 +0200 User-Agent: KMail/1.9.5 References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513202737.GA63102@xor.obsecurity.org> <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> In-Reply-To: <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"=?utf-8?q?=5F+=0A=09R2?=@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@=?utf-8?q?g=3F=0A=094f?=,\c7|Ghwb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2421693.psxp62cECv"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200705132355.05941.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.61 on 213.160.40.60 Cc: Michel Talon , Kris Kennaway Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:55:19 -0000 --nextPart2421693.psxp62cECv Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 13 May 2007 23:00, Thomas Sparrevohn wrote: > The on-disk format seems to be the wrong angle on the issue - The > current structure Works well - but it has a number of drawbacks - > however it no way clear whether that The answer is another > INDEX/storage structure=20 When coming up with ideas what to change INDEX's storage method to, just=20 keep in mind that=20 =2D There is very little flexibility whatsoever in the way data is stored in the file. Each entry in the INDEX has its 13 or so fields, and that's it. One of the strengths of XML, self-descriptiveness for very dynamic data structures, doesn't matter for INDEX. Basically, imho, using XML for tabular data =3D bad. =2D INDEX exists for speed. Accessing the information in it should be as fast as possible. I object to any change that increases the time needed to search for and parse INDEX entries. I've written a little searching tool (it can be found ports-mgmt/psearch). If INDEX were to be converted to XML, just because of that it would be considerably slower. If psearch then were to use standard XML parsing libs, the slowdown would probably be at least an order of magnitude. If there's any change to INDEX's format, it should make access faster, not slower. A format that allows constant-time random access would be nice, for example. =2D INDEX does not need to be portable. It'll be used on FreeBSD systems only, and by tools written specifically for the ports system. The second point is most important here. This whole thread exists=20 because people consider the existing ports system to be too slow. How=20 is using XML going to help with that at all? Cheers Benjamin --nextPart2421693.psxp62cECv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGR4k5zZEjpyKHuQwRAnR4AJ4p2/m6nE+FsLoLJBszN0OBszrQxgCeLc9I 69GJUSGxi3A5vtVtFZdfBcQ= =VOa2 -----END PGP SIGNATURE----- --nextPart2421693.psxp62cECv-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 23:33:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6486716A400 for ; Sun, 13 May 2007 23:33:29 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp809.mail.ird.yahoo.com (smtp809.mail.ird.yahoo.com [217.146.188.69]) by mx1.freebsd.org (Postfix) with SMTP id E52F313C44C for ; Sun, 13 May 2007 23:33:28 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 1453 invoked from network); 13 May 2007 23:33:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:Reply-To:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=tpGT/TQF8FFAE8+Gz4BezXnIdhYMSJ5ljh8i4YQ0z9eYsHKCv2Yx3j3ayIVc0LDZE4+Z70cS934NKksbnbRogz/LgJ/UkhpL1/mj0OoLwh/FUdzznKkRaoN+pUO41xaRM62pGit481pRQADQUqpGcObQq3nh3yy89+SDgYyAUHE= ; Received: from unknown (HELO w2fzz0vc03) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp809.mail.ird.yahoo.com with SMTP; 13 May 2007 23:33:24 -0000 X-YMail-OSG: RrDnxbkVM1nXwMTYfupbpwdTb0Fpt12.PEY57_YCRpvK0ToVpNt1z7GIqLDvaI_HGNozSA0Q3A-- From: "Thomas Sparrevohn" To: "'Benjamin Lutz'" , References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513202737.GA63102@xor.obsecurity.org> <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> <200705132355.05941.mail@maxlor.com> In-Reply-To: <200705132355.05941.mail@maxlor.com> Date: Mon, 14 May 2007 00:33:23 +0100 Message-ID: <008101c795b7$19946d60$4cbd4820$@Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AceVqWUCIQaYdtkgTiSil8yRPAc4WwAAvgVQ Content-Language: en-gb Cc: 'Michel Talon' , 'Kris Kennaway' Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 23:33:29 -0000 > On Sunday 13 May 2007 23:00, Thomas Sparrevohn wrote: > > The on-disk format seems to be the wrong angle on the issue - The > > current structure Works well - but it has a number of drawbacks - > > however it no way clear whether that The answer is another > > INDEX/storage structure > > When coming up with ideas what to change INDEX's storage method to, > just keep in mind that > > - There is very little flexibility whatsoever in the way data is stored > in the file. Each entry in the INDEX has its 13 or so fields, and > that's it. One of the strengths of XML, self-descriptiveness for very > dynamic data structures, doesn't matter for INDEX. Basically, imho, > using XML for tabular data = bad. Agree and Disagree ;-) For an on disk storage structure absolutely yes - A file that was native XML does not make sense - let's forget XML/SQL etc For a second The issue at hand is two/many fold - What I am trying to convey is 1) There is one discussion about "Internal Ports" and FreeBSD on disk format 2) There is one discussion about what are the best ABI for tools using that data 3) There is a discussion about Dependency handling in general The issue of looking up an installed port can be handled separately - and indeed most Of the port management tools does exactly that e.g. portupgrade The challenge with ports are the "static dependencies" and the "ad-hoc dependencies". > > - INDEX exists for speed. Accessing the information in it should be as > fast as possible. I object to any change that increases the time > needed to search for and parse INDEX entries. I've written a little > searching tool (it can be found ports-mgmt/psearch). If INDEX were to > be converted to XML, just because of that it would be considerably > slower. If psearch then were to use standard XML parsing libs, the > slowdown would probably be at least an order of magnitude. > Absolutely - that is exactly the problem - all the port maintenance tools are Depending on a intimate understanding of directory structures etc making it Very tricky to change without breaking the tools. > > The second point is most important here. This whole thread exists > because people consider the existing ports system to be too slow. How > is using XML going to help with that at all? > But exactly what is to slow? - The fact that be default the system is single threaded or "make install". IMO Ports are still far better that most other approaches- I converted INDEX into postgresSQL because I was playing around with making a message queue based approach - and it becomes BIG - The only table structure difference from the current format was that I was able to track "who is depending on" a port - which I am pretty sure could be handled in the current framework - e.g. we could add a file having the depending port names or so I would think a better approach would be to use a static matrix or an information tree structure. In another life I solved a problem like this that way e.g. each entry was assigned a unique prefix sequence etc. I am not sure however if that would be overkill for a typical install base of 500-600 ports. I suggest that people play around with INDEX and SQL - it quite easy to make a schema and a data loader - On a day to day basis I doubt that it will be much faster because it has to scan the ports directory as well. Regards T. PS. Another fun thing to play with is to load all files into a database - Makefile the lot From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 23:33:42 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D717516A40A for ; Sun, 13 May 2007 23:33:42 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from smtp808.mail.ird.yahoo.com (smtp808.mail.ird.yahoo.com [217.146.188.68]) by mx1.freebsd.org (Postfix) with SMTP id 3AABA13C455 for ; Sun, 13 May 2007 23:33:42 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: (qmail 58626 invoked from network); 13 May 2007 23:07:01 -0000 Received: from unknown (HELO ?192.168.1.2?) (thomasjudge@btinternet.com@86.140.150.175 with plain) by smtp808.mail.ird.yahoo.com with SMTP; 13 May 2007 23:07:01 -0000 X-YMail-OSG: _slP1pUVM1kCgrvttlwjM3Qhzh9Dg2vD8x9QINsNW4izx9wA Message-ID: <46479A4A.1070103@tomjudge.com> Date: Mon, 14 May 2007 00:07:54 +0100 From: Tom Judge User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> In-Reply-To: <86r6pkzhso.fsf@dwp.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, Mike Meyer , Michel Talon Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 23:33:42 -0000 Dag-Erling Smørgrav wrote: > Michel Talon writes: >> Seriously, the FreeBSD package system is in great need of a profound >> overhaul, pretending it works well is complete denial of reality. > > Perhaps, but I seriously doubt that you are the correct person for the > job. > > DES This is exactly the kind of response that will push people away from the project/community. If everyone that suggests some change that a respected member of the community did not like and then said member sent a response like this I would guess that people would stop suggesting any changes/features. It is this kind of attitude that will drive new blood away from the project. I thought the idea was to try to encourage people to make improvements to the project rather than to drive them away. BTW I am not saying that any of the ideas that have been discussed in this thread are good or bad, just that this kind of response seems to be against the ethos of the project. Just my 2p Tom From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 23:34:08 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1880316A400 for ; Sun, 13 May 2007 23:34:08 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp807.mail.ird.yahoo.com (smtp807.mail.ird.yahoo.com [217.146.188.67]) by mx1.freebsd.org (Postfix) with SMTP id 8129413C45D for ; Sun, 13 May 2007 23:34:07 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 55306 invoked from network); 13 May 2007 23:34:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:Reply-To:From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=iOITgRWJsXpeSKcHDoZo/TT2yFjJnB0u6J8ssJPGYTgdcFn34pal1mmByOEBsdGFLLNLC0+ibHBmCkGGmApwlaxnoxGwbKFxKMB7fxdmOKh8Jgf5++xyJE3XMAnbXl7PMp7Z+gVFCmoX4BW5Wjat8huUk7BLUyUkoqIMirTwC+U= ; Received: from unknown (HELO w2fzz0vc03) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp807.mail.ird.yahoo.com with SMTP; 13 May 2007 23:34:06 -0000 X-YMail-OSG: 5.08Cb0VM1nozf5uGxV1z_Fb9t0KdbFgxa5j358WxmFkTOKoAjIwKMyjCOixWvusW6EfT5VmWcK8BVHQIVoex0GFfit.hxubzw-- From: "Thomas Sparrevohn" To: References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> <200705132042.26167.mail@maxlor.com> <20070513202737.GA63102@xor.obsecurity.org> <20070513210419.GA63733@xor.obsecurity.org> <20070513212059.GD1017@dwpc.dwlabs.ca> In-Reply-To: <20070513212059.GD1017@dwpc.dwlabs.ca> Date: Mon, 14 May 2007 00:34:05 +0100 Message-ID: <009a01c795b7$3263e5f0$972bb1d0$@Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AceVpLP5F6Zw6jb5TOeXrPiRZfB7QAAEni3g Content-Language: en-gb Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 23:34:08 -0000 You got it > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > hackers@freebsd.org] On Behalf Of Duane Whitty > Sent: 13 May 2007 22:21 > To: Kris Kennaway > Cc: freebsd-hackers@freebsd.org; Thomas.Sparrevohn@btinternet.com > Subject: Re: DPS Initial Ideas > > On Sunday, 13 May 2007 at 17:04:20 -0400, Kris Kennaway wrote: > > On Sun, May 13, 2007 at 10:00:46PM +0100, Thomas Sparrevohn wrote: > > > > > The answer is another INDEX/storage structure > > > > Great, I look forward to your detailed proposal. > > > > Kris > > > I believe this is closer to what Thomas meant: > > but it has a number of drawbacks - however it [is in] no way clear > whether the answer is another INDEX/storage structure > > Correct me if I am wrong Thomas. > > Duane > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 00:16:12 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBF0C16A405 for ; Mon, 14 May 2007 00:16:12 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp805.mail.ird.yahoo.com (smtp805.mail.ird.yahoo.com [217.146.188.65]) by mx1.freebsd.org (Postfix) with SMTP id 4270C13C459 for ; Mon, 14 May 2007 00:16:12 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 69964 invoked from network); 14 May 2007 00:16:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:Reply-To:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=fY2lcYi64JkQbsT8QwBOAmKke/CIhz9iSzB49FcXmNcTI6E4zLHAxsrJWzP0jRiU3DBsBW6Yc0RvPK79Zixe0KxhDcofiHHeHV6yd6BJGeTZgdaWDoh4D8rEFg3nQAnW6OjsJ8yD0SRYwU5OvoGa1LzyBEnyaaHu6RIs0ESWr2g= ; Received: from unknown (HELO w2fzz0vc03) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp805.mail.ird.yahoo.com with SMTP; 14 May 2007 00:16:10 -0000 X-YMail-OSG: NeUM9.QVM1lJYDtAAVbGGUXozjOyn4x3tWOkpGicM65ClRwp5.zjh4l83eKNVruxxGsHHMpjOQ-- From: "Thomas Sparrevohn" To: "'Benjamin Lutz'" , References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513202737.GA63102@xor.obsecurity.org> <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> <200705132355.05941.mail@maxlor.com> In-Reply-To: <200705132355.05941.mail@maxlor.com> Date: Mon, 14 May 2007 01:16:09 +0100 Message-ID: <010701c795bd$131e5120$395af360$@Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AceVqYeUlXFBX+nrRm+koAQjEQDFXQAEW/uA Content-Language: en-gb Cc: 'Michel Talon' , 'Kris Kennaway' Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 00:16:12 -0000 > > The second point is most important here. This whole thread exists > because people consider the existing ports system to be too slow. How > is using XML going to help with that at all? > But which part? The /var half of the equation - well that depends on the operation - Lookup? E.g. testing for the existence of another port? Update? E.g. Updating a dependency (Implicit Lookup) Delete? E.g. Removing (Implicit Update and Lookup) Install and so on Lookup and update can be optimized but for what install base? E.g. Do we know how many ports the typical system has? A simple solution - to the lookup and update - could be to have a master dependencies matrix N x N where each dimension is a port and a dependency - if the typical install base is say 500 ports that only has to be 500x500 bits - and so on. The /usr/ports/INDEX side is another issue totally - and the primary problem is maintaining the file without having to visit all directories - well - a simple hack is only to update changed records based upon mtime - it's still nasty - because all dependencies has to be changed as well. From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 00:50:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C3D8516A402 for ; Mon, 14 May 2007 00:50:01 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 7355713C457 for ; Mon, 14 May 2007 00:50:01 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 45450 invoked by uid 1001); 14 May 2007 00:49:33 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sun, 13 May 2007 20:49:33 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17991.45596.499601.195720@bhuda.mired.org> Date: Sun, 13 May 2007 20:49:32 -0400 To: Michel Talon In-Reply-To: <20070512090935.GA13929@lpthe.jussieu.fr> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 00:50:01 -0000 In <20070512090935.GA13929@lpthe.jussieu.fr>, Michel Talon typed: > On Fri, May 11, 2007 at 10:01:46PM -0400, Mike Meyer wrote: > > In <20070512004209.GA12218@lpthe.jussieu.fr>, Michel Talon typed: > > > One of the most obvious being that the sqlite database can be edited > > > as easily as a pure textfile using the sqlite3 program > > Huh? They can? With a pure textfile, if vi is busted, I can use ed. If > > ed is also busted, I can use sed. What do I use on an sqlite database > > if sqlite3 is busted? > - first i don't suppose sqlite3 is busted, since i suppose it is in the > base system and it works by definition. Your hypothesis is alike, what > do i do to edit my config files if vi and ed are busted? Moreover if > sqlite3 gets really busted i can import a copy and hope it works, it > requires very few libraries and other files, not much more than vi, > plus the sqlite3 library, of course. The combined size of sqlite3 > and libsqlite3 is less than 400k. You missed the point. The claim was "the sqlite database can be edited as easily as a pure textfile." I claim this is not always true. In particular, since someone has already mentioned using SQL for system config file instead of just the pkackage db, if your system has suffered a major failure such that commands in the base system - like vi, ed, etc. - are busted, then sqlite (whether it's part of the base system or not) can equally well be be broken. With flat text, there are lots of tools in the base system that can be used for dealing with them if one (or more) is broken. By your own admission, if sqlite is so broken, the only alternative is to get another copy. Under these circumstances, sqlite can *not* be "edited as easily as pure text file". > - second, if i am sql allergic, it takes one command to export the table > to a straight file, each row in a line, each field separated by | or > anything else of my choice. Exactly the same tools that you have > mentioned allow to edit this file, and then one command allows to load > it in the database. The point of the second question wasn't that some people are allergic to SQL - the point was that pure text files are different from SQL, and two have different sets of strengths in weaknesses. In this case, a strength of a pure text file is that it's easy to ignore record and field boundaries when operating on it. This kind of thing is hard to do in SQL, so that the easiest way to do it may well be the one you suggested - convert it to flat text, transform it, and convert back. Once again, sqlite can not be "edited as easiliy as a pure text file". That said, the first case isn't crucial for the ports/packages db. Your system will boot and pretty much run fine if that database is screwed up, so importing a new copy to fix things isn't unreasonable. I also agree that the need for performance in the ports db is such that using a binary database of some kind is probably justified - because speed isn't one of the strengths of pure text files. Whether or not SQL brings enough to the table to justify adding sqllite to the base system when compared to tools that are already there is another issue. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:55:14 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C5D816A406 for ; Sun, 13 May 2007 21:55:14 +0000 (UTC) (envelope-from nolis71cu@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by mx1.freebsd.org (Postfix) with ESMTP id 2DD8513C457 for ; Sun, 13 May 2007 21:55:14 +0000 (UTC) (envelope-from nolis71cu@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1402585wxc for ; Sun, 13 May 2007 14:55:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=AZoAZlM0Q9ou2jn5Gpy27gtUqJmeE9d/rLC7pYJJqcWSTFLGQEjKRadlamWWYw5XdIpab04t/indyTh1N2KCh6Om7UT5Xjc0NYi0++m5ZNAG8ageZI0MvZwC9hbzMR7GrBVoJm8rRchx+Pyc6RxBVGylOBY+KqcfRXLNWPekZxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=bCT6jRkXMNWSetJ1/0ytriMG1vpz/WI9G3OwRwJBQKMSfaBzU6aDLMxOKRge/8PBI6NdI9Weu24Sc9ZVI9b/NJgQzxd6qLz5GjWtzb+kWW71M+kI1el1BMQoo+DdraFV0y35ar8SA59M49TsSHr22uiNOPgnmGqsvIPkNdOlqvU= Received: by 10.70.116.14 with SMTP id o14mr8745076wxc.1179091703547; Sun, 13 May 2007 14:28:23 -0700 (PDT) Received: from ?192.168.100.31? ( [200.55.166.34]) by mx.google.com with ESMTP id h38sm14927715wxd.2007.05.13.14.28.20; Sun, 13 May 2007 14:28:23 -0700 (PDT) From: Manolo Valdes To: freebsd-hackers@freebsd.org Date: Sun, 13 May 2007 17:27:05 -0400 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705131727.05192.nolis71cu@gmail.com> X-Mailman-Approved-At: Mon, 14 May 2007 01:31:20 +0000 Subject: system proccess like [pagedaemon] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:55:14 -0000 Hi Guys I'm trying to filter the process info by his struct kinfo_proc and i want to know if there is some caracteristic of the [systems process] that i can use to identify then. thanks in advance. best regards Manolito please CC mail me. i'm not Subscribed to the list -- Dios no es hombre para que mienta. Num. 23:19 --------------------------------------------------------- God is not a man, that He should lie. Num. 23:19 From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 02:21:23 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5586F16A402 for ; Mon, 14 May 2007 02:21:23 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id CDC1313C458 for ; Mon, 14 May 2007 02:21:22 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l4E2LDox026296; Mon, 14 May 2007 04:21:14 +0200 From: Pieter de Goeje To: freebsd-hackers@freebsd.org Date: Mon, 14 May 2007 04:21:12 +0200 User-Agent: KMail/1.9.6 References: <200705131727.05192.nolis71cu@gmail.com> In-Reply-To: <200705131727.05192.nolis71cu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705140421.13122.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Manolo Valdes Subject: Re: system proccess like [pagedaemon] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 02:21:23 -0000 On Sunday 13 May 2007, Manolo Valdes wrote: > Hi Guys > > I'm trying to filter the process info by his struct kinfo_proc > and i want to know if there is some caracteristic of the [systems process] > that i can use to identify then. > > thanks in advance. > best regards > Manolito > > please > CC mail me. i'm not Subscribed to the list ki_ppid (parent process id) will be zero. Cheers, Pieter de Goeje From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 03:54:54 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1F5816A404 for ; Mon, 14 May 2007 03:54:54 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from www.axisintegrated.com (sub21-211.member.dsl-only.net [63.105.21.211]) by mx1.freebsd.org (Postfix) with ESMTP id 9ACCF13C455 for ; Mon, 14 May 2007 03:54:54 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from [10.4.2.71] (unknown [10.4.2.71]) by www.axisintegrated.com (Postfix) with ESMTP id 6FBB16A0891 for ; Mon, 14 May 2007 03:33:27 -0700 (PDT) Message-ID: <4647D88D.5060404@functionalchaos.net> Date: Sun, 13 May 2007 20:33:33 -0700 From: David Cramblett User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4640EAD0.3020502@mesd.k12.or.us> In-Reply-To: <4640EAD0.3020502@mesd.k12.or.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 03:54:54 -0000 My FreeBSD 5.2.1 server had a 4.5 GB HDD. I decided to upgrade it with a larger drive. I installed a new drive on the second IDE channel which made it ad2, of course, my original drive was ad0. I created a partition, boot loader and matching slices on the new drive. Then I copied the old drive to the new drive using tar. Once finished, I removed the original drive and installed the new one on the primary channel. When I booted up everything appeared normal, but when the system starts to mount "/" it gives no error or warning and just drops to a "Manual mount root specification" prompt. If I type "ufs:ad0s1a" it boots up and everything is perfect. This is the same slice "/" was on the old drive as well. I have tried the following with no success: Checked /etc/fstab boot0cfg -v -B ad0 bsdlabel -B ad0s1 tried booting from a cd, going into post install config, fdisk, and set the partition as bootable, it already was. Since upgrading the hard disk, I have upgraded the system to 5.5 and then to 6.2. This system has been working great for over a week now, just have this boot problem. -------------- Here is my fstab: /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 -------------- Output from bsdlabel # bsdlabel ad0s1 # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 585018626 1048576 4.2BSD 2048 16384 28552 b: 1048576 0 swap c: 586067202 0 unused 0 0 # "raw" part, don't edit -------------- Output from boot0cfg # boot0cfg -v ad0 # flag start chs type end chs offset size 1 0x80 0: 1: 1 0xa5 1023:254:63 63 586067202 version=1.0 drive=0x80 mask=0xf ticks=182 options=nopacket,update,nosetdrv default_selection=F1 (Slice 1) Thanks, David From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 04:13:51 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E209816A400 for ; Mon, 14 May 2007 04:13:51 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id BFC6813C45D for ; Mon, 14 May 2007 04:13:51 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id l4E4DpH7025057 for ; Sun, 13 May 2007 21:13:51 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <4647E1FF.4010605@freebsd.org> Date: Sun, 13 May 2007 21:13:51 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <200705102105.27271.blackdragon@highveldmail.co.za> <4643E10A.5030104@u.washington.edu> <20070513042254.GC1017@dwpc.dwlabs.ca> In-Reply-To: <20070513042254.GC1017@dwpc.dwlabs.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 04:13:52 -0000 Duane Whitty suggested: > I'm a little out of practice, however, perhaps the routines > that manipulate the ports meta-data could be sufficiently > agnostic about how the data is being manipulated that it > would facilitate experimentation with different > back-ends at a later time.... Yes. This is an excellent idea. I wrote up some of my own ideas in this direction a few years ago: http://people.freebsd.org/~kientzle/libarchive/libpkg.3.txt The basic idea was, as you say, to provide an abstract interface that separates the data storage from what the tools require. Unfortunately, libarchive (which started as part of a package tools overhaul) has absorbed more time than I expected, so I've not had a chance to get back to these ideas. Tim Kientzle From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 04:37:19 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4203316A400 for ; Mon, 14 May 2007 04:37:19 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1C1B713C45E for ; Mon, 14 May 2007 04:37:19 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id l4E4bHH7025193; Sun, 13 May 2007 21:37:17 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <4647E77D.8020807@freebsd.org> Date: Sun, 13 May 2007 21:37:17 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <200705102105.27271.blackdragon@highveldmail.co.za> <4643E10A.5030104@u.washington.edu> <20070513042254.GC1017@dwpc.dwlabs.ca> In-Reply-To: <20070513042254.GC1017@dwpc.dwlabs.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: blackdragon@highveldmail.co.za Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 04:37:19 -0000 David Naylor volunteered: >Since the installation system is being tackled under a SoC project I am >hoping to give the packaging system a go. Wonderful! Be careful about one point: The packaging system as a whole is a big system; much bigger than many people believe. A lot of people (including myself) have set out to rebuild the package system. Few of us have gotten very far. (For example, I built libarchive in order to rework pkg_add. But changing pkg_add's install logic required rethinking dependency handling, which turned out to be a lot more complex than I thought.) A good place to start is with the existing tools. Search the bug reports, work up fixes to some of them and submit those fixes as follow-ups. Start conservatively; don't break compatibility with existing tools until you understand the system more completely. In particular, expect a lot of skepticism about major format changes until you have some actual numbers to back you up. A lot of people on this mailing list have looked into performance issues with the package system; the real problems may not be where you think they are. >I have searched the FreeBSD mailing lists and have found little >information on the package system. The people who maintain the current codebase are right on this mailing list. Ask away! What do you want to know? Tim Kientzle From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 04:55:38 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E47A816A400 for ; Mon, 14 May 2007 04:55:38 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 89C5313C45D for ; Mon, 14 May 2007 04:55:38 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 44899 invoked by uid 1001); 14 May 2007 04:55:10 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 14 May 2007 00:55:10 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17991.60332.227909.539504@bhuda.mired.org> Date: Mon, 14 May 2007 00:55:08 -0400 To: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) In-Reply-To: <86zm48ziks.fsf@dwp.des.no> References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070511051852.GA89359@xor.obsecurity.org> <17988.32573.910854.388638@bhuda.mired.org> <200705111011.52212.fcash@ocis.net> <17988.46905.9205.461424@bhuda.mired.org> <86zm48ziks.fsf@dwp.des.no> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 04:55:39 -0000 In <86zm48ziks.fsf@dwp.des.no>, Dag-Erling Sm=F8rgrav type= d: > Mike Meyer writes: > > Moving the OS into the package system has been on the "todo" list f= or > > a long time (assuming it's still there - there are people opposed t= o > > that). > It has *never* been on the todo list. Might depend on whose list you're thinking about. I'm pretty sure it was on the list for the sysinstall rewrite, but that project has been dead long enough that I can't find any of the docs to check if my memory was playing tricks on me or not. > > How would setting LOCALBASE=3D/usr break this=3F Of course, equally= valid > > is the question "what will break if I set LOCALBASE=3D/usr"=3F Hmm.= I > > think I may found out.... > For one, man pages for ports will end up in the wrong place (/usr/man= > instead of /usr/share/man). Is this really "broken"=3F If so, are you sure it's not ports installin= g in ${LOCALBASE}/man instead of ${LOCALBASE}/share/man that's broken=3F A number of ports seem to depend on the directory tree in ${LOCALBASE} existing - ${LOCALBASE}/man/... and ${LOCALBASE}/etc, in particular. They use the INSTALL macros to point single files at directories, which macro will quite happily create a file with the target name if it's not a directory. This creates a number of interesting problems later on. Trying to use WITH=5FOPENSSL=5FBASE on ports that need an SSL library i= s interesting. I wouldn't be surprised if there were other, similar problems elsewhere. =09=09=09http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more informatio= n. From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 05:14:13 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26C5016A403 for ; Mon, 14 May 2007 05:14:13 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 0271613C44B for ; Mon, 14 May 2007 05:14:12 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E5E7MK031471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 13 May 2007 22:14:07 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E5E6hg016876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 13 May 2007 22:14:07 -0700 Message-ID: <4647F016.1070200@u.washington.edu> Date: Sun, 13 May 2007 22:13:58 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Ivan Voras References: <200705102105.27271.blackdragon@highveldmail.co.za> <4643C7DB.6000408@elischer.org> <17988.35412.231093.411177@bhuda.mired.org> <17988.40311.210855.381093@bhuda.mired.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.13.215934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-hackers@freebsd.org Subject: Re: SQL in the base system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 05:14:13 -0000 Ivan Voras wrote: > Mike Meyer wrote: > >> Yes, they are present no matter what representation you use. The >> question is - how do the answers change if you change the >> format. These days, cross-platform means you deal with length as well >> as endian issues. Or maybe you don't, depending on the db. I know the >> answers for text files (easy, easy, very, yes). Can you propose a db >> scheme that gets has the same answers? > > I think I don't understand the question. If the database contains number > "42" in a field typed "int32", in a row, and handles endianess well, why > would I get a different number on different platforms? > > (A side note about sqlite: it's actually weakly typed - you store and > receive strings). > >> I hate to tell you this, but your XML solution would still consist of >> a bunch of one-of file formats for each and every purpose. Using XML >> just fixes the syntax for the file, not the semantics. Settling on XML >> (or JSON, or INI, or cap files, or ...) is sort of like settling on >> UTF, only less obviously a win. Sure, you get to use canned code that >> will turn you text file into a structure in memory. But you still have >> to figure out what it all means. >> >> As you say, the XML toolset is the real win. Smart editors, >> validators, schemas (which make the editors and validators even more >> powerful) are all good things. Most people don't really seem >> interested in this beyond editors. That's not really much of a win. > > I agree that validation in XML is a strong point - but one of the reason > people like text files is that they DON'T usually have validation > features :) > > | pro | contra > ---------------------------------------------------------------------- > XML | standard tools, validation, | evil manual parsing, bad rep > | can embed multiple data | > | structures in a standard way | > ---------------------------------------------------------------------- > text | standard tools, sometimes | no validation, manual parsing, > | human readable | usually one data structure per > | | file > > I assume that many Database formats have functionality to convert to 'system independent' endianized fields when flushing the database to disk. That's what BDB does at least (I think that the endianness used is little endian). -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 05:16:43 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4356816A402 for ; Mon, 14 May 2007 05:16:43 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 1E6FC13C483 for ; Mon, 14 May 2007 05:16:43 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E5Gg8F024704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 13 May 2007 22:16:42 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E5GgNH001667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 13 May 2007 22:16:42 -0700 Message-ID: <4647F0B9.2000509@u.washington.edu> Date: Sun, 13 May 2007 22:16:41 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <200705102105.27271.blackdragon@highveldmail.co.za> <4643C7DB.6000408@elischer.org> <17988.35412.231093.411177@bhuda.mired.org> <20070511165612.GA48097@lizzy.catnook.local> In-Reply-To: <20070511165612.GA48097@lizzy.catnook.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.13.215934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: SQL in the base system (Was: New FreeBSD package system (a.k.a. Daemon Package System (dps))) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 05:16:43 -0000 Jos Backus wrote: > On Fri, May 11, 2007 at 11:23:00AM -0400, Mike Meyer wrote: > [snip] >> How robust is it - can a corrupt block fry the entire database? > > Dunno, but "Transactions are atomic, consistent, isolated, and durable (ACID) > even after system crashes and power failures.". So it appears to try hard to > minimize the chance of corruption. > >> How about portability - can I move the file to a completely >> different architecture and still get the data from it? > > "Database files can be freely shared between machines with different byte > orders." > > (Quotes taken from http://www.sqlite.org/) > > Also, the code is in the public domain. Be wary of the possible fine print: "Portions of the documentation and some code used as part of the build process might fall under other licenses." From: . -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 05:40:04 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3727C16A402 for ; Mon, 14 May 2007 05:40:04 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 1664113C455 for ; Mon, 14 May 2007 05:40:04 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E5e3vC028132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 13 May 2007 22:40:03 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E5e0qL002926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 13 May 2007 22:40:03 -0700 Message-ID: <4647F627.7020408@u.washington.edu> Date: Sun, 13 May 2007 22:39:51 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070513040651.GB1017@dwpc.dwlabs.ca> In-Reply-To: <20070513040651.GB1017@dwpc.dwlabs.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.13.222433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 05:40:04 -0000 Duane Whitty wrote: > Garrett, > > Sounds like you're involved in a cool project. What kind of > community collaboration/involvement would be helpful to you? > > Once, a long, long time ago, I wrote quite a bit of bdb 1.85 > code. At that time it WAS the current version :) I might > actually remember a bit if I start working with it again. > But what would be most useful to you? > > And if I may ask about a design decision: Why did you choose > a hash structure? Perhaps if you have time you could give > a little more info but whatever fits your schedule. > > Good luck on your project. > > Duane Duane, I actually chose hash structure at the time because I thought it was appropriate for the size of the ports tree and the number of files that may need to be used. Plus, Kris suggested that :). Given the way that I've seen how things are used, this would be great for searching for who added what file, finding cyclic dependencies easily, maintaining uniqueness, etc, many common issues with the current ruby scripts. Also, the other available BDB options like btrees seem inefficient, over the long run :(.. Do you know of any simple APIs that can quickly dump fields in use with BDB .db files? I have a hunch given the Ruby that I've taken a look at with Portupgrade that something very inefficient's in play, but I want to test my assumption first before jumping to conclusions. Thank you very much for the help :)! -Garrett From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 06:08:33 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 80B4B16A403 for ; Mon, 14 May 2007 06:08:33 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 5FE6E13C48C for ; Mon, 14 May 2007 06:08:33 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E68WMJ016934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 13 May 2007 23:08:33 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4E68WDF004440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 13 May 2007 23:08:32 -0700 Message-ID: <4647FCDE.9080307@u.washington.edu> Date: Sun, 13 May 2007 23:08:30 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> In-Reply-To: <4647F627.7020408@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.13.225234 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 06:08:33 -0000 Garrett Cooper wrote: > Do you know of any simple APIs that can quickly dump fields in use > with BDB .db files? I have a hunch given the Ruby that I've taken a look > at with Portupgrade that something very inefficient's in play, but I > want to test my assumption first before jumping to conclusions. s/dump fields/dump field names/ From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 06:34:34 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A72F16A400 for ; Mon, 14 May 2007 06:34:34 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 5936B13C448 for ; Mon, 14 May 2007 06:34:34 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 8615720A7; Mon, 14 May 2007 08:34:30 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 6A73A20A6; Mon, 14 May 2007 08:34:30 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 3F9A75636; Mon, 14 May 2007 08:34:30 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Mike Meyer References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070511051852.GA89359@xor.obsecurity.org> <17988.32573.910854.388638@bhuda.mired.org> <200705111011.52212.fcash@ocis.net> <17988.46905.9205.461424@bhuda.mired.org> <86zm48ziks.fsf@dwp.des.no> <17991.60332.227909.539504@bhuda.mired.org> Date: Mon, 14 May 2007 08:34:29 +0200 In-Reply-To: <17991.60332.227909.539504@bhuda.mired.org> (Mike Meyer's message of "Mon\, 14 May 2007 00\:55\:08 -0400") Message-ID: <861whjzzey.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 06:34:34 -0000 Mike Meyer writes: > Dag-Erling Sm=C3=B8rgrav writes: > > Mike Meyer writes: > > > How would setting LOCALBASE=3D/usr break this? Of course, equally val= id > > > is the question "what will break if I set LOCALBASE=3D/usr"? Hmm. I > > > think I may found out.... > > For one, man pages for ports will end up in the wrong place (/usr/man > > instead of /usr/share/man). > Is this really "broken"? If so, are you sure it's not ports installing > in ${LOCALBASE}/man instead of ${LOCALBASE}/share/man that's broken? It doesn't really matter which is right and which is wrong, it's the inconsistency that is the problem. > A number of ports seem to depend on the directory tree in ${LOCALBASE} > existing - ${LOCALBASE}/man/... and ${LOCALBASE}/etc, in > particular. They use the INSTALL macros to point single files at > directories, which macro will quite happily create a file with the > target name if it's not a directory. This creates a number of > interesting problems later on. They can correctly assume that the directories exist because we always run 'mtree -f /etc/mtree/BSD.local.dist -P ${PREFIX}' before installing a port. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 06:38:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E79F16A400 for ; Mon, 14 May 2007 06:38:21 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4E2C813C44B for ; Mon, 14 May 2007 06:38:21 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id B126A20A7; Mon, 14 May 2007 08:38:17 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 2B98A20A6; Mon, 14 May 2007 08:38:17 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 0242A5638; Mon, 14 May 2007 08:38:16 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Tom Judge References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> Date: Mon, 14 May 2007 08:38:16 +0200 In-Reply-To: <46479A4A.1070103@tomjudge.com> (Tom Judge's message of "Mon\, 14 May 2007 00\:07\:54 +0100") Message-ID: <86wszbyko7.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer , Michel Talon Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 06:38:21 -0000 Tom Judge writes: > Dag-Erling Sm=C3=B8rgrav writes: > > Michel Talon writes: > > > Seriously, the FreeBSD package system is in great need of a profound > > > overhaul, pretending it works well is complete denial of reality. > > Perhaps, but I seriously doubt that you are the correct person for the > > job. > This is exactly the kind of response that will push people away from > the project/community. If everyone that suggests some change that a > respected member of the community did not like and then said member > sent a response like this I would guess that people would stop > suggesting any changes/features. > > It is this kind of attitude that will drive new blood away from the > project. I thought the idea was to try to encourage people to make > improvements to the project rather than to drive them away. I have no intention of driving Michel away, but he does not have the necessary experience to undertake the project he proposes. There is a reason why people have been discussing this for ten years without getting anywhere. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 07:25:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6462016A400 for ; Mon, 14 May 2007 07:25:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2165213C48A for ; Mon, 14 May 2007 07:25:52 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 6DB3E20A7; Mon, 14 May 2007 09:25:49 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 5FE4A20A6; Mon, 14 May 2007 09:25:49 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 478DF564B; Mon, 14 May 2007 09:25:49 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Mike Meyer References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <17991.45596.499601.195720@bhuda.mired.org> Date: Mon, 14 May 2007 09:25:49 +0200 In-Reply-To: <17991.45596.499601.195720@bhuda.mired.org> (Mike Meyer's message of "Sun\, 13 May 2007 20\:49\:32 -0400") Message-ID: <861whjyigy.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Michel Talon Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 07:25:53 -0000 Mike Meyer writes: > You missed the point. The claim was "the sqlite database can be edited > as easily as a pure textfile." I claim this is not always true. In > particular, since someone has already mentioned using SQL for system > config file instead of just the pkackage db, if your system has > suffered a major failure such that commands in the base system - like > vi, ed, etc. - are busted, then sqlite (whether it's part of the base > system or not) can equally well be be broken. If your base system is busted, your priority is to fix your base system, not muck around with packages. They can wait until the base system is working again. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 07:27:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EDB7C16A407 for ; Mon, 14 May 2007 07:27:29 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id AEEF913C4B0 for ; Mon, 14 May 2007 07:27:29 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 0B5AA20AA; Mon, 14 May 2007 09:27:26 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id EA0FA20A8; Mon, 14 May 2007 09:27:25 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id AB961564D; Mon, 14 May 2007 09:27:25 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: David Cramblett References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> Date: Mon, 14 May 2007 09:27:25 +0200 In-Reply-To: <4647D88D.5060404@functionalchaos.net> (David Cramblett's message of "Sun\, 13 May 2007 20\:33\:33 -0700") Message-ID: <86wszbx3tu.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 07:27:30 -0000 David Cramblett writes: > My FreeBSD 5.2.1 server had a 4.5 GB HDD. I decided to upgrade it > with a larger drive. I installed a new drive on the second IDE > channel which made it ad2, of course, my original drive was ad0. I > created a partition, boot loader and matching slices on the new drive. > Then I copied the old drive to the new drive using tar. Once > finished, I removed the original drive and installed the new one on > the primary channel. When I booted up everything appeared normal, but > when the system starts to mount "/" it gives no error or warning and > just drops to a "Manual mount root specification" prompt. If I type > "ufs:ad0s1a" it boots up and everything is perfect. This is the same > slice "/" was on the old drive as well. What's in your /boot.config and /boot/loader.conf? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 08:23:40 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6316B16A404 for ; Mon, 14 May 2007 08:23:40 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp814.mail.ird.yahoo.com (smtp814.mail.ird.yahoo.com [217.146.188.74]) by mx1.freebsd.org (Postfix) with SMTP id CC46F13C448 for ; Mon, 14 May 2007 08:23:39 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 82769 invoked from network); 14 May 2007 08:23:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:Reply-To:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=CMeqMM8oOsxReHoJcD3Pu2//NwTWP5vLAcIG3D1jY8EUt0gf+OqujIFQEwuV2z5LgTunTXI+nfBFNjpwJ05t5moC4yJO3hWCgsEWWziBKDg+kC37vtFksPwCm6+ktinhuw8R4Kn93aI+d0GGdEcge+xl6h6k6yyYnkINEDLhKek= ; Received: from unknown (HELO w2fzz0vc03) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp814.mail.ird.yahoo.com with SMTP; 14 May 2007 08:23:38 -0000 X-YMail-OSG: jWVxEt4VM1mjigxqbL_QtMRM.InHAMkAQvXHwdu0YlMYInQJ4hKoO.abbfvOC40PbntNb11KHg-- From: "Thomas Sparrevohn" To: =?UTF-8?Q?'Dag-Erling_=22Sm=C3=B8rgrav=22'?= , "'Tom Judge'" References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> In-Reply-To: <86wszbyko7.fsf@dwp.des.no> Date: Mon, 14 May 2007 09:23:37 +0100 Message-ID: <000401c79601$2c4372e0$84ca58a0$@Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AceV8oUKHJT1AKc0SP2FIOFBZxiGWgAC/vQQ Content-Language: en-gb Cc: freebsd-hackers@freebsd.org, 'Mike Meyer' , 'Michel Talon' Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 08:23:40 -0000 > There is a > reason why people have been discussing this for ten years without > getting anywhere. >=20 I suspect that is because that by and large the ports system works ;-) - Ha= ving Played around with a couple of Linux distributions - my impression is that = "ports" offers a much more manageable approach or maybe I am just used to ports ;-)= =20 The discussion about ports is really just a subset of the larger discussion= about how to get a proper configuration management mechanism - and I am st= ill waiting to see a real good generic answer to that debate - FreeBSD ports offers in min mind a very good candidate or starting point = =20 However that being said - there could be benefits to a structured approach = to Configuration Identifiers - whether that would result in speed benefits = overall - remains to be seen =20 From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 09:07:10 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC46416A400 for ; Mon, 14 May 2007 09:07:10 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9B4F813C468 for ; Mon, 14 May 2007 09:07:10 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 11C4220A7; Mon, 14 May 2007 11:07:07 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 02DBB2088; Mon, 14 May 2007 11:07:07 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id D2C735047; Mon, 14 May 2007 11:07:06 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <000401c79601$2c4372e0$84ca58a0$@Sparrevohn@btinternet.com> Date: Mon, 14 May 2007 11:07:06 +0200 Message-ID: <86tzufu62t.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: 'Tom Judge' , freebsd-hackers@freebsd.org, 'Mike Meyer' , 'Michel Talon' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 09:07:10 -0000 "Thomas Sparrevohn" writes: > Dag-Erling Sm=C3=B8rgrav writes: > > There is a reason why people have been discussing this for ten years > > without getting anywhere. > I suspect that is because that by and large the ports system works ;-) Not really, it's because fixing it is very hard. Starting from scratch is easier, but you lose the established base of packages, and more importantly, of experienced maintainers and users. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 09:31:30 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1294816A400 for ; Mon, 14 May 2007 09:31:30 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id C30B413C465 for ; Mon, 14 May 2007 09:31:29 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id E897020A7; Mon, 14 May 2007 11:31:25 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 5F92D20A6; Mon, 14 May 2007 11:31:25 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 305D55058; Mon, 14 May 2007 11:31:25 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Alexander Leidinger References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> Date: Mon, 14 May 2007 11:31:25 +0200 In-Reply-To: <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> (Alexander Leidinger's message of "Fri\, 11 May 2007 16\:12\:00 +0200") Message-ID: <86lkfru4ya.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer , Ivan Voras , Kris Kennaway Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 09:31:30 -0000 Alexander Leidinger writes: > Dag-Erling Sm=C3=B8rgrav writes: > > The existence of .la files is a bug. > I fully agree [but this needs to be addressed upstream] Note that we are apparently not the only ones dissatisfied with this state of affairs. The following code is commonly found in rpm specs for Fedora (and, I suspect, for RedHat and CentOS as well): sed -i 's|^hardcode_libdir_flag_spec=3D.*|hardcode_libdir_flag_spec=3D""|g'= libtool sed -i 's|^runpath_var=3DLD_RUN_PATH|runpath_var=3DDIE_RPATH_DIE|g' libtool Perhaps we could make common cause with RH to apply pressure on the libtool maintainers? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 08:25:15 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 779D616A406 for ; Mon, 14 May 2007 08:25:15 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id EC87913C505 for ; Mon, 14 May 2007 08:25:14 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l4E8PC2j054747 ; Mon, 14 May 2007 10:25:12 +0200 (CEST) X-Ids: 164 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id 7EBF2BF6A2; Mon, 14 May 2007 10:25:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from asmodee.lpthe.jussieu.fr (asmodee.lpthe.jussieu.fr [134.157.10.34]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id A69ECBF4FE; Mon, 14 May 2007 10:25:10 +0200 (CEST) Received: by asmodee.lpthe.jussieu.fr (Postfix, from userid 2005) id 62A3B42C6; Mon, 14 May 2007 10:25:12 +0200 (CEST) Date: Mon, 14 May 2007 10:25:12 +0200 From: "'Michel Talon'" To: Thomas Sparrevohn Message-ID: <20070514082512.GA25544@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.164]); Mon, 14 May 2007 10:25:12 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3242/Mon May 14 06:57:51 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 46481CE8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Mailman-Approved-At: Mon, 14 May 2007 11:29:34 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 08:25:15 -0000 On Mon, May 14, 2007 at 12:33:23AM +0100, Thomas Sparrevohn wrote: > > converted INDEX > into postgresSQL because I was playing around with making a message queue > based approach - > and it becomes BIG - The only table structure difference from the current > format was that I > was able to track "who is depending on" a port - which I am pretty sure > could be handled in the > current framework - e.g. we could add a file having the depending port names > or so niobe% cp /usr/ports/INDEX-6 . niobe% sqlite3 index.db sqlite> CREATE TABLE index6 ( pkgname varchar(1), path varchar(1), prefix varchar(1), comment varchar(1), descr varchar(1), maintainer varchar(1), categories varchar(1), build_deps varchar(1), run_deps varchar(1), website varchar(1), extract_deps varchar(1), patch_deps varchar(1), fetch_deps varchar(1)); sqlite> .import INDEX-6 index6 ... completes in less than 2 seconds sqlite> select * from index6 where path = "/usr/ports/accessibility/atk"; atk-1.12.4|/usr/ports/accessibility/atk|/usr/local|A GNOME accessibility toolkit (ATK)|/usr/ports/accessibility/atk/pkg-descr|gnome@FreeBSD.org|accessibility devel|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 libtool-1.5.22_3 perl-5.8.8 pkg-config-0.21|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 perl-5.8.8 pkg-config-0.21|http://developer.gnome.org/projects/gap/||libtool-1.5.22_3| niobe% ls -lh INDEX-6 index.db -rw-r--r-- 1 michel lpthe 9,5M 14 mai 10:00 INDEX-6 -rw-r--r-- 1 michel lpthe 12M 14 mai 10:12 index.db Where is this huge increase in size? Admittedly, i have not created indexes, etc. Compare this to the portsdb created by portupgrade from the same INDEX-6 niobe% ls -lh /usr/ports/INDEX-6.db -rw-r--r-- 1 root wheel 21M 16 fév 13:36 /usr/ports/INDEX-6.db Surprise, surprise, the BerkeleyDB suddenly appears less glorious. -- Michel TALON From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 11:20:19 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A2B8F16A405 for ; Mon, 14 May 2007 11:20:19 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 5700813C459 for ; Mon, 14 May 2007 11:20:19 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54a5d654.dip.t-dialin.net [84.165.214.84]) by redbull.bpaserver.net (Postfix) with ESMTP id 0037B2E12B; Mon, 14 May 2007 13:20:11 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 518ED5B48A3; Mon, 14 May 2007 13:19:56 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l4EBJsfm056494; Mon, 14 May 2007 13:19:54 +0200 (CEST) (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; Mon, 14 May 2007 13:19:54 +0200 Message-ID: <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 14 May 2007 13:19:54 +0200 From: Alexander Leidinger To: Dag-Erling =?utf-8?b?U23Dg8K4cmdyYXY=?= References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> <86lkfru4ya.fsf@dwp.des.no> In-Reply-To: <86lkfru4ya.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.564, required 8, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, MIME_8BIT_HEADER 0.30) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Mon, 14 May 2007 11:29:34 +0000 Cc: freebsd-hackers@freebsd.org, Mike, Meyer , Ivan Voras , Kris Kennaway Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 11:20:19 -0000 Quoting Dag-Erling Sm=C3=83=C2=B8rgrav (from Mon, 14 May 2007 = =20 11:31:25 +0200): > Alexander Leidinger writes: >> Dag-Erling Sm=C3=B8rgrav writes: >> > The existence of .la files is a bug. >> I fully agree [but this needs to be addressed upstream] > > Note that we are apparently not the only ones dissatisfied with this > state of affairs. The following code is commonly found in rpm specs for > Fedora (and, I suspect, for RedHat and CentOS as well): > > sed -i =20 > 's|^hardcode_libdir_flag_spec=3D.*|hardcode_libdir_flag_spec=3D""|g' =20 > libtool > sed -i 's|^runpath_var=3DLD_RUN_PATH|runpath_var=3DDIE_RPATH_DIE|g' libtoo= l > > Perhaps we could make common cause with RH to apply pressure on the > libtool maintainers? Isn't this a property which can be set at build time? I mean: isn't =20 there a $OSNAME case where this can be set for a specific OS? So it =20 boil down to just set those two variables accordingly in the FreeBSD =20 case and to send a patch to the libtool maintainers. For Linux this =20 isn't doable, as there are many Linux distros out there, but for =20 FreeBSD we can do this. But this should be tested on pointyhat first, =20 I think. Bye, Alexander. --=20 I'm not sure I've even got the brains to be President. =09=09-- Barry Goldwater, in 1964 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 11:33:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8226016A402 for ; Mon, 14 May 2007 11:33:29 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp813.mail.ird.yahoo.com (smtp813.mail.ird.yahoo.com [217.146.188.73]) by mx1.freebsd.org (Postfix) with SMTP id EEC4A13C489 for ; Mon, 14 May 2007 11:33:28 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 99228 invoked from network); 14 May 2007 11:33:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=jF0+ij3N30NmQ0ecdkdgwdGoHwIJKUe/V4dX0sR8zVnng22p6PjaPCBiMod0mlZFQ8R5NeOpQ+zmhRemtwofw5McBMmZ5zMvYINY29zrDyjyuuh9SFNYitdpnWkc7DolrRlv4tT+hJJ7gfiHE6EXJBZ/IyM4DYe9Hb2Fy3S31oQ= ; Received: from unknown (HELO ?192.168.0.22?) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp813.mail.ird.yahoo.com with SMTP; 14 May 2007 11:33:27 -0000 X-YMail-OSG: txiQnY8VM1kHOH1yhqzvlRXOA7OZXQ4pplcaxCsAeT1W3atrk0JZBfxtGQCIOFd0nMN4_wS.Df2g7fs38XMeCjjBpjlCG_4QvlIRGfzSZ7koIDvNi4rI4w_n.eg- From: Thomas Sparrevohn To: "'Michel Talon'" Date: Mon, 14 May 2007 12:33:24 +0100 User-Agent: KMail/1.9.6 References: <20070514082512.GA25544@lpthe.jussieu.fr> In-Reply-To: <20070514082512.GA25544@lpthe.jussieu.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200705141233.24767.Thomas.Sparrevohn@btinternet.com> Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 11:33:29 -0000 On Monday 14 May 2007 09:25:12 'Michel Talon' wrote: > On Mon, May 14, 2007 at 12:33:23AM +0100, Thomas Sparrevohn wrote: > >=20 > > converted INDEX > > into postgresSQL because I was playing around with making a message que= ue > > based approach - > > and it becomes BIG - The only table structure difference from the curre= nt > > format was that I=20 > > was able to track "who is depending on" a port - which I am pretty sure > > could be handled in the > > current framework - e.g. we could add a file having the depending port = names > > or so >=20 >=20 > niobe% cp /usr/ports/INDEX-6 . > niobe% sqlite3 index.db > sqlite> CREATE TABLE index6 ( > pkgname varchar(1), > path varchar(1), > prefix varchar(1), > comment varchar(1), > descr varchar(1), > maintainer varchar(1), > categories varchar(1), > build_deps varchar(1), > run_deps varchar(1), > website varchar(1), > extract_deps varchar(1), > patch_deps varchar(1), > fetch_deps varchar(1)); > sqlite> .import INDEX-6 index6 > ... completes in less than 2 seconds > sqlite> select * from index6 where path =3D "/usr/ports/accessibility/atk= "; > atk-1.12.4|/usr/ports/accessibility/atk|/usr/local|A GNOME accessibility > toolkit > (ATK)|/usr/ports/accessibility/atk/pkg-descr|gnome@FreeBSD.org|accessibil= ity > devel|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 libtool-1.5.22_3 > perl-5.8.8 pkg-config-0.21|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 > perl-5.8.8 > pkg-config-0.21|http://developer.gnome.org/projects/gap/||libtool-1.5.22_= 3| >=20 > niobe% ls -lh INDEX-6 index.db=20 > -rw-r--r-- 1 michel lpthe 9,5M 14 mai 10:00 INDEX-6 > -rw-r--r-- 1 michel lpthe 12M 14 mai 10:12 index.db >=20 > Where is this huge increase in size? > Admittedly, i have not created indexes, etc. > Compare this to the portsdb created by portupgrade from the same INDEX-6 >=20 > niobe% ls -lh /usr/ports/INDEX-6.db > -rw-r--r-- 1 root wheel 21M 16 f=E9v 13:36 /usr/ports/INDEX-6.db >=20 > Surprise, surprise, the BerkeleyDB suddenly appears less glorious. >=20 >=20 That you table structure does not even full fill 1st normal form ;-) - You = need to convert that into independent tables in order to get it on a reasonable normal form form= at=20 From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 11:44:42 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 81A5216A402 for ; Mon, 14 May 2007 11:44:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3C70B13C4B8 for ; Mon, 14 May 2007 11:44:42 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 5FC1020A7; Mon, 14 May 2007 13:44:38 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id DDB222088; Mon, 14 May 2007 13:44:37 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id B526E5092; Mon, 14 May 2007 13:44:37 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Alexander Leidinger References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> <86lkfru4ya.fsf@dwp.des.no> <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> Date: Mon, 14 May 2007 13:44:37 +0200 In-Reply-To: <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> (Alexander Leidinger's message of "Mon\, 14 May 2007 13\:19\:54 +0200") Message-ID: <868xbrtysa.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer , Ivan Voras , Kris Kennaway Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 11:44:42 -0000 Alexander Leidinger writes: > Isn't this a property which can be set at build time? I mean: isn't > there a $OSNAME case where this can be set for a specific OS? So it > boil down to just set those two variables accordingly in the FreeBSD > case and to send a patch to the libtool maintainers. For Linux this > isn't doable, as there are many Linux distros out there, but for > FreeBSD we can do this. But this should be tested on pointyhat first, > I think. I'm not sure I understand your question, but libtool sets the rpath if 1) an .la file is present and 2) hardcode_into_libs is defined. The latter happens at the configure stage, the shell code that selects the default value is in libtool.m4: --- libtool.m4.orig Sun Dec 18 22:53:17 2005 +++ libtool.m4 Mon May 14 13:43:46 2007 @@ -1442,7 +1442,7 @@ ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=3Dyes - hardcode_into_libs=3Dyes + hardcode_into_libs=3Dno ;; esac ;; I've chosen not to change the default for versions older than 4.6. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 12:01:41 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF54B16A40A for ; Mon, 14 May 2007 12:01:41 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 8F03713C46E for ; Mon, 14 May 2007 12:01:41 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id F3AE420A7; Mon, 14 May 2007 14:01:37 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 723F62088; Mon, 14 May 2007 14:01:37 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 454D95099; Mon, 14 May 2007 14:01:37 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Thomas Sparrevohn References: <20070514082512.GA25544@lpthe.jussieu.fr> <200705141233.24767.Thomas.Sparrevohn@btinternet.com> Date: Mon, 14 May 2007 14:01:37 +0200 In-Reply-To: <200705141233.24767.Thomas.Sparrevohn@btinternet.com> (Thomas Sparrevohn's message of "Mon\, 14 May 2007 12\:33\:24 +0100") Message-ID: <86zm47sjfi.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, 'Michel Talon' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 12:01:41 -0000 Thomas Sparrevohn writes: > That you table structure does not even full fill 1st normal form ;-) - > You need to convert that into independent tables in order to get it on > a reasonable normal form format Yes, the dependency columns violate 1NF, but it's still pretty impressive - especially the fact that sqlite imported the index file directly without any form of preprocessing. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 12:27:41 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 451A116A410 for ; Mon, 14 May 2007 12:27:41 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id F330613C468 for ; Mon, 14 May 2007 12:27:40 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id CF14720A7; Mon, 14 May 2007 14:27:34 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 54CA220A6; Mon, 14 May 2007 14:27:34 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 2DEFB509D; Mon, 14 May 2007 14:27:34 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Alexander Leidinger References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> <86lkfru4ya.fsf@dwp.des.no> <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> <868xbrtysa.fsf@dwp.des.no> <20070514141049.d9wp2g8400w0gkk4@webmail.leidinger.net> Date: Mon, 14 May 2007 14:27:33 +0200 In-Reply-To: <20070514141049.d9wp2g8400w0gkk4@webmail.leidinger.net> (Alexander Leidinger's message of "Mon\, 14 May 2007 14\:10\:49 +0200") Message-ID: <86r6pjsi8a.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer , Ivan Voras , Kris Kennaway Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 12:27:41 -0000 Alexander Leidinger writes: > If this works well, you just have to submit this patch to the libtool > maintainers and wait until all (relevant) software packages are > updated to use the libtool version which comes with this change. hahahahahahahaha *sniff* excuse me... No offense, but it will take years until the change trickles down to all the packages we care about. While we wait, we might consider sticking this into bsd.port.mk somewhere, conditional on ${GNU_CONFIGURE}: ${REINPLACE_CMD} -e 's/\(hardcode_into_libs\)=3Dyes/\1=3Dno/' \ ${WRKSRC}/configure DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 12:11:10 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D889C16A400 for ; Mon, 14 May 2007 12:11:10 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 7ED5913C44B for ; Mon, 14 May 2007 12:11:10 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54a5d654.dip.t-dialin.net [84.165.214.84]) by redbull.bpaserver.net (Postfix) with ESMTP id B6E4A2E223; Mon, 14 May 2007 14:11:05 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0D9C15B48A3; Mon, 14 May 2007 14:10:50 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l4ECAn1r065322; Mon, 14 May 2007 14:10:49 +0200 (CEST) (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; Mon, 14 May 2007 14:10:49 +0200 Message-ID: <20070514141049.d9wp2g8400w0gkk4@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 14 May 2007 14:10:49 +0200 From: Alexander Leidinger To: Dag-Erling =?utf-8?b?U23Dg8K4cmdyYXY=?= References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> <86lkfru4ya.fsf@dwp.des.no> <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> <868xbrtysa.fsf@dwp.des.no> In-Reply-To: <868xbrtysa.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.564, required 8, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, MIME_8BIT_HEADER 0.30) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Mon, 14 May 2007 12:31:32 +0000 Cc: freebsd-hackers@freebsd.org, Mike, Meyer , Ivan Voras , Kris Kennaway Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 12:11:10 -0000 Quoting Dag-Erling Sm=C3=83=C2=B8rgrav (from Mon, 14 May 2007 = =20 13:44:37 +0200): > Alexander Leidinger writes: >> Isn't this a property which can be set at build time? I mean: isn't >> there a $OSNAME case where this can be set for a specific OS? So it >> boil down to just set those two variables accordingly in the FreeBSD >> case and to send a patch to the libtool maintainers. For Linux this >> isn't doable, as there are many Linux distros out there, but for >> FreeBSD we can do this. But this should be tested on pointyhat first, >> I think. > > I'm not sure I understand your question, but libtool sets the rpath if > 1) an .la file is present and 2) hardcode_into_libs is defined. The > latter happens at the configure stage, the shell code that selects the > default value is in libtool.m4: > > --- libtool.m4.orig Sun Dec 18 22:53:17 2005 > +++ libtool.m4 Mon May 14 13:43:46 2007 > @@ -1442,7 +1442,7 @@ > ;; > freebsd*) # from 4.6 on > shlibpath_overrides_runpath=3Dyes > - hardcode_into_libs=3Dyes > + hardcode_into_libs=3Dno > ;; > esac > ;; > > I've chosen not to change the default for versions older than 4.6. If this works well, you just have to submit this patch to the libtool =20 maintainers and wait until all (relevant) software packages are =20 updated to use the libtool version which comes with this change. Bye, Alexander. --=20 Jesuit priests are DATING CAREER DIPLOMATS!! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 12:32:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D511016A403 for ; Mon, 14 May 2007 12:32:05 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id A9ABA13C468 for ; Mon, 14 May 2007 12:32:05 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l4ECW4fP089535; Mon, 14 May 2007 07:32:04 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <464856C4.2020600@freebsd.org> Date: Mon, 14 May 2007 07:32:04 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: David Cramblett References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> In-Reply-To: <4647D88D.5060404@functionalchaos.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3243/Mon May 14 05:49:49 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-hackers@freebsd.org Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 12:32:05 -0000 On 05/13/07 22:33, David Cramblett wrote: > My FreeBSD 5.2.1 server had a 4.5 GB HDD. I decided to upgrade it with > a larger drive. I installed a new drive on the second IDE channel which > made it ad2, of course, my original drive was ad0. I created a > partition, boot loader and matching slices on the new drive. Then I > copied the old drive to the new drive using tar. Once finished, I > removed the original drive and installed the new one on the primary > channel. When I booted up everything appeared normal, but when the > system starts to mount "/" it gives no error or warning and just drops > to a "Manual mount root specification" prompt. If I type "ufs:ad0s1a" > it boots up and everything is perfect. This is the same slice "/" was > on the old drive as well. > > > I have tried the following with no success: > > Checked /etc/fstab > > boot0cfg -v -B ad0 > > bsdlabel -B ad0s1 > > tried booting from a cd, going into post install config, fdisk, and set > the partition as bootable, it already was. > > Since upgrading the hard disk, I have upgraded the system to 5.5 and > then to 6.2. This system has been working great for over a week now, > just have this boot problem. > > > -------------- > > Here is my fstab: > > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > > -------------- > > Output from bsdlabel > # bsdlabel ad0s1 > > # /dev/ad0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 585018626 1048576 4.2BSD 2048 16384 28552 > b: 1048576 0 swap > c: 586067202 0 unused 0 0 # "raw" part, > don't edit Could it be because your root partition is not at offset 0? Eric From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 13:06:47 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D69F016A403 for ; Mon, 14 May 2007 13:06:47 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 6213D13C447 for ; Mon, 14 May 2007 13:06:47 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 65091 invoked by uid 1001); 14 May 2007 13:06:20 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 14 May 2007 09:06:19 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17992.24267.517369.614671@bhuda.mired.org> Date: Mon, 14 May 2007 09:06:19 -0400 To: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) In-Reply-To: <861whjzzey.fsf@dwp.des.no> References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070511051852.GA89359@xor.obsecurity.org> <17988.32573.910854.388638@bhuda.mired.org> <200705111011.52212.fcash@ocis.net> <17988.46905.9205.461424@bhuda.mired.org> <86zm48ziks.fsf@dwp.des.no> <17991.60332.227909.539504@bhuda.mired.org> <861whjzzey.fsf@dwp.des.no> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 13:06:47 -0000 In <861whjzzey.fsf@dwp.des.no>, Dag-Erling Sm=F8rgrav type= d: > Mike Meyer writes: > > Dag-Erling Sm=F8rgrav writes: > > A number of ports seem to depend on the directory tree in ${LOCALBA= SE} > > existing - ${LOCALBASE}/man/... and ${LOCALBASE}/etc, in > > particular. They use the INSTALL macros to point single files at > > directories, which macro will quite happily create a file with the > > target name if it's not a directory. This creates a number of > > interesting problems later on. > They can correctly assume that the directories exist because we alway= s > run 'mtree -f /etc/mtree/BSD.local.dist -P ${PREFIX}' before installi= ng > a port. Except it apparently doesn't work if PREFIX is /usr. =09=09=09http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more informatio= n. From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 12:56:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C54916A405 for ; Mon, 14 May 2007 12:56:16 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id C19A613C44B for ; Mon, 14 May 2007 12:56:15 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54a5d654.dip.t-dialin.net [84.165.214.84]) by redbull.bpaserver.net (Postfix) with ESMTP id 1F8532E12B; Mon, 14 May 2007 14:56:07 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 636CF5B48A3; Mon, 14 May 2007 14:55:51 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l4ECtoQN072781; Mon, 14 May 2007 14:55:50 +0200 (CEST) (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; Mon, 14 May 2007 14:55:50 +0200 Message-ID: <20070514145550.y3ez0k7p4wg8800g@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 14 May 2007 14:55:50 +0200 From: Alexander Leidinger To: Dag-Erling =?utf-8?b?U23Dg8K4cmdyYXY=?= References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> <86lkfru4ya.fsf@dwp.des.no> <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> <868xbrtysa.fsf@dwp.des.no> <20070514141049.d9wp2g8400w0gkk4@webmail.leidinger.net> <86r6pjsi8a.fsf@dwp.des.no> In-Reply-To: <86r6pjsi8a.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-15.064, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, MIME_8BIT_HEADER 0.30, SMILEY -0.50) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Mon, 14 May 2007 13:16:50 +0000 Cc: freebsd-hackers@freebsd.org, Mike, Meyer , Ivan Voras , Kris Kennaway Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 12:56:16 -0000 Quoting Dag-Erling Sm=C3=83=C2=B8rgrav (from Mon, 14 May 2007 = =20 14:27:33 +0200): > Alexander Leidinger writes: >> If this works well, you just have to submit this patch to the libtool >> maintainers and wait until all (relevant) software packages are >> updated to use the libtool version which comes with this change. > > hahahahahahahaha > > *sniff* > > excuse me... > > No offense, but it will take years until the change trickles down to all > the packages we care about. I know... ;-) > While we wait, we might consider sticking this into bsd.port.mk > somewhere, conditional on ${GNU_CONFIGURE}: > > ${REINPLACE_CMD} -e 's/\(hardcode_into_libs\)=3Dyes/\1=3Dno/' \ > ${WRKSRC}/configure Provide a patch, submit it to gnats, ask for an experimental run in =20 the description, assign it to portmgr and be prepared for requests to =20 fix bugs which may show up because of this patch before portmgr =20 commits it. Bye, Alexander. --=20 The only real advantage to punk music is that nobody can whistle it. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 13:28:17 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 04DA016A407 for ; Mon, 14 May 2007 13:28:17 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id B0DBA13C469 for ; Mon, 14 May 2007 13:28:16 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 38C7E20A8; Mon, 14 May 2007 15:28:10 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 2B6EF2088; Mon, 14 May 2007 15:28:10 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id E866150AB; Mon, 14 May 2007 15:28:09 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Mohsen Pahlevanzadeh References: <200705131657.39028.viktor.vasilev@stud.tu-darmstadt.de> <200705131851.29229.viktor.vasilev@stud.tu-darmstadt.de> <86mz08zhm9.fsf@dwp.des.no> <4648625A.9060606@pahlevanzadeh.org> Date: Mon, 14 May 2007 15:28:09 +0200 In-Reply-To: <4648625A.9060606@pahlevanzadeh.org> (Mohsen Pahlevanzadeh's message of "Mon\, 14 May 2007 16\:51\:30 +0330") Message-ID: <86ejljsffa.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Viktor Vasilev Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 13:28:17 -0000 Mohsen Pahlevanzadeh writes: > Dag-Erling Sm=C3=B8rgrav writes: > > [The] code should build cleanly on a stock install of FreeBSD 6.0 or > > newer. > Our FreeBSD is 4.11 because we can't use another version. In that case, we can't help you. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 13:37:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E21E716A400 for ; Mon, 14 May 2007 13:37:21 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 8682F13C46E for ; Mon, 14 May 2007 13:37:21 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 78729 invoked by uid 1001); 14 May 2007 13:36:54 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 14 May 2007 09:36:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17992.26100.876067.671769@bhuda.mired.org> Date: Mon, 14 May 2007 09:36:52 -0400 To: Thomas.Sparrevohn@btinternet.com In-Reply-To: <000401c79601$2c4372e0$84ca58a0$@Sparrevohn@btinternet.com> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <000401c79601$2c4372e0$84ca58a0$@Sparrevohn@btinternet.com> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: 'Tom Judge' , =?UTF-8?Q?'Dag-Erling_=22Sm=C3=B8rgrav=22'?= , 'Michel Talon' , freebsd-hackers@freebsd.org Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 13:37:22 -0000 In <000401c79601$2c4372e0$84ca58a0$@Sparrevohn@btinternet.com>, Thomas Sparrevohn typed: > > There is a > > reason why people have been discussing this for ten years without > > getting anywhere. > I suspect that is because that by and large the ports system works ;-) - Having > Played around with a couple of Linux distributions - my impression is that "ports" > offers a much more manageable approach or maybe I am just used to ports ;-) You may want to look at some other Linux distros. The packages system dates to about the same era as rpm/debs. The package system is much, much more manageable than them. On the other hand, most Linux distros have moved beyond those tools, to things like yum, apt-get and up2date. Those incorporate the facilities that rpm and debs are missing in a higher-level tool, and I think they are slightly more manageable than freebsd packages. As far as I know, none of them handle updates from source at all. In fact, dealing with sources seems to be a noticable weakness for them. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 14:14:18 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA75B16A404; Mon, 14 May 2007 14:14:18 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.freebsd.org (Postfix) with ESMTP id B1C0613C458; Mon, 14 May 2007 14:14:18 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id D50061CCC5; Mon, 14 May 2007 16:14:16 +0200 (CEST) Date: Mon, 14 May 2007 16:14:16 +0200 From: Ed Schouten To: Andre Oppermann Message-ID: <20070514141416.GR23313@hoeg.nl> References: <45F1C355.8030504@digitaldaemon.com> <20070511075857.GL23313@hoeg.nl> <4644773E.60909@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gV1yUYniiDLxW66s" Content-Disposition: inline In-Reply-To: <4644773E.60909@freebsd.org> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: FreeBSD Hackers Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 14:14:19 -0000 --gV1yUYniiDLxW66s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Andre, * Andre Oppermann wrote: > I'm working on a "light" variant of multi-IPv[46] per jail. It doesn't > create an entirely new network instance per jail and probably is more > suitable for low- to mid-end (virtual) hosting. In those cases you > normally want the host administrator to excercise full control over > IP address and firewall configuration of the individual jails. For > high-end stuff where you offer jail based virtual machines or network > and routing simulations Marco's work is more appropriate. Is there a way for us to colaborate on this? I'd really love to work on this sort of stuff and I think it's really interesting to dig in that sort of code. I already wrote an initial patch which changes the system call and sysctl format of the jail structures which allow you to specify lists of addresses for IPv4 and IPv6. In theory, the only thing that needs to be done in the kernel, is adding bits to the netinet6 code to prevent usage of unauthorized IPv6 addresses (nothing is altered yet). Userspace utilities like jls(8) and jexec(8) need to be polished as well. http://g-rave.nl/junk/freebsd-jail-multi-inet46.diff Feedback (and help) is very welcome! :-) Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --gV1yUYniiDLxW66s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGSG6452SDGA2eCwURAsUlAJ99UP/L120QT4f6te0PZ7gjIpobugCeKvTJ nUJ8Vo724fNE3/ZKg2bycSw= =OY/x -----END PGP SIGNATURE----- --gV1yUYniiDLxW66s-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 14:35:22 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EABAD16A404 for ; Mon, 14 May 2007 14:35:22 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id A616913C45B for ; Mon, 14 May 2007 14:35:22 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id D703020A7; Mon, 14 May 2007 16:35:18 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 566812088; Mon, 14 May 2007 16:35:18 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 2B10650C8; Mon, 14 May 2007 16:35:18 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Mike Meyer References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <000401c79601$2c4372e0$84ca58a0$@Sparrevohn@btinternet.com> <17992.26100.876067.671769@bhuda.mired.org> Date: Mon, 14 May 2007 16:35:18 +0200 In-Reply-To: <17992.26100.876067.671769@bhuda.mired.org> (Mike Meyer's message of "Mon\, 14 May 2007 09\:36\:52 -0400") Message-ID: <861whjscbd.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: 'Tom Judge' , freebsd-hackers@freebsd.org, Thomas.Sparrevohn@btinternet.com, 'Michel Talon' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 14:35:23 -0000 Mike Meyer writes: > You may want to look at some other Linux distros. The packages system > dates to about the same era as rpm/debs. The package system is much, > much more manageable than them. On the other hand, most Linux distros > have moved beyond those tools, to things like yum, apt-get and > up2date. Those incorporate the facilities that rpm and debs are > missing in a higher-level tool, and I think they are slightly more > manageable than freebsd packages. > > As far as I know, none of them handle updates from source at all. In > fact, dealing with sources seems to be a noticable weakness for them. apt-get --build source DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 15:32:03 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64AEA16A402 for ; Mon, 14 May 2007 15:32:03 +0000 (UTC) (envelope-from brianh@webair.com) Received: from digi.webair.com (digi.webair.com [209.200.8.196]) by mx1.freebsd.org (Postfix) with ESMTP id 16A5F13C44B for ; Mon, 14 May 2007 15:32:02 +0000 (UTC) (envelope-from brianh@webair.com) Received: from localhost (brianh@localhost [127.0.0.1]) by digi.webair.com (8.13.6/8.13.6) with ESMTP id l4EF9Pc3042460 for ; Mon, 14 May 2007 11:09:25 -0400 (EDT) (envelope-from brianh@webair.com) Date: Mon, 14 May 2007 11:09:25 -0400 (EDT) From: Brian Hourigan To: freebsd-hackers@freebsd.org Message-ID: <20070514110906.X42411@digi.webair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Building 5.x binaries on 6.2-RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 15:32:03 -0000 I'm involved in some software development and we need to provide precompiled binaries for FreeBSD 5.x from a 6.2-RELEASE system I checked through the documentation on the pointyhat package building cluster, it mentions the machines run 7.0-CURRENT and produces binaries for 5.x and 6.x.. but I can't find the scripts or any documentation on how exactly this is accomplished If anyone has any information please point me in the right direction, thanks! Sincerely, Brian Hourigan From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 15:47:47 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4313B16A400 for ; Mon, 14 May 2007 15:47:47 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from sumo.dreamhost.com (sumo.dreamhost.com [66.33.216.29]) by mx1.freebsd.org (Postfix) with ESMTP id 26E9213C458 for ; Mon, 14 May 2007 15:47:47 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from spunkymail-a7.g.dreamhost.com (sd-green-bigip-208-97-132-81.dreamhost.com [208.97.132.81]) by sumo.dreamhost.com (Postfix) with ESMTP id 5C734187132 for ; Mon, 14 May 2007 08:25:27 -0700 (PDT) Received: from [10.0.1.2] (68-184-120-224.dhcp.smyr.ga.charter.com [68.184.120.224]) by spunkymail-a7.g.dreamhost.com (Postfix) with ESMTP id B2C865C334; Mon, 14 May 2007 08:25:24 -0700 (PDT) Message-ID: <46487F57.1010205@cyberwang.net> Date: Mon, 14 May 2007 11:25:11 -0400 From: Sean Bryant User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <000401c79601$2c4372e0$84ca58a0$@Sparrevohn@btinternet.com> <17992.26100.876067.671769@bhuda.mired.org> <861whjscbd.fsf@dwp.des.no> In-Reply-To: <861whjscbd.fsf@dwp.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: 'Tom Judge' , freebsd-hackers@freebsd.org, Thomas.Sparrevohn@btinternet.com, Mike Meyer , 'Michel Talon' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 15:47:47 -0000 Dag-Erling Smørgrav wrote: > Mike Meyer writes: > >> You may want to look at some other Linux distros. The packages system >> dates to about the same era as rpm/debs. The package system is much, >> much more manageable than them. On the other hand, most Linux distros >> have moved beyond those tools, to things like yum, apt-get and >> up2date. Those incorporate the facilities that rpm and debs are >> missing in a higher-level tool, and I think they are slightly more >> manageable than freebsd packages. >> >> As far as I know, none of them handle updates from source at all. In >> fact, dealing with sources seems to be a noticable weakness for them. >> > > apt-get --build source > > DES > I'm just going to interject here, I apologize if this is out of place. I've been following the threads on SQLite in the base for ports and the DPS initial ideas threads. Kris has stated it would be wise to actually list out the problems with the current ports / packaging systems and I fully agree. As right now its a bunch of back and forth bickering with no real solution in sight because those proposing solutions don't have a full understanding what it takes to change the systems, and those who do are really reluctant to adopt such changes due to their limited focus and maybe even the developers experience. I propose someone post on the wiki (http://wiki.freebsd.org/) the current issues with the ports and packaging systems so that everyone can get a better understanding of the problems that need to be solved. This could possibly help the SoC student improve the system by giving him a clearer picture of what's wrong. This could also help lead a more unified initiative to improve the systems and prevent adding new issues to the system. Prototyping a solution when the problems are known is much easier than stabbing at the problem in the dark. From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 15:47:56 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 943BF16A402 for ; Mon, 14 May 2007 15:47:56 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 432D813C43E for ; Mon, 14 May 2007 15:47:56 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 3A32FEB99A0; Mon, 14 May 2007 23:37:53 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id CiLWGEI7+BHK; Mon, 14 May 2007 23:37:50 +0800 (CST) Received: from LI-Xins-MacBook.local (unknown [221.217.210.84]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 381FCEB0BA8; Mon, 14 May 2007 23:37:50 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=i5rw2HQnIQu60mUItto+8zIJ6hOISdTc9zxTu6zqPc0KCl+m6Ky7C5SL57ko3AhWG MxnI8RPiHPwSO4X7qMIhw== Message-ID: <46488249.2070605@delphij.net> Date: Mon, 14 May 2007 23:37:45 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Brian Hourigan References: <20070514110906.X42411@digi.webair.com> In-Reply-To: <20070514110906.X42411@digi.webair.com> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig5C2DC4B361FD5DEEDAA1DD93" Cc: freebsd-hackers@freebsd.org Subject: Re: Building 5.x binaries on 6.2-RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 15:47:56 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5C2DC4B361FD5DEEDAA1DD93 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Brian Hourigan wrote: > I'm involved in some software development and we need to provide > precompiled binaries for FreeBSD 5.x from a 6.2-RELEASE system >=20 > I checked through the documentation on the pointyhat package building > cluster, it mentions the machines run 7.0-CURRENT and produces binaries= > for 5.x and 6.x.. but I can't find the scripts or any documentation on > how exactly this is accomplished >=20 > If anyone has any information please point me in the right direction, > thanks! A simple way is to install a copy of 5.x userland (by using "make installworld" or using CD-ROM's ./install.sh script) to a jailed environment and then attach to the jail to do the build. Note that more hacking is needed if your application detects kern.osreldate etc. Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig5C2DC4B361FD5DEEDAA1DD93 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSIJJOfuToMruuMARCgonAJ4gWL+YUpMJiai11dbWCLuRU00e1wCdEObC dsyySxNFWJBhJjuKa8S9BnE= =rbxT -----END PGP SIGNATURE----- --------------enig5C2DC4B361FD5DEEDAA1DD93-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 15:59:56 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67D9416A404 for ; Mon, 14 May 2007 15:59:56 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from mrelay-i2.mesd.k12.or.us (mrelay-v2.mesd.k12.or.us [198.236.68.99]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE1413C45A for ; Mon, 14 May 2007 15:59:56 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from localhost (localhost [127.0.0.1]) by mrelay-i2.mesd.k12.or.us (Postfix) with ESMTP id F361A2CA8E; Mon, 14 May 2007 08:42:22 -0700 (PDT) X-Virus-Scanned: by amavisd-new at mesd.k12.or.us Received: from mrelay-i2.mesd.k12.or.us ([127.0.0.1]) by localhost (mrelay-v2.mesd.k12.or.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fJmXj2CcqYD5; Mon, 14 May 2007 08:42:22 -0700 (PDT) Received: from mail.mesd.k12.or.us (mail-x.mesd.k12.or.us [198.236.66.2]) by mrelay-i2.mesd.k12.or.us (Postfix) with ESMTP id 45B512C0BA; Mon, 14 May 2007 08:42:22 -0700 (PDT) Received: from [198.236.66.125] (dcramblett.mesd.k12.or.us [198.236.66.125]) by mail.mesd.k12.or.us (Postfix) with ESMTP id 3378B3F4206; Mon, 14 May 2007 08:42:22 -0700 (PDT) Message-ID: <4648835D.9020306@functionalchaos.net> Date: Mon, 14 May 2007 08:42:21 -0700 From: David Cramblett User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> <86wszbx3tu.fsf@dwp.des.no> In-Reply-To: <86wszbx3tu.fsf@dwp.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 15:59:56 -0000 Dag-Erling Smørgrav wrote: > David Cramblett writes: >> My FreeBSD 5.2.1 server had a 4.5 GB HDD. I decided to upgrade it >> with a larger drive. I installed a new drive on the second IDE >> channel which made it ad2, of course, my original drive was ad0. I >> created a partition, boot loader and matching slices on the new drive. >> Then I copied the old drive to the new drive using tar. Once >> finished, I removed the original drive and installed the new one on >> the primary channel. When I booted up everything appeared normal, but >> when the system starts to mount "/" it gives no error or warning and >> just drops to a "Manual mount root specification" prompt. If I type >> "ufs:ad0s1a" it boots up and everything is perfect. This is the same >> slice "/" was on the old drive as well. > > What's in your /boot.config and /boot/loader.conf? > > DES I have no boot.config. [root@www /]# cat /boot/loader.conf # -- sysinstall generated deltas -- # userconfig_script_load="YES" I also tried an option I found while searching for a solution root_disk_unit="0" although that did not help. David From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 16:16:37 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1923416A402; Mon, 14 May 2007 16:16:37 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from mrelay-i2.mesd.k12.or.us (mrelay-v2.mesd.k12.or.us [198.236.68.99]) by mx1.freebsd.org (Postfix) with ESMTP id EA58613C489; Mon, 14 May 2007 16:16:36 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from localhost (localhost [127.0.0.1]) by mrelay-i2.mesd.k12.or.us (Postfix) with ESMTP id 2E09B2CAA1; Mon, 14 May 2007 08:46:38 -0700 (PDT) X-Virus-Scanned: by amavisd-new at mesd.k12.or.us Received: from mrelay-i2.mesd.k12.or.us ([127.0.0.1]) by localhost (mrelay-v2.mesd.k12.or.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ui01nAXXcSsK; Mon, 14 May 2007 08:46:37 -0700 (PDT) Received: from mail.mesd.k12.or.us (webmail.mesd.k12.or.us [198.236.66.2]) by mrelay-i2.mesd.k12.or.us (Postfix) with ESMTP id 823DD2CA8D; Mon, 14 May 2007 08:46:37 -0700 (PDT) Received: from [198.236.66.125] (dcramblett.mesd.k12.or.us [198.236.66.125]) by mail.mesd.k12.or.us (Postfix) with ESMTP id 6E9FF3F4235; Mon, 14 May 2007 08:46:37 -0700 (PDT) Message-ID: <4648845D.4040608@functionalchaos.net> Date: Mon, 14 May 2007 08:46:37 -0700 From: David Cramblett User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Eric Anderson References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> <464856C4.2020600@freebsd.org> In-Reply-To: <464856C4.2020600@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 16:16:37 -0000 Eric Anderson wrote: > On 05/13/07 22:33, David Cramblett wrote: >> My FreeBSD 5.2.1 server had a 4.5 GB HDD. I decided to upgrade it >> with a larger drive. I installed a new drive on the second IDE >> channel which made it ad2, of course, my original drive was ad0. I >> created a partition, boot loader and matching slices on the new >> drive. Then I copied the old drive to the new drive using tar. Once >> finished, I removed the original drive and installed the new one on >> the primary channel. When I booted up everything appeared normal, but >> when the system starts to mount "/" it gives no error or warning and >> just drops to a "Manual mount root specification" prompt. If I type >> "ufs:ad0s1a" it boots up and everything is perfect. This is the same >> slice "/" was on the old drive as well. >> >> >> I have tried the following with no success: >> >> Checked /etc/fstab >> >> boot0cfg -v -B ad0 >> >> bsdlabel -B ad0s1 >> >> tried booting from a cd, going into post install config, fdisk, and >> set the partition as bootable, it already was. >> >> Since upgrading the hard disk, I have upgraded the system to 5.5 and >> then to 6.2. This system has been working great for over a week now, >> just have this boot problem. >> >> >> -------------- >> >> Here is my fstab: >> >> /dev/ad0s1b none swap sw 0 0 >> /dev/ad0s1a / ufs rw 1 1 >> >> -------------- >> >> Output from bsdlabel >> # bsdlabel ad0s1 >> >> # /dev/ad0s1: >> 8 partitions: >> # size offset fstype [fsize bsize bps/cpg] >> a: 585018626 1048576 4.2BSD 2048 16384 28552 >> b: 1048576 0 swap >> c: 586067202 0 unused 0 0 # "raw" part, >> don't edit > > > Could it be because your root partition is not at offset 0? > > Eric > > I don't think so, but I certainly could be wrong. Here is another system: # bsdlabel ad0s1 # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 18932866 137363456 4.2BSD 2048 16384 28552 b: 1048576 0 swap c: 156296322 0 unused 0 0 # "raw" part, don't edit d: 62914560 1048576 4.2BSD 2048 16384 28552 e: 73400320 63963136 4.2BSD 2048 16384 28544 here s1a is not at offset 0, yet the system boots fine. I create the swap partition first usually, hence the offset being 0 for swap. David From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 16:16:38 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FA4416A400 for ; Mon, 14 May 2007 16:16:38 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 4BEF713C44C for ; Mon, 14 May 2007 16:16:38 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1677482wra for ; Mon, 14 May 2007 09:16:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=opujA8dNjN+ogG9ZG9xRRe915/V/Oaki4OuhgMYMvHsFdt/hvcnOTx1RhiUVAnUlsGK3eCkUeA8snOefLD2dXePmtacFSZyEpmIS0XY19GH2FVPwwwlQKMil7e1ib0K7tFNXymHaDX8Ab193obhok3zd9Jv27JAZ+iXDgmeGDss= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=cT8FG52/mkIolqripaiEz1P5Vl/Wp3nMY0/uzZZdjlCqX40Fh37MTg6iTA9HnGBmolTRSBTs6tAq0HCTzWRSAUUgRtIywQaDjeqO+M1LdsGIgo2Pdw9Aq+D7Z6fRaKE0jDuCRtmnFVF+wH9kqxoE5A/jfI2mYJib2DhDrbSm1mE= Received: by 10.115.15.1 with SMTP id s1mr1042582wai.1179159394067; Mon, 14 May 2007 09:16:34 -0700 (PDT) Received: by 10.114.194.5 with HTTP; Mon, 14 May 2007 09:16:33 -0700 (PDT) Message-ID: Date: Mon, 14 May 2007 20:16:33 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Sean Bryant" In-Reply-To: <46487F57.1010205@cyberwang.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <17992.26100.876067.671769@bhuda.mired.org> <861whjscbd.fsf@dwp.des.no> <46487F57.1010205@cyberwang.net> X-Google-Sender-Auth: 4e072b30acde5fd3 Cc: hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 16:16:38 -0000 On 5/14/07, Sean Bryant wrote: > I propose someone post on the wiki (http://wiki.freebsd.org/) This might be relevant: http://wiki.freebsd.org/Upak From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 16:33:38 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0116F16A400; Mon, 14 May 2007 16:33:38 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id B524C13C46C; Mon, 14 May 2007 16:33:37 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 077FC1FFDD9; Mon, 14 May 2007 18:10:10 +0200 (CEST) Received: by transport.cksoft.de (Postfix, from userid 66) id 953F21FFD99; Mon, 14 May 2007 18:10:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 91FC344487F; Mon, 14 May 2007 16:07:43 +0000 (UTC) Date: Mon, 14 May 2007 16:07:43 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Ed Schouten In-Reply-To: <20070514141416.GR23313@hoeg.nl> Message-ID: <20070514155727.Y2939@maildrop.int.zabbadoz.net> References: <45F1C355.8030504@digitaldaemon.com> <20070511075857.GL23313@hoeg.nl> <4644773E.60909@freebsd.org> <20070514141416.GR23313@hoeg.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de Cc: FreeBSD Hackers , Andre Oppermann Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 16:33:38 -0000 On Mon, 14 May 2007, Ed Schouten wrote: Hi, > * Andre Oppermann wrote: >> I'm working on a "light" variant of multi-IPv[46] per jail. It doesn't >> create an entirely new network instance per jail and probably is more >> suitable for low- to mid-end (virtual) hosting. In those cases you >> normally want the host administrator to excercise full control over >> IP address and firewall configuration of the individual jails. For >> high-end stuff where you offer jail based virtual machines or network >> and routing simulations Marco's work is more appropriate. > > Is there a way for us to colaborate on this? I'd really love to work on > this sort of stuff and I think it's really interesting to dig in that > sort of code. > > I already wrote an initial patch which changes the system call and > sysctl format of the jail structures which allow you to specify lists of > addresses for IPv4 and IPv6. Not that pjd@ hasn't had a that for IPv4 for a long time the code for v6 is basically in p4. > In theory, the only thing that needs to be done in the kernel, is adding > bits to the netinet6 code to prevent usage of unauthorized IPv6 > addresses (nothing is altered yet). In theory things sound a lot simpler than they are in real world. You'll also need to solve the binding to 0, source address selction, etc. problems. Been there. The problems I had that things paniced for me - cannot remmeber why - and so I started to cleanup the code and assimilate it to what v4 had, which hasn't helped because I hit deeply nested function calls, which returned modified values in error cases or for one code path so things would have been wrong for the second. In the end I had to timeout the project, also because it was clear that vnet would come. I had a short glance at the dflbsd code after they announced it and it looked like that it wouldn't hold up a serious review for all code paths. In theory things sound a lot simpler than they might be. I should talk to andre during and look at your patch after BSDCan. I am pretty much unsure what andre is up to beyond what pjd has (and only needs to be updated to HEAD [I have a local patch for that in case anyone is interested]). /bz -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 16:48:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7481116A482 for ; Mon, 14 May 2007 16:48:21 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 066AD13C447 for ; Mon, 14 May 2007 16:48:20 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id 71so1091969ugh for ; Mon, 14 May 2007 09:48:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=q5UQEE/WmxDdJ4hUA3yge52qzfzMJzoGkv1w2cFS1tiRYrYbAY6TLCUZjf2R8BtHwopZEkYfHEkR1JMAuODj8Ck+f4kOPEiJT5BArvSPzweHZGyQdzuqkBC0ASBwqOCXf0hoVM2rE/dzV7kFJM+nHg38JuBKGWHy0ELhGx9ggLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=CczXGSWwumZ33MYQQ8Crn28XOli/dw1pYBpxWJlbi4iMKvGoVD9ctcb2KPxWdyP5ES43aiQ2Gj0bFqZjltHqdSz6wmv7BpccNCPDvOwQApxZKgq5Qn7SYD0kLTCLgBANaD8uTNXLHlYFabZooB6DisJRxW3fBL9aKQJtzcl0s+U= Received: by 10.82.147.6 with SMTP id u6mr2075307bud.1179161300308; Mon, 14 May 2007 09:48:20 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1? ( [87.194.39.182]) by mx.google.com with ESMTP id z34sm15903954ikz.2007.05.14.09.48.19; Mon, 14 May 2007 09:48:19 -0700 (PDT) From: Tom Evans To: Kris Kennaway In-Reply-To: <20070513202737.GA63102@xor.obsecurity.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513103757.GA33322@turion.vk2pj.dyndns.org> <200705131258.50309.Thomas.Sparrevohn@btinternet.com> <200705132042.26167.mail@maxlor.com> <001701c7959c$5ab84110$1028c330$@Sparrevohn@btinternet.com> <20070513202737.GA63102@xor.obsecurity.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ceul/VjBmLnPSM0Xe9gy" Date: Mon, 14 May 2007 17:48:18 +0100 Message-Id: <1179161298.1791.31.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: 'Benjamin Lutz' , freebsd-hackers@freebsd.org, Thomas Sparrevohn , 'Michel Talon' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 16:48:21 -0000 --=-ceul/VjBmLnPSM0Xe9gy Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2007-05-13 at 16:27 -0400, Kris Kennaway wrote: > FYI, "Using XML" and other buzzword-compliance is not currently on the > table either. Let's all try to maintain some focus, OK? >=20 > Kris Clearly, the answer is to store XML inside SQLite, and use JavaBeans to represent ports. My bikeshed is bright green.. --=-ceul/VjBmLnPSM0Xe9gy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGSJLSlcRvFfyds/cRAs/lAJ0RYsplh8HoVrjn2WcktQfwC4ZMAgCfaO4l XRNOJCdvgDCI+K77zkh0THE= =L7hD -----END PGP SIGNATURE----- --=-ceul/VjBmLnPSM0Xe9gy-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 16:48:42 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A24716A402 for ; Mon, 14 May 2007 16:48:42 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 1BF7313C448 for ; Mon, 14 May 2007 16:48:41 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id 71so1091969ugh for ; Mon, 14 May 2007 09:48:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=QKdG/irUg17KDX07DZsCnM/W3UYo1IrFXwnMzGZHTs0XKV59mBFW5M27bpFO9sTSqXDFy/hCuy+y1hKCwdbIE6wKSsUM20fVamZ8n80H3A2h3LI1koh8RHwEDJSqIeNOydtdW0Ef5072GjPw1mBBI7nVSFF1otZsXYjejg81kbU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=IvOng8KT41f9SyzoZVN5DO4W+gQX3DIsmSg2D3mDC/C4Neszjn+aZGWd7Ieb1qcQswHTgv0WJE1owOCiGjdLIvKv17mtk2Mp+ELUV1W54dbiZMCkmeG6YjrOE6BcGxLJvYBiIGE271xYUuDuCRi3Q8HHJYiK+Xar2HjU0f6UIUE= Received: by 10.82.150.20 with SMTP id x20mr2085407bud.1179161321371; Mon, 14 May 2007 09:48:41 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1? ( [87.194.39.182]) by mx.google.com with ESMTP id c25sm15879148ika.2007.05.14.09.48.39; Mon, 14 May 2007 09:48:40 -0700 (PDT) From: Tom Evans To: 'Michel Talon' In-Reply-To: <20070514082512.GA25544@lpthe.jussieu.fr> References: <20070514082512.GA25544@lpthe.jussieu.fr> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-K/AQ0H1P/bytlceJUNlx" Date: Mon, 14 May 2007 17:48:38 +0100 Message-Id: <1179161318.1791.32.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: freebsd-hackers@freebsd.org, Thomas Sparrevohn Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 16:48:42 -0000 --=-K/AQ0H1P/bytlceJUNlx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 2007-05-14 at 10:25 +0200, 'Michel Talon' wrote: > On Mon, May 14, 2007 at 12:33:23AM +0100, Thomas Sparrevohn wrote: > >=20 > > converted INDEX > > into postgresSQL because I was playing around with making a message que= ue > > based approach - > > and it becomes BIG - The only table structure difference from the curre= nt > > format was that I=20 > > was able to track "who is depending on" a port - which I am pretty sure > > could be handled in the > > current framework - e.g. we could add a file having the depending port = names > > or so >=20 >=20 > niobe% cp /usr/ports/INDEX-6 . > niobe% sqlite3 index.db > sqlite> CREATE TABLE index6 ( > pkgname varchar(1), > path varchar(1), > prefix varchar(1), > comment varchar(1), > descr varchar(1), > maintainer varchar(1), > categories varchar(1), > build_deps varchar(1), > run_deps varchar(1), > website varchar(1), > extract_deps varchar(1), > patch_deps varchar(1), > fetch_deps varchar(1)); > sqlite> .import INDEX-6 index6 > ... completes in less than 2 seconds > sqlite> select * from index6 where path =3D "/usr/ports/accessibility/atk= "; > atk-1.12.4|/usr/ports/accessibility/atk|/usr/local|A GNOME accessibility > toolkit > (ATK)|/usr/ports/accessibility/atk/pkg-descr|gnome@FreeBSD.org|accessibil= ity > devel|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 libtool-1.5.22_3 > perl-5.8.8 pkg-config-0.21|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 > perl-5.8.8 > pkg-config-0.21|http://developer.gnome.org/projects/gap/||libtool-1.5.22_= 3| >=20 > niobe% ls -lh INDEX-6 index.db=20 > -rw-r--r-- 1 michel lpthe 9,5M 14 mai 10:00 INDEX-6 > -rw-r--r-- 1 michel lpthe 12M 14 mai 10:12 index.db >=20 > Where is this huge increase in size? > Admittedly, i have not created indexes, etc. ^^^^^^^^^^^^^^^^^^^^^^^^^^ > Compare this to the portsdb created by portupgrade from the same INDEX-6 >=20 > niobe% ls -lh /usr/ports/INDEX-6.db > -rw-r--r-- 1 root wheel 21M 16 f=C3=A9v 13:36 /usr/ports/INDEX-6.db >=20 > Surprise, surprise, the BerkeleyDB suddenly appears less glorious. Your index has no indices, and you wonder why it is smaller? --=-K/AQ0H1P/bytlceJUNlx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGSJLmlcRvFfyds/cRAgUZAJkBLHMhINAoc19f9X6dEha8gq21mgCeImNY 7dGUv7+V53R4tSe0mhRdoOI= =BjY1 -----END PGP SIGNATURE----- --=-K/AQ0H1P/bytlceJUNlx-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 17:11:05 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C725916A400; Mon, 14 May 2007 17:11:05 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from sumo.dreamhost.com (sumo.dreamhost.com [66.33.216.29]) by mx1.freebsd.org (Postfix) with ESMTP id ADDCF13C45D; Mon, 14 May 2007 17:11:05 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from spunkymail-a12.g.dreamhost.com (sd-green-bigip-208-97-132-74.dreamhost.com [208.97.132.74]) by sumo.dreamhost.com (Postfix) with ESMTP id 59836186B35; Mon, 14 May 2007 09:43:04 -0700 (PDT) Received: from [10.0.1.2] (68-184-120-224.dhcp.smyr.ga.charter.com [68.184.120.224]) by spunkymail-a12.g.dreamhost.com (Postfix) with ESMTP id B626C7FA7; Mon, 14 May 2007 09:43:02 -0700 (PDT) Message-ID: <46489189.3030901@cyberwang.net> Date: Mon, 14 May 2007 12:42:49 -0400 From: Sean Bryant User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Andrew Pantyukhin References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <17992.26100.876067.671769@bhuda.mired.org> <861whjscbd.fsf@dwp.des.no> <46487F57.1010205@cyberwang.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 17:11:05 -0000 Andrew Pantyukhin wrote: > On 5/14/07, Sean Bryant wrote: >> I propose someone post on the wiki (http://wiki.freebsd.org/) > > This might be relevant: > http://wiki.freebsd.org/Upak > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" I was sort of hoping for something a bit more straightforward like a list that identifies concrete issues with the ports and packages systems. From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 17:15:39 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F39216A405 for ; Mon, 14 May 2007 17:15:39 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outX.internet-mail-service.net (outX.internet-mail-service.net [216.240.47.247]) by mx1.freebsd.org (Postfix) with ESMTP id 64FBA13C4D9 for ; Mon, 14 May 2007 17:15:39 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Mon, 14 May 2007 10:15:38 -0700 Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 6C66E125A26; Mon, 14 May 2007 10:15:38 -0700 (PDT) Message-ID: <4648993A.4060709@elischer.org> Date: Mon, 14 May 2007 10:15:38 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: "Bjoern A. Zeeb" References: <45F1C355.8030504@digitaldaemon.com> <20070511075857.GL23313@hoeg.nl> <4644773E.60909@freebsd.org> <20070514141416.GR23313@hoeg.nl> <20070514155727.Y2939@maildrop.int.zabbadoz.net> In-Reply-To: <20070514155727.Y2939@maildrop.int.zabbadoz.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers , Andre Oppermann , Ed Schouten Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 17:15:39 -0000 Bjoern A. Zeeb wrote: > On Mon, 14 May 2007, Ed Schouten wrote: > > Hi, > >> * Andre Oppermann wrote: >>> I'm working on a "light" variant of multi-IPv[46] per jail. It doesn't >>> create an entirely new network instance per jail and probably is more >>> suitable for low- to mid-end (virtual) hosting. In those cases you >>> normally want the host administrator to excercise full control over >>> IP address and firewall configuration of the individual jails. For >>> high-end stuff where you offer jail based virtual machines or network >>> and routing simulations Marco's work is more appropriate. >> >> Is there a way for us to colaborate on this? I'd really love to work on >> this sort of stuff and I think it's really interesting to dig in that >> sort of code. >> >> I already wrote an initial patch which changes the system call and >> sysctl format of the jail structures which allow you to specify lists of >> addresses for IPv4 and IPv6. > talk with Marko Zec about "immunes". http://www.tel.fer.hr/zec/vimage/ and http://www.tel.fer.hr/imunes/ It has a complete virtualized stack for each jail. ipfw, routing table, divert sockets, sysctls, statistics, netgraph etc. He as a set of patches against 7-current that now implements nearly all the parts you need. It Will be discussed at the devsummit on Wed/Thurs and we'll be discussing whether it is suitable for general inclusion or to be kept as patches. Note, it can be compiled out, which leaves a pretty much binarily compatible OS, so I personally would like to see it included. > Not that pjd@ hasn't had a that for IPv4 for a long time the code for > v6 is basically in p4. > > >> In theory, the only thing that needs to be done in the kernel, is adding >> bits to the netinet6 code to prevent usage of unauthorized IPv6 >> addresses (nothing is altered yet). > > In theory things sound a lot simpler than they are in real world. > You'll also need to solve the binding to 0, source address selction, > etc. problems. Been there. > > The problems I had that things paniced for me - cannot remmeber why - > and so I started to cleanup the code and assimilate it to what v4 had, > which hasn't helped because I hit deeply nested function calls, which > returned modified values in error cases or for one code path so things > would have been wrong for the second. In the end I had to timeout the > project, also because it was clear that vnet would come. > > I had a short glance at the dflbsd code after they announced it and > it looked like that it wouldn't hold up a serious review for all code > paths. > > In theory things sound a lot simpler than they might be. > > > I should talk to andre during and look at your patch after BSDCan. > I am pretty much unsure what andre is up to beyond what pjd has > (and only needs to be updated to HEAD [I have a local patch for that > in case anyone is interested]). > > > /bz > From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 20:29:22 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03AB916A403 for ; Mon, 14 May 2007 20:29:22 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.freebsd.org (Postfix) with ESMTP id C04A813C469 for ; Mon, 14 May 2007 20:29:21 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from ip04.eastlink.ca ([24.222.10.20]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0JI100MYZSWXULB1@mta01.eastlink.ca> for freebsd-hackers@freebsd.org; Mon, 14 May 2007 17:29:21 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO dwpc.dwlabs.ca) ([24.224.199.230]) by ip04.eastlink.ca with ESMTP; Mon, 14 May 2007 16:58:05 -0300 Received: from dwpc.dwlabs.ca (www.dwlabs.ca [192.168.0.10]) by dwpc.dwlabs.ca (8.13.8/8.13.8) with ESMTP id l4EKTMXm016050; Mon, 14 May 2007 17:29:28 -0300 (ADT envelope-from duane@dwpc.dwlabs.ca) Received: (from duane@localhost) by dwpc.dwlabs.ca (8.13.8/8.13.8/Submit) id l4EKTMtp016049; Mon, 14 May 2007 17:29:22 -0300 (ADT envelope-from duane) Date: Mon, 14 May 2007 17:29:22 -0300 From: Duane Whitty In-reply-to: <4647F627.7020408@u.washington.edu> To: Garrett Cooper Message-id: <20070514202922.GF1017@dwpc.dwlabs.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CABxkSEYY4MfmdGdsb2JhbACBXI4jNw X-IronPort-AV: i="4.14,532,1170648000"; d="scan'208"; a="216808167:sNHT30148119" X-Virus-Scanned: ClamAV 0.88.6/3243/Mon May 14 07:49:49 2007 on dwpc.dwlabs.ca X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on dwpc.dwlabs.ca References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> User-Agent: Mutt/1.4.2.2i X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Cc: freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 20:29:22 -0000 On Sunday, 13 May 2007 at 22:39:51 -0700, Garrett Cooper wrote: > Duane Whitty wrote: > >Garrett, > > > >Sounds like you're involved in a cool project. What kind of > >community collaboration/involvement would be helpful to you? > > > >Once, a long, long time ago, I wrote quite a bit of bdb 1.85 > >code. At that time it WAS the current version :) I might > >actually remember a bit if I start working with it again. > >But what would be most useful to you? > > > >And if I may ask about a design decision: Why did you choose > >a hash structure? Perhaps if you have time you could give > >a little more info but whatever fits your schedule. > > > >Good luck on your project. > > > >Duane > > Duane, > > I actually chose hash structure at the time because I thought it was > appropriate for the size of the ports tree and the number of files that > may need to be used. Plus, Kris suggested that :). Given the way that > I've seen how things are used, this would be great for searching for who > added what file, finding cyclic dependencies easily, maintaining > uniqueness, etc, many common issues with the current ruby scripts. > > Also, the other available BDB options like btrees seem inefficient, > over the long run :(.. > I guess frequent deletions and lack of space recovery are the problem with btrees? > Do you know of any simple APIs that can quickly dump fields in use > with BDB .db files? I have a hunch given the Ruby that I've taken a look at > with Portupgrade that something very inefficient's in play, but I want > to test my assumption first before jumping to conclusions. > I did a quick ports search and came up with databases/ruby-bdb1. I don't grok ruby but I've telling myself I should learn [sigh]. I don't know if this has a simple API or not; I'll take a look but I suspect it is probably overkill. If this doesn't meet your project's needs I'll try coding something up in C. I imagine we'll need some tools written in C at some point anyhow. > Thank you very much for the help :)! > Well, we'll see about how much help I can be; but I'll try. It's your project so let me know what you need or don't need/want > -Garrett > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 20:47:59 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8443C16A40D for ; Mon, 14 May 2007 20:47:59 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id ED79413C469 for ; Mon, 14 May 2007 20:47:58 +0000 (UTC) (envelope-from andre@freebsd.org) Received: (qmail 43063 invoked from network); 14 May 2007 20:06:53 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 14 May 2007 20:06:53 -0000 Message-ID: <4648CAFD.4020009@freebsd.org> Date: Mon, 14 May 2007 22:47:57 +0200 From: Andre Oppermann User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Julian Elischer References: <45F1C355.8030504@digitaldaemon.com> <20070511075857.GL23313@hoeg.nl> <4644773E.60909@freebsd.org> <20070514141416.GR23313@hoeg.nl> <20070514155727.Y2939@maildrop.int.zabbadoz.net> <4648993A.4060709@elischer.org> In-Reply-To: <4648993A.4060709@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , Ed Schouten , FreeBSD Hackers Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 20:47:59 -0000 Julian Elischer wrote: > Bjoern A. Zeeb wrote: >> On Mon, 14 May 2007, Ed Schouten wrote: >> >> Hi, >> >>> * Andre Oppermann wrote: >>>> I'm working on a "light" variant of multi-IPv[46] per jail. It >>>> doesn't >>>> create an entirely new network instance per jail and probably is more >>>> suitable for low- to mid-end (virtual) hosting. In those cases you >>>> normally want the host administrator to excercise full control over >>>> IP address and firewall configuration of the individual jails. For >>>> high-end stuff where you offer jail based virtual machines or network >>>> and routing simulations Marco's work is more appropriate. >>> >>> Is there a way for us to colaborate on this? I'd really love to work on >>> this sort of stuff and I think it's really interesting to dig in that >>> sort of code. >>> >>> I already wrote an initial patch which changes the system call and >>> sysctl format of the jail structures which allow you to specify lists of >>> addresses for IPv4 and IPv6. >> > > talk with Marko Zec about "immunes". > > http://www.tel.fer.hr/zec/vimage/ > and http://www.tel.fer.hr/imunes/ > > It has a complete virtualized stack for each jail. > ipfw, routing table, divert sockets, sysctls, statistics, netgraph etc. Like I said there is a place for both approaches and they are complementary. A couple of hosting ISPs I know do not want to give a full virtualized stack to their customers. They want to retain full control over the network configuration inside and outside of the jail. In those (mass-hosting) cases it is done that way to ease support (less stuff users can fumble) and to properly position those products against full virtual machines and dedicated servers. Something like this: jail < vimage < virtual machine < dedicated server. > He as a set of patches against 7-current that now implements nearly all the > parts you need. It Will be discussed at the devsummit on Wed/Thurs > and we'll be discussing whether it is suitable for general inclusion or > to be kept as patches. Note, it can be compiled out, which leaves a > pretty much binarily compatible OS, so I personally would like to see it > included. I don't think it is mature enough for inclusion into the upcoming 7.0R. Not enough integration time. Food for FreeBSD 8.0. -- Andre From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 21:05:27 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35D1E16A407 for ; Mon, 14 May 2007 21:05:27 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outK.internet-mail-service.net (outK.internet-mail-service.net [216.240.47.234]) by mx1.freebsd.org (Postfix) with ESMTP id 1E5F713C44B for ; Mon, 14 May 2007 21:05:27 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Mon, 14 May 2007 14:05:26 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 76CB7125A25; Mon, 14 May 2007 14:05:26 -0700 (PDT) Message-ID: <4648CF15.8050304@elischer.org> Date: Mon, 14 May 2007 14:05:25 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Andre Oppermann References: <45F1C355.8030504@digitaldaemon.com> <20070511075857.GL23313@hoeg.nl> <4644773E.60909@freebsd.org> <20070514141416.GR23313@hoeg.nl> <20070514155727.Y2939@maildrop.int.zabbadoz.net> <4648993A.4060709@elischer.org> <4648CAFD.4020009@freebsd.org> In-Reply-To: <4648CAFD.4020009@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Bjoern A. Zeeb" , Ed Schouten , FreeBSD Hackers Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 21:05:27 -0000 Andre Oppermann wrote: > Julian Elischer wrote: >> Bjoern A. Zeeb wrote: >>> On Mon, 14 May 2007, Ed Schouten wrote: >>> >>> Hi, >>> >>>> * Andre Oppermann wrote: >>>>> I'm working on a "light" variant of multi-IPv[46] per jail. It >>>>> doesn't >>>>> create an entirely new network instance per jail and probably is more >>>>> suitable for low- to mid-end (virtual) hosting. In those cases you >>>>> normally want the host administrator to excercise full control over >>>>> IP address and firewall configuration of the individual jails. For >>>>> high-end stuff where you offer jail based virtual machines or network >>>>> and routing simulations Marco's work is more appropriate. >>>> >>>> Is there a way for us to colaborate on this? I'd really love to work on >>>> this sort of stuff and I think it's really interesting to dig in that >>>> sort of code. >>>> >>>> I already wrote an initial patch which changes the system call and >>>> sysctl format of the jail structures which allow you to specify >>>> lists of >>>> addresses for IPv4 and IPv6. >>> >> >> talk with Marko Zec about "immunes". >> >> http://www.tel.fer.hr/zec/vimage/ >> and http://www.tel.fer.hr/imunes/ >> >> It has a complete virtualized stack for each jail. >> ipfw, routing table, divert sockets, sysctls, statistics, netgraph etc. > > Like I said there is a place for both approaches and they are > complementary. A couple of hosting ISPs I know do not want to > give a full virtualized stack to their customers. They want to > retain full control over the network configuration inside and > outside of the jail. In those (mass-hosting) cases it is done > that way to ease support (less stuff users can fumble) and to > properly position those products against full virtual machines > and dedicated servers. Something like this: jail < vimage < > virtual machine < dedicated server. > >> He as a set of patches against 7-current that now implements nearly >> all the >> parts you need. It Will be discussed at the devsummit on Wed/Thurs >> and we'll be discussing whether it is suitable for general inclusion >> or to be kept as patches. Note, it can be compiled out, which leaves a >> pretty much binarily compatible OS, so I personally would like to see >> it included. > > I don't think it is mature enough for inclusion into the upcoming > 7.0R. Not enough integration time. Food for FreeBSD 8.0. Actually I am not sure I completely agree. Consider: It is nearly all implemented by macros, which nearly all result in the same or similar code as before when turned off. No-one is suggesting that we turn it on for 7.0. but Having it in earlier will result in more beating on it.. I however do admit that others may not be as daring as I am on this :-) One thing that could be born in mind however is that the various parts of this that have been virtualised could be used by other virtualisation possibilies.. For example it is possible that the places that vimage needs to touch with its macros are the same places that your implementation might be looking at changing.. It is also possible that the jail code could do the same. Possibly having different sets of the same macros could implement a sliding scale of virtualisation, from plain old 'chroot' though to full vimage. I might add that What Marco has now is very functional and that people should kick its tires (tyres) a bit.. the p4 branch is: //projects/vimage/... for those who want to look at it. > From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 21:51:30 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F39D416A402 for ; Mon, 14 May 2007 21:51:29 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 81BBD13C44B for ; Mon, 14 May 2007 21:51:29 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 85654 invoked by uid 2001); 14 May 2007 21:52:47 -0000 Date: Mon, 14 May 2007 16:52:47 -0500 From: "Rick C. Petty" To: 'Michel Talon' Message-ID: <20070514215247.GA79797@keira.kiwi-computer.com> References: <20070514082512.GA25544@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070514082512.GA25544@lpthe.jussieu.fr> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 21:51:30 -0000 On Mon, May 14, 2007 at 10:25:12AM +0200, 'Michel Talon' wrote: > > niobe% sqlite3 index.db > sqlite> CREATE TABLE index6 ( > pkgname varchar(1), > path varchar(1), > prefix varchar(1), > comment varchar(1), > descr varchar(1), > maintainer varchar(1), > categories varchar(1), > build_deps varchar(1), > run_deps varchar(1), > website varchar(1), > extract_deps varchar(1), > patch_deps varchar(1), > fetch_deps varchar(1)); > sqlite> .import INDEX-6 index6 > ... completes in less than 2 seconds > sqlite> select * from index6 where path = "/usr/ports/accessibility/atk"; > atk-1.12.4|/usr/ports/accessibility/atk|/usr/local|A GNOME accessibility > toolkit > (ATK)|/usr/ports/accessibility/atk/pkg-descr|gnome@FreeBSD.org|accessibility > devel|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 libtool-1.5.22_3 > perl-5.8.8 pkg-config-0.21|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 > perl-5.8.8 > pkg-config-0.21|http://developer.gnome.org/projects/gap/||libtool-1.5.22_3| What this shows me is that sqlite doesn't follow SQL92 standards. According to the section 6.1 of the standard[1]: Syntax rule #1 states "VARCHAR is equivalent to CHARACTER VARYING." Syntax rule #9b states "If VARYING is specified in , then the length in characters of the character string is variable, with a minimum length of 0 and a maximum length of the value of ." So your example should have failed to work correctly. You should have used something more appropriate, like VARCHAR(255) instead of VARCHAR(1). If SQLite isn't even standards-compliant, why is anyone considering it? =) Nitpicky, I know, but it makes me wonder what else they don't follow... -- Rick C. Petty [1] http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 22:06:39 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F3DF16A406 for ; Mon, 14 May 2007 22:06:39 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id F2B3013C480 for ; Mon, 14 May 2007 22:06:38 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 752C61A3C19; Mon, 14 May 2007 15:07:28 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0478752A38; Mon, 14 May 2007 18:06:37 -0400 (EDT) Date: Mon, 14 May 2007 18:06:37 -0400 From: Kris Kennaway To: "Rick C. Petty" Message-ID: <20070514220637.GA6849@xor.obsecurity.org> References: <20070514082512.GA25544@lpthe.jussieu.fr> <20070514215247.GA79797@keira.kiwi-computer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070514215247.GA79797@keira.kiwi-computer.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, 'Michel Talon' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 22:06:39 -0000 On Mon, May 14, 2007 at 04:52:47PM -0500, Rick C. Petty wrote: > On Mon, May 14, 2007 at 10:25:12AM +0200, 'Michel Talon' wrote: > > > > niobe% sqlite3 index.db > > sqlite> CREATE TABLE index6 ( > > pkgname varchar(1), > > path varchar(1), > > prefix varchar(1), > > comment varchar(1), > > descr varchar(1), > > maintainer varchar(1), > > categories varchar(1), > > build_deps varchar(1), > > run_deps varchar(1), > > website varchar(1), > > extract_deps varchar(1), > > patch_deps varchar(1), > > fetch_deps varchar(1)); > > sqlite> .import INDEX-6 index6 > > ... completes in less than 2 seconds > > sqlite> select * from index6 where path = "/usr/ports/accessibility/atk"; > > atk-1.12.4|/usr/ports/accessibility/atk|/usr/local|A GNOME accessibility > > toolkit > > (ATK)|/usr/ports/accessibility/atk/pkg-descr|gnome@FreeBSD.org|accessibility > > devel|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 libtool-1.5.22_3 > > perl-5.8.8 pkg-config-0.21|gettext-0.14.5_2 glib-2.12.9 libiconv-1.9.2_2 > > perl-5.8.8 > > pkg-config-0.21|http://developer.gnome.org/projects/gap/||libtool-1.5.22_3| > > What this shows me is that sqlite doesn't follow SQL92 standards. > According to the section 6.1 of the standard[1]: > > Syntax rule #1 states "VARCHAR is equivalent to CHARACTER VARYING." > Syntax rule #9b states > "If VARYING is specified in , then the > length in characters of the character string is variable, > with a minimum length of 0 and a maximum length of the value > of ." > > So your example should have failed to work correctly. You should have used > something more appropriate, like VARCHAR(255) instead of VARCHAR(1). Some of the fields can (and do) have unbounded length. Kris From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 22:25:27 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 661D916A405 for ; Mon, 14 May 2007 22:25:27 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 2630613C458 for ; Mon, 14 May 2007 22:25:26 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 86562 invoked by uid 2001); 14 May 2007 22:26:45 -0000 Date: Mon, 14 May 2007 17:26:45 -0500 From: "Rick C. Petty" To: Kris Kennaway Message-ID: <20070514222645.GB79797@keira.kiwi-computer.com> References: <20070514082512.GA25544@lpthe.jussieu.fr> <20070514215247.GA79797@keira.kiwi-computer.com> <20070514220637.GA6849@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070514220637.GA6849@xor.obsecurity.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 22:25:27 -0000 On Mon, May 14, 2007 at 06:06:37PM -0400, Kris Kennaway wrote: > > Some of the fields can (and do) have unbounded length. > > Kris Where is that specified in the SQL spec? Or are you just saying that SQLite provides this flexibility? -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 22:45:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28F8E16A402 for ; Mon, 14 May 2007 22:45:29 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1732A13C43E for ; Mon, 14 May 2007 22:45:29 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 984561A3C19; Mon, 14 May 2007 15:46:18 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 34C6752A38; Mon, 14 May 2007 18:45:28 -0400 (EDT) Date: Mon, 14 May 2007 18:45:28 -0400 From: Kris Kennaway To: "Rick C. Petty" Message-ID: <20070514224528.GB6849@xor.obsecurity.org> References: <20070514082512.GA25544@lpthe.jussieu.fr> <20070514215247.GA79797@keira.kiwi-computer.com> <20070514220637.GA6849@xor.obsecurity.org> <20070514222645.GB79797@keira.kiwi-computer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070514222645.GB79797@keira.kiwi-computer.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 22:45:29 -0000 On Mon, May 14, 2007 at 05:26:45PM -0500, Rick C. Petty wrote: > On Mon, May 14, 2007 at 06:06:37PM -0400, Kris Kennaway wrote: > > > > Some of the fields can (and do) have unbounded length. > > > > Kris > > Where is that specified in the SQL spec? Or are you just saying that > SQLite provides this flexibility? I am saying that some of the fields in INDEX have unbounded length, so you'd better be prepared to handle it. Kris From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 19:39:31 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8072E16A400 for ; Mon, 14 May 2007 19:39:31 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 3046713C447 for ; Mon, 14 May 2007 19:39:30 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l4EJdSfI086796 ; Mon, 14 May 2007 21:39:28 +0200 (CEST) X-Ids: 165 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id 894A0BF64F; Mon, 14 May 2007 21:39:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 8831BBF606; Mon, 14 May 2007 21:39:26 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 8289588; Mon, 14 May 2007 21:39:26 +0200 (CEST) Date: Mon, 14 May 2007 21:39:26 +0200 From: "'Michel Talon'" To: Tom Evans Message-ID: <20070514193926.GA24449@lpthe.jussieu.fr> References: <20070514082512.GA25544@lpthe.jussieu.fr> <1179161318.1791.32.camel@zoot.mintel.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1179161318.1791.32.camel@zoot.mintel.co.uk> User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.165]); Mon, 14 May 2007 21:39:28 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3243/Mon May 14 12:49:49 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-j-chkmail-Score: MSGID : 4648BAF0.001 on shiva.jussieu.fr : j-chkmail score : X : 0/50 0 0.505 -> 1 X-Miltered: at shiva.jussieu.fr with ID 4648BAF0.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Mailman-Approved-At: Mon, 14 May 2007 23:08:00 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 19:39:31 -0000 On Mon, May 14, 2007 at 05:48:38PM +0100, Tom Evans wrote: > On Mon, 2007-05-14 at 10:25 +0200, 'Michel Talon' wrote: > > Where is this huge increase in size? > > Admittedly, i have not created indexes, etc. > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Compare this to the portsdb created by portupgrade from the same INDEX-6 > > > > niobe% ls -lh /usr/ports/INDEX-6.db > > -rw-r--r-- 1 root wheel 21M 16 fév 13:36 /usr/ports/INDEX-6.db > > > > Surprise, surprise, the BerkeleyDB suddenly appears less glorious. > > Your index has no indices, and you wonder why it is smaller? I am really tired answering questions about straw man, misrepresentations of my position, and so on. I don't advocate using XML, nor java, nor java tools nor anything of this sort. I am only claiming that SQLite does a better job than a BerkeleyDB for the precise mission that it seems the BerkeleyDB is programmed in the SOC. As to the question of indices i am the one who pointed out there are no indices, so there is little merit inventing this new objection. Moreover the objection is completely bogus, because SQLite creates the index in memory. After the following command sqlite> create index path_ind on index6(path); (i have created an index on origins, the only question of interest) the size of the database doesn't change at all! It remains twice smaller than the BerkeleyDB. But the memory consumption augments. here are the values before and after creation of index: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND michel 1174 0,0 0,2 2984 2324 p2 I+ 21:03 0:00,01 sqlite3 michel 1174 0,0 0,6 6728 6068 p2 S+ 21:03 0:00,34 sqlite3 By the way, i don't concern myself with the problem of accelerating package registration or similar stuff. Indeed most of these problems can easily be solved by some optimizations in the makefile and parallelism. The true problem, as Kris said, is the problem of upgrading an installation in a reasonable time -that is, not several days- and with *total* reliability. None of present FreeBSD tools do that, while it is common place with Debian. This is an extremely difficult problem in the FreeBSD context as des said, and i am certainly not able to solve it. But at least i have researched the question and written some code. It is perfectly obvious that most of the bikesheds in this thread are due to perfect ignorance of the subject, which could be remedied reading: http://www.lpthe.jussieu.fr/~talon/freebsdports.html and the small SQLite documentation at: http://www.sqlite.org/lang.html -- Michel TALON From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 03:50:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F1EE16A403 for ; Tue, 15 May 2007 03:50:16 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.freebsd.org (Postfix) with ESMTP id 266EE13C459 for ; Tue, 15 May 2007 03:50:15 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from ip02.eastlink.ca ([24.222.10.10]) by mta02.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0JI2007BQDBRCP42@mta02.eastlink.ca> for freebsd-hackers@freebsd.org; Tue, 15 May 2007 00:50:15 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO dwpc.dwlabs.ca) ([24.224.199.230]) by ip02.eastlink.ca with ESMTP; Tue, 15 May 2007 00:49:49 -0300 Received: from dwpc.dwlabs.ca (ftp.dwlabs.ca [192.168.0.10]) by dwpc.dwlabs.ca (8.13.8/8.13.8) with ESMTP id l4F3oGwn020892; Tue, 15 May 2007 00:50:22 -0300 (ADT envelope-from duane@dwpc.dwlabs.ca) Received: (from duane@localhost) by dwpc.dwlabs.ca (8.13.8/8.13.8/Submit) id l4F3oGqF020891; Tue, 15 May 2007 00:50:16 -0300 (ADT envelope-from duane) Date: Tue, 15 May 2007 00:50:16 -0300 From: Duane Whitty In-reply-to: <20070514202922.GF1017@dwpc.dwlabs.ca> To: freebsd-hackers@freebsd.org Message-id: <20070515035016.GG1017@dwpc.dwlabs.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAEzKSEYY4MfmdGdsb2JhbACBXI4jNw X-IronPort-AV: i="4.14,535,1170648000"; d="scan'208"; a="185191163:sNHT6941500443" X-Virus-Scanned: ClamAV 0.88.6/3243/Mon May 14 07:49:49 2007 on dwpc.dwlabs.ca X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on dwpc.dwlabs.ca References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> User-Agent: Mutt/1.4.2.2i X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Cc: Garrett Cooper Subject: Berkeley DB API [was Re: SoC] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 03:50:16 -0000 [snipped] > > > Do you know of any simple APIs that can quickly dump fields in use > > with BDB .db files? I have a hunch given the Ruby that I've taken a look at > > with Portupgrade that something very inefficient's in play, but I want > > to test my assumption first before jumping to conclusions. > > > > I did a quick ports search and came up with databases/ruby-bdb1. I don't grok ruby > but I've telling myself I should learn [sigh]. I don't know if this has a simple > API or not; I'll take a look but I suspect it is probably overkill. > > If this doesn't meet your project's needs I'll try coding something up in C. I > imagine we'll need some tools written in C at some point anyhow. > > > Thank you very much for the help :)! > > > > Well, we'll see about how much help I can be; but I'll try. It's your project > so let me know what you need or don't need/want > > > -Garrett Well, databases/ruby-bdb1 will not work because pkgtools uses the newer version of DB, Sleepycat DB 4.(2|3) I guess. However there is ruby-bdb that seems like it would be simple for someone who understands ruby. I've also noticed there is a perl and a python interface available as well. I wonder what the ramifications of the above are to the goal of using the bdb in our base system to add db smarts to the pkg_install tools in a way that will be complementary to exising tools? Duane From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 04:35:44 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A451F16A402 for ; Tue, 15 May 2007 04:35:44 +0000 (UTC) (envelope-from lstewart@room52.net) Received: from swin.edu.au (gpo2.cc.swin.edu.au [136.186.1.222]) by mx1.freebsd.org (Postfix) with ESMTP id 4061B13C469 for ; Tue, 15 May 2007 04:35:43 +0000 (UTC) (envelope-from lstewart@room52.net) Received: from [136.186.229.95] (lstewart.caia.swin.edu.au [136.186.229.95]) by swin.edu.au (8.13.6.20060614/8.13.1) with ESMTP id l4F4I8m3025897 for ; Tue, 15 May 2007 14:18:08 +1000 Message-ID: <4649349D.4060101@room52.net> Date: Tue, 15 May 2007 14:18:37 +1000 From: Lawrence Stewart User-Agent: Thunderbird 1.5.0.9 (X11/20070123) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on gpo2.cc.swin.edu.au Subject: Writing a plain text file to disk from kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 04:35:44 -0000 Hi all, I'm in the process of writing a kernel module to instrument some parts of the network stack in FreeBSD 6.2. Everything works perfectly, except that writing the logging info to syslog using printf is too inefficient for this particular task. Given that log messages need to be generated for each packet entering/leaving the network stack, my testing thus far has showed that syslog groans under the load and uses far too much CPU time. So, I'm looking for a way to manually open up a file from within kernel space and dump characters into it. I've come across the following threads that are related to my problem: http://lists.freebsd.org/pipermail/freebsd-hackers/2007-May/020330.html http://lists.freebsd.org/pipermail/freebsd-fs/2005-September/001306.html Neither thread has provided the "ah-ha" information/discovery I'm needing to get this working, and so I'd be very grateful to anyone that can shed some light on how to piece this together in the most efficient way possible. To summarise the things I've experimented with thus far: 1. Following the "open" syscall down into kernel land and investigating how the underlying kernel functions work. The "kern_open" function in "kern/vfs_syscalls.c" seems interesting. However, all of interesting functions that I've found take a thread struct pointer as the first argument. I have not been able to figure out where to get a thread struct pointer from. So perhaps if someone can shed light on how to go about creating a thread struct suitable for passing to these functions, I may be able to figure it out. I've tried creating a new kthread using kthread_create, and got this working, but this still didn't give me access to a thread struct pointer. I've also tried accessing the thread queue for process 0 but didn't have any luck there either (though I could have been accessing it incorrectly!). 2. Following the kernel panic code where it writes a dump out to disk. This uses very scary low level structs and functions that I couldn't wrap my head around... appeared to be below the vfs layer in the kernel, so I suspect its to far below where I want to be at. 3. I followed the ktrace code, but that seemed to lead to a dead end of passing logging data up to userspace via the ddb subsystem, which is not what I want to do. 4. I followed coredump code, and this looked very interesting. It operates directly on vnodes, but once again, the elusive thread struct pointer is needed. The "kern/vfs_*" files seem to contain the functions relating to all the action of creating/writing/reading files (vnodes)... is there a good document/tutorial somewhere that describes the layering and various abstractions in the FreeBSD kernel fileystem related code? TCP Illustrated has been invaluable in describing the layout and structure of the various network stack components/functions/structs in the kernel. Something similar for filesystem related tasks would be most useful. I suspect that once I understand the mechanics of where thread struct pointers come from and how to get my hands one one from within the kernel, I'll be able to get the rest going. Many thanks for your time and help. Regards, Lawrence Stewart From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 04:42:20 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 551C816A400 for ; Tue, 15 May 2007 04:42:20 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3263D13C43E for ; Tue, 15 May 2007 04:42:20 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F4gJpj023150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 May 2007 21:42:19 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F4gIUa003827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 14 May 2007 21:42:19 -0700 Message-ID: <46493A2A.4070303@u.washington.edu> Date: Mon, 14 May 2007 21:42:18 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <20070515035016.GG1017@dwpc.dwlabs.ca> In-Reply-To: <20070515035016.GG1017@dwpc.dwlabs.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.14.212934 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Berkeley DB API [was Re: SoC] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 04:42:20 -0000 Duane Whitty wrote: > [snipped] >>> Do you know of any simple APIs that can quickly dump fields in use >>> with BDB .db files? I have a hunch given the Ruby that I've taken a look at >>> with Portupgrade that something very inefficient's in play, but I want >>> to test my assumption first before jumping to conclusions. >>> >> I did a quick ports search and came up with databases/ruby-bdb1. I don't grok ruby >> but I've telling myself I should learn [sigh]. I don't know if this has a simple >> API or not; I'll take a look but I suspect it is probably overkill. >> >> If this doesn't meet your project's needs I'll try coding something up in C. I >> imagine we'll need some tools written in C at some point anyhow. >> >>> Thank you very much for the help :)! >>> >> Well, we'll see about how much help I can be; but I'll try. It's your project >> so let me know what you need or don't need/want >> >>> -Garrett > > Well, databases/ruby-bdb1 will not work because pkgtools uses the newer version of > DB, Sleepycat DB 4.(2|3) I guess. However there is ruby-bdb that seems like it > would be simple for someone who understands ruby. I've also noticed there is a > perl and a python interface available as well. > > I wonder what the ramifications of the above are to the goal of using the bdb in > our base system to add db smarts to the pkg_install tools in a way that will be > complementary to exising tools? > > Duane BDB-1 is an available option actually with the ruby tools. Try "make config" in the ports-mgmt/portupgrade directory. BDB v2+ isn't allowable in the base system because of licensing issues. I already talked to Kris about it. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 05:03:09 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 742AD16A400 for ; Tue, 15 May 2007 05:03:09 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 4EA2D13C45D for ; Tue, 15 May 2007 05:03:09 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F538Yr003097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 14 May 2007 22:03:08 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F537xs004948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 May 2007 22:03:07 -0700 Message-ID: <46493F0A.9050303@u.washington.edu> Date: Mon, 14 May 2007 22:03:06 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Bert JW Regeer References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070512155059.92011d54.stas@FreeBSD.org> <4645AFAF.7010704@free.fr> <8916C4D5-4DB5-49C0-AF8D-07F9FFA0A6E0@0x58.com> In-Reply-To: <8916C4D5-4DB5-49C0-AF8D-07F9FFA0A6E0@0x58.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.14.214434 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__C230066_P2 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_419_PROPOSE 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 05:03:09 -0000 Bert JW Regeer wrote: > > On May 12, 2007, at 5:14 AM, Philippe Laquet wrote: > >> Stanislav Sedov a écrit : >>> On Fri, 11 May 2007 02:10:05 +0200 >>> Ivan Voras mentioned: >>> >>> >>>> - I think it's time to give up on using BDB+directory tree full of text >>>> files for storing the installed packages database, and I propose all of >>>> this be replaced by a single SQLite database. SQLite is public domain >>>> (can be slurped into base system), embeddable, stores all data in a >>>> single file, lightweight, fast, and can be used to do fancy things such >>>> as reporting. >>>> >>> >>> What is the reason to use SQL-based database? You'll perform direct >>> queries to database? The packaging system is for ordinal users, not sql >>> geeks, so they should not have to use sql for managing packages. So a >>> simple set of hashes will suffer or needs. I agree with Julian that we >>> should have a backup of packaging database in plain text format, and >>> utility to rebuild it. This way we can always restore the database if >>> something goes wrong. Furhtermore, that should not make a great impact >>> on performance, since we don't have to rebuild it every day. >>> >> I agree with Stan ;) >> >> "fast and improved" package utilities uses mainly some indexed >> berkeley DB combined with flat files, aren't they? I, and may be many >> other FreeBSD users use light systems for efficiency and easier >> management, if we use some database system it will require Disk Space, >> resources for the DB to run, dependencies and so on... And we also >> may be exposed to a "that DB is better" war ;) >> > > SQLite is compiled inside a program, and as such does not require any > resources other than one file handle and some CPU time when querying. > The file is stored on disk, and requires no separate process to be > running to query. Maybe I misunderstood what you were trying to say. > SQLite will require less resources than flat text files, since SQLite is > a one time open then process, instead of what is currently happening, > having to open and close hundreds of files depending on how many ports > are installed. With this regard, SQLite is like BDB. Where SQLite uses > standards compliant SQL statements to get data. Correct. From what I was reading shared memory read access and locking are two available features of BDB databases. The only thing is that I do agree that there should be a dumping and importing mechanism of some kind for semi-formatted text files, for backup, debugging, and modification purposes. That's just my personal idea on the topic though :). >>> -- >>> Stanislav Sedov >>> ST4096-RIPE >>> >> > > I am able to understand many of the gripes with using a databases, and > have to import yet another code base into the FreeBSD base, however as > one of the young ones, and knowing sed/awk/grep and SQL, I prefer SQL > over having to process hundreds of text files using text processing > tools. It saddens me each time I run one of the pkg_* tools that needs > to parse the flat file structure since it takes so long. I have friends > running Ubuntu and their apt-get returns results much faster. > > In a world where hard drives are becoming more reliable, and are > automatically relocating sectors that go bad, do we really have to worry > about database corruption as much? I feel that many of the fears that > are being put forward will do harm to a text based "storage" system as > well. If one block drops out, it can cause tools to not be able to parse > the files. Create a backup copy of the database after each successful > transaction? There are ways to battle data corruption. True. I was thinking of backup, and recreation from scratch, considering that the database wouldn't be more than a few megs. In place replacement just seems like a hairy situation sometimes.. > Using BDB is not an real option either. I can not even count the amount > of times that the BDB database that portupgrade created has become > corrupt because I accidently ran two portupgrades at the same time, or > even remembered that I did not want to upgrade something and hit Ctrl+C. I'm sorry but nothing's completely solid in that respect, AFAIK. In terms of the first problem you mentioned, Wade is working on the locking . In terms of transactions, maybe we should take a look at Subversion for inspiration: . I'm a firm believer that it's easier to incorporate code than it is to remove it. > The experience I got from running SVN with BDB as the back-end database > to store my data, I say no thanks. In that case I would much rather > stick with the flat text files than go with a database. Well, a few comments: -Text files are bloated. Although many people are for XML, it takes much longer to parse than binary databases. -Custom text files require custom format capable parsers, no matter what the format, and the less coverage a parser has, the more probable the likelihood of bugs IMO. -In the event that features changed or were added, some required modifications to the parser could be trivial to major. With databases you can get away from that mentality to some degree IMHO. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 05:17:37 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDBCA16A405 for ; Tue, 15 May 2007 05:17:37 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2EA13C457 for ; Tue, 15 May 2007 05:17:37 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F5HahC010957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 May 2007 22:17:37 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F5Ha2K021675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 14 May 2007 22:17:36 -0700 Message-ID: <4649426F.8050601@u.washington.edu> Date: Mon, 14 May 2007 22:17:35 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> In-Reply-To: <20070514202922.GF1017@dwpc.dwlabs.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.14.220436 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 05:17:37 -0000 Duane Whitty wrote: > On Sunday, 13 May 2007 at 22:39:51 -0700, Garrett Cooper wrote: >> Duane Whitty wrote: >>> Garrett, >>> >>> Sounds like you're involved in a cool project. What kind of >>> community collaboration/involvement would be helpful to you? >>> >>> Once, a long, long time ago, I wrote quite a bit of bdb 1.85 >>> code. At that time it WAS the current version :) I might >>> actually remember a bit if I start working with it again. >>> But what would be most useful to you? >>> >>> And if I may ask about a design decision: Why did you choose >>> a hash structure? Perhaps if you have time you could give >>> a little more info but whatever fits your schedule. >>> >>> Good luck on your project. >>> >>> Duane >> Duane, >> >> I actually chose hash structure at the time because I thought it was >> appropriate for the size of the ports tree and the number of files that >> may need to be used. Plus, Kris suggested that :). Given the way that >> I've seen how things are used, this would be great for searching for who >> added what file, finding cyclic dependencies easily, maintaining >> uniqueness, etc, many common issues with the current ruby scripts. >> >> Also, the other available BDB options like btrees seem inefficient, >> over the long run :(.. >> > > I guess frequent deletions and lack of space recovery are the problem with btrees? Yes, that's part of it, but having to pivot the damn tree every once in a while to get good performance is a waste of resources too. Hash tables are of course much better at insertion / deletion as you probably well know. Having to do (possibly) O(n) insertion and deletion with btrees isn't good at all :(.. On hash tables its O(c) to something less than 99.9% of the time from what I know O(n) (depends on the bucket and generation schemes of course). All that has to happen every once in a while is the buckets capacity may increase, or the number of overall buckets to decrease collisions, but it seems much more feasible than a lopsided tree :). >> Do you know of any simple APIs that can quickly dump fields in use >> with BDB .db files? I have a hunch given the Ruby that I've taken a look at >> with Portupgrade that something very inefficient's in play, but I want >> to test my assumption first before jumping to conclusions. >> > > I did a quick ports search and came up with databases/ruby-bdb1. I don't grok ruby > but I've telling myself I should learn [sigh]. I don't know if this has a simple > API or not; I'll take a look but I suspect it is probably overkill. Ruby's nice, but it's built on Perl so I have suspicions on its overall usability / speed given my experience with Perl over the past 4 months daily for work :(.. Ruby's just the new big thing for programming languages, so everyone's into it. Kind of like how Java was compared to C/C++ a few years back. But once everything dies down people will realize that they'll still have to program in C/C++/Perl for real-world applications. Python seems better than Ruby from what I can see, but I really don't like the mandatory indentation thing. Ew.. > If this doesn't meet your project's needs I'll try coding something up in C. I > imagine we'll need some tools written in C at some point anyhow. That's ok. If you don't know anything right offhand that's more than a few lines, I'll keep on hunting / prodding for documentation / resources, and/or keep on reading the /usr/src/lib/libc/db source. I was just looking for something that could help me get moving quickly in the right direction. >> Thank you very much for the help :)! >> > > Well, we'll see about how much help I can be; but I'll try. It's your project > so let me know what you need or don't need/want Thank you again though :). Having seasoned vets help will certainly bring about good ideas and ideologies that I may not have thought of myself, and will no doubt prove to foster better production code than I could do by myself. Cheers, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 06:20:13 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA98E16A402 for ; Tue, 15 May 2007 06:20:13 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF1513C48A for ; Tue, 15 May 2007 06:20:13 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 1EB8420AA; Tue, 15 May 2007 08:20:10 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 0656420A6; Tue, 15 May 2007 08:20:10 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id D9B705158; Tue, 15 May 2007 08:20:09 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: David Cramblett References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> <86wszbx3tu.fsf@dwp.des.no> <4648835D.9020306@functionalchaos.net> Date: Tue, 15 May 2007 08:20:09 +0200 In-Reply-To: <4648835D.9020306@functionalchaos.net> (David Cramblett's message of "Mon\, 14 May 2007 08\:42\:21 -0700") Message-ID: <86sl9ywque.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 06:20:13 -0000 David Cramblett writes: > Dag-Erling Sm=C3=B8rgrav writes: > > What's in your /boot.config and /boot/loader.conf? > I have no boot.config. > > [root@www /]# cat /boot/loader.conf > # -- sysinstall generated deltas -- # > userconfig_script_load=3D"YES" Beats me... I can't even remember what userconfig_script is supposed to do. Note that support for 5.2.1 ended on July 31, 2004. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 06:34:55 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B86416A400 for ; Tue, 15 May 2007 06:34:55 +0000 (UTC) (envelope-from xistence@0x58.com) Received: from mailexchange.osnn.net (1e.66.5646.static.theplanet.com [70.86.102.30]) by mx1.freebsd.org (Postfix) with SMTP id 3324D13C457 for ; Tue, 15 May 2007 06:34:55 +0000 (UTC) (envelope-from xistence@0x58.com) Received: (qmail 53574 invoked by uid 0); 15 May 2007 06:31:09 -0000 Received: from unknown (HELO ?10.10.10.22?) (xistence@0x58.com@72.208.132.56) by mailexchange.osnn.net with SMTP; 15 May 2007 06:31:09 -0000 In-Reply-To: <46493F0A.9050303@u.washington.edu> References: <200705102105.27271.blackdragon@highveldmail.co.za> <20070512155059.92011d54.stas@FreeBSD.org> <4645AFAF.7010704@free.fr> <8916C4D5-4DB5-49C0-AF8D-07F9FFA0A6E0@0x58.com> <46493F0A.9050303@u.washington.edu> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-1--959769673; protocol="application/pkcs7-signature" Message-Id: <96C6AAEA-B70A-400F-8614-8DFDE5930D19@0x58.com> From: Bert JW Regeer Date: Mon, 14 May 2007 23:34:52 -0700 To: Garrett Cooper X-Mailer: Apple Mail (2.752.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 06:34:55 -0000 --Apple-Mail-1--959769673 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed On May 14, 2007, at 10:03 PM, Garrett Cooper wrote: > Bert JW Regeer wrote: >> On May 12, 2007, at 5:14 AM, Philippe Laquet wrote: >>> Stanislav Sedov a =E9crit : >>>> On Fri, 11 May 2007 02:10:05 +0200 >>>> Ivan Voras mentioned: >>>> >>>> >>>>> - I think it's time to give up on using BDB+directory tree full =20= >>>>> of text >>>>> files for storing the installed packages database, and I =20 >>>>> propose all of >>>>> this be replaced by a single SQLite database. SQLite is public =20 >>>>> domain >>>>> (can be slurped into base system), embeddable, stores all data =20 >>>>> in a >>>>> single file, lightweight, fast, and can be used to do fancy =20 >>>>> things such >>>>> as reporting. >>>>> >>>> >>>> What is the reason to use SQL-based database? You'll perform direct >>>> queries to database? The packaging system is for ordinal users, =20 >>>> not sql >>>> geeks, so they should not have to use sql for managing packages. =20= >>>> So a >>>> simple set of hashes will suffer or needs. I agree with Julian =20 >>>> that we >>>> should have a backup of packaging database in plain text format, =20= >>>> and >>>> utility to rebuild it. This way we can always restore the =20 >>>> database if >>>> something goes wrong. Furhtermore, that should not make a great =20 >>>> impact >>>> on performance, since we don't have to rebuild it every day. >>>> >>> I agree with Stan ;) >>> >>> "fast and improved" package utilities uses mainly some indexed =20 >>> berkeley DB combined with flat files, aren't they? I, and may be =20 >>> many other FreeBSD users use light systems for efficiency and =20 >>> easier management, if we use some database system it will require =20= >>> Disk Space, resources for the DB to run, dependencies and so =20 >>> on... And we also may be exposed to a "that DB is better" war ;) >>> >> SQLite is compiled inside a program, and as such does not require =20 >> any resources other than one file handle and some CPU time when =20 >> querying. The file is stored on disk, and requires no separate =20 >> process to be running to query. Maybe I misunderstood what you =20 >> were trying to say. SQLite will require less resources than flat =20 >> text files, since SQLite is a one time open then process, instead =20 >> of what is currently happening, having to open and close hundreds =20 >> of files depending on how many ports are installed. With this =20 >> regard, SQLite is like BDB. Where SQLite uses standards compliant =20 >> SQL statements to get data. > > Correct. =46rom what I was reading shared memory read access and =20 > locking are two available features of BDB databases. > > The only thing is that I do agree that there should be a dumping =20 > and importing mechanism of some kind for semi-formatted text files, =20= > for backup, debugging, and modification purposes. That's just my =20 > personal idea on the topic though :). > >>>> --=20 >>>> Stanislav Sedov >>>> ST4096-RIPE >>>> >>> >> I am able to understand many of the gripes with using a databases, =20= >> and have to import yet another code base into the FreeBSD base, =20 >> however as one of the young ones, and knowing sed/awk/grep and =20 >> SQL, I prefer SQL over having to process hundreds of text files =20 >> using text processing tools. It saddens me each time I run one of =20 >> the pkg_* tools that needs to parse the flat file structure since =20 >> it takes so long. I have friends running Ubuntu and their apt-get =20 >> returns results much faster. >> In a world where hard drives are becoming more reliable, and are =20 >> automatically relocating sectors that go bad, do we really have to =20= >> worry about database corruption as much? I feel that many of the =20 >> fears that are being put forward will do harm to a text based =20 >> "storage" system as well. If one block drops out, it can cause =20 >> tools to not be able to parse the files. Create a backup copy of =20 >> the database after each successful transaction? There are ways to =20 >> battle data corruption. > > True. I was thinking of backup, and recreation from scratch, =20 > considering that the database wouldn't be more than a few megs. In =20 > place replacement just seems like a hairy situation sometimes.. > >> Using BDB is not an real option either. I can not even count the =20 >> amount of times that the BDB database that portupgrade created has =20= >> become corrupt because I accidently ran two portupgrades at the =20 >> same time, or even remembered that I did not want to upgrade =20 >> something and hit Ctrl+C. > > I'm sorry but nothing's completely solid in that respect, AFAIK. In =20= > terms of the first problem you mentioned, Wade is working on the =20 > locking . > > In terms of transactions, maybe we should take a look at Subversion =20= > for inspiration: archive-2005-03/0301.shtml>. I'm a firm believer that it's easier =20 > to incorporate code than it is to remove it. I am unable to see any references to transaction support for BDB =20 databases, maybe I am missing something. Subversion in that thread is =20= suggesting SQL for a totally different reason. fsfs is what most =20 people are using as a subversion backend to help avoid BDB =20 corruption. =46rom the many people I have talked to that used to use =20 Subversion with BDB have had major issues, whereas fsfs has not had =20 any issues at all. Just what I have experienced myself as a Subversion repository =20 administrator. > >> The experience I got from running SVN with BDB as the back-end =20 >> database to store my data, I say no thanks. In that case I would =20 >> much rather stick with the flat text files than go with a database. > > Well, a few comments: > > -Text files are bloated. Although many people are for XML, it takes =20= > much longer to parse than binary databases. /var/db/pkg/ are all plain flat text files. I am not a supporter of =20 XML at all. > -Custom text files require custom format capable parsers, no matter =20= > what the format, and the less coverage a parser has, the more =20 > probable the likelihood of bugs IMO. We already have these in the pkg_* functions, so i'd hope they are =20 fairly solid! > -In the event that features changed or were added, some required =20 > modifications to the parser could be trivial to major. With =20 > databases you can get away from that mentality to some degree IMHO. Changing an SQL query versus re-writing a parser for text files is a =20 huge difference. > > -Garrett I am not opposed to text files, other than that they can be slow. I =20 am against BDB because over the years, in my experience they have =20 shown to be extremely unreliable and easily corrupted. If we are =20 going to be making changes to the way the ports/packages store the =20 information about what exists, it should be done in such a way that =20 it is scalable and at the same time extensible (is this a word?). Bert JW Regeer --Apple-Mail-1--959769673-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 06:47:44 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A4BDE16A402 for ; Tue, 15 May 2007 06:47:44 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id 63AB213C459 for ; Tue, 15 May 2007 06:47:44 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.hob.de (Postfix) with ESMTP id 480EC27E4C; Tue, 15 May 2007 08:47:43 +0200 (CEST) Received: from mailgate.hob.de ([127.0.0.1]) by localhost (mailgate.hob.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31154-07; Tue, 15 May 2007 08:47:43 +0200 (CEST) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id 115F127DB4; Tue, 15 May 2007 08:47:43 +0200 (CEST) Received: from linux03.hob.de (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id 27DA930DD6; Tue, 15 May 2007 08:47:42 +0200 (CEST) From: Marc =?iso-8859-1?q?L=F6rner?= Organization: hob To: freebsd-hackers@freebsd.org Date: Tue, 15 May 2007 07:47:38 +0100 User-Agent: KMail/1.6.2 References: <4649349D.4060101@room52.net> In-Reply-To: <4649349D.4060101@room52.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Message-Id: <200705150847.38838.marc.loerner@hob.de> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hob.de Cc: Lawrence Stewart Subject: Re: Writing a plain text file to disk from kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 06:47:44 -0000 Hello Lawrence, in file kern/vfs_syscalls.c you can see the kern_open function that uses vn_open to open a file/vnode. There are more vn_* functions like vn_rdwr for reading and writing to a vnode or vn_close to close a vnode. To see how theses functions work, I suggest you grep for them in the kernel-files. BTW, you can get an thread-struct pointer from curthread (c.f. sys/pcpu.h). HTH, Marc Lörner From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 06:54:13 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1707F16A405 for ; Tue, 15 May 2007 06:54:13 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.freebsd.org (Postfix) with ESMTP id D1FFF13C483 for ; Tue, 15 May 2007 06:54:12 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from ip02.eastlink.ca ([24.222.10.10]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0JI200MTMLUBUHA2@mta01.eastlink.ca> for freebsd-hackers@freebsd.org; Tue, 15 May 2007 03:54:11 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO dwpc.dwlabs.ca) ([24.224.199.230]) by ip02.eastlink.ca with ESMTP; Tue, 15 May 2007 03:53:48 -0300 Received: from dwpc.dwlabs.ca (ftp.dwlabs.ca [192.168.0.10]) by dwpc.dwlabs.ca (8.13.8/8.13.8) with ESMTP id l4F6sFaa021775; Tue, 15 May 2007 03:54:21 -0300 (ADT envelope-from duane@dwpc.dwlabs.ca) Received: (from duane@localhost) by dwpc.dwlabs.ca (8.13.8/8.13.8/Submit) id l4F6sFRw021774; Tue, 15 May 2007 03:54:15 -0300 (ADT envelope-from duane) Date: Tue, 15 May 2007 03:54:15 -0300 From: Duane Whitty In-reply-to: <46493A2A.4070303@u.washington.edu> To: Garrett Cooper Message-id: <20070515065415.GH1017@dwpc.dwlabs.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAOX1SEYY4MfmdGdsb2JhbACBXI4kNw X-IronPort-AV: i="4.14,535,1170648000"; d="scan'208"; a="185299133:sNHT42616890" X-Virus-Scanned: ClamAV 0.88.6/3243/Mon May 14 07:49:49 2007 on dwpc.dwlabs.ca X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on dwpc.dwlabs.ca References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <20070515035016.GG1017@dwpc.dwlabs.ca> <46493A2A.4070303@u.washington.edu> User-Agent: Mutt/1.4.2.2i X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Cc: freebsd-hackers@freebsd.org Subject: Re: Berkeley DB API [was Re: SoC] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 06:54:13 -0000 On Monday, 14 May 2007 at 21:42:18 -0700, Garrett Cooper wrote: > Duane Whitty wrote: [snipped] > > > >I wonder what the ramifications of the above are to the goal of using the > >bdb in > >our base system to add db smarts to the pkg_install tools in a way that > >will be > >complementary to exising tools? > > > >Duane > > BDB-1 is an available option actually with the ruby tools. Try "make > config" in the ports-mgmt/portupgrade directory. > Excellent, I just checked. That's great. I was worried for about a second :) I never thought to check that out, sure glad you did! Duane [more snipped] > > -Garrett > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 07:06:37 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21C3C16A400 for ; Tue, 15 May 2007 07:06:37 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from optimus.centralmiss.com (ns.centralmiss.com [206.156.254.79]) by mx1.freebsd.org (Postfix) with ESMTP id EB12113C45E for ; Tue, 15 May 2007 07:06:36 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by optimus.centralmiss.com (Postfix) with ESMTP id 63C9228454; Tue, 15 May 2007 01:44:09 -0500 (CDT) Received: by draco.over-yonder.net (Postfix, from userid 100) id EDE7061C42; Tue, 15 May 2007 01:44:08 -0500 (CDT) Date: Tue, 15 May 2007 01:44:08 -0500 From: "Matthew D. Fuller" To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20070515064408.GK78897@over-yonder.net> References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> <86wszbx3tu.fsf@dwp.des.no> <4648835D.9020306@functionalchaos.net> <86sl9ywque.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86sl9ywque.fsf@dwp.des.no> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.14-fullermd.3 (2007-02-12) Cc: freebsd-hackers@freebsd.org, David Cramblett Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 07:06:37 -0000 On Tue, May 15, 2007 at 08:20:09AM +0200 I heard the voice of Dag-Erling Smørgrav, and lo! it spake thus: > David Cramblett writes: > > Dag-Erling Smørgrav writes: > > > What's in your /boot.config and /boot/loader.conf? > > I have no boot.config. > > > > [root@www /]# cat /boot/loader.conf > > # -- sysinstall generated deltas -- # > > userconfig_script_load="YES" > > Beats me... I can't even remember what userconfig_script is > supposed to do. Note that support for 5.2.1 ended on July 31, 2004. Neither can I, but last weekend I upgraded some 4.x boxes to 5.x and then 6.x, and with the 5.x loader they croaked before booting until I took those userconfig_script_load lines out. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 07:32:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05B7016A402 for ; Tue, 15 May 2007 07:32:01 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 8FFD313C43E for ; Tue, 15 May 2007 07:32:00 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id 71so1203279ugh for ; Tue, 15 May 2007 00:31:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=UtTnkqG6g60kc/fLpH+07BH8LfRHn6D/eGexu+DrsiiEg12Pz1T/oGI76h3Hvw8lOOJimI9nNYqaodyDItYonlmCL1Kva06BKQcaRNvbK1clSnDFpQGgsLm9rgwZtEnbAQ20zPZA8kHa4bxN3Y9sSGOzJ3WVecF/bU6wbm104TQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=bhfIRg69Kd3h9VQv5wL+Ra/zQWrhGGdfVosJKlyjrmOptcheVGcen5m24XUV46YHF3s7PQt3OOBIYxhmsdqkeZ7lf2fx3GZgUYbC3jS0q8ZzQtNabEyPiTcBhlqT5xYhy5iKZM7Sohbw/bf5MQj6ufvqkj40GqR5BlBlT41+AhA= Received: by 10.67.44.4 with SMTP id w4mr4447168ugj.1179214319363; Tue, 15 May 2007 00:31:59 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1? ( [87.194.39.182]) by mx.google.com with ESMTP id b35sm15568828ugd.2007.05.15.00.31.58; Tue, 15 May 2007 00:31:58 -0700 (PDT) From: Tom Evans To: Garrett Cooper In-Reply-To: <4649426F.8050601@u.washington.edu> References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-VyRVEW7U1hNULI/mnY5r" Date: Tue, 15 May 2007 08:31:57 +0100 Message-Id: <1179214317.1791.38.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 07:32:01 -0000 --=-VyRVEW7U1hNULI/mnY5r Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: > Ruby's nice, but it's built on Perl so I have suspicions on its overall=20 > usability / speed given my experience with Perl over the past 4 months=20 > daily for work :(.. Ruby's just the new big thing for programming=20 > languages, so everyone's into it. Kind of like how Java was compared to=20 > C/C++ a few years back. But once everything dies down people will=20 > realize that they'll still have to program in C/C++/Perl for real-world=20 > applications. >=20 > Python seems better than Ruby from what I can see, but I really don't=20 > like the mandatory indentation thing. Ew.. >=20 Rubies are better Perls. That's the only connection between the two. One day, a Japanese programmer got fed up with Perl, and wrote a better language (for varying meanings of better). Its not based or built on Perl in any respect. Python and Ruby both have the same targets; to speed development time and increase programmer productivity. --=-VyRVEW7U1hNULI/mnY5r Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGSWHtlcRvFfyds/cRAu37AKCATd15WXhLM1Quf+yKBP4+MQBNmACfcow+ HdNnAn41oEfz50yBhxwOdAE= =XB+h -----END PGP SIGNATURE----- --=-VyRVEW7U1hNULI/mnY5r-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 08:05:10 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17B1516A404 for ; Tue, 15 May 2007 08:05:10 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id E985513C4CC for ; Tue, 15 May 2007 08:05:09 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F859RC017494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 15 May 2007 01:05:09 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F857Op012961 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 May 2007 01:05:08 -0700 Message-ID: <464969B3.3050306@u.washington.edu> Date: Tue, 15 May 2007 01:05:07 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Tom Evans References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> <1179214317.1791.38.camel@zoot.mintel.co.uk> In-Reply-To: <1179214317.1791.38.camel@zoot.mintel.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.15.5234 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 08:05:10 -0000 Tom Evans wrote: > On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: >> Ruby's nice, but it's built on Perl so I have suspicions on its overall >> usability / speed given my experience with Perl over the past 4 months >> daily for work :(.. Ruby's just the new big thing for programming >> languages, so everyone's into it. Kind of like how Java was compared to >> C/C++ a few years back. But once everything dies down people will >> realize that they'll still have to program in C/C++/Perl for real-world >> applications. >> >> Python seems better than Ruby from what I can see, but I really don't >> like the mandatory indentation thing. Ew.. >> > > Rubies are better Perls. That's the only connection between the two. One > day, a Japanese programmer got fed up with Perl, and wrote a better > language (for varying meanings of better). > > Its not based or built on Perl in any respect. > > Python and Ruby both have the same targets; to speed development time > and increase programmer productivity. But one must make a Perl before one can make a Ruby. Maybe that was what I was trying to aim for. Ruby's nice, but it seems like it's going to be a bit passe in a few years like Java was for compilable / interpretable languages. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 08:08:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCB8D16A404 for ; Tue, 15 May 2007 08:08:05 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id B9D0B13C4CB for ; Tue, 15 May 2007 08:08:05 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F885PI027464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 15 May 2007 01:08:05 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4F883Ht007799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 May 2007 01:08:04 -0700 Message-ID: <46496A63.4090700@u.washington.edu> Date: Tue, 15 May 2007 01:08:03 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Tom Evans References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> <1179214317.1791.38.camel@zoot.mintel.co.uk> <464969B3.3050306@u.washington.edu> In-Reply-To: <464969B3.3050306@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.15.5234 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 08:08:05 -0000 Garrett Cooper wrote: > Tom Evans wrote: >> On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: >>> Ruby's nice, but it's built on Perl so I have suspicions on its >>> overall usability / speed given my experience with Perl over the past >>> 4 months daily for work :(.. Ruby's just the new big thing for >>> programming languages, so everyone's into it. Kind of like how Java >>> was compared to C/C++ a few years back. But once everything dies down >>> people will realize that they'll still have to program in C/C++/Perl >>> for real-world applications. >>> >>> Python seems better than Ruby from what I can see, but I really don't >>> like the mandatory indentation thing. Ew.. >>> >> >> Rubies are better Perls. That's the only connection between the two. One >> day, a Japanese programmer got fed up with Perl, and wrote a better >> language (for varying meanings of better). >> >> Its not based or built on Perl in any respect. >> >> Python and Ruby both have the same targets; to speed development time >> and increase programmer productivity. > > But one must make a Perl before one can make a Ruby. Maybe that was what > I was trying to aim for. > > Ruby's nice, but it seems like it's going to be a bit passe in a few > years like Java was for compilable / interpretable languages. > > -Garrett Sorry for all you Java lovers out there.. it's just that from where I'm at I don't see anyone using it in the workplace (Intel). We're all using C/C++/Perl, with occasional spots of Ruby/Python. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 08:23:58 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A4C116A400; Tue, 15 May 2007 08:23:58 +0000 (UTC) (envelope-from helge.oldach@atosorigin.com) Received: from miram.origin-it.net (miram.origin-it.net [194.8.96.226]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE8613C46C; Tue, 15 May 2007 08:23:57 +0000 (UTC) (envelope-from helge.oldach@atosorigin.com) Received: from markab.hbg.de.int.atosorigin.com (avior.origin-it.net [213.70.176.177]) by miram.origin-it.net (8.14.1/8.14.1/hmo020206) with ESMTP id l4F88c35061154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 May 2007 10:08:38 +0200 (CEST) (envelope-from helge.oldach@atosorigin.com) Received: from DEHHX001.deuser.de.intra (dehhx001.hbg.de.int.atosorigin.com [161.90.164.121]) by markab.hbg.de.int.atosorigin.com (8.14.1/8.14.1/hmo020206) with ESMTP id l4F88ZUC090731; Tue, 15 May 2007 10:08:36 +0200 (CEST) (envelope-from helge.oldach@atosorigin.com) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Date: Tue, 15 May 2007 09:22:53 +0200 Content-Transfer-Encoding: quoted-printable Message-ID: <39AFDF50473FED469B15B6DFF2262F7A02D67A13@DEHHX001.deuser.de.intra> X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-TNEF-Correlator: Thread-Topic: Multiple IP Jail's patch for FreeBSD 6.2 Thread-Index: AceWa7McAcKSBOEuT9OgqF47tguZBwAVI9FA References: <45F1C355.8030504@digitaldaemon.com> <20070511075857.GL23313@hoeg.nl> <4644773E.60909@freebsd.org> <20070514141416.GR23313@hoeg.nl> <20070514155727.Y2939@maildrop.int.zabbadoz.net> <4648993A.4060709@elischer.org><4648CAFD.4020009@freebsd.org> <4648CF15.8050304@elischer.org> From: To: , X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (miram.origin-it.net [194.8.96.226]); Tue, 15 May 2007 10:08:38 +0200 (CEST) Cc: bzeeb-lists@lists.zabbadoz.net, ed@fxq.nl, freebsd-hackers@freebsd.org Subject: RE: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 08:23:58 -0000 Julian Elischer wrote on Monday, May 14, 2007 11:05 PM: > Andre Oppermann wrote: >> Julian Elischer wrote: >>> talk with Marko Zec about "immunes". >>>=20 >>> http://www.tel.fer.hr/zec/vimage/ >>> and http://www.tel.fer.hr/imunes/ >>>=20 >>> It has a complete virtualized stack for each jail. >>> ipfw, routing table, divert sockets, sysctls, statistics, netgraph >>> etc.=20 >>=20 >> Like I said there is a place for both approaches and they are >> complementary. A couple of hosting ISPs I know do not want to >> give a full virtualized stack to their customers. They want to >> retain full control over the network configuration inside and >> outside of the jail. In those (mass-hosting) cases it is done >> that way to ease support (less stuff users can fumble) and to >> properly position those products against full virtual machines >> and dedicated servers. Something like this: jail < vimage < >> virtual machine < dedicated server. >>=20 >>> He as a set of patches against 7-current that now implements nearly >>> all the parts you need. It Will be discussed at the devsummit on >>> Wed/Thurs=20 >>> and we'll be discussing whether it is suitable for general inclusion >>> or to be kept as patches. Note, it can be compiled out, which >>> leaves a pretty much binarily compatible OS, so I personally would >>> like to see it included. >>=20 >> I don't think it is mature enough for inclusion into the upcoming >> 7.0R. Not enough integration time. Food for FreeBSD 8.0. >=20 > Actually I am not sure I completely agree. Consider: Me neither. Markos work started at 4.0 already, which is a *long* time ago, so I would assume a decent level of maturity in the first place. > I might add that What Marco has now is very functional > and that people should kick its tires (tyres) a bit.. Yep. Also, having this functionality would give us sort of a unique feature over "the competition". Helge Atos Origin GmbH, Theodor-Althoff-Str. 47, D-45133 Essen, Postfach 100 123, D-45001 Essen Telefon: +49 201 4305 0, Fax: +49 201 4305 689095, www.atosorigin.de Dresdner Bank AG, Hamburg: Kto. 0954411200, BLZ 200 800 00, Swift Code DRESDEFF200, IBAN DE69200800000954411200 Geschäftsführer: Dominique Illien, Handelsregister Essen HRB 19354, Ust.-ID.-Nr.: DE147861238 From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 09:05:46 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 198D516A404 for ; Tue, 15 May 2007 09:05:46 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id CC27713C45D for ; Tue, 15 May 2007 09:05:45 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id D55E120A7; Tue, 15 May 2007 11:05:41 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 5D6A720A6; Tue, 15 May 2007 11:05:41 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 43C1B516E; Tue, 15 May 2007 11:05:41 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: "Matthew D. Fuller" References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> <86wszbx3tu.fsf@dwp.des.no> <4648835D.9020306@functionalchaos.net> <86sl9ywque.fsf@dwp.des.no> <20070515064408.GK78897@over-yonder.net> Date: Tue, 15 May 2007 11:05:41 +0200 In-Reply-To: <20070515064408.GK78897@over-yonder.net> (Matthew D. Fuller's message of "Tue\, 15 May 2007 01\:44\:08 -0500") Message-ID: <861whiihi2.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, David Cramblett Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 09:05:46 -0000 "Matthew D. Fuller" writes: > Dag-Erling Sm=C3=B8rgrav writes: > > Beats me... I can't even remember what userconfig_script is > > supposed to do. Note that support for 5.2.1 ended on July 31, 2004. > Neither can I, but last weekend I upgraded some 4.x boxes to 5.x and > then 6.x, and with the 5.x loader they croaked before booting until I > took those userconfig_script_load lines out. Ooh, now I remember; userconfig was the old hardware configuration mechanism we had before device.hints. If you typed -c at the boot1 prompt, you would get an interactive display where you could assign IRQs and ports to devices. The script is basically a sequence of userconfig commands; you could extract it from kenv after an interactive boot and store it in a file which the loader would read the next time around. AFAIR, userconfig was axed between FreeBSD 3 and 4, so there would be no point in loading a userconfig script for a 5.x kernel. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 10:26:33 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B510816A405 for ; Tue, 15 May 2007 10:26:33 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 4541D13C45E for ; Tue, 15 May 2007 10:26:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l4FAQVS5001782; Tue, 15 May 2007 20:26:31 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l4FAQU9w001781; Tue, 15 May 2007 20:26:30 +1000 (EST) (envelope-from peter) Date: Tue, 15 May 2007 20:26:30 +1000 From: Peter Jeremy To: Mike Meyer Message-ID: <20070515102630.GA1178@turion.vk2pj.dyndns.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <17992.26100.876067.671769@bhuda.mired.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <17992.26100.876067.671769@bhuda.mired.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 10:26:33 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-May-14 09:36:52 -0400, Mike Meyer wrote: [Linux package systems] >As far as I know, none of them handle updates from source at all. In >fact, dealing with sources seems to be a noticable weakness for them. This pretty much rules them out then. --=20 Peter Jeremy --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGSYrW/opHv/APuIcRAlFbAKDAcqhnaxSbx5sOz4mqRtKxIraMpgCfXRhb Ezghoq4N7e+xq7MW/2R/owk= =4zyq -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 10:32:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8113216A400 for ; Tue, 15 May 2007 10:32:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 42CBC13C455 for ; Tue, 15 May 2007 10:32:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 7817620A7; Tue, 15 May 2007 12:32:49 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id EDE952088; Tue, 15 May 2007 12:32:48 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id D61015180; Tue, 15 May 2007 12:32:48 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Lawrence Stewart References: <4649349D.4060101@room52.net> Date: Tue, 15 May 2007 12:32:48 +0200 In-Reply-To: <4649349D.4060101@room52.net> (Lawrence Stewart's message of "Tue\, 15 May 2007 14\:18\:37 +1000") Message-ID: <86646ugywf.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Writing a plain text file to disk from kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 10:32:53 -0000 Lawrence Stewart writes: > I'm in the process of writing a kernel module to instrument some parts > of the network stack in FreeBSD 6.2. Everything works perfectly, > except that writing the logging info to syslog using printf is too > inefficient for this particular task. Given that log messages need to > be generated for each packet entering/leaving the network stack, my > testing thus far has showed that syslog groans under the load and uses > far too much CPU time. > > So, I'm looking for a way to manually open up a file from within > kernel space and dump characters into it. Look at the ktrace code. Note that it opens the file in userland and passes it down to the kernel. You may want to consider a similar mechanism. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 10:34:09 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7D1FF16A400 for ; Tue, 15 May 2007 10:34:09 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3AAAD13C487 for ; Tue, 15 May 2007 10:34:09 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id A39E620A7; Tue, 15 May 2007 12:34:05 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 96AD32088; Tue, 15 May 2007 12:34:05 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 82BCC5183; Tue, 15 May 2007 12:34:05 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: Peter Jeremy References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <17992.26100.876067.671769@bhuda.mired.org> <20070515102630.GA1178@turion.vk2pj.dyndns.org> Date: Tue, 15 May 2007 12:34:05 +0200 In-Reply-To: <20070515102630.GA1178@turion.vk2pj.dyndns.org> (Peter Jeremy's message of "Tue\, 15 May 2007 20\:26\:30 +1000") Message-ID: <861whigyua.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Mike Meyer Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 10:34:09 -0000 Peter Jeremy writes: > Mike Meyer writes: > [Linux package systems] > > As far as I know, none of them handle updates from source at all. In > > fact, dealing with sources seems to be a noticable weakness for them. > This pretty much rules them out then. It would, if it were true. It isn't. apt-get --build source package_name DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 11:37:58 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 015B116A400 for ; Tue, 15 May 2007 11:37:58 +0000 (UTC) (envelope-from lstewart@room52.net) Received: from customer-domains.icp-qv1-irony14.iinet.net.au (customer-domains.icp-qv1-irony14.iinet.net.au [203.59.1.169]) by mx1.freebsd.org (Postfix) with ESMTP id 781DC13C469 for ; Tue, 15 May 2007 11:37:56 +0000 (UTC) (envelope-from lstewart@room52.net) Received: from 203-214-83-168.dyn.iinet.net.au (HELO [172.16.7.12]) ([203.214.83.168]) by iinet-mail.icp-qv1-irony14.iinet.net.au with ESMTP; 15 May 2007 19:08:00 +0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKEwSUbL1lOodGdsb2JhbAANj3Q3 X-IronPort-AV: i="4.14,536,1170601200"; d="scan'208"; a="87582869:sNHT13963488" Message-ID: <46499491.2010205@room52.net> Date: Tue, 15 May 2007 21:08:01 +1000 From: Lawrence Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Marc_L=F6rner?= References: <4649349D.4060101@room52.net> <200705150847.38838.marc.loerner@hob.de> In-Reply-To: <200705150847.38838.marc.loerner@hob.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: Writing a plain text file to disk from kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 11:37:58 -0000 Hi Marc, Marc Lörner wrote: [snip] > > BTW, you can get an thread-struct pointer from curthread (c.f. sys/pcpu.h). > [snip] Thanks very much for the reply. "curthread" is the missing key that I've been looking for! Thank you so much. I've been banging my head against a brick wall for days now. I'll have a play around and report back to the list what I find for archival purposes. Cheers, Lawrence PS Just found a thread I hadn't found before (http://lists.freebsd.org/pipermail/freebsd-hackers/2006-March/015647.html) which has lots of useful info and a link (http://people.freebsd.org/~pjd/misc/kernio/) to some sample code! From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 13:49:24 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C624616A400 for ; Tue, 15 May 2007 13:49:24 +0000 (UTC) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.embarqhsd.net [65.40.24.38]) by mx1.freebsd.org (Postfix) with ESMTP id 4E33A13C489 for ; Tue, 15 May 2007 13:49:24 +0000 (UTC) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.8/8.13.1) with ESMTP id l4FDOIoZ032413 for ; Tue, 15 May 2007 09:24:18 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.8/8.13.1/Submit) id l4FDOCWP032412 for freebsd-hackers@freebsd.org; Tue, 15 May 2007 09:24:12 -0400 (EDT) (envelope-from bv) Date: Tue, 15 May 2007 09:24:12 -0400 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20070515132412.GA31934@wjv.com> References: <20070515120019.8B59016A416@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070515120019.8B59016A416@hub.freebsd.org> User-Agent: Mutt/1.4.2.2i Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com X-Spam-Status: No, score=-4.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, J_CHICKENPOX_39,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on bilver.wjv.com Subject: Re: New FreeBSD packaging system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 13:49:24 -0000 Throwing caution to the wind and speaking without thinking about what was being said on Tue, May 15, 2007 at 12:00 , freebsd-hackers-request@freebsd.org blurted this: [much text deleted as I only am going to comment on one part - wjv] > Message: 6 > Date: Mon, 14 May 2007 23:34:52 -0700 > From: Bert JW Regeer > Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System > (dps)) > To: Garrett Cooper > Cc: freebsd-hackers@freebsd.org .... > > On May 14, 2007, at 10:03 PM, Garrett Cooper wrote: > > > Bert JW Regeer wrote: > >> On May 12, 2007, at 5:14 AM, Philippe Laquet wrote: > >>> Stanislav Sedov a ?crit : > >>>> On Fri, 11 May 2007 02:10:05 +0200 > >>>> Ivan Voras mentioned: > >>>>> - I think it's time to give up on using BDB+directory tree > >>>>> full of text files for storing the installed packages > >>>>> database, and I propose all of this be replaced by a > >>>>> single SQLite database. SQLite is public domain (can be > >>>>> slurped into base system), embeddable, stores all data in > >>>>> a single file, lightweight, fast, and can be used to do > >>>>> fancy things such as reporting. ... > >> I am able to understand many of the gripes with using a databases, > >> and have to import yet another code base into the FreeBSD base, > >> however as one of the young ones, and knowing sed/awk/grep and > >> SQL, I prefer SQL over having to process hundreds of text files > >> using text processing tools. It saddens me each time I run one of > >> the pkg_* tools that needs to parse the flat file structure since > >> it takes so long. I have friends running Ubuntu and their apt-get > >> returns results much faster. .... > > True. I was thinking of backup, and recreation from scratch, > > considering that the database wouldn't be more than a few megs. In > > place replacement just seems like a hairy situation sometimes.. ... > >> The experience I got from running SVN with BDB as the back-end > >> database to store my data, I say no thanks. In that case I would > >> much rather stick with the flat text files than go with a database. > > Well, a few comments: > > -Text files are bloated. Although many people are for XML, it > > takes much longer to parse than binary databases. > /var/db/pkg/ are all plain flat text files. I am not a supporter of > XML at all. > > -Custom text files require custom format capable parsers, no > > matter what the format, and the less coverage a parser has, > > the more probable the likelihood of bugs IMO. > We already have these in the pkg_* functions, so i'd hope they are > fairly solid! ... > I am not opposed to text files, other than that they can be slow. I > am against BDB because over the years, in my experience they have > shown to be extremely unreliable and easily corrupted. If we are > going to be making changes to the way the ports/packages store the > information about what exists, it should be done in such a way that > it is scalable and at the same time extensible (is this a word?). So why not take the same approach that is used in the password and shadow files. That way you have a plain text editable file which then builds the pwd.db and spwd.db files that are used by the system. Or am I missing something there. > Bert JW Regeer Bill -- Bill Vermillion - bv @ wjv . com From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 13:57:13 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59BDD16A402 for ; Tue, 15 May 2007 13:57:13 +0000 (UTC) (envelope-from nolis71cu@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 194AD13C448 for ; Tue, 15 May 2007 13:57:12 +0000 (UTC) (envelope-from nolis71cu@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1932800wxc for ; Tue, 15 May 2007 06:57:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=jCj3whiCHMeLHdAYpWBb5uI1/1X5ssB1b7pPsveY5bJqsKKCyNbw62AV6Wq2h5FAvnqUzaxmGLQc2S3Mws7JAdxjURE9F1MuBd/yo6ckscg1nEiBZfEjXsFF6m1YdgytXIsWZ2JxJISVhZjK1eZVVUIP54GGQs/xsyM4WCSFMYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=ObwVr1ipS65E+DhTXxVu7c4m+fPIXg6mV2HRR5OCU/4AXWvitlcwSfrvvrx9h3BfJGTKSJj3B4RVdoH5IizPBGWwFd05cxIQsP8YZqULCzxMgIdWY6GN8+ITYm9Ad+u5okj5MHpKiAz7M5i/4H//k41OnA6ZVNZX8+kAWPtGwQk= Received: by 10.70.67.4 with SMTP id p4mr11794731wxa.1179237432462; Tue, 15 May 2007 06:57:12 -0700 (PDT) Received: from ?192.168.0.31? ( [200.55.166.34]) by mx.google.com with ESMTP id h18sm7212794wxd.2007.05.15.06.57.03; Tue, 15 May 2007 06:57:09 -0700 (PDT) From: Manolo Valdes To: freebsd-hackers@freebsd.org Date: Tue, 15 May 2007 09:55:40 -0400 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705150955.40383.nolis71cu@gmail.com> Subject: issue with net/if_ppp.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 13:57:13 -0000 Hi guys doing a test just like the way cmake do it to find includes on the system ######test.c###### #include int main(){return 0;} ################ i got the following output: gcc test.c In file included from /usr/include/net/if_ppp.h:28, from test.c:1: /usr/include/net/ppp_defs.h:86: error: syntax error before "ext_accm" /usr/include/net/ppp_defs.h:146: error: syntax error before "time_t" In file included from /usr/include/net/if_ppp.h:29, from test.c:1: /usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type /usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type /usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete type /usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type /usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete type /usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type /usr/include/net/if.h:368: error: field `addr' has incomplete type /usr/include/net/if.h:369: error: field `dstaddr' has incomplete type test.c:7:2: warning: no newline at end of file this test works on on Linux systems. does anybody knows if this is a bug or problem with the net/if_ppp.h header? thanks in advance Manolito -- Todo lo puedo en Cristo que me fortalece Filipenses. 4:13 --------------------------------------------------------- I can do all things through Christ who strengthens me. Philippians 4:13 From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 14:05:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF5D816A410 for ; Tue, 15 May 2007 14:05:26 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from spunkymail-a4.g.dreamhost.com (d0618453.dreamhost.com [208.97.132.83]) by mx1.freebsd.org (Postfix) with ESMTP id 102C413C4CA for ; Tue, 15 May 2007 14:05:24 +0000 (UTC) (envelope-from sean@cyberwang.net) Received: from [10.0.1.2] (68-184-120-224.dhcp.smyr.ga.charter.com [68.184.120.224]) by spunkymail-a4.g.dreamhost.com (Postfix) with ESMTP id DADF0131A2B; Tue, 15 May 2007 07:05:05 -0700 (PDT) Message-ID: <4649BE00.3020404@cyberwang.net> Date: Tue, 15 May 2007 10:04:48 -0400 From: Sean Bryant User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Garrett Cooper References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> <1179214317.1791.38.camel@zoot.mintel.co.uk> <464969B3.3050306@u.washington.edu> In-Reply-To: <464969B3.3050306@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Tom Evans , freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 14:05:27 -0000 Garrett Cooper wrote: > Tom Evans wrote: >> On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: >>> Ruby's nice, but it's built on Perl so I have suspicions on its >>> overall usability / speed given my experience with Perl over the >>> past 4 months daily for work :(.. Ruby's just the new big thing for >>> programming languages, so everyone's into it. Kind of like how Java >>> was compared to C/C++ a few years back. But once everything dies >>> down people will realize that they'll still have to program in >>> C/C++/Perl for real-world applications. >>> >>> Python seems better than Ruby from what I can see, but I really >>> don't like the mandatory indentation thing. Ew.. >>> >> >> Rubies are better Perls. That's the only connection between the two. One >> day, a Japanese programmer got fed up with Perl, and wrote a better >> language (for varying meanings of better). >> >> Its not based or built on Perl in any respect. >> >> Python and Ruby both have the same targets; to speed development time >> and increase programmer productivity. > > But one must make a Perl before one can make a Ruby. Maybe that was > what I was trying to aim for. > > Ruby's nice, but it seems like it's going to be a bit passe in a few > years like Java was for compilable / interpretable languages. > > -Garrett > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" Where did you find you need perl to build ruby. Its a separate thing all together. From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 14:19:38 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3044516A406 for ; Tue, 15 May 2007 14:19:38 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.freebsd.org (Postfix) with ESMTP id ED2F213C447 for ; Tue, 15 May 2007 14:19:37 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 49D521CCC5; Tue, 15 May 2007 16:19:36 +0200 (CEST) Date: Tue, 15 May 2007 16:19:36 +0200 From: Ed Schouten To: Manolo Valdes Message-ID: <20070515141936.GT23313@hoeg.nl> References: <200705150955.40383.nolis71cu@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AonAANj1daC6QcQu" Content-Disposition: inline In-Reply-To: <200705150955.40383.nolis71cu@gmail.com> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: FreeBSD Hackers Subject: Re: issue with net/if_ppp.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 14:19:38 -0000 --AonAANj1daC6QcQu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Manolo Valdes wrote: > In file included from /usr/include/net/if_ppp.h:28, > from test.c:1: > /usr/include/net/ppp_defs.h:86: error: syntax error before "ext_accm" > /usr/include/net/ppp_defs.h:146: error: syntax error before "time_t" > In file included from /usr/include/net/if_ppp.h:29, > from test.c:1: > /usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type > /usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type > /usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete t= ype > /usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type > /usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete t= ype > /usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type > /usr/include/net/if.h:368: error: field `addr' has incomplete type > /usr/include/net/if.h:369: error: field `dstaddr' has incomplete type Use the following lines: #include #include #include Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --AonAANj1daC6QcQu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGScF452SDGA2eCwURArs0AJ4+WIGxYvYcuou2fhm0faBIsSE8LQCfX5qP P4XSl4HcaW7omjIufNzpHN0= =ciuU -----END PGP SIGNATURE----- --AonAANj1daC6QcQu-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 14:31:00 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA2E616A403 for ; Tue, 15 May 2007 14:31:00 +0000 (UTC) (envelope-from nolis71cu@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id A3D5C13C44B for ; Tue, 15 May 2007 14:31:00 +0000 (UTC) (envelope-from nolis71cu@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so504243and for ; Tue, 15 May 2007 07:31:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=fVsx+7H+cQ1sGTdALHNmHX2gU8sjrxLV2dUERvutQQCGMYAZPomheskyd1TS/Rg4lj+DMCYWa8pAO0FUG+v1nueGo4/Ps+D/tG+fK5VMce23aKQVMdBXRqjUsiIIgx7odJ2Kc6rtmqco05cvFJJj8upntBl4zV02t9G8aDouJ20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Ha2VSydgLy7oELZZLFI9J+L1drbawlDgkR9r7h2eomGplHrpmMEYmvz6Sssj3TTmpRi6ElePVJjy1dOCt1a7qsa8gwCdlhOc0tnMx8iukY5kix52JfqQti5eyyvi1FmVJYjAfyebPdVg9I9Z7tkRp2NF4GfxmxvrhW2izB9c/SI= Received: by 10.101.67.8 with SMTP id u8mr5454917ank.1179239459749; Tue, 15 May 2007 07:30:59 -0700 (PDT) Received: from ?192.168.0.31? ( [200.55.166.34]) by mx.google.com with ESMTP id i40sm12706395wxd.2007.05.15.07.30.49; Tue, 15 May 2007 07:30:59 -0700 (PDT) From: Manolo Valdes To: freebsd-hackers@freebsd.org Date: Tue, 15 May 2007 10:29:20 -0400 User-Agent: KMail/1.9.6 References: <200705150955.40383.nolis71cu@gmail.com> <45081.64.117.137.69.1179237935.squirrel@webmail.ifxnw.cl> In-Reply-To: <45081.64.117.137.69.1179237935.squirrel@webmail.ifxnw.cl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200705151029.20718.nolis71cu@gmail.com> Subject: Re: issue with net/if_ppp.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 14:31:01 -0000 El Tuesday 15 May 2007 10:05:35 am Daniel Molina Wegener escribi=F3: > El Mar, 15 de Mayo de 2007, 9:55, Manolo Valdes escribi=F3: > > Hi guys > > Hello... > > > doing a test just like the way cmake do it to find includes on the syst= em > > Grat tool, I use cmake too... > > > > > does anybody knows if this is a bug or problem with the net/if_ppp.h > > header? > > No, if_ppp requires other headers, I'm far from my BSD system, > but you must look which header you must include before the if_ppp > hreader. > yes i thought so. But the cmake check_include_files(net/if_ppp.h HAVE_NET_IF_PPP_H) only test= =20 the header using the former test.c so i guest it is a cmake issue. i'll keep searching :) thanks Manolito =2D-=20 Todo lo puedo en Cristo que me fortalece =46ilipenses. 4:13 =2D-------------------------------------------------------- I can do all things through Christ who strengthens me. Philippians 4:13 From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 14:32:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0CDD16A40A for ; Tue, 15 May 2007 14:32:16 +0000 (UTC) (envelope-from dmw@unete.cl) Received: from mail04.ifxnetworks.com (mail04.ifxnetworks.com [190.61.128.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3A48913C45D for ; Tue, 15 May 2007 14:32:16 +0000 (UTC) (envelope-from dmw@unete.cl) Received: (qmail 19867 invoked from network); 15 May 2007 14:05:35 -0000 Received: from unknown (HELO webmail.ifxnw.cl) ([190.61.128.22]) (envelope-sender ) by mail04.ifxnetworks.com (qmail-ldap-1.03) with SMTP for ; 15 May 2007 14:05:35 -0000 Received: from 64.117.137.69 (proxying for 161.131.179.197, 161.131.179.197) (SquirrelMail authenticated user dmw@unete.cl) by webmail.ifxnw.cl with HTTP; Tue, 15 May 2007 10:05:35 -0400 (CLT) Message-ID: <45081.64.117.137.69.1179237935.squirrel@webmail.ifxnw.cl> In-Reply-To: <200705150955.40383.nolis71cu@gmail.com> References: <200705150955.40383.nolis71cu@gmail.com> Date: Tue, 15 May 2007 10:05:35 -0400 (CLT) From: "Daniel Molina Wegener" To: "Manolo Valdes" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org Subject: Re: issue with net/if_ppp.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dmw@unete.cl List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 14:32:16 -0000 El Mar, 15 de Mayo de 2007, 9:55, Manolo Valdes escribió: > Hi guys Hello... > > doing a test just like the way cmake do it to find includes on the system Grat tool, I use cmake too... > > ######test.c###### > > #include > int main(){return 0;} > > ################ > > i got the following output: > > gcc test.c > In file included from /usr/include/net/if_ppp.h:28, > from test.c:1: > /usr/include/net/ppp_defs.h:86: error: syntax error before "ext_accm" > /usr/include/net/ppp_defs.h:146: error: syntax error before "time_t" > In file included from /usr/include/net/if_ppp.h:29, > from test.c:1: > /usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type > /usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type > /usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete type > /usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type > /usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete type > /usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type > /usr/include/net/if.h:368: error: field `addr' has incomplete type > /usr/include/net/if.h:369: error: field `dstaddr' has incomplete type > test.c:7:2: warning: no newline at end of file > > this test works on on Linux systems. > > does anybody knows if this is a bug or problem with the net/if_ppp.h header? No, if_ppp requires other headers, I'm far from my BSD system, but you must look which header you must include before the if_ppp hreader. > > thanks in advance > > Manolito > > [SNIP] > Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User | Standards Rocks! From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 14:33:14 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C56616A406 for ; Tue, 15 May 2007 14:33:14 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from rwcrmhc14.comcast.net (rwcrmhc14.comcast.net [204.127.192.84]) by mx1.freebsd.org (Postfix) with ESMTP id 594D413C45D for ; Tue, 15 May 2007 14:33:14 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (c-71-198-0-135.hsd1.ca.comcast.net[71.198.0.135]) by comcast.net (rwcrmhc14) with ESMTP id <20070515142311m1400iqhvle>; Tue, 15 May 2007 14:23:11 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 475B01FA020; Tue, 15 May 2007 07:23:11 -0700 (PDT) Date: Tue, 15 May 2007 07:23:11 -0700 From: Jeremy Chadwick To: Manolo Valdes Message-ID: <20070515142311.GA13314@icarus.home.lan> References: <200705150955.40383.nolis71cu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705150955.40383.nolis71cu@gmail.com> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-hackers@freebsd.org Subject: Re: issue with net/if_ppp.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 14:33:14 -0000 On Tue, May 15, 2007 at 09:55:40AM -0400, Manolo Valdes wrote: > Hi guys > > doing a test just like the way cmake do it to find includes on the system > > ######test.c###### > > #include > int main(){return 0;} > > ################ What exactly are you trying to do here? This is not how you write C software. You're missing quite a lot of other (standard) #includes, which is why you're seeing the errors you are. > this test works on on Linux systems. That's nice. > does anybody knows if this is a bug or problem with the net/if_ppp.h header? It's a bug in your .c file, yes. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 15:24:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A6A216A400 for ; Tue, 15 May 2007 15:24:16 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id E83FC13C44B for ; Tue, 15 May 2007 15:24:15 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 39429 invoked by uid 1001); 15 May 2007 15:23:41 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Tue, 15 May 2007 11:23:41 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17993.53372.749195.300658@bhuda.mired.org> Date: Tue, 15 May 2007 11:23:40 -0400 To: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) In-Reply-To: <861whigyua.fsf@dwp.des.no> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <17992.26100.876067.671769@bhuda.mired.org> <20070515102630.GA1178@turion.vk2pj.dyndns.org> <861whigyua.fsf@dwp.des.no> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 15:24:16 -0000 In <861whigyua.fsf@dwp.des.no>, Dag-Erling Sm=F8rgrav type= d: > Peter Jeremy writes: > > Mike Meyer writes: > > [Linux package systems] > > > As far as I know, none of them handle updates from source at all.= In > > > fact, dealing with sources seems to be a noticable weakness for t= hem. > > This pretty much rules them out then. > It would, if it were true. It isn't. Except it is. > apt-get --build source package=5Fname That doesn't update from sources, that just builds a package. You're still stuck updating from packages. Further, like the rpm command, this doesn't deal with dependencies, other than to complain if they aren't met. This means that using it to deal with sources is about as pleasant as using rpm to install binary packages. Further, there doesn't appear to be anything like make.conf to make it easy to tailor the build process to meet the users requirements. =09=09=09http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more informatio= n. From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 15:39:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FA9116A403 for ; Tue, 15 May 2007 15:39:06 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id CB8F513C44C for ; Tue, 15 May 2007 15:39:05 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by py-out-1112.google.com with SMTP id f31so162020pyh for ; Tue, 15 May 2007 08:39:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=Oud+GJNA00N84mYUUMFtOXclOhKJNc2izB5WqBVDUzyd5emNubkZsnN0Q7iMtQOwWgZrXOgHVjYIZHf1/qaa0yYVO1WDzuTc3tjSA7NYJ8nXvA/qgPd778dWYKYAb4PWgP/A/CijFhzfA48bO4nKXgmoYr8MF3RbMvEcGrvSbjs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=ZngwisQ/DUC5tYGvYTniwdsCSoS4wS0OkBVV8RvjSkbUudCfR9BiU/3MfMZDIuooFkVsJcYoiCZ6wKsS7Uw7rGRhMw78dEdKInF19AGyt5tKcjo29oKp/Xl+6GxR9yxn4kv3s8AEEd6lPhrPRqzKnZsaF5+LLqLOFXoaoUUAuts= Received: by 10.64.53.20 with SMTP id b20mr1052442qba.1179243543819; Tue, 15 May 2007 08:39:03 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTP id e10sm684841qbe.2007.05.15.08.39.02; Tue, 15 May 2007 08:39:03 -0700 (PDT) From: Tom Evans To: Mike Meyer In-Reply-To: <17993.53372.749195.300658@bhuda.mired.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <86r6pkzhso.fsf@dwp.des.no> <46479A4A.1070103@tomjudge.com> <86wszbyko7.fsf@dwp.des.no> <17992.26100.876067.671769@bhuda.mired.org> <20070515102630.GA1178@turion.vk2pj.dyndns.org> <861whigyua.fsf@dwp.des.no> <17993.53372.749195.300658@bhuda.mired.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-4Kx1yhSrbI6YgWg+vGeB" Date: Tue, 15 May 2007 16:39:01 +0100 Message-Id: <1179243541.1234.11.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= , freebsd-hackers@freebsd.org Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 15:39:06 -0000 --=-4Kx1yhSrbI6YgWg+vGeB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 2007-05-15 at 11:23 -0400, Mike Meyer wrote: > In <861whigyua.fsf@dwp.des.no>, Dag-Erling Sm=C3=B8rgrav typ= ed: > > Peter Jeremy writes: > > > Mike Meyer writes: > > > [Linux package systems] > > > > As far as I know, none of them handle updates from source at all. I= n > > > > fact, dealing with sources seems to be a noticable weakness for the= m. > > > This pretty much rules them out then. > > It would, if it were true. It isn't. >=20 > Except it is. >=20 > > apt-get --build source package_name >=20 > That doesn't update from sources, that just builds a package. You're > still stuck updating from packages. >=20 > Further, like the rpm command, this doesn't deal with dependencies, > other than to complain if they aren't met. This means that using it to > deal with sources is about as pleasant as using rpm to install binary > packages. Further, there doesn't appear to be anything like make.conf > to make it easy to tailor the build process to meet the users > requirements. >=20 > X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72A4216A409 for ; Tue, 15 May 2007 16:10:39 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from lnx130.hrz.tu-darmstadt.de (lnx130.hrz.tu-darmstadt.de [130.83.174.24]) by mx1.freebsd.org (Postfix) with ESMTP id 0B2D213C447 for ; Tue, 15 May 2007 16:10:36 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from mailserver3.hrz.tu-darmstadt.de (lnx116.hrz.tu-darmstadt.de [130.83.174.28]) by lnx130.hrz.tu-darmstadt.de (8.13.4/8.12.10) with ESMTP id l4FGAZ6m011992; Tue, 15 May 2007 18:10:35 +0200 Received: from [217.224.120.219] (helo=local.lan.fli4l) by mailserver3.hrz.tu-darmstadt.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1Hnzbe-0002Pe-Co; Tue, 15 May 2007 18:10:35 +0200 From: Viktor Vasilev To: freebsd-hackers@freebsd.org, Mohsen Pahlevanzadeh Date: Tue, 15 May 2007 18:10:27 +0200 User-Agent: KMail/1.9.4 References: <4648625A.9060606@pahlevanzadeh.org> <86ejljsffa.fsf@dwp.des.no> In-Reply-To: <86ejljsffa.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200705151810.29508.viktor.vasilev@stud.tu-darmstadt.de> Cc: Subject: Re: ioctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 16:10:39 -0000 On Monday 14 May 2007 15:28 Dag-Erling Sm=C3=B8rgrav wrote: > Mohsen Pahlevanzadeh writes: > > Our FreeBSD is 4.11 because we can't use another version. > > In that case, we can't help you. Maybe he still has a chance. The following works on FreeBSD 4.9 for ATA=20 devices. I could only test it with an ATA CDROM, but here's the output: Model: CD-224E Revision: 1.9A Serial: #include #include #include #include #include #include #include int main(int argc, char **argv) { struct ata_cmd iocmd; struct ata_params ap; int channel, device, fd, i; if(argc !=3D 3) { errx(1, "usage: %s ", argv[0]); } =09 channel =3D atoi(argv[1]); device =3D atoi(argv[2]); =09 if ((fd =3D open("/dev/ata", O_RDONLY)) =3D=3D -1) { err(1, "error opening /dev/ata"); } bzero(&iocmd, sizeof(struct ata_cmd)); iocmd.channel =3D channel; iocmd.device =3D channel; iocmd.cmd =3D ATAGPARM; =09 if (ioctl(fd, IOCATA, &iocmd) =3D=3D -1) { err(1, "error executing ioctl"); } if (iocmd.u.param.type[device]) { ap =3D iocmd.u.param.params[device]; } else { errx(1, "no information for device %d channel %d", device, channel); }=09 =09 printf("Model: "); for(i =3D 0; i < 40 && ap.model[i] !=3D '\0'; i++) printf("%c", ap.model[i]); putchar('\n'); printf("Revision: "); for(i =3D 0; i < 8 && ap.revision[i] !=3D '\0'; i++) printf("%c", ap.revision[i]); putchar('\n'); printf("Serial: "); for(i =3D 0; i < 20 && ap.serial[i] !=3D '\0'; i++) printf("%c", ap.serial[i]); putchar('\n'); =09 return 0; } Cheers, Vik From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 17:45:23 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7CD3516A402 for ; Tue, 15 May 2007 17:45:23 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5D63D13C44B for ; Tue, 15 May 2007 17:45:23 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn02.u.washington.edu (hymn02.u.washington.edu [140.142.13.239]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4FHjME8005267 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 15 May 2007 10:45:22 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn02.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4FHjMGZ028137 for ; Tue, 15 May 2007 10:45:22 -0700 X-Auth-Received: from [192.55.52.2] by hymn02.u.washington.edu via HTTP; Tue, 15 May 2007 10:45:22 PDT Date: Tue, 15 May 2007 10:45:22 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-hackers@freebsd.org In-Reply-To: <1179243541.1234.11.camel@zoot.mintel.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.15.102433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 17:45:23 -0000 On Tue, 15 May 2007, Tom Evans wrote: > On Tue, 2007-05-15 at 11:23 -0400, Mike Meyer wrote: >> In <861whigyua.fsf@dwp.des.no>, Dag-Erling Sm=C3=B8rgrav ty= ped: >>> Peter Jeremy writes: >>> > Mike Meyer writes: >>> > [Linux package systems] >>> > > As far as I know, none of them handle updates from source at all. I= n >>> > > fact, dealing with sources seems to be a noticable weakness for the= m. >>> > This pretty much rules them out then. >>> It would, if it were true. It isn't. >> >> Except it is. >> >>> apt-get --build source package_name >> >> That doesn't update from sources, that just builds a package. You're >> still stuck updating from packages. >> >> Further, like the rpm command, this doesn't deal with dependencies, >> other than to complain if they aren't met. This means that using it to >> deal with sources is about as pleasant as using rpm to install binary >> packages. Further, there doesn't appear to be anything like make.conf >> to make it easy to tailor the build process to meet the users >> requirements. >> >> =09 > Of course Gentoo does do this [updating from source], being as it is a > rip-off of freebsd ports. I haven't used it since the (fairly) early > days when portage was written as a series of bash scripts. I'm fairly > sure they must have improved it since then - it made portupgrade look > positively snappy. Unsurprisingly, everything was/is controlled by > adding options (mainly USE_FLAGS - eg '+gtk2 -kde') to make.conf. > > Tom Tom, It's gotten excruciatingly more complex with the introduction of Pyth= on, classes, and an increase in USE flags. -Garrett From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 18:49:51 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC43416A403; Tue, 15 May 2007 18:49:51 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 31BF513C447; Tue, 15 May 2007 18:49:50 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l4FIb7V4024501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 May 2007 21:37:14 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l4FIam00009348; Tue, 15 May 2007 21:37:00 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l4FIak7X009347; Tue, 15 May 2007 21:36:46 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 15 May 2007 21:36:45 +0300 From: Giorgos Keramidas To: Alexander Leidinger Message-ID: <20070515183645.GA9126@kobe.laptop> References: <200705102105.27271.blackdragon@highveldmail.co.za> <17987.52037.112351.872442@bhuda.mired.org> <20070511015156.GA77895@xor.obsecurity.org> <86zm4b3h7h.fsf@dwp.des.no> <20070511082657.GA24652@xor.obsecurity.org> <86sla33gkm.fsf@dwp.des.no> <20070511161200.w7tzoc5mkg8og44c@webmail.leidinger.net> <86lkfru4ya.fsf@dwp.des.no> <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070514131954.sqxxrk6qi8o8gwck@webmail.leidinger.net> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.522, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.68, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Meyer , freebsd-hackers@freebsd.org, Ivan Voras , Mike@freebsd.org, Kris Kennaway , Dag-Erling Sm????rgrav Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 18:49:51 -0000 On 2007-05-14 13:19, Alexander Leidinger wrote: >Quoting Dag-Erling Sm????rgrav (from Mon, 14 May 2007 >11:31:25 +0200): >> Note that we are apparently not the only ones dissatisfied with this >> state of affairs. The following code is commonly found in rpm specs >> for Fedora (and, I suspect, for RedHat and CentOS as well): >> >> sed -i >> 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' >> libtool >> sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool >> >> Perhaps we could make common cause with RH to apply pressure on the >> libtool maintainers? Quite good idea, if this means the fixes will automagically work for libtool for releases >= 1.5.X. Things may be a little trickier with older libtool versions, but I'm not sureif I'm qualified to suggest a *real* fix for those thirdparty packages which depend on older libtool versions. > Isn't this a property which can be set at build time? I mean: isn't > there a $OSNAME case where this can be set for a specific OS? There is already precedent for OS-specific and compiler-specific options. The 1.5.23a version includes already special support for linking with -library=stlport4 and _excluding_ the -lCrun and -lCstd libraries for Solaris programs compiled with Sun Studio ;-) From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 21:30:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 46AC316A405 for ; Tue, 15 May 2007 21:30:26 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.freebsd.org (Postfix) with ESMTP id 0DABB13C48C for ; Tue, 15 May 2007 21:30:25 +0000 (UTC) (envelope-from duane@dwlabs.ca) Received: from ip02.eastlink.ca ([24.222.10.10]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0JI300FXZQEPQSW0@mta01.eastlink.ca> for freebsd-hackers@freebsd.org; Tue, 15 May 2007 18:30:25 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO dwpc.dwlabs.ca) ([24.224.199.230]) by ip02.eastlink.ca with ESMTP; Tue, 15 May 2007 18:30:01 -0300 Received: from dwpc.dwlabs.ca (ftp.dwlabs.ca [192.168.0.10]) by dwpc.dwlabs.ca (8.13.8/8.13.8) with ESMTP id l4FLUQAY024460; Tue, 15 May 2007 18:30:32 -0300 (ADT envelope-from duane@dwpc.dwlabs.ca) Received: (from duane@localhost) by dwpc.dwlabs.ca (8.13.8/8.13.8/Submit) id l4FLUQo9024459; Tue, 15 May 2007 18:30:26 -0300 (ADT envelope-from duane) Date: Tue, 15 May 2007 18:30:26 -0300 From: Duane Whitty In-reply-to: <464969B3.3050306@u.washington.edu> To: Garrett Cooper Message-id: <20070515213026.GI1017@dwpc.dwlabs.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAL3CSUYY4MfmdGdsb2JhbACQCTc X-IronPort-AV: i="4.14,538,1170648000"; d="scan'208"; a="186054816:sNHT33867171" X-Virus-Scanned: ClamAV 0.88.6/3247/Tue May 15 08:31:00 2007 on dwpc.dwlabs.ca X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on dwpc.dwlabs.ca References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> <1179214317.1791.38.camel@zoot.mintel.co.uk> <464969B3.3050306@u.washington.edu> User-Agent: Mutt/1.4.2.2i X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Cc: freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 21:30:26 -0000 On Tuesday, 15 May 2007 at 1:05:07 -0700, Garrett Cooper wrote: > Tom Evans wrote: > >On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: > >>Ruby's nice, but it's built on Perl so I have suspicions on its overall > >>usability / speed given my experience with Perl over the past 4 months > >>daily for work :(.. Ruby's just the new big thing for programming > >>languages, so everyone's into it. Kind of like how Java was compared to > >>C/C++ a few years back. But once everything dies down people will > >>realize that they'll still have to program in C/C++/Perl for real-world > >>applications. > >> > >>Python seems better than Ruby from what I can see, but I really don't > >>like the mandatory indentation thing. Ew.. > >> > > > >Rubies are better Perls. That's the only connection between the two. One > >day, a Japanese programmer got fed up with Perl, and wrote a better > >language (for varying meanings of better). > > > >Its not based or built on Perl in any respect. > > > >Python and Ruby both have the same targets; to speed development time > >and increase programmer productivity. > > But one must make a Perl before one can make a Ruby. Maybe that was what > I was trying to aim for. > > Ruby's nice, but it seems like it's going to be a bit passe in a few > years like Java was for compilable / interpretable languages. > > -Garrett > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" None of this matters My only point is that if you need something quick to explore the format of pkgdb.db or INDEX.db you are pretty well assured of finding a tool you can work with; Perl, Python, or Ruby. If these aren't sufficient use C. The pkg_* tools are written in C so in C they will be modified; but no harm in doing initial exploration and prototyping with something else. Let's stay focused! Duane From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 00:00:55 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 248B816A400; Wed, 16 May 2007 00:00:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 81DF113C447; Wed, 16 May 2007 00:00:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l4G00oVw046154; Tue, 15 May 2007 20:00:51 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 15 May 2007 18:33:41 -0400 User-Agent: KMail/1.9.6 References: <20070510111326.GA94093@hub.freebsd.org> In-Reply-To: <20070510111326.GA94093@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705151833.42372.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 15 May 2007 20:00:51 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3249/Tue May 15 17:16:41 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: hackers@freebsd.org, Darren Reed Subject: Re: Experiences with 7.0-CURRENT and vmware. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 00:00:55 -0000 On Thursday 10 May 2007 07:13:26 am Darren Reed wrote: > > I'm using FreeBSD 7.0-CURRENT under vmware and there are a few issues. > > First, time. > hint.hw.acpi.disabled="1" > This appears to make _no_ difference to time keeping on FreeBSD 7 > and nor does it seem to have any impact on ACPI being loaded. Do > I need to recompile a new kernel without it or is there a new way > to disable ACPI? The tunable is 'hint.acpi.0.disabled=1' man 4 acpi > Second, networking. > Prior to FreeBSD-7, the driver to use inside vmware workstation > was lnc. It has worked and contiues to work great. No problemo. > FreeBSD-7 uses the "em" driver. To put it simply, it sucks in > comparison. When things really get bad I start seeing "em0: watchdog > timeout" messages on the console. I looked and I don't see a lnc > driver anywhere. Is there another alternative (le?) driver that > I can use in place of em, if so, how? le(4) is the newer lnc(4). -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 00:14:55 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4AEE16A405 for ; Wed, 16 May 2007 00:14:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 904FE13C455 for ; Wed, 16 May 2007 00:14:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l4G00oVw046154; Tue, 15 May 2007 20:00:51 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 15 May 2007 18:33:41 -0400 User-Agent: KMail/1.9.6 References: <20070510111326.GA94093@hub.freebsd.org> In-Reply-To: <20070510111326.GA94093@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705151833.42372.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 15 May 2007 20:00:51 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3249/Tue May 15 17:16:41 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: hackers@freebsd.org, Darren Reed Subject: Re: Experiences with 7.0-CURRENT and vmware. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 00:14:56 -0000 On Thursday 10 May 2007 07:13:26 am Darren Reed wrote: > > I'm using FreeBSD 7.0-CURRENT under vmware and there are a few issues. > > First, time. > hint.hw.acpi.disabled="1" > This appears to make _no_ difference to time keeping on FreeBSD 7 > and nor does it seem to have any impact on ACPI being loaded. Do > I need to recompile a new kernel without it or is there a new way > to disable ACPI? The tunable is 'hint.acpi.0.disabled=1' man 4 acpi > Second, networking. > Prior to FreeBSD-7, the driver to use inside vmware workstation > was lnc. It has worked and contiues to work great. No problemo. > FreeBSD-7 uses the "em" driver. To put it simply, it sucks in > comparison. When things really get bad I start seeing "em0: watchdog > timeout" messages on the console. I looked and I don't see a lnc > driver anywhere. Is there another alternative (le?) driver that > I can use in place of em, if so, how? le(4) is the newer lnc(4). -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 07:36:21 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E6D6916A402 for ; Wed, 16 May 2007 07:36:21 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-out-01.forthnet.gr (mx-out.forthnet.gr [193.92.150.103]) by mx1.freebsd.org (Postfix) with ESMTP id 4BADC13C46C for ; Wed, 16 May 2007 07:36:20 +0000 (UTC) (envelope-from dds@aueb.gr) Received: from mx-av-02.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-01.forthnet.gr (8.13.8/8.13.8) with ESMTP id l4G7aIGe000803 for ; Wed, 16 May 2007 10:36:18 +0300 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-02.forthnet.gr (8.14.1/8.14.1) with ESMTP id l4G7aHDx006766 for ; Wed, 16 May 2007 10:36:17 +0300 Received: from [192.168.136.22] (ppp124-213.adsl.forthnet.gr [193.92.231.213]) by MX-IN-01.forthnet.gr (8.14.1/8.14.1) with ESMTP id l4G7aAsk019217 for ; Wed, 16 May 2007 10:36:11 +0300 Authentication-Results: MX-IN-01.forthnet.gr from=dds@aueb.gr; sender-id=neutral; spf=neutral Message-ID: <464AB44F.3020706@aueb.gr> Date: Wed, 16 May 2007 10:35:43 +0300 From: Diomidis Spinellis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1 MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Accounting test data X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 07:36:22 -0000 I'm testing the backwards compatibility of the process accounting processing tools (sa(8) and lastcomm(1)) with the upcoming new acct(5) record format. If you have root access on a FreeBSD AMD64, Sparc64, ia64, or PowerPC machine please run the shell script http://www.spinellis.gr/FreeBSD/values.sh and post the resulting file as a reply to this message (this will avoid replicated effort). The script generates a small process accounting file containing the results of a dozen simple commands. It takes less than 10s to run. If your machine runs with process accounting enabled, you will need to re-enable it after the script terminates (the script will tell you how). I intend to make the data you send me part of the process accounting regression testing. Many thanks, Diomidis Spinellis - http://people.freebsd.org/~dds/ From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 10:35:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EBEAF16A402 for ; Wed, 16 May 2007 10:35:26 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 82FEC13C458 for ; Wed, 16 May 2007 10:35:26 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from gahrtop.bfh.ch ([147.87.108.12] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HoGKx-0001v2-Cx for freebsd-hackers@freebsd.org; Wed, 16 May 2007 12:02:27 +0200 Message-ID: <464AD6A9.8060805@gahr.ch> Date: Wed, 16 May 2007 12:02:17 +0200 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.0 (X11/20070509) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.0 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig2553F160283B5B63818C8D92" X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Subject: GDB and memory violations X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 10:35:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2553F160283B5B63818C8D92 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi list, I haven't investigated yet, but it seems that FreeBSD's version of GDB stores string literals in read/write memory, and not on read-only memory, as I prove below. Is this behavior known/wanted/erroneous ? Try to run this code from the command line and from inside GDB. strtok(3) segfaults when run on the command line, because it tries to modify the string literal input1, while the program exits normally from G= DB. #include #include int main() { char *input1 =3D "Hello, World!"; char *tok; tok =3D strtok(input1, " "); if(tok) printf("%s\n", tok); tok =3D strtok(NULL, " "); if(tok) printf("%s\n", tok); return(0); } $ gcc -ggdb -Wall -o strtok strtok.c $ ./strtok Bus error (core dumped) Exit 138 $ gdb ./strtok GNU gdb 6.1.1 [FreeBSD] [snip]GDB copyright and bla bla[/snip] (gdb) break main Breakpoint 1 at 0x8048570: file strtok.c, line 6. (gdb) run Starting program: /home/piter/strtok Breakpoint 1, main () at strtok.c:6 6 char *input1 =3D "Hello, World!"; (gdb) next 10 tok =3D strtok(input1, " "); (gdb) 11 if(tok) printf("%s\n", tok); (gdb) Hello, 13 tok =3D strtok(NULL, " "); (gdb) 14 if(tok) printf("%s\n", tok); (gdb) World! 16 return(0); (gdb) 18 } (gdb) 0x08048485 in _start () (gdb) Single stepping until exit from function _start, which has no line number information. Program exited normally. (gdb) Tnx, --=20 Pietro Cerutti PGP Public Key ID: http://gahr.ch/pgp --------------enig2553F160283B5B63818C8D92 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGStavwMJqmJVx944RCtXFAKCO1qd57c7BODIqbdXcIOOubBYwqACeNHWD 3RoWfiT6MII9UvqjoYUlOo4= =5Bw8 -----END PGP SIGNATURE----- --------------enig2553F160283B5B63818C8D92-- From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 12:04:24 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E6E3516A409 for ; Wed, 16 May 2007 12:04:24 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh2.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id BD13213C48A for ; Wed, 16 May 2007 12:04:24 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.8/8.13.8) with ESMTP id l4GC4GIj087146; Wed, 16 May 2007 07:04:19 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <464AF340.9040806@freebsd.org> Date: Wed, 16 May 2007 07:04:16 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Diomidis Spinellis References: <464AB44F.3020706@aueb.gr> In-Reply-To: <464AB44F.3020706@aueb.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3258/Wed May 16 06:06:43 2007 on mh2.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh2.centtech.com Cc: freebsd-hackers@freebsd.org Subject: Re: Accounting test data X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 12:04:25 -0000 On 05/16/07 02:35, Diomidis Spinellis wrote: > I'm testing the backwards compatibility of the process accounting > processing tools (sa(8) and lastcomm(1)) with the upcoming new acct(5) > record format. If you have root access on a FreeBSD AMD64, Sparc64, > ia64, or PowerPC machine please run the shell script > http://www.spinellis.gr/FreeBSD/values.sh and post the resulting file as > a reply to this message (this will avoid replicated effort). The script > generates a small process accounting file containing the results of a > dozen simple commands. It takes less than 10s to run. If your machine > runs with process accounting enabled, you will need to re-enable it > after the script terminates (the script will tell you how). I intend to > make the data you send me part of the process accounting regression testing. > > Many thanks, http://www.googlebit.com/freebsd/acct-data/ Eric From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 12:17:49 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2EA6816A403; Wed, 16 May 2007 12:17:49 +0000 (UTC) (envelope-from zec@icir.org) Received: from xaqua.tel.fer.hr (xaqua.tel.fer.hr [161.53.19.25]) by mx1.freebsd.org (Postfix) with ESMTP id B2E5813C45B; Wed, 16 May 2007 12:17:48 +0000 (UTC) (envelope-from zec@icir.org) Received: by xaqua.tel.fer.hr (Postfix, from userid 20006) id 49A6C9B648; Wed, 16 May 2007 13:52:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on xaqua.tel.fer.hr X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DATE_IN_PAST_06_12 autolearn=ham version=3.1.7 Received: from [::1] (zec1.tel.fer.hr [161.53.19.78]) by xaqua.tel.fer.hr (Postfix) with ESMTP id 257509B64A; Wed, 16 May 2007 13:52:19 +0200 (CEST) From: Marko Zec To: freebsd-hackers@freebsd.org Date: Wed, 16 May 2007 06:04:27 +0200 User-Agent: KMail/1.9.6 References: <45F1C355.8030504@digitaldaemon.com> <4648993A.4060709@elischer.org> <4648CAFD.4020009@freebsd.org> In-Reply-To: <4648CAFD.4020009@freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200705160604.28402.zec@icir.org> X-Mailman-Approved-At: Wed, 16 May 2007 12:22:53 +0000 Cc: "Bjoern A. Zeeb" , Andre Oppermann , Julian Elischer , Ed Schouten Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 12:17:49 -0000 On Monday 14 May 2007 22:47:57 Andre Oppermann wrote: > Julian Elischer wrote: > > Bjoern A. Zeeb wrote: > >> On Mon, 14 May 2007, Ed Schouten wrote: > >> > >> Hi, > >> > >>> * Andre Oppermann wrote: > >>>> I'm working on a "light" variant of multi-IPv[46] per jail. It > >>>> doesn't > >>>> create an entirely new network instance per jail and probably > >>>> is more suitable for low- to mid-end (virtual) hosting. In > >>>> those cases you normally want the host administrator to > >>>> excercise full control over IP address and firewall > >>>> configuration of the individual jails. For high-end stuff where > >>>> you offer jail based virtual machines or network and routing > >>>> simulations Marco's work is more appropriate. > >>> > >>> Is there a way for us to colaborate on this? I'd really love to > >>> work on this sort of stuff and I think it's really interesting to > >>> dig in that sort of code. > >>> > >>> I already wrote an initial patch which changes the system call > >>> and sysctl format of the jail structures which allow you to > >>> specify lists of addresses for IPv4 and IPv6. > > > > talk with Marko Zec about "immunes". > > > > http://www.tel.fer.hr/zec/vimage/ > > and http://www.tel.fer.hr/imunes/ > > > > It has a complete virtualized stack for each jail. > > ipfw, routing table, divert sockets, sysctls, statistics, netgraph > > etc. > > Like I said there is a place for both approaches and they are > complementary. A couple of hosting ISPs I know do not want to > give a full virtualized stack to their customers. They want to > retain full control over the network configuration inside and > outside of the jail. In those (mass-hosting) cases it is done > that way to ease support (less stuff users can fumble) and to > properly position those products against full virtual machines > and dedicated servers. Something like this: jail < vimage < > virtual machine < dedicated server. You're right we shouldn't look at virtualized stack as a replacement for jails. Every approach has its niche and use. > > He as a set of patches against 7-current that now implements nearly > > all the parts you need. It Will be discussed at the devsummit on > > Wed/Thurs and we'll be discussing whether it is suitable for > > general inclusion or to be kept as patches. Note, it can be > > compiled out, which leaves a pretty much binarily compatible OS, so > > I personally would like to see it included. > > I don't think it is mature enough for inclusion into the upcoming > 7.0R. Not enough integration time. Food for FreeBSD 8.0. Even not knowing how far exactly 7.0 is from being frozen and entering the release process, I'd agree with your point - the stack virtualization prototype for -CURRENT is still far from being ready for prime time. The fact that the patchsets I maintained for 4.11 were quite stable is of little significance now, given that the -CURRENT prototype is a from-scratch implementation of the same idea but using slightly different tricks, and of course the FreeBSD code base has evolved tremendeously over the years. What the prototype does demonstrate at this point however, is that the changes can be made to optionaly compile, that they should work fine on a multithreaded / SMP kernel, and that all this can be accomplished with relatively less churn to the existing code compared to what was done in 4.11 days. Knowing that I had a machine running a virtualized -CURRENT kernel under different kinds of workloads for over a month without a glitch might be considered encouranging but nothing spectacular... OTOH, even if we miss the window for sneaking this into 7.0-R, it would be a huge pitty not to at least reserve a few additional fields in various kernel structures needed to support stack virtualization. That way it would be possible to maintain a virtualized 7.0-R kernel in a separate code branch, which could be used as a snap-in replacement for the stock kernel even after API / ABI freeze comes into effect. This would allow us to give people an opportunity to conveniently test and play with the new framework on an otherwise production-grade OS, while continuing work towards (hopefully) merging of the chages into 8.0 at some point. Cheers, Marko From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 12:32:17 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 82C7716A400 for ; Wed, 16 May 2007 12:32:17 +0000 (UTC) (envelope-from carl.gustavsson@bahnhofbredband.se) Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by mx1.freebsd.org (Postfix) with ESMTP id 43E1513C48A for ; Wed, 16 May 2007 12:32:17 +0000 (UTC) (envelope-from carl.gustavsson@bahnhofbredband.se) Received: from localhost (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id EA81714D811; Wed, 16 May 2007 14:32:10 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by localhost (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dfy8xGFgdkqY; Wed, 16 May 2007 14:32:09 +0200 (CEST) Received: from sleipner.home.swe (c213-100-49-168.swipnet.se [213.100.49.168]) by smtp-2.sys.kth.se (Postfix) with ESMTP id C619014C226; Wed, 16 May 2007 14:32:09 +0200 (CEST) Message-ID: <464AFA48.3080007@bahnhofbredband.se> Date: Wed, 16 May 2007 14:34:16 +0200 From: Carl Johan Gustavsson User-Agent: Thunderbird 2.0.0.0 (X11/20070422) MIME-Version: 1.0 To: Diomidis Spinellis References: <464AB44F.3020706@aueb.gr> In-Reply-To: <464AB44F.3020706@aueb.gr> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Accounting test data X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 12:32:17 -0000 Diomidis Spinellis wrote: > I'm testing the backwards compatibility of the process accounting > processing tools (sa(8) and lastcomm(1)) with the upcoming new acct(5) > record format. If you have root access on a FreeBSD AMD64, Sparc64, > ia64, or PowerPC machine please run the shell script > http://www.spinellis.gr/FreeBSD/values.sh and post the resulting file > as a reply to this message (this will avoid replicated effort). The > script generates a small process accounting file containing the > results of a dozen simple commands. It takes less than 10s to run. > If your machine runs with process accounting enabled, you will need to > re-enable it after the script terminates (the script will tell you > how). I intend to make the data you send me part of the process > accounting regression testing. > > Many thanks, > > Diomidis Spinellis - http://people.freebsd.org/~dds/ > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" Hi! Here's data from a sparc64 machine. http://cjg.mine.nu/files/acct.sparc64.tar.gz.uue /cjg From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 13:58:24 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 95E6016A405 for ; Wed, 16 May 2007 13:58:24 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 53DFC13C46C for ; Wed, 16 May 2007 13:58:24 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so178879wxc for ; Wed, 16 May 2007 06:58:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PYdmhcrEaO4SlQm2galC2FZVJSFiG5RLIo3pf/K5yNU5AMT9p5xqhOUnPKd9tgAJFdK1PFPLK2qSM0Z7B4G59juxagSAorNW/oX8cR6c1hfu6Pt2u5cwkIEezgzgaNvNw2tRuUDrgHocBaJWKYUfKJSTygE7rzBJiNm2HxgXkxs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ibfVOIlKNWIsRCJEZ6zd3ePp4xoxcfBsPlLw7vdo7yhErFrlW6dGrnv0Mb63D0YPDbJHvq1MjE60I7dEx+BWSgPyZx98Bj5w1uPn1rL03zgftaCIjTLdfABKEQT7LzAVF9HIDJQV1U38z06BfPfnW6BDTZ9XrN9fwd2juc9089I= Received: by 10.90.89.5 with SMTP id m5mr7950288agb.1179322358037; Wed, 16 May 2007 06:32:38 -0700 (PDT) Received: by 10.67.24.16 with HTTP; Wed, 16 May 2007 06:32:37 -0700 (PDT) Message-ID: <3aaaa3a0705160632r4ec0164t8bb8b714fec15426@mail.gmail.com> Date: Wed, 16 May 2007 14:32:37 +0100 From: Chris To: "Marko Zec" In-Reply-To: <200705160604.28402.zec@icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F1C355.8030504@digitaldaemon.com> <4648993A.4060709@elischer.org> <4648CAFD.4020009@freebsd.org> <200705160604.28402.zec@icir.org> Cc: freebsd-hackers@freebsd.org, Ed Schouten , Andre Oppermann , Julian Elischer , "Bjoern A. Zeeb" Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 13:58:24 -0000 On 16/05/07, Marko Zec wrote: > On Monday 14 May 2007 22:47:57 Andre Oppermann wrote: > > Julian Elischer wrote: > > > Bjoern A. Zeeb wrote: > > >> On Mon, 14 May 2007, Ed Schouten wrote: > > >> > > >> Hi, > > >> > > >>> * Andre Oppermann wrote: > > >>>> I'm working on a "light" variant of multi-IPv[46] per jail. It > > >>>> doesn't > > >>>> create an entirely new network instance per jail and probably > > >>>> is more suitable for low- to mid-end (virtual) hosting. In > > >>>> those cases you normally want the host administrator to > > >>>> excercise full control over IP address and firewall > > >>>> configuration of the individual jails. For high-end stuff where > > >>>> you offer jail based virtual machines or network and routing > > >>>> simulations Marco's work is more appropriate. > > >>> > > >>> Is there a way for us to colaborate on this? I'd really love to > > >>> work on this sort of stuff and I think it's really interesting to > > >>> dig in that sort of code. > > >>> > > >>> I already wrote an initial patch which changes the system call > > >>> and sysctl format of the jail structures which allow you to > > >>> specify lists of addresses for IPv4 and IPv6. > > > > > > talk with Marko Zec about "immunes". > > > > > > http://www.tel.fer.hr/zec/vimage/ > > > and http://www.tel.fer.hr/imunes/ > > > > > > It has a complete virtualized stack for each jail. > > > ipfw, routing table, divert sockets, sysctls, statistics, netgraph > > > etc. > > > > Like I said there is a place for both approaches and they are > > complementary. A couple of hosting ISPs I know do not want to > > give a full virtualized stack to their customers. They want to > > retain full control over the network configuration inside and > > outside of the jail. In those (mass-hosting) cases it is done > > that way to ease support (less stuff users can fumble) and to > > properly position those products against full virtual machines > > and dedicated servers. Something like this: jail < vimage < > > virtual machine < dedicated server. > > You're right we shouldn't look at virtualized stack as a replacement for > jails. Every approach has its niche and use. > > > > He as a set of patches against 7-current that now implements nearly > > > all the parts you need. It Will be discussed at the devsummit on > > > Wed/Thurs and we'll be discussing whether it is suitable for > > > general inclusion or to be kept as patches. Note, it can be > > > compiled out, which leaves a pretty much binarily compatible OS, so > > > I personally would like to see it included. > > > > I don't think it is mature enough for inclusion into the upcoming > > 7.0R. Not enough integration time. Food for FreeBSD 8.0. > > Even not knowing how far exactly 7.0 is from being frozen and entering > the release process, I'd agree with your point - the stack > virtualization prototype for -CURRENT is still far from being ready for > prime time. The fact that the patchsets I maintained for 4.11 were > quite stable is of little significance now, given that the -CURRENT > prototype is a from-scratch implementation of the same idea but using > slightly different tricks, and of course the FreeBSD code base has > evolved tremendeously over the years. What the prototype does > demonstrate at this point however, is that the changes can be made to > optionaly compile, that they should work fine on a multithreaded / SMP > kernel, and that all this can be accomplished with relatively less > churn to the existing code compared to what was done in 4.11 days. > Knowing that I had a machine running a virtualized -CURRENT kernel > under different kinds of workloads for over a month without a glitch > might be considered encouranging but nothing spectacular... > > OTOH, even if we miss the window for sneaking this into 7.0-R, it would > be a huge pitty not to at least reserve a few additional fields in > various kernel structures needed to support stack virtualization. That > way it would be possible to maintain a virtualized 7.0-R kernel in a > separate code branch, which could be used as a snap-in replacement for > the stock kernel even after API / ABI freeze comes into effect. This > would allow us to give people an opportunity to conveniently test and > play with the new framework on an otherwise production-grade OS, while > continuing work towards (hopefully) merging of the chages into 8.0 at > some point. > > Cheers, > > Marko > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Would like to see this in 7.0 considering many of us have been waiting for such a feature since 4.x days. There is patches that make this work with 5.x and 6.x so I have always been puzzled why it hasnt been commited to the base, clearly enough time to make 7.0 a dream for desktop users but I see many server side things been pushed aside. Please make this happen as waiting for 8.0 seems forever. Chris From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 14:04:35 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 250AF16A405 for ; Wed, 16 May 2007 14:04:35 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.freebsd.org (Postfix) with ESMTP id 00CAB13C459 for ; Wed, 16 May 2007 14:04:34 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org ([192.147.25.65]:50154) by thebighonker.lerctr.org with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.67 (FreeBSD)) (envelope-from ) id 1HoJsf-000Ac7-JR; Wed, 16 May 2007 08:49:31 -0500 Date: Wed, 16 May 2007 08:49:27 -0500 (CDT) From: Larry Rosenman To: Diomidis Spinellis In-Reply-To: <464AB44F.3020706@aueb.gr> Message-ID: <20070516084825.P40752@thebighonker.lerctr.org> References: <464AB44F.3020706@aueb.gr> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1089358785-1179323367=:40752" X-Spam-Score: -1.0 (-) X-LERCTR-Spam-Score: -1.0 (-) X-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, DKIM_POLICY_SIGNSOME=0.001, FM_MULTI_ODD2=1.1, FM_MULTI_ODD3=0.7, FM_MULTI_ODD4=0.7, FM_MULTI_ODD5=0.9, OBSCURED_EMAIL=0.001 X-LERCTR-Spam-Report: SpamScore (-1.0/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, DKIM_POLICY_SIGNSOME=0.001, FM_MULTI_ODD2=1.1, FM_MULTI_ODD3=0.7, FM_MULTI_ODD4=0.7, FM_MULTI_ODD5=0.9, OBSCURED_EMAIL=0.001 DomainKey-Status: no signature Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Accounting test data X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 14:04:35 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1089358785-1179323367=:40752 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Wed, 16 May 2007, Diomidis Spinellis wrote: > I'm testing the backwards compatibility of the process accounting processing > tools (sa(8) and lastcomm(1)) with the upcoming new acct(5) record format. > If you have root access on a FreeBSD AMD64, Sparc64, ia64, or PowerPC machine > please run the shell script http://www.spinellis.gr/FreeBSD/values.sh and > post the resulting file as a reply to this message (this will avoid > replicated effort). The script generates a small process accounting file > containing the results of a dozen simple commands. It takes less than 10s to > run. If your machine runs with process accounting enabled, you will need to > re-enable it after the script terminates (the script will tell you how). I > intend to make the data you send me part of the process accounting regression > testing. I saw a SIGSEGV while this ran... This is from a FreeBSD/amd64 RELENG_6 system. FreeBSD thebighonker.lerctr.org 6.2-STABLE FreeBSD 6.2-STABLE #14: Tue Apr 10 21:02:42 CDT 2007 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/THEBIGHONKER amd64 > > Many thanks, > > Diomidis Spinellis - http://people.freebsd.org/~dds/ > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893 --0-1089358785-1179323367=:40752 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=acct.amd64.tar.gz.uue Content-Transfer-Encoding: BASE64 Content-ID: <20070516084927.H40752@thebighonker.lerctr.org> Content-Description: Attachment as requested Content-Disposition: attachment; filename=acct.amd64.tar.gz.uue YmVnaW4gNjQ0IGFjY3QuYW1kNjQudGFyLmd6DQpNJ1hMKGAnMCsyVDhgYF5V PFNYXzsxIUFVTlU2V1ZCKiowYEJIMC8oOUo9J1xMQVVTWkomSjEhJCdRYCc0 DQpNJFw7UTtMVFo8MTBbTl1WPipEWChcMTxgMVBaSDVQMDJFOSEwI1JXQmBC PjA+RCIoYFA+ME4nIiNQUyhTDQpNMjM7Xiw0WEZWPUA7NU1eM0xMWFpcX1FG UUMtT09PR0I3PF9XNFotRigoMUxRRFFRWSEhJ1slQVhcQ05CDQpNQiIkMyhZ TDAmVUY2UzRSJEw4NlE4OipaKlI4UDMlKU9QKkxSQi4uOScxJCVAWUc3RjM5 Tj0vUj9QLi9XDQpNL15bRVNZVFEjQF9dQlpdPStZOC1RKF8rJlVcPTxHQ1tO X1I3Ojk8XFI1XjclK1BLJF1bVy9XWEk+Jkc4DQpNIzsoXEA6PjQ+Rz0nT2Bc TzJLVUA5USNULFtQJ18vNTBQNkw5UUo7RFc/Xkw0Tl8xKytUWz9UTz49TUNL DQpNOSdFR0MmPCw8TztQPCo/YD5cRVhdMFcpTl9FPUk5WiotXTdbNy8qMios QlU7XTMmUFwuWFpDWzxeWjEyDQpNM1w3Wzo6KVdbVz8pWlcyLGBOXkw8OFtT IUA3PkxcOldZUjNPXDJeNT5OPDUvKi5IJVZZTzlXRS9cIVg1DQpNXVNUSVwt Wz9HKFJTO1JLVUdFO1BDTzBOL1kiXEomPyQxOVpBWCdVVDUsXj8pMFwzUkJT Ozo7TShPQU9XDQpNQyRJTzcsXjtfVTM2NFxUO1pTV144OiVaM0w/KzdaSVpW RTZcI1I7VU8vUUs5M1VHWk1XXE5LKj4sXU9XDQpNUVtcK1U/LzpJKVtPLzVK TkdBXV8qR0ZeQ1hUQjtVLyFeVldDWkhBV1hbW0Q+NEZZPzFMKldPRlM4XVs2 DQpNOitRJEczK09ASCs3LkctVzhcMVtZWE0xLzxOXCVRNlxBXDs1JD5fJik+ RiM/Q1BIXTxNJT07Xyg+P09cDQpNPFE8NlkhRjJdXCtGR1spXSFOITQoXyU6 UFtIVVlMNV9VJiclXihdOSNMMV8zPGA0MC44JEosN0tbTz4nDQpNOUA5SFVe UCZXPVA5LFhTLTQ+Mlg1O0hgKDg0KywqT0JgT05bOTs6Li8hJUxMNGA0Wjsy JTolJzwrTSkpDQpNNl0hRS8rRUI+PTJCTiRgRztJWy4mKyQkNzgyNypVPzdP RzRSVilTLylZQE0pJV9MPlgqKz0uUCo+Rj9VDQpNMzI9WS5HOCk0Mz09USom VT1TUUYlPzEoLDVeVFtVSEFFI0oxWDovPSJEUSskVF85IkdOXUZWJzpbMzVJ DQpNQU5ONilSLDY9IVtRU0Y9O04tUC5SPzoyXjYyKjJJLCksXUYjJkEsOU5S NUUzJD9VN0pLL0wrMU8kPFhODQpNMVs8R10pPlczR0tNNzA9JDdJK1o8Oz87 XEgtRF4mOF0mRy9CL1FOQzhPWi8sQD9CT1Q4QDlEKVZQSUE3DQpNS0VdWzZR USU/XjBeMi0uIy9MSyxNIjNQRFxHW1g9JltZJiE8YENNRkQpQU8hMVdTPT5d YDMjTzQ/SDRZDQpNNlY2XUQ1UU0+S1o5UVk3UVw7QVo/JCJLXSopLjM3Sjgq LzZcSSI4XTklN1QpWlpJPzVCSSlROyc+TUonDQpNRSdLJT07VU5POkI3W1xb NVo1J0hTUDs6NVVdX0pOXT9IM11LVVNMVV88RldfMkhdTDFdPDBIXURdL0JG DQpNPUopJyxHSUpfWlFPTytDSl1CVlknRSZFJ0xXSFY0VlZDVTotM1lHKjol Ik9JTzpVNlhZWj8oSSRUMSlaDQpNJSY/VFIkMi9TTT5LWz9ZNUsuXFIjWz5I J0xWLDNfRT49P180XFokXj9VJy89Vl1fLVc9NTc3XEE0U1UiDQpNRSdLSlwz RypSTTswL0oyLi9UXVpfUChYJ0BLUTEmT1RPPk1KLDY/X1NbP18uKy9fSVYr XzNQQFxfXSwoDQpNKUZYQCVfPSFYJDVGWUhQUEBGIjAvWSw8QyMuJlxIUUk9 S1c7ODc/OFk9UERbYDJdRS9MKD9YNVdARVBJDQpNO1JcOD4jTiFGPVNSIU1R Ik5EJFcnQVE0JVFPVlFANFs3TklJJS4vV1QtXy1FVy9YL0s0TyJAVCIvXysi DQpNO0tbNlxJLU07UUJFXj8vKU9NPy9HV0RXQk9GRVBVWV9GKUlRR15ORjg9 UTMlOEYnWjhQUlcyISlOJjsiDQpNTlo+N0pDX0ElMFciTzoiM0tVIlhUXyxC VTg/JC0vP0I6LUNDUF8/YF0uLT4mTVNGJztcP0lPWk0oKlw9DQpNXUY4NC8u RCEiI0ExJS8/Rz0yUGAyX0BfMTkjXzswMFk7VV8wX1JWRllfXSxTX145Q09d Q09IXCdfWTxdDQpNYD9YLy4jOipfTl80TGBgTFhfXi4jP1s/IShbRV9YQiFf Wl5bX1EvUD9UYFVPL1c9NkcoXjYyU0RfVFNYDQpNL1okKF8rXDEzK1Y9TCor X1JcMVNNP11DMShGJl9WLkJFX11RUjJLXSdWLTRaP19YNS9CXzdPWic0LyFf DQpNMCM0Wkc9S00/WEdYR1YhTEA/XFdAOFJXVlFLUS9cVyZfUFszQk9cVV8z XTs7YDdRT1VPTV9aTixfWyVbDQpNNE9ZT1o8N18lT0BfSCFLQl46Plo1WGBF XyldMUIvXDtQPTM7MjxHXzI9R19SPTNfTDxPT0pIW18sVz5eDQpNX1YtRlZb OjZfVS81LUonRF9fUVJbQkcvX1VgXV9XPyFfUCc1RCxfP1U7UGArKTtfPDgz X1ZZMmBfUz4hDQpNKFM9SVg0K14/X1FAWThTXCNWWUs/P19LViNLUS9WOEtT P11DMkJPXUdeR1pPXSE6NV9fJz5PRD8mWC9fDQpNYFpIQUdCXT9KX0M/RE9b LysnQ15MUSUsPyorPTxNUTJfSj40X1I9Ti1PX0NWRUteR1hXODleMV9WSlo2 DQpNX1IvNSxKJ1A/VStdXzpdRl9FX15LWFhVXTddPk1bOjZfWz87WC9eYDpM Ql9HVUpHXi1cRkhfQD9cT14tDQpNWCxCRDNdV1NfUFtEP1w7N2AvXCdgYGBg YGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGAuIVRYU1xSDQonMzJdV2An QGBgYGBgDQpgDQplbmQNCg== --0-1089358785-1179323367=:40752-- From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 14:25:08 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1100016A401 for ; Wed, 16 May 2007 14:25:08 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id DA73413C459 for ; Wed, 16 May 2007 14:25:07 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l4GEHh4Z018776; Wed, 16 May 2007 09:17:43 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <464B1287.3000104@freebsd.org> Date: Wed, 16 May 2007 09:17:43 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Larry Rosenman References: <464AB44F.3020706@aueb.gr> <20070516084825.P40752@thebighonker.lerctr.org> In-Reply-To: <20070516084825.P40752@thebighonker.lerctr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3260/Wed May 16 08:17:18 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: Diomidis Spinellis , freebsd-hackers@freebsd.org Subject: Re: Accounting test data X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 14:25:08 -0000 On 05/16/07 08:49, Larry Rosenman wrote: > On Wed, 16 May 2007, Diomidis Spinellis wrote: > >> I'm testing the backwards compatibility of the process accounting processing >> tools (sa(8) and lastcomm(1)) with the upcoming new acct(5) record format. >> If you have root access on a FreeBSD AMD64, Sparc64, ia64, or PowerPC machine >> please run the shell script http://www.spinellis.gr/FreeBSD/values.sh and >> post the resulting file as a reply to this message (this will avoid >> replicated effort). The script generates a small process accounting file >> containing the results of a dozen simple commands. It takes less than 10s to >> run. If your machine runs with process accounting enabled, you will need to >> re-enable it after the script terminates (the script will tell you how). I >> intend to make the data you send me part of the process accounting regression >> testing. > I saw a SIGSEGV while this ran... That's supposed to happen - look at the script. Eric From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 15:17:47 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F8CB16A404 for ; Wed, 16 May 2007 15:17:47 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9511C13C457 for ; Wed, 16 May 2007 15:17:46 +0000 (UTC) (envelope-from andre@freebsd.org) Received: (qmail 69041 invoked from network); 16 May 2007 14:36:20 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 16 May 2007 14:36:20 -0000 Message-ID: <464B2096.5040605@freebsd.org> Date: Wed, 16 May 2007 17:17:42 +0200 From: Andre Oppermann User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Chris References: <45F1C355.8030504@digitaldaemon.com> <4648993A.4060709@elischer.org> <4648CAFD.4020009@freebsd.org> <200705160604.28402.zec@icir.org> <3aaaa3a0705160632r4ec0164t8bb8b714fec15426@mail.gmail.com> In-Reply-To: <3aaaa3a0705160632r4ec0164t8bb8b714fec15426@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Ed Schouten , Marko Zec , Julian Elischer , "Bjoern A. Zeeb" Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 15:17:47 -0000 Chris wrote: > On 16/05/07, Marko Zec wrote: >> OTOH, even if we miss the window for sneaking this into 7.0-R, it would >> be a huge pitty not to at least reserve a few additional fields in >> various kernel structures needed to support stack virtualization. That >> way it would be possible to maintain a virtualized 7.0-R kernel in a >> separate code branch, which could be used as a snap-in replacement for >> the stock kernel even after API / ABI freeze comes into effect. This >> would allow us to give people an opportunity to conveniently test and >> play with the new framework on an otherwise production-grade OS, while >> continuing work towards (hopefully) merging of the chages into 8.0 at >> some point. > > Would like to see this in 7.0 considering many of us have been waiting > for such a feature since 4.x days. There is patches that make this > work with 5.x and 6.x so I have always been puzzled why it hasnt been > commited to the base, clearly enough time to make 7.0 a dream for > desktop users but I see many server side things been pushed aside. > Please make this happen as waiting for 8.0 seems forever. We should indeed reserve some spare fields in critical structures to make a MFC of it an option for 7.1 or 7.2. We'll discuss these issues here at BSDCan Developer Summit in more details. Marko is currently sitting about 2 meters from me. ;-) -- Andre From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 15:31:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7560516A405 for ; Wed, 16 May 2007 15:31:06 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from mrelay-v1.mesd.k12.or.us (mrelay-v1.mesd.k12.or.us [198.236.68.98]) by mx1.freebsd.org (Postfix) with ESMTP id 573BA13C487 for ; Wed, 16 May 2007 15:31:06 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from localhost (localhost [127.0.0.1]) by mrelay-v1.mesd.k12.or.us (Postfix) with ESMTP id 074703C61EF; Wed, 16 May 2007 08:31:01 -0700 (PDT) X-Virus-Scanned: by amavisd-new at mesd.k12.or.us Received: from mrelay-v1.mesd.k12.or.us ([127.0.0.1]) by localhost (mrelay-v1.mesd.k12.or.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v1cJ1PC9KP8O; Wed, 16 May 2007 08:31:00 -0700 (PDT) Received: from mail.mesd.k12.or.us (mesd.k12.or.us [198.236.66.2]) by mrelay-v1.mesd.k12.or.us (Postfix) with ESMTP id 5627A3C61EC; Wed, 16 May 2007 08:31:00 -0700 (PDT) Received: from [198.236.66.125] (dcramblett.mesd.k12.or.us [198.236.66.125]) by mail.mesd.k12.or.us (Postfix) with ESMTP id 3568A3F4311; Wed, 16 May 2007 08:31:00 -0700 (PDT) Message-ID: <464B23B3.80605@functionalchaos.net> Date: Wed, 16 May 2007 08:30:59 -0700 From: David Cramblett User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> <86wszbx3tu.fsf@dwp.des.no> <4648835D.9020306@functionalchaos.net> <86sl9ywque.fsf@dwp.des.no> <20070515064408.GK78897@over-yonder.net> <861whiihi2.fsf@dwp.des.no> In-Reply-To: <861whiihi2.fsf@dwp.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, "Matthew D. Fuller" Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 15:31:06 -0000 Dag-Erling Smørgrav wrote: > "Matthew D. Fuller" writes: >> Dag-Erling Smørgrav writes: >>> Beats me... I can't even remember what userconfig_script is >>> supposed to do. Note that support for 5.2.1 ended on July 31, 2004. >> Neither can I, but last weekend I upgraded some 4.x boxes to 5.x and >> then 6.x, and with the 5.x loader they croaked before booting until I >> took those userconfig_script_load lines out. > > Ooh, now I remember; userconfig was the old hardware configuration > mechanism we had before device.hints. If you typed -c at the boot1 > prompt, you would get an interactive display where you could assign IRQs > and ports to devices. > > The script is basically a sequence of userconfig commands; you could > extract it from kenv after an interactive boot and store it in a file > which the loader would read the next time around. > > AFAIR, userconfig was axed between FreeBSD 3 and 4, so there would be no > point in loading a userconfig script for a 5.x kernel. > > DES Thanks for the tip. I did remove the line, however my issue did not go away. I am still getting dropped to the manual mount root prompt in the middle of the boot sequence. David From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 16:04:42 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F7F116A401 for ; Wed, 16 May 2007 16:04:42 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id A185B13C459 for ; Wed, 16 May 2007 16:04:41 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 41736 invoked by uid 2001); 16 May 2007 16:06:20 -0000 Date: Wed, 16 May 2007 11:06:20 -0500 From: "Rick C. Petty" To: Garrett Cooper Message-ID: <20070516160620.GA41481@keira.kiwi-computer.com> References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> <1179214317.1791.38.camel@zoot.mintel.co.uk> <464969B3.3050306@u.washington.edu> <46496A63.4090700@u.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46496A63.4090700@u.washington.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 16:04:42 -0000 On Tue, May 15, 2007 at 01:08:03AM -0700, Garrett Cooper wrote: > > Sorry for all you Java lovers out there.. it's just that from where I'm > at I don't see anyone using it in the workplace (Intel). We're all using > C/C++/Perl, with occasional spots of Ruby/Python. We use Java almost exclusively (Oracle), although scattered bits of Python and occasional C/C++ thru JNI. Not to start a flame war, but I much prefer Java and I know a lot of other corporations are using it as well (just do a search for "software engineer" on any job site, and count the Java hits vs. C++). Also, Java outperforms Python/Ruby/Perl on all string manipulations from our extensive tests. However, my group likes the philosophies behind Ruby and likes the rapid development of Python when we need a scripting language. Use the Right Tool for the problem; just because you like using a hammer doesn't mean all screwdrivers are stupid. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 16:05:53 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F7C016A403; Wed, 16 May 2007 16:05:53 +0000 (UTC) (envelope-from zec@icir.org) Received: from xaqua.tel.fer.hr (xaqua.tel.fer.hr [161.53.19.25]) by mx1.freebsd.org (Postfix) with ESMTP id D200213C4C4; Wed, 16 May 2007 16:05:52 +0000 (UTC) (envelope-from zec@icir.org) Received: by xaqua.tel.fer.hr (Postfix, from userid 20006) id E253A9B65A; Wed, 16 May 2007 18:05:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on xaqua.tel.fer.hr X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7 Received: from [::1] (zec1.tel.fer.hr [161.53.19.78]) by xaqua.tel.fer.hr (Postfix) with ESMTP id 365419B64A; Wed, 16 May 2007 18:05:49 +0200 (CEST) From: Marko Zec To: freebsd-hackers@freebsd.org Date: Wed, 16 May 2007 12:05:23 -0400 User-Agent: KMail/1.9.6 References: <45F1C355.8030504@digitaldaemon.com> <200705160604.28402.zec@icir.org> <3aaaa3a0705160632r4ec0164t8bb8b714fec15426@mail.gmail.com> In-Reply-To: <3aaaa3a0705160632r4ec0164t8bb8b714fec15426@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200705161205.23567.zec@icir.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 16 May 2007 16:54:14 +0000 Cc: Chris , "Bjoern A. Zeeb" , Andre Oppermann , Ed Schouten , Julian Elischer Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 16:05:53 -0000 On Wednesday 16 May 2007 09:32:37 Chris wrote: > On 16/05/07, Marko Zec wrote: > > On Monday 14 May 2007 22:47:57 Andre Oppermann wrote: > > > Julian Elischer wrote: > > > > Bjoern A. Zeeb wrote: > > > >> On Mon, 14 May 2007, Ed Schouten wrote: > > > >> > > > >> Hi, > > > >> > > > >>> * Andre Oppermann wrote: > > > >>>> I'm working on a "light" variant of multi-IPv[46] per jail. > > > >>>> It doesn't > > > >>>> create an entirely new network instance per jail and > > > >>>> probably is more suitable for low- to mid-end (virtual) > > > >>>> hosting. In those cases you normally want the host > > > >>>> administrator to excercise full control over IP address and > > > >>>> firewall configuration of the individual jails. For > > > >>>> high-end stuff where you offer jail based virtual machines > > > >>>> or network and routing simulations Marco's work is more > > > >>>> appropriate. > > > >>> > > > >>> Is there a way for us to colaborate on this? I'd really love > > > >>> to work on this sort of stuff and I think it's really > > > >>> interesting to dig in that sort of code. > > > >>> > > > >>> I already wrote an initial patch which changes the system > > > >>> call and sysctl format of the jail structures which allow you > > > >>> to specify lists of addresses for IPv4 and IPv6. > > > > > > > > talk with Marko Zec about "immunes". > > > > > > > > http://www.tel.fer.hr/zec/vimage/ > > > > and http://www.tel.fer.hr/imunes/ > > > > > > > > It has a complete virtualized stack for each jail. > > > > ipfw, routing table, divert sockets, sysctls, statistics, > > > > netgraph etc. > > > > > > Like I said there is a place for both approaches and they are > > > complementary. A couple of hosting ISPs I know do not want to > > > give a full virtualized stack to their customers. They want to > > > retain full control over the network configuration inside and > > > outside of the jail. In those (mass-hosting) cases it is done > > > that way to ease support (less stuff users can fumble) and to > > > properly position those products against full virtual machines > > > and dedicated servers. Something like this: jail < vimage < > > > virtual machine < dedicated server. > > > > You're right we shouldn't look at virtualized stack as a > > replacement for jails. Every approach has its niche and use. > > > > > > He as a set of patches against 7-current that now implements > > > > nearly all the parts you need. It Will be discussed at the > > > > devsummit on Wed/Thurs and we'll be discussing whether it is > > > > suitable for general inclusion or to be kept as patches. Note, > > > > it can be compiled out, which leaves a pretty much binarily > > > > compatible OS, so I personally would like to see it included. > > > > > > I don't think it is mature enough for inclusion into the upcoming > > > 7.0R. Not enough integration time. Food for FreeBSD 8.0. > > > > Even not knowing how far exactly 7.0 is from being frozen and > > entering the release process, I'd agree with your point - the stack > > virtualization prototype for -CURRENT is still far from being ready > > for prime time. The fact that the patchsets I maintained for 4.11 > > were quite stable is of little significance now, given that the > > -CURRENT prototype is a from-scratch implementation of the same > > idea but using slightly different tricks, and of course the FreeBSD > > code base has evolved tremendeously over the years. What the > > prototype does demonstrate at this point however, is that the > > changes can be made to optionaly compile, that they should work > > fine on a multithreaded / SMP kernel, and that all this can be > > accomplished with relatively less churn to the existing code > > compared to what was done in 4.11 days. Knowing that I had a > > machine running a virtualized -CURRENT kernel under different kinds > > of workloads for over a month without a glitch might be considered > > encouranging but nothing spectacular... > > > > OTOH, even if we miss the window for sneaking this into 7.0-R, it > > would be a huge pitty not to at least reserve a few additional > > fields in various kernel structures needed to support stack > > virtualization. That way it would be possible to maintain a > > virtualized 7.0-R kernel in a separate code branch, which could be > > used as a snap-in replacement for the stock kernel even after API / > > ABI freeze comes into effect. This would allow us to give people > > an opportunity to conveniently test and play with the new framework > > on an otherwise production-grade OS, while continuing work towards > > (hopefully) merging of the chages into 8.0 at some point. > > > > Cheers, > > > > Marko > > > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to > > "freebsd-hackers-unsubscribe@freebsd.org" > > Would like to see this in 7.0 considering many of us have been > waiting for such a feature since 4.x days. There is patches that > make this work with 5.x and 6.x so I have always been puzzled why it > hasnt been commited to the base, clearly enough time to make 7.0 a > dream for desktop users but I see many server side things been pushed > aside. Please make this happen as waiting for 8.0 seems forever. I'm not aware of any stack virtualization patches floating around for 5.x or 6.x, at least not of anything that I wrote -> I was basically frozen in the 4.11 age until say 9-10 months ago... Marko > Chris > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 20:41:28 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3263216A401 for ; Wed, 16 May 2007 20:41:28 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 1351F13C447 for ; Wed, 16 May 2007 20:41:28 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn02.u.washington.edu (hymn02.u.washington.edu [140.142.13.239]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4GKfR5F005126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 16 May 2007 13:41:27 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn02.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4GKfRaA014428 for ; Wed, 16 May 2007 13:41:27 -0700 X-Auth-Received: from [192.55.52.2] by hymn02.u.washington.edu via HTTP; Wed, 16 May 2007 13:41:27 PDT Date: Wed, 16 May 2007 13:41:27 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-hackers@freebsd.org In-Reply-To: <20070516160620.GA41481@keira.kiwi-computer.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.16.132333 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='SUPERLONG_LINE 0.05, NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 20:41:28 -0000 On Wed, 16 May 2007, Rick C. Petty wrote: > On Tue, May 15, 2007 at 01:08:03AM -0700, Garrett Cooper wrote: >> >> Sorry for all you Java lovers out there.. it's just that from where I'm >> at I don't see anyone using it in the workplace (Intel). We're all using >> C/C++/Perl, with occasional spots of Ruby/Python. > > We use Java almost exclusively (Oracle), although scattered bits of Python > and occasional C/C++ thru JNI. > > Not to start a flame war, but I much prefer Java and I know a lot of other > corporations are using it as well (just do a search for "software engineer" > on any job site, and count the Java hits vs. C++). > > Also, Java outperforms Python/Ruby/Perl on all string manipulations from > our extensive tests. However, my group likes the philosophies behind Ruby > and likes the rapid development of Python when we need a scripting > language. > > Use the Right Tool for the problem; just because you like using a hammer > doesn't mean all screwdrivers are stupid. > > -- Rick C. Petty Ok, fair enough. But there's a lot of overhead involved with Java with their completely OOP view on programming. Also, although I know that many database solutions companies (in particular Oracle and IBM), do like Java, it's not used in many other regions of the market from what I've seen (Apple, Intel, M$, many other companies that have openings in my school's resume databases). Most want C++, C#, and VB.NET (ew)... and maybe Javascript with AJAX support. Also, since I deleted the original message by accident, I wanted to note that I found a BDB dump feature in MySQL's source, so I'm going to try and adapt that to my SoC project just for research purposes to dump out the table fields and see how Ruby messes with the data. -Garrett PS If you hated BDB and loved SQL, please note that some SQL engines use BDB for a database backend instead of MyISAM, INNODB, etc. From owner-freebsd-hackers@FreeBSD.ORG Wed May 16 22:48:34 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0A2216A406 for ; Wed, 16 May 2007 22:48:34 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 7CD7C13C468 for ; Wed, 16 May 2007 22:48:34 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn02.u.washington.edu (hymn02.u.washington.edu [140.142.13.239]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4GMmXTL004758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 16 May 2007 15:48:34 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn02.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4GMmX8W022315 for ; Wed, 16 May 2007 15:48:33 -0700 X-Auth-Received: from [192.55.52.1] by hymn02.u.washington.edu via HTTP; Wed, 16 May 2007 15:48:33 PDT Date: Wed, 16 May 2007 15:48:33 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-hackers@freebsd.org In-Reply-To: <20070516224305.GA50051@keira.kiwi-computer.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.16.153338 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_PHRASE_6 0' Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 22:48:34 -0000 On Wed, 16 May 2007, Rick C. Petty wrote: > On Wed, May 16, 2007 at 01:41:27PM -0700, youshi10@u.washington.edu wrote: >> >> Ok, fair enough. But there's a lot of overhead involved with Java with >> their completely OOP view on programming. > > Agreed. > >> Also, although I know that many database solutions companies (in particular >> Oracle and IBM), do like Java, it's not used in many other regions of the >> market from what I've seen (Apple, Intel, M$, many other companies that >> have openings in my school's resume databases). Most want C++, C#, and >> VB.NET (ew)... and maybe Javascript with AJAX support. > > From what I've seen, after filtering out VB and C#, the next top is Java. > > I completely agree with you about "ew".. not a big fan of C-flat or VB. > =) > >> PS If you hated BDB and loved SQL, please note that some SQL engines use >> BDB for a database backend instead of MyISAM, INNODB, etc. > > I was aware that MySQL has a lot of backends, but most hosting sites that > give you mysql don't give you backend options-- it's MyISAM or die. :-/ > > Anyway, good luck with the BDB. Have you thought about looking at > dbopen(3) or dbm(3)? I'm sure you'll get more FreeBSD supporters if you > use something already shipping with the stock system. > > -- Rick C. Petty It (BDB 1.8.5) is already in the system under: /usr/src/lib/libc/db :) hash(3) and btree(3) have more details in manpage format. I'm just using parts of the MySQL server for research purposes. Thankfully the BDB dump code can be separated from the rest of the code and built modularly =). -Garrett From owner-freebsd-hackers@FreeBSD.ORG Thu May 17 07:28:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DAC216A400 for ; Thu, 17 May 2007 07:28:21 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id BCAA313C44C for ; Thu, 17 May 2007 07:28:20 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id BFBC020A7; Thu, 17 May 2007 09:28:15 +0200 (CEST) X-Spam-Tests: AWL,MAILTO_TO_SPAM_ADDR X-Spam-Learn: disabled X-Spam-Score: 0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id A58F22088; Thu, 17 May 2007 09:28:15 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 86C095389; Thu, 17 May 2007 09:28:15 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: youshi10@u.washington.edu References: Date: Thu, 17 May 2007 09:28:15 +0200 In-Reply-To: (youshi10@u.washington.edu's message of "Wed\, 16 May 2007 13\:41\:27 -0700 \(PDT\)") Message-ID: <86y7jnucxc.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2007 07:28:21 -0000 youshi10@u.washington.edu writes: > Ok, fair enough. But there's a lot of overhead involved with Java with > their completely OOP view on programming. Not really. Performance issues with Java mostly stem from the virtual machine, and a good JRE should eliminate most if not all of them. > Also, although I know that many database solutions companies (in > particular Oracle and IBM), do like Java, it's not used in many other > regions of the market from what I've seen (Apple, Intel, M$, many > other companies that have openings in my school's resume > databases). Most want C++, C#, and VB.NET (ew)... and maybe Javascript > with AJAX support. Apple aren't interested in Java because they've had Objective C from day one. Microsoft aren't interested in Java because they were legally barred from implementing it after trying to "embrace and extend" it, so they went ahead and reinvented it, badly. > PS If you hated BDB and loved SQL, please note that some SQL engines > use BDB for a database backend instead of MyISAM, INNODB, etc. Because BDB and SQL are orthogonal solutions for orthogonal problems. BDB is a key-value store; SQL is a query language. The bit you're missing in the middle - the bit I think most people really want when they say they want SQL - is a relational database engine. SQLite provides storage, a relational database engine, and a query language (which happens to be SQL but might just as well been a custom query language stripped of SQL's warts), and ACID. The only thing it lacks is strong typing. Implementing strong typing and a better query language on top of the SQLite storage and relational engine is left as an exercise to the reader :) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu May 17 15:51:19 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E7C116A506 for ; Thu, 17 May 2007 15:51:19 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 5523F13C459 for ; Thu, 17 May 2007 15:51:18 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so299723ugh for ; Thu, 17 May 2007 08:51:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uhKCnOtywCn5DmGic0MohhLB+0a2pvdq8BlIlUtEbZ9MzwHLFhAXUM4IzDj8o3VdYEC+D/fT54VxNlJG4J5df0uCuZ99rPYi3ac6hTsYVH2EouiaFrAANnlJnMBBGJYeCK7RK5MCbfsjzmdQQW+FFsN3lpYqK6A+822pEwm+4HM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uPVbpfcgvRuA4T2Me0hRr+3YnAqOPvICKfPYnRaNt2KP0aocVjq12xBL4Xe3pZpdSlCS1r9GoTYBIHpD/lyXCydfDgPTQBXOQ5OL8yC522fY2rW7e2/sgx4p9aXJhKs2D2ao1TzsKP95awgxw1FdMheu2bXBDEhFGxdcwK3F3yQ= Received: by 10.67.27.15 with SMTP id e15mr349290ugj.1179417077169; Thu, 17 May 2007 08:51:17 -0700 (PDT) Received: by 10.67.24.16 with HTTP; Thu, 17 May 2007 08:51:16 -0700 (PDT) Message-ID: <3aaaa3a0705170851k22b5942cna7f0545d68a9a3e6@mail.gmail.com> Date: Thu, 17 May 2007 16:51:16 +0100 From: Chris To: "Marko Zec" In-Reply-To: <200705161205.23567.zec@icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F1C355.8030504@digitaldaemon.com> <200705160604.28402.zec@icir.org> <3aaaa3a0705160632r4ec0164t8bb8b714fec15426@mail.gmail.com> <200705161205.23567.zec@icir.org> Cc: "Bjoern A. Zeeb" , freebsd-hackers@freebsd.org, Andre Oppermann , Ed Schouten , Julian Elischer Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2007 15:51:19 -0000 On 16/05/07, Marko Zec wrote: > On Wednesday 16 May 2007 09:32:37 Chris wrote: > > On 16/05/07, Marko Zec wrote: > > > On Monday 14 May 2007 22:47:57 Andre Oppermann wrote: > > > > Julian Elischer wrote: > > > > > Bjoern A. Zeeb wrote: > > > > >> On Mon, 14 May 2007, Ed Schouten wrote: > > > > >> > > > > >> Hi, > > > > >> > > > > >>> * Andre Oppermann wrote: > > > > >>>> I'm working on a "light" variant of multi-IPv[46] per jail. > > > > >>>> It doesn't > > > > >>>> create an entirely new network instance per jail and > > > > >>>> probably is more suitable for low- to mid-end (virtual) > > > > >>>> hosting. In those cases you normally want the host > > > > >>>> administrator to excercise full control over IP address and > > > > >>>> firewall configuration of the individual jails. For > > > > >>>> high-end stuff where you offer jail based virtual machines > > > > >>>> or network and routing simulations Marco's work is more > > > > >>>> appropriate. > > > > >>> > > > > >>> Is there a way for us to colaborate on this? I'd really love > > > > >>> to work on this sort of stuff and I think it's really > > > > >>> interesting to dig in that sort of code. > > > > >>> > > > > >>> I already wrote an initial patch which changes the system > > > > >>> call and sysctl format of the jail structures which allow you > > > > >>> to specify lists of addresses for IPv4 and IPv6. > > > > > > > > > > talk with Marko Zec about "immunes". > > > > > > > > > > http://www.tel.fer.hr/zec/vimage/ > > > > > and http://www.tel.fer.hr/imunes/ > > > > > > > > > > It has a complete virtualized stack for each jail. > > > > > ipfw, routing table, divert sockets, sysctls, statistics, > > > > > netgraph etc. > > > > > > > > Like I said there is a place for both approaches and they are > > > > complementary. A couple of hosting ISPs I know do not want to > > > > give a full virtualized stack to their customers. They want to > > > > retain full control over the network configuration inside and > > > > outside of the jail. In those (mass-hosting) cases it is done > > > > that way to ease support (less stuff users can fumble) and to > > > > properly position those products against full virtual machines > > > > and dedicated servers. Something like this: jail < vimage < > > > > virtual machine < dedicated server. > > > > > > You're right we shouldn't look at virtualized stack as a > > > replacement for jails. Every approach has its niche and use. > > > > > > > > He as a set of patches against 7-current that now implements > > > > > nearly all the parts you need. It Will be discussed at the > > > > > devsummit on Wed/Thurs and we'll be discussing whether it is > > > > > suitable for general inclusion or to be kept as patches. Note, > > > > > it can be compiled out, which leaves a pretty much binarily > > > > > compatible OS, so I personally would like to see it included. > > > > > > > > I don't think it is mature enough for inclusion into the upcoming > > > > 7.0R. Not enough integration time. Food for FreeBSD 8.0. > > > > > > Even not knowing how far exactly 7.0 is from being frozen and > > > entering the release process, I'd agree with your point - the stack > > > virtualization prototype for -CURRENT is still far from being ready > > > for prime time. The fact that the patchsets I maintained for 4.11 > > > were quite stable is of little significance now, given that the > > > -CURRENT prototype is a from-scratch implementation of the same > > > idea but using slightly different tricks, and of course the FreeBSD > > > code base has evolved tremendeously over the years. What the > > > prototype does demonstrate at this point however, is that the > > > changes can be made to optionaly compile, that they should work > > > fine on a multithreaded / SMP kernel, and that all this can be > > > accomplished with relatively less churn to the existing code > > > compared to what was done in 4.11 days. Knowing that I had a > > > machine running a virtualized -CURRENT kernel under different kinds > > > of workloads for over a month without a glitch might be considered > > > encouranging but nothing spectacular... > > > > > > OTOH, even if we miss the window for sneaking this into 7.0-R, it > > > would be a huge pitty not to at least reserve a few additional > > > fields in various kernel structures needed to support stack > > > virtualization. That way it would be possible to maintain a > > > virtualized 7.0-R kernel in a separate code branch, which could be > > > used as a snap-in replacement for the stock kernel even after API / > > > ABI freeze comes into effect. This would allow us to give people > > > an opportunity to conveniently test and play with the new framework > > > on an otherwise production-grade OS, while continuing work towards > > > (hopefully) merging of the chages into 8.0 at some point. > > > > > > Cheers, > > > > > > Marko > > > > > > _______________________________________________ > > > freebsd-hackers@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > To unsubscribe, send any mail to > > > "freebsd-hackers-unsubscribe@freebsd.org" > > > > Would like to see this in 7.0 considering many of us have been > > waiting for such a feature since 4.x days. There is patches that > > make this work with 5.x and 6.x so I have always been puzzled why it > > hasnt been commited to the base, clearly enough time to make 7.0 a > > dream for desktop users but I see many server side things been pushed > > aside. Please make this happen as waiting for 8.0 seems forever. > > I'm not aware of any stack virtualization patches floating around for > 5.x or 6.x, at least not of anything that I wrote -> I was basically > frozen in the 4.11 age until say 9-10 months ago... > > Marko > > > > Chris > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to > > "freebsd-hackers-unsubscribe@freebsd.org" > > > Yeah probably something else, I also think the reason why they werent commited because they possibly broke other stuff, but the multi ip was working. Thanks again for working on this. Chris From owner-freebsd-hackers@FreeBSD.ORG Fri May 18 03:15:12 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6111116A400 for ; Fri, 18 May 2007 03:15:12 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1F2F613C45D for ; Fri, 18 May 2007 03:15:12 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Hosvm-0004df-BC for freebsd-hackers@freebsd.org; Fri, 18 May 2007 05:15:02 +0200 Received: from 24.114.252.226 ([24.114.252.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 May 2007 05:15:02 +0200 Received: from ivoras by 24.114.252.226 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 May 2007 05:15:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 17 May 2007 23:11:44 +0000 Lines: 8 Message-ID: References: <4649349D.4060101@room52.net> <200705150847.38838.marc.loerner@hob.de> <46499491.2010205@room52.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 24.114.252.226 User-Agent: Thunderbird 2.0.0.0 (X11/20070424) In-Reply-To: <46499491.2010205@room52.net> Sender: news Subject: Re: Writing a plain text file to disk from kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 03:15:12 -0000 Lawrence Stewart wrote: > I'll have a play around and report back to the list what I find for > archival purposes. Please do, and also consider writing a short and instructive tutorial on it! Many people have asked this same question without a to-the-point answer. From owner-freebsd-hackers@FreeBSD.ORG Fri May 18 03:46:31 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B82E16A402 for ; Fri, 18 May 2007 03:46:31 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 7790613C44B for ; Fri, 18 May 2007 03:46:31 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4I3kUFn019679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 17 May 2007 20:46:31 -0700 X-Auth-Received: from [192.168.10.45] (c-67-174-148-212.hsd1.ca.comcast.net [67.174.148.212]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4I3kUKB005445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 17 May 2007 20:46:30 -0700 Message-ID: <464D2195.3020309@u.washington.edu> Date: Thu, 17 May 2007 20:46:29 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> <1179214317.1791.38.camel@zoot.mintel.co.uk> <464969B3.3050306@u.washington.edu> <20070515213026.GI1017@dwpc.dwlabs.ca> In-Reply-To: <20070515213026.GI1017@dwpc.dwlabs.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.17.202834 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 03:46:31 -0000 Duane Whitty wrote: > On Tuesday, 15 May 2007 at 1:05:07 -0700, Garrett Cooper wrote: >> Tom Evans wrote: >>> On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: >>>> Ruby's nice, but it's built on Perl so I have suspicions on its overall >>>> usability / speed given my experience with Perl over the past 4 months >>>> daily for work :(.. Ruby's just the new big thing for programming >>>> languages, so everyone's into it. Kind of like how Java was compared to >>>> C/C++ a few years back. But once everything dies down people will >>>> realize that they'll still have to program in C/C++/Perl for real-world >>>> applications. >>>> >>>> Python seems better than Ruby from what I can see, but I really don't >>>> like the mandatory indentation thing. Ew.. >>>> >>> Rubies are better Perls. That's the only connection between the two. One >>> day, a Japanese programmer got fed up with Perl, and wrote a better >>> language (for varying meanings of better). >>> >>> Its not based or built on Perl in any respect. >>> >>> Python and Ruby both have the same targets; to speed development time >>> and increase programmer productivity. >> But one must make a Perl before one can make a Ruby. Maybe that was what >> I was trying to aim for. >> >> Ruby's nice, but it seems like it's going to be a bit passe in a few >> years like Java was for compilable / interpretable languages. >> >> -Garrett > > None of this matters > > > My only point is that if you need something quick to explore the format of > pkgdb.db or INDEX.db you are pretty well assured of finding a tool you > can work with; Perl, Python, or Ruby. If these aren't sufficient use C. > > The pkg_* tools are written in C so in C they will be modified; but no > harm in doing initial exploration and prototyping with something else. > > Let's stay focused! > > Duane Ok, finally dumped the full database. Will analyze closely later on tonight. Cheers, -Garrett PS If you installed ruby-bdb, simply running "make config" in the ports-mgmt/portupgrade directory and selecting ruby-bdb1 won't do. You have to go into databases/ruby-bdb, do make deinstall, then go to databases/ruby-bdb1 and do make install, or something similar. From owner-freebsd-hackers@FreeBSD.ORG Fri May 18 10:38:54 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A45CC16A405 for ; Fri, 18 May 2007 10:38:54 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 5980513C465 for ; Fri, 18 May 2007 10:38:54 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so208338and for ; Fri, 18 May 2007 03:38:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=of33Fn4tEQbX5lT1DwCOcYEIn9TavYioGL6ptSuSJ2ODz7DD3bSa0W9xxYKzHk8bVAmmce8GdxD5eSXWI1p2wmS8KrW6YAQNuMRkedo+Z4nfRbSM2p16Kz0I4d8R+K1+No+AAewvloQ78LAzuOs46IL5hc7IfG2dzkjJpQX6EL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=VzgjTK6yuGPgoPlEFWgMJThYph3tV8LLJFOWaWpxokxY2bHTtYB3D2abtrL7CHTuPxnGyN74KfP3016Vy6CB44IEViybbuAVJ4xazrlItg7KanRaiiC4AvhMkORnn9MAwU08k+Oc5pitVzJM4YH3boAJxaLE3FarOhzEGLUWMjA= Received: by 10.100.171.16 with SMTP id t16mr1015080ane.1179484733345; Fri, 18 May 2007 03:38:53 -0700 (PDT) Received: by 10.100.109.2 with HTTP; Fri, 18 May 2007 03:38:53 -0700 (PDT) Message-ID: Date: Fri, 18 May 2007 12:38:53 +0200 From: "Harald Servat" To: freebsd-hackers@freebsd.org, freebsd-performance@freebsd.org, freebsd-hpc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: PAPI for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 10:38:54 -0000 Hello, I'm working on the port of PAPI (Performance API) library to FreeBSD using Joseph Koshy's hwpmc / libpmc (see hwpmc(4) / pmc(3)). From the PAPI homepage: PAPI aims to provide the tool designer and application engineer with a consistent interface and methodology for use of the performance counter hardware found in most major microprocessors. PAPI enables software engineers to see, in near real time, the relation between software performance and processor events. I'm searching some testers for my first version of the port because I'm only able to test it on my laptop (FreeBSD 6.2 / Pentium M) and it would be great to test it in other kind of processors (now it's only supported on Pentium 2/3/4/Celeron AMD K7/8) before releasing it (and providing my patches to PAPI developers). Anyone interested on doing this test, please, send me an email and I'll reply you with some instructions to follow. Thank you very much. -- _________________________________________________________________ Empty your memory, with a free()... like a pointer! If you cast a pointer to an integer, it becomes an integer, if you cast a pointer to a struct, it becomes a struct. The pointer can crash..., and can overflow. Be a pointer my friend... From owner-freebsd-hackers@FreeBSD.ORG Fri May 18 08:02:41 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD14E16A400 for ; Fri, 18 May 2007 08:02:41 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 6F05913C46C for ; Fri, 18 May 2007 08:02:41 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so200025and for ; Fri, 18 May 2007 01:02:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=jiUTI52VJOcrq2wo0j9L4Nxse8ckMkbAOSUMgL1MjlDT2Qkt3lKW1spEqzpe3RWrOLSmt3TEwbdM1SdRu/+R2pK0OpZwfrkHRinvo/JiPJpFzxeDkSELhQqiar5Z19XKi4MpREueqPRFVFpztkR9ZvHnSx1G/lWFgyMZCQYecaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=HFGP+3rbpMLVUJdRP3uH9Q5aJTlW1Eqe0OyUhj9y+KzVLRhXkzBV8ZZKvMHURM3qIvOiZfEx8yLdQlxM5IVmiFSz2Bxl5pGazDFsdjp7C03sUEz/M+RM1dUSYfqWgaguhQi/RP2uH3HzxL0XnPcSEWS6nAHgjTCPVqhvJTiIRL4= Received: by 10.100.47.9 with SMTP id u9mr901425anu.1179473898539; Fri, 18 May 2007 00:38:18 -0700 (PDT) Received: by 10.100.109.2 with HTTP; Fri, 18 May 2007 00:38:18 -0700 (PDT) Message-ID: Date: Fri, 18 May 2007 09:38:18 +0200 From: "Harald Servat" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 18 May 2007 11:58:50 +0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: PAPI for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 08:02:41 -0000 Hello, I'm working on the port of PAPI (Performance API) library to FreeBSD using Joseph Koshy's hwpmc / libpmc (see hwpmc(4) / pmc(3)). From the PAPI homepage: PAPI aims to provide the tool designer and application engineer with a consistent interface and methodology for use of the performance counter hardware found in most major microprocessors. PAPI enables software engineers to see, in near real time, the relation between software performance and processor events. I'm searching some testers for my first version of the port because I'm only able to test it on my laptop (FreeBSD 6.2 / Pentium M) and it would be great to test it in other kind of processors (now it's only supported on Pentium 2/3/4/Celeron AMD K7/8) before releasing it (and providing my patches to PAPI developers). Anyone interested on doing this test, please, send me an email and I'll reply you with some instructions to follow. Thank you very much. -- _________________________________________________________________ Empty your memory, with a free()... like a pointer! If you cast a pointer to an integer, it becomes an integer, if you cast a pointer to a struct, it becomes a struct. The pointer can crash..., and can overflow. Be a pointer my friend... From owner-freebsd-hackers@FreeBSD.ORG Fri May 18 12:00:12 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1294216A411 for ; Fri, 18 May 2007 12:00:12 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.freebsd.org (Postfix) with ESMTP id 800E613C43E for ; Fri, 18 May 2007 12:00:11 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (c-82-192-240-247.customer.ggaweb.ch [82.192.240.247]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id l4IC08Fa011046; Fri, 18 May 2007 14:00:09 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id E81152E225; Fri, 18 May 2007 14:00:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VQaPtplDPjIN; Fri, 18 May 2007 14:00:00 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id AC0742E224; Fri, 18 May 2007 14:00:00 +0200 (CEST) From: Benjamin Lutz To: freebsd-hackers@freebsd.org Date: Fri, 18 May 2007 13:59:47 +0200 User-Agent: KMail/1.9.5 References: In-Reply-To: X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"=?utf-8?q?=5F+=0A=09R2?=@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@=?utf-8?q?g=3F=0A=094f?=,\c7|Ghwb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6522114.d7F3PhgNmz"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200705181359.59883.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.61 on 213.160.40.60 Cc: freebsd-performance@freebsd.org, freebsd-hpc@freebsd.org, Harald Servat Subject: Re: PAPI for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 12:00:12 -0000 --nextPart6522114.d7F3PhgNmz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 18 May 2007 12:38, Harald Servat wrote: > I'm searching some testers for my first version of the port because > I'm only able to test it on my laptop (FreeBSD 6.2 / Pentium M) and > it would be great to test it in other kind of processors (now it's > only supported on Pentium 2/3/4/Celeron AMD K7/8) before releasing it > (and providing my patches to PAPI developers). > Anyone interested on doing this test, please, send me an email and > I'll reply you with some instructions to follow. I've got a Core 2 Duo/Asus P5B Deluxe system here running FreeBSD 6.2=20 here. If that's useful to you I'm willing to do some tests. Cheers Benjamin --nextPart6522114.d7F3PhgNmz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGTZU/zZEjpyKHuQwRAkNfAJ99596GIKFA1BFPhk6y3TWT/SbzJwCdGx53 DoG+Lu0AJIKsE/skqpWw6HQ= =Sz0e -----END PGP SIGNATURE----- --nextPart6522114.d7F3PhgNmz-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 18 13:24:49 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A931216A402 for ; Fri, 18 May 2007 13:24:49 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 60D2613C448 for ; Fri, 18 May 2007 13:24:49 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so219242and for ; Fri, 18 May 2007 06:24:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=pe0fBzuNHhmZ7V2XDCgMFJJeywLyZPOn1OwHxXb6vNJOWNemQ94RQT1Oxlk3HZADbunCk7C1kwZMUm+A3r2eAZ8PmuiJTsRgfNgMGJMuuVVlRQWgCwFGRZ5hk8dudNIflt9mBT6o0bxrGbR9iTR4MSQuXrz4V5QBuRsmek9e/jc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=nLoWa9GwdZHPxs3JuAzUkoci4g7Kxwhm/f4RLu+oCHOv7Z59pNGPeeg+A7Ib8ungad3T5wMyKsR5rKli1sCOiYUlLwrqOt/pwdSh5oGLh0g8k2mjLIDLcizfnZ6st3wCEKLyAvEK9FU4MXbPlC2nvHBf/wsxJpNvnF/NoA9pe+Q= Received: by 10.100.35.17 with SMTP id i17mr1116528ani.1179494688673; Fri, 18 May 2007 06:24:48 -0700 (PDT) Received: by 10.100.109.2 with HTTP; Fri, 18 May 2007 06:24:48 -0700 (PDT) Message-ID: Date: Fri, 18 May 2007 15:24:48 +0200 From: "Harald Servat" To: "Benjamin Lutz" In-Reply-To: <200705181359.59883.mail@maxlor.com> MIME-Version: 1.0 References: <200705181359.59883.mail@maxlor.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, freebsd-performance@freebsd.org, freebsd-hpc@freebsd.org Subject: Re: PAPI for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 13:24:49 -0000 I'm sorry Benjamin, but libpmc/hwpmc (and my version of PAPI by extension) does not support Core Duo processors nowadays. Maybe Joseph Koshy (the person who is responsible for libpmc/hwpmc) could give you some info on what he needs to support them. Thank you, 2007/5/18, Benjamin Lutz : > > On Friday 18 May 2007 12:38, Harald Servat wrote: > > I'm searching some testers for my first version of the port because > > I'm only able to test it on my laptop (FreeBSD 6.2 / Pentium M) and > > it would be great to test it in other kind of processors (now it's > > only supported on Pentium 2/3/4/Celeron AMD K7/8) before releasing it > > (and providing my patches to PAPI developers). > > Anyone interested on doing this test, please, send me an email and > > I'll reply you with some instructions to follow. > > I've got a Core 2 Duo/Asus P5B Deluxe system here running FreeBSD 6.2 > here. If that's useful to you I'm willing to do some tests. > > Cheers > Benjamin > > -- _________________________________________________________________ Empty your memory, with a free()... like a pointer! If you cast a pointer to an integer, it becomes an integer, if you cast a pointer to a struct, it becomes a struct. The pointer can crash..., and can overflow. Be a pointer my friend... From owner-freebsd-hackers@FreeBSD.ORG Fri May 18 23:45:36 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 53D2416A401 for ; Fri, 18 May 2007 23:45:36 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id 1340813C45A for ; Fri, 18 May 2007 23:45:35 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so265054and for ; Fri, 18 May 2007 16:45:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=ImQ0gRHg0Zpkmke40kaKE4j4IdKmejuVxN0z8xkiqbTGwtgqZpPOwtvpvbiqDZzVWWRVfYAXBJPRp+nMGMf9j1hJqU+3yHmL5rcrTZW1rRzTZR73j1DpkHlFnphxbhqB/IfCCKkdB9ZrTn9ICBMVFTIinzi0qhT7CANl0d2rg98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=UgdNA6N4eYm6S5inWgYTtcPO/xZh+MPECFaAftZlUOSEBovWpGTxxbHqUDu3BodfowFXA75gr3wfUEJfbcPMsY/VcU1fOnSfpIZu/AsLeO8A1PFpfaRPml5jAIrcUh00ay9kRSTBAwHLX/voRPnkjYLLrBaNn4zYX63ZS5B/V9Q= Received: by 10.100.142.12 with SMTP id p12mr1443841and.1179530413624; Fri, 18 May 2007 16:20:13 -0700 (PDT) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id b3sm5678777ana.2007.05.18.16.20.12; Fri, 18 May 2007 16:20:12 -0700 (PDT) Date: Fri, 18 May 2007 19:20:07 -0400 From: Alexander Kabaev To: current@FreeBSD.ORG, hackers@FreeBSD.ORG Message-ID: <20070518192007.6e6a91e1@kan.dnsalias.net> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_riTKINCVFDCBF/8dDeSyyFQ"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: Subject: HEADS UP: GCC 4.2.0 is coming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 23:45:36 -0000 --Sig_riTKINCVFDCBF/8dDeSyyFQ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable HEADS UP: I will start importing GCC 4.2.0 bits in about one hour and plan to finish in a couple of hours after that. The src/ tree will be utterly broken meanwhile. I'll send an 'all clear' message when done. --=20 Alexander Kabaev --Sig_riTKINCVFDCBF/8dDeSyyFQ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGTjSnQ6z1jMm+XZYRAkqsAJ9z4q/QJ3/PoEjfXLj35zoZHUnAngCgxs4J 5CPVpGYXrqSyzVHPikei88A= =rCII -----END PGP SIGNATURE----- --Sig_riTKINCVFDCBF/8dDeSyyFQ-- From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 06:20:22 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9515B16A403 for ; Sat, 19 May 2007 06:20:22 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 49AB413C48A for ; Sat, 19 May 2007 06:20:22 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1074133wxc for ; Fri, 18 May 2007 23:20:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=ToC3MRIHpr3wDr6FYN+UBJUDrbfj6p4zNz+BM+hMFxLpPKgWqUEMip8uq6mCtJ511iCXvwwim/NsnAFjZMRQkQApsNBZeGfBhoz4VrbD09BwozeZ71zfSmrhKTYIchJIrXygJc/vtc3mQPJS0fzD/mQnz0zb02y3wQBraVSHJFs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=O6ovykP5JmJQ0t3IbIqLotCzk27Ja9vyNGsVVLFq2c95dGzyM6lKoehyfDZOjFa1UsbgZ05gr1oRqo3CppteVFvmOywSybFSPJ3bdfDx8MN7x3Qeesg/UNeUvWBnJjUHm+E7hl9zY7x0K8qFlBMbe4HV2gheZdCGwGr/bHwdnkk= Received: by 10.90.115.4 with SMTP id n4mr2473648agc.1179555621730; Fri, 18 May 2007 23:20:21 -0700 (PDT) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id 7sm4895511agd.2007.05.18.23.20.20; Fri, 18 May 2007 23:20:20 -0700 (PDT) Date: Sat, 19 May 2007 02:20:16 -0400 From: Alexander Kabaev Message-ID: <20070519022016.2b4a6bda@kan.dnsalias.net> In-Reply-To: <20070518192007.6e6a91e1@kan.dnsalias.net> References: <20070518192007.6e6a91e1@kan.dnsalias.net> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_cxI6WY4jJ32hO9h4hPlKEGR; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: hackers@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: HEADS UP: GCC 4.2.0 is coming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 06:20:22 -0000 --Sig_cxI6WY4jJ32hO9h4hPlKEGR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 18 May 2007 19:20:07 -0400 Alexander Kabaev wrote: > HEADS UP: I will start importing GCC 4.2.0 bits in about one hour and > plan to finish in a couple of hours after that. >=20 > The src/ tree will be utterly broken meanwhile. I'll send an 'all > clear' message when done. Done. --=20 Alexander Kabaev --Sig_cxI6WY4jJ32hO9h4hPlKEGR Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGTpcgQ6z1jMm+XZYRAuGMAKDoIj3g6hTFtd7fOm8U81SBOPVz9wCg2uwh xhCI/QICJJ6zWKkYDH3AduE= =qPJ4 -----END PGP SIGNATURE----- --Sig_cxI6WY4jJ32hO9h4hPlKEGR-- From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 07:38:34 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17D6D16A404 for ; Sat, 19 May 2007 07:38:34 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id C794C13C469 for ; Sat, 19 May 2007 07:38:33 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so277858and for ; Sat, 19 May 2007 00:38:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=VQ1y2uIlG6Fn8BdFuadIuOMPTqJurZOKN3X8AypyVQxffXQ9Ways3ZivNAtCFMnkBMYJwyRx27yubczaU52LPFnjHZfO7oC1oLfAcjYkiO7Ji8obK03C+5vNZCmLDB/ynP/AjFalC1pBnN7rdF3AuLSvTqyOXUZmPOweSNrx200= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=J3VkoIUe4T4OINJ3Mvyv+MhCbAO8Wu+ppwaCU/krdaraxSuID36kBOaMlg2gT0DmTJ0+DG1bG6Rxjvvjm4N1JSCUaZ3W7E0xmxtf0uQdwHIL421gTKOkFEUiFDCW59Dij8lL3kLIssInnrkCbZPz4qNNygnMBq/rCB4PcktcB18= Received: by 10.100.189.17 with SMTP id m17mr1635171anf.1179560313216; Sat, 19 May 2007 00:38:33 -0700 (PDT) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id d19sm6245874and.2007.05.19.00.38.32; Sat, 19 May 2007 00:38:32 -0700 (PDT) Date: Sat, 19 May 2007 03:38:27 -0400 From: Alexander Kabaev To: Jeremie Le Hen Message-ID: <20070519033827.22eecb6a@kan.dnsalias.net> In-Reply-To: <20070519073151.GE46044@obiwan.tataz.chchile.org> References: <20070518192007.6e6a91e1@kan.dnsalias.net> <20070519022016.2b4a6bda@kan.dnsalias.net> <20070519073151.GE46044@obiwan.tataz.chchile.org> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_RrefAlFlB98OsstXvNTzVKa; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: hackers@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: HEADS UP: GCC 4.2.0 is coming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 07:38:34 -0000 --Sig_RrefAlFlB98OsstXvNTzVKa Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 19 May 2007 09:31:51 +0200 Jeremie Le Hen wrote: > On Sat, May 19, 2007 at 02:20:16AM -0400, Alexander Kabaev wrote: > > On Fri, 18 May 2007 19:20:07 -0400 > > Alexander Kabaev wrote: > >=20 > > > HEADS UP: I will start importing GCC 4.2.0 bits in about one hour > > > and plan to finish in a couple of hours after that. > > >=20 > > > The src/ tree will be utterly broken meanwhile. I'll send an 'all > > > clear' message when done. > >=20 > > Done. >=20 > Many thanks for this work, this is invaluable! >=20 > Best regards, > --=20 > Jeremie Le Hen > < jeremie at le-hen dot org >< ttz at chchile dot org > NOTE: At this time upgrades from pre-symver enabled systems appear to be broken. You need to build and install world for any time past 2007-05-13 14:12:41 UTC and only then jump to 4.2. The fix will be committed tomorrow. --=20 Alexander Kabaev --Sig_RrefAlFlB98OsstXvNTzVKa Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGTqlzQ6z1jMm+XZYRAiKSAKCihSJcQYbIV0KA4ryRgtYlPvhZggCdFfXI Bt5EKxULIowWkMQYPZiheUI= =rkOv -----END PGP SIGNATURE----- --Sig_RrefAlFlB98OsstXvNTzVKa-- From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 08:01:27 2007 Return-Path: X-Original-To: hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5DF6416A401; Sat, 19 May 2007 08:01:27 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id 1879F13C45E; Sat, 19 May 2007 08:01:26 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by postfix2-g20.free.fr (Postfix) with ESMTP id 936D2105E65A; Sat, 19 May 2007 08:32:12 +0200 (CEST) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 393FF43CD0; Sat, 19 May 2007 09:31:43 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id D529A9B4C8; Sat, 19 May 2007 07:31:51 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id C12F9405B; Sat, 19 May 2007 09:31:51 +0200 (CEST) Date: Sat, 19 May 2007 09:31:51 +0200 From: Jeremie Le Hen To: Alexander Kabaev Message-ID: <20070519073151.GE46044@obiwan.tataz.chchile.org> References: <20070518192007.6e6a91e1@kan.dnsalias.net> <20070519022016.2b4a6bda@kan.dnsalias.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070519022016.2b4a6bda@kan.dnsalias.net> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: hackers@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: HEADS UP: GCC 4.2.0 is coming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 08:01:27 -0000 On Sat, May 19, 2007 at 02:20:16AM -0400, Alexander Kabaev wrote: > On Fri, 18 May 2007 19:20:07 -0400 > Alexander Kabaev wrote: > > > HEADS UP: I will start importing GCC 4.2.0 bits in about one hour and > > plan to finish in a couple of hours after that. > > > > The src/ tree will be utterly broken meanwhile. I'll send an 'all > > clear' message when done. > > Done. Many thanks for this work, this is invaluable! Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 18:03:57 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E634D16A46B for ; Sat, 19 May 2007 18:03:57 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout05.yourhostingaccount.com (mailout05.yourhostingaccount.com [65.254.253.41]) by mx1.freebsd.org (Postfix) with ESMTP id B2C9413C457 for ; Sat, 19 May 2007 18:03:57 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailscan26.yourhostingaccount.com ([10.1.15.26] helo=mailscan26.yourhostingaccount.com) by mailout05.yourhostingaccount.com with esmtp (Exim) id 1HpSoB-0005V7-UN for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] ident=exim) by mailscan26.yourhostingaccount.com with spamscanlookuphost (Exim) id 1HpSoB-00051o-N3 for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] helo=authsmtp09.yourhostingaccount.com) by mailscan26.yourhostingaccount.com with esmtp (Exim) id 1HpSoB-00051k-Fk for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -0400 Received: from cpe-65-185-51-114.columbus.res.rr.com ([65.185.51.114] helo=vixen42) by authsmtp09.yourhostingaccount.com with esmtpa (Exim) id 1HpSoB-0005D3-6W for hackers@FreeBSD.ORG; Sat, 19 May 2007 13:33:35 -0400 Date: Sat, 19 May 2007 13:35:57 -0400 From: "Zane C.B." To: hackers@FreeBSD.ORG Message-ID: <20070519133557.4dbe3751@vixen42> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_IGfSkri3/Pgp90sZhdxyTFz" X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: "Zane C.B." X-EN-OrigIP: 65.185.51.114 X-EN-OrigHost: cpe-65-185-51-114.columbus.res.rr.com Cc: Subject: pam_exec patch and mount_smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 18:03:58 -0000 --MP_IGfSkri3/Pgp90sZhdxyTFz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Figured some one may find this interesting. The patch modifies pam_exec to export PAM_AUTHTOK as a environmental variable. I am currently working on modifying mount_smbfs to be able to use a specified environmental variable password instead of asking for one. The purpose of this is to be able to use pam_exec to be able to mount a user's home directory from samba. --MP_IGfSkri3/Pgp90sZhdxyTFz Content-Type: text/x-patch; name=pam_exec.c.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=pam_exec.c.diff --- pam_exec.c.orig Sat May 19 12:51:42 2007 +++ pam_exec.c Sat May 19 12:56:50 2007 @@ -57,6 +57,7 @@ ENV_ITEM(PAM_TTY), ENV_ITEM(PAM_RHOST), ENV_ITEM(PAM_RUSER), + ENV_ITEM(PAM_AUTHTOK), }; static int --MP_IGfSkri3/Pgp90sZhdxyTFz-- From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 19:28:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D6DA16A4DC for ; Sat, 19 May 2007 19:28:29 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 1426413C4C1 for ; Sat, 19 May 2007 19:28:29 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4JJSQPg016537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 19 May 2007 12:28:26 -0700 X-Auth-Received: from [192.168.10.45] (c-67-166-149-71.hsd1.ca.comcast.net [67.166.149.71]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4JJSQwb008881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 19 May 2007 12:28:26 -0700 Message-ID: <464F4FD9.9020308@u.washington.edu> Date: Sat, 19 May 2007 12:28:25 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070513040651.GB1017@dwpc.dwlabs.ca> <4647F627.7020408@u.washington.edu> <20070514202922.GF1017@dwpc.dwlabs.ca> <4649426F.8050601@u.washington.edu> <1179214317.1791.38.camel@zoot.mintel.co.uk> <464969B3.3050306@u.washington.edu> <20070515213026.GI1017@dwpc.dwlabs.ca> <464D2195.3020309@u.washington.edu> In-Reply-To: <464D2195.3020309@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.19.121135 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: SoC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 19:28:29 -0000 Garrett Cooper wrote: > Duane Whitty wrote: >> On Tuesday, 15 May 2007 at 1:05:07 -0700, Garrett Cooper wrote: >>> Tom Evans wrote: >>>> On Mon, 2007-05-14 at 22:17 -0700, Garrett Cooper wrote: >>>>> Ruby's nice, but it's built on Perl so I have suspicions on its >>>>> overall usability / speed given my experience with Perl over the >>>>> past 4 months daily for work :(.. Ruby's just the new big thing for >>>>> programming languages, so everyone's into it. Kind of like how Java >>>>> was compared to C/C++ a few years back. But once everything dies >>>>> down people will realize that they'll still have to program in >>>>> C/C++/Perl for real-world applications. >>>>> >>>>> Python seems better than Ruby from what I can see, but I really >>>>> don't like the mandatory indentation thing. Ew.. >>>>> >>>> Rubies are better Perls. That's the only connection between the two. >>>> One >>>> day, a Japanese programmer got fed up with Perl, and wrote a better >>>> language (for varying meanings of better). >>>> >>>> Its not based or built on Perl in any respect. >>>> >>>> Python and Ruby both have the same targets; to speed development time >>>> and increase programmer productivity. >>> But one must make a Perl before one can make a Ruby. Maybe that was >>> what I was trying to aim for. >>> >>> Ruby's nice, but it seems like it's going to be a bit passe in a few >>> years like Java was for compilable / interpretable languages. >>> >>> -Garrett > > >> None of this matters >> >> >> My only point is that if you need something quick to explore the >> format of >> pkgdb.db or INDEX.db you are pretty well assured of finding a tool you >> can work with; Perl, Python, or Ruby. If these aren't sufficient use C. >> >> The pkg_* tools are written in C so in C they will be modified; but no >> harm in doing initial exploration and prototyping with something else. >> >> Let's stay focused! >> >> Duane > > Ok, finally dumped the full database. Will analyze closely later on > tonight. > > Cheers, > -Garrett > > PS If you installed ruby-bdb, simply running "make config" in the > ports-mgmt/portupgrade directory and selecting ruby-bdb1 won't do. You > have to go into databases/ruby-bdb, do make deinstall, then go to > databases/ruby-bdb1 and do make install, or something similar. If you haven't seen my entry yet, and you're interested, I've posted my analysis of the INDEX-*.db file at: . I'd like to really discuss the additional metadata that gets tacked onto each database file, in particular, is it necessary, and is there a better way to do that? Also, the whole Ruby ports tools writing to the ports db consistently instead of at exit is another item which probably should be discussed too (someone brought this up earlier). Thanks, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 22:05:24 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C23CE16A469 for ; Sat, 19 May 2007 22:05:24 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout18.yourhostingaccount.com (mailout18.yourhostingaccount.com [65.254.253.150]) by mx1.freebsd.org (Postfix) with ESMTP id 7AA5413C448 for ; Sat, 19 May 2007 22:05:24 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailscan54.yourhostingaccount.com ([10.1.15.54] helo=mailscan54.yourhostingaccount.com) by mailout18.yourhostingaccount.com with esmtp (Exim) id 1HpX3D-0004zt-CL for hackers@FreeBSD.ORG; Sat, 19 May 2007 18:05:23 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] ident=exim) by mailscan54.yourhostingaccount.com with spamscanlookuphost (Exim) id 1HpX3D-0001aJ-5p for hackers@FreeBSD.ORG; Sat, 19 May 2007 18:05:23 -0400 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] helo=authsmtp09.yourhostingaccount.com) by mailscan54.yourhostingaccount.com with esmtp (Exim) id 1HpX3C-0001a5-Em; Sat, 19 May 2007 18:05:22 -0400 Received: from cpe-65-185-51-114.columbus.res.rr.com ([65.185.51.114] helo=vixen42) by authsmtp09.yourhostingaccount.com with esmtpa (Exim) id 1HpX3C-0002Ic-6j; Sat, 19 May 2007 18:05:22 -0400 Date: Sat, 19 May 2007 18:07:44 -0400 From: "Zane C.B." To: Nikolay Pavlov Message-ID: <20070519180744.25fc128e@vixen42> In-Reply-To: <20070519214518.GA55896@zone3000.net> References: <20070519133557.4dbe3751@vixen42> <20070519214518.GA55896@zone3000.net> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: "Zane C.B." X-EN-OrigIP: 65.185.51.114 X-EN-OrigHost: cpe-65-185-51-114.columbus.res.rr.com Cc: hackers@FreeBSD.ORG Subject: Re: pam_exec patch and mount_smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 22:05:24 -0000 On Sun, 20 May 2007 00:45:18 +0300 Nikolay Pavlov wrote: > On Saturday, 19 May 2007 at 13:35:57 -0400, Zane C.B. wrote: > > Figured some one may find this interesting. The patch modifies > > pam_exec to export PAM_AUTHTOK as a environmental variable. > > > > I am currently working on modifying mount_smbfs to be able to use > > a specified environmental variable password instead of asking for > > one. > > > > The purpose of this is to be able to use pam_exec to be able to > > mount a user's home directory from samba. > > > --- pam_exec.c.orig Sat May 19 12:51:42 2007 > > +++ pam_exec.c Sat May 19 12:56:50 2007 > > @@ -57,6 +57,7 @@ > > ENV_ITEM(PAM_TTY), > > ENV_ITEM(PAM_RHOST), > > ENV_ITEM(PAM_RUSER), > > + ENV_ITEM(PAM_AUTHTOK), > > }; > > > > static int > > Hi Zane. The is a pam module for exactly this purposes: > > http://pam-mount.sourceforge.net/ Cool. :) I will take a look at it and look at submitting it as a port since it is not already in there. Thanks for the heads up. A few hours ago, I also submitted patch as a PR after updating the man page to reflect it. http://www.freebsd.org/cgi/query-pr.cgi?pr=112794 if any one is interested. From owner-freebsd-hackers@FreeBSD.ORG Sat May 19 22:13:51 2007 Return-Path: X-Original-To: hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF63316A421 for ; Sat, 19 May 2007 22:13:51 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.freebsd.org (Postfix) with SMTP id 9066713C46A for ; Sat, 19 May 2007 22:13:51 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from zone3000.kharkov.ua (HELO localhost) (217.144.69.37) by 209.67.61.254 with SMTP; 19 May 2007 21:45:44 -0000 Date: Sun, 20 May 2007 00:45:18 +0300 From: Nikolay Pavlov To: "Zane C.B." Message-ID: <20070519214518.GA55896@zone3000.net> References: <20070519133557.4dbe3751@vixen42> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070519133557.4dbe3751@vixen42> X-Operating-System: FreeBSD 6.1-RELEASE-p10 User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: hackers@FreeBSD.ORG Subject: Re: pam_exec patch and mount_smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 22:13:52 -0000 On Saturday, 19 May 2007 at 13:35:57 -0400, Zane C.B. wrote: > Figured some one may find this interesting. The patch modifies > pam_exec to export PAM_AUTHTOK as a environmental variable. > > I am currently working on modifying mount_smbfs to be able to use a > specified environmental variable password instead of asking for one. > > The purpose of this is to be able to use pam_exec to be able to mount > a user's home directory from samba. > --- pam_exec.c.orig Sat May 19 12:51:42 2007 > +++ pam_exec.c Sat May 19 12:56:50 2007 > @@ -57,6 +57,7 @@ > ENV_ITEM(PAM_TTY), > ENV_ITEM(PAM_RHOST), > ENV_ITEM(PAM_RUSER), > + ENV_ITEM(PAM_AUTHTOK), > }; > > static int Hi Zane. The is a pam module for exactly this purposes: http://pam-mount.sourceforge.net/ -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================