From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 26 20:48:08 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 9C1B2C83 for ; Sun, 26 Oct 2014 20:48:08 +0000 (UTC) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (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 344E53B9 for ; Sun, 26 Oct 2014 20:48:08 +0000 (UTC) Received: by mail-wg0-f51.google.com with SMTP id b13so4339854wgh.22 for ; Sun, 26 Oct 2014 13:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=7lqH10tVOgSIUU8wQpiCxpApjX9VWkLy0cllv6vgibY=; b=ee0KGEb7lzVR9QeDg9z9yG/yXOAHOa53vLCABdkTGis5tFcdLuqDBXVUkQXfs8mwvc /7w5wLpGdd7cJCCU5XEWED8FsU52rMG698hRLRevsEV1PZjGSF/qPoqS0DNYvP8pJwA+ w1oPB4DjnQT1cD0jfzAs7w6N4hpUIWls99hlXKk0giBBts67aelz8e1N6ubKsgHGBsGL DUIEdw8XL3+kdw9t4JAKpAeANI4Fmq4pufuU98owDD4OiRpyr2bJPc1Ccx+8cf3n0E5A aOn5Gx2sYBqEDgL9/mkBQRF3Q/QfcII/puntV40PaKsPvK9n2YvPqMMspI1+pHC6x4ax BCyQ== X-Received: by 10.180.219.66 with SMTP id pm2mr11923794wic.5.1414356486436; Sun, 26 Oct 2014 13:48:06 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id cw6sm13241501wjb.18.2014.10.26.13.48.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Oct 2014 13:48:05 -0700 (PDT) Sender: Baptiste Daroussin Date: Sun, 26 Oct 2014 21:48:03 +0100 From: Baptiste Daroussin To: hackers@FreeBSD.org Subject: libminipkg in base? Message-ID: <20141026204803.GB55021@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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 20:48:08 -0000 --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlRNXgMACgkQ8kTtMUmk6EzOIQCfconSYchXBykxZpmluIxT5qo8 vL8An2dYx+hGhYQXiJBg6/CGwNkftJsW =O0gz -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM--