Date: Sun, 26 Oct 2014 16:44:47 -0700 From: Mehmet Erol Sanliturk <m.e.sanliturk@gmail.com> To: Baptiste Daroussin <bapt@freebsd.org> Cc: "hackers@freebsd.org" <hackers@freebsd.org> Subject: Re: libminipkg in base? Message-ID: <CAOgwaMtku%2B5To3jCa6HWvmCxFPLKpRDvGycqumcxqJXPTsE79w@mail.gmail.com> In-Reply-To: <20141026204803.GB55021@ivaldir.etoilebsd.net> References: <20141026204803.GB55021@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 26, 2014 at 1:48 PM, Baptiste Daroussin <bapt@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOgwaMtku%2B5To3jCa6HWvmCxFPLKpRDvGycqumcxqJXPTsE79w>