pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox build error gtk/gtk.h not found



Am 24.05.2019 um 15:04 schrieb Mayuresh:
> How do I identify packages to delete so that I can build my own?

Every installed package has a +BUILD_INFO file in var/db/pkg. These
files contain two interesting lines:

* PKG_OPTIONS
* PKGPATH

You could do something like this:

for pkg in $(pkg_info | awk '{print $1}'); do
  installed_pkg_options=$(the PKG_OPTIONS from +BUILD_INFO)
  pkgpath=$(the PKGPATH from +BUILD_INFO)
  src_pkg_options=$(cd $pkgsrc/$pkgpath && bmake show-var
VARNAME=PKG_OPTIONS)

  if [ "$src_pkg_options" != "$installed_pkg_options" ]; then
    echo "maybe rebuild $pkg in $pkgpath"
  fi
done


Home | Main Index | Thread Index | Old Index