From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 26 23:44:48 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8F61F4D; Sun, 26 Oct 2014 23:44:48 +0000 (UTC) Received: from mail-yh0-x22f.google.com (mail-yh0-x22f.google.com [IPv6:2607:f8b0:4002:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F95F7E5; Sun, 26 Oct 2014 23:44:48 +0000 (UTC) Received: by mail-yh0-f47.google.com with SMTP id i57so823316yha.20 for ; Sun, 26 Oct 2014 16:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zGghEkumMK5EJXvaD3kV6Zv+qdEsUZSfsJ7aYk1lEMo=; b=PXXTlO1Ojs/TcmNj6w9q8j+IVKP8JbkqRAWs/XVF7yhWG+x/VQPt7tAbD7/X4v6lEG Mrzzb1MQMbubM2C5f60iuM56I8sSPHGosFbpJhjxbeHRN9sxg5j6Z8q6bs+WZEXQPcvd DvHqj9tNbz+GQmFm3pE9/ymAkHo1+LgryOtzPf3Y+kLyKJtnumm2W9RsfuPGsyepbjvN fsiEq8bcqGii5OPM6Qyx5ACV7pRWZ+pYbZTLc2co6c9nTRmGcXbOBLa1Ox71jhuiLXBa wALe/hEouYlfLKIKlIW+shrxPMxaUJliksATBlXazQ7dFakDBGPK9grZrivYoDtRS6N3 ma2A== MIME-Version: 1.0 X-Received: by 10.170.137.193 with SMTP id e184mr18483768ykc.94.1414367087517; Sun, 26 Oct 2014 16:44:47 -0700 (PDT) Received: by 10.170.118.21 with HTTP; Sun, 26 Oct 2014 16:44:47 -0700 (PDT) In-Reply-To: <20141026204803.GB55021@ivaldir.etoilebsd.net> References: <20141026204803.GB55021@ivaldir.etoilebsd.net> Date: Sun, 26 Oct 2014 16:44:47 -0700 Message-ID: Subject: Re: libminipkg in base? From: Mehmet Erol Sanliturk To: Baptiste Daroussin Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2014 23:44:48 -0000 On Sun, Oct 26, 2014 at 1:48 PM, Baptiste Daroussin wrote: > Hi all, > > I have been hacking on snmp_hostres.c to provide the list of packages > again. > > Because pkg is not in base and will never be I have been directly calling > pkg > to gather the list it works pretty well: > https://people.freebsd.org/~bapt/bsnmp-pkg.diff > > after thinking again about it (and discussing with zi@) about it. I start > thinking that a stable libminipkg that will only do the basic stuff which > we > know are stable: > Parsing pkg.conf (to at least be able to discover where the local db > should be > in case it is not in /var/db/pkg) > and provide basic query (name of packages, version, timestamp, etc). > > So any application just willing to do some basic query (hear bsnmpd, > net-snmp > and so) will be able to rely on a stable ABI/API. > > For that I will need to import sqlite into base (which anyway is already > there > hidden in 3 places svnlite, kerberos) and make it a private lib > > Any thought? > Better idea? > > regards, > Bapt > Important problem is "Installation Structure of FreeBSD" : During installs , after bsdinstall , ONLY base is installed and the rest is left to the user . If this part is modified to install a selected number of packages during installation ( by asking to the user or automatically ) to produce an easily usable installed system there is no any need to move such parts into the base . Otherwise , the user is becoming at some points helpless . Thank you very much . Mehmet Erol Sanliturk