From owner-freebsd-ports@FreeBSD.ORG Mon Jan 29 11:53:54 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C2FD16A400 for ; Mon, 29 Jan 2007 11:53:54 +0000 (UTC) (envelope-from infofarmer@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 F13C913C474 for ; Mon, 29 Jan 2007 11:53:53 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so467849ana for ; Mon, 29 Jan 2007 03:53:53 -0800 (PST) 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=b888rsZI08ASeYpFCqV9GWwxchWhmAPSYBPgecsN3ninZPumZA3loMOwAHC+XnisWn8BTehnYq0OchoSdnlFZxjzgV+l8y8J+e/0gQt9lidqM3uLfECn5PpjZVFjKgJr7bIksz2u4CjNh+2g3W2ZZpUu6IRVxAYfWg2ucawKfac= Received: by 10.78.142.14 with SMTP id p14mr2725155hud.1170071621809; Mon, 29 Jan 2007 03:53:41 -0800 (PST) Received: by 10.78.170.11 with HTTP; Mon, 29 Jan 2007 03:53:41 -0800 (PST) Message-ID: Date: Mon, 29 Jan 2007 14:53:41 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Alexander Leidinger" In-Reply-To: <20070129112752.obix02qpk44wgo4o@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070128193804.5b2e09ba@Magellan.Leidinger.net> <20070129112752.obix02qpk44wgo4o@webmail.leidinger.net> X-Google-Sender-Auth: 6095addbaca5010b Cc: FreeBSD Ports Subject: Re: Non-daemon programs requiring kernel modules X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 11:53:54 -0000 On 1/29/07, Alexander Leidinger wrote: > Quoting Andrew Pantyukhin (from Sun, 28 Jan > 2007 21:58:28 +0300): > > > On 1/28/07, Alexander Leidinger wrote: > >> Quoting "Andrew Pantyukhin" (Sun, 28 Jan > >> 2007 18:35:30 +0300): > >> > >>> I'm porting a simple util requiring aio(4). My plan is > >>> to install a wrapper script which includes rc.subr(8) > >>> and uses its required_modules mechanism. > >>> > >>> If anyone has a better idea, please tell me. > >> > >> Just tell at port/package install time the requirement. Every linux > >> program needs the linux module or the corresponding kernel option. If > >> the code is not available at runtime, the user will get an error. Unix > >> is not for dumb people, so I don't think we need this low-level > >> hand-holding. > > > > That's one opinion. But Unix is also not about dumb > > developers. As a ports developer, my job is to make > > it easier for users to run third-party software and > > that's just what I'm trying to do to the extent of > > my skills and motivation... > > I agree, but if you are interested in a general solution, how do you > want to apply it to the linux stuff? See my original message. grep /etc/rc.d for "required_modules". Should we remove all that and just fail when needed modules are not present? The solution is not general, but it helps. I'm always more interested in a small step forward we make than a big leap we discuss.