pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to check which dependencies are missing?
On Fri, 20 Sep 2019 at 15:22, Ottavio Caruso
<ottavio2006-usenet2012%yahoo.com@localhost> wrote:
>
> On Fri, 20 Sep 2019 at 14:55, Jason Bacon <outpaddling%yahoo.com@localhost> wrote:
> >
> > On 2019-09-20 05:21, Ottavio Caruso wrote:
> > > Hi all,
> > >
> > > '[b]make show-depends' prints a list of dependencies for a package.
> > >
> > > Is there a target that shows which of these dependencies have already
> > > been installed and which haven't?
> >
> > If there is, it's not listed on https://wiki.netbsd.org/pkgsrc/targets/.
>
> I'll have to write a shell script for that.
I guess a rudimentary starting point could be this:
check-depends ()
{
for DEP in $(bmake show-depends|cut -f1 -d">");
do
pkg_info -E $DEP || echo "$DEP: <NOT INSTALLED>";
done
}
$ cd pkgsrc/current/pkgsrc/www/liferea
$ check-depends
sqlite3-3.28.0
glib2-2.60.2nb1
libpeas: <NOT INSTALLED>
gobject-introspection-1.60.1nb1
gtk3+: <NOT INSTALLED>
hicolor-icon-theme-0.17
desktop-file-utils-0.23nb1
libnotify: <NOT INSTALLED>
gsettings-desktop-schemas: <NOT INSTALLED>
libxml2-2.9.9
libxslt-1.1.33
webkit-gtk: <NOT INSTALLED>
libSM-1.2.3
json-glib: <NOT INSTALLED>
I'm not sure what the difference is between "pkg_info -E $DEP" and
"pkg_info -e $DEP"
(capital E vs small e)
The result seems to be the same.
--
Ottavio Caruso
Home |
Main Index |
Thread Index |
Old Index