From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 9 14:36:21 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4094A106566B for ; Fri, 9 Apr 2010 14:36:21 +0000 (UTC) (envelope-from alexanderchuranov@gmail.com) Received: from mail-yx0-f175.google.com (mail-yx0-f175.google.com [209.85.210.175]) by mx1.freebsd.org (Postfix) with ESMTP id EEBDF8FC20 for ; Fri, 9 Apr 2010 14:36:20 +0000 (UTC) Received: by yxe5 with SMTP id 5so556661yxe.3 for ; Fri, 09 Apr 2010 07:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=cI/Uvkh2pLGCnuBOOwQUCzmr0pOAs+ayohF4vPS/RjE=; b=ZdabFibKQDogSeT8sY0tpEycVmPRVTOtDA0Rq18igZQYx4x1KUh1jOaSkEk2aB9Myk p0ZE1X2Wj35kl4ij2Ja4Me9F1jWtHw0XjsICSdaf5q5/YJVu3Xm577awfz8ga+NZ8/nW ABNu/I4KoIdLy1j54ccsju4rRFbZCHJEUwLOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tJj87rRTowkoN8heKTde+chQZsmyZrpyfztQrkN+aJGNRqmDUPS0LZS3Q7kmTD66pt cHXdE6zJIaCh9GUeM/Zn24Oeip3PjDV66eyD+Pjn6JLz8aJjAsEFpxCOruGN9Qn8at2k h+Tp3FxmrCBs5+76czc8PDHurFysuWfQ8XFyc= MIME-Version: 1.0 Received: by 10.90.119.15 with HTTP; Fri, 9 Apr 2010 07:36:17 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Apr 2010 18:36:17 +0400 Received: by 10.90.6.8 with SMTP id 8mr83767agf.68.1270823780180; Fri, 09 Apr 2010 07:36:20 -0700 (PDT) Message-ID: From: Alexander Churanov To: Leinier Cruz Salfran Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers Subject: Re: make pkg_install suite reusable, please 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, 09 Apr 2010 14:36:21 -0000 2010/4/9 Leinier Cruz Salfran > i want to ask you one thing: can you make the 'pkg_install' suite > reusable .. means install 'libinstall.a' as a shared object in order > to make it reusable by others devs > Hi Leinier, I'd like to add my 50 cents. From my point of view, the true UNIX way is re-using whole programs. This provides unbelievable isolation and correctness. If you don't want to fork myriads of processes each second, then, it's, probably, better to ask for pipe mode of pkg_* tools. For example, aspell works that way. You start a process, write commands and queries and read results. Alexander Churanov