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



On Fri, May 24, 2019 at 05:52:13PM +0200, Roland Illig wrote:
> Every installed package has a +BUILD_INFO file in var/db/pkg. These
> files contain two interesting lines:

Many thanks for the hint. Indeed pkg db can be handy in many situations
with a bit of scripting.

Following works for me, sorry for the bashism as some may not prefer it.

gtk3 might be the culprit, though I do not see how it ends up not finding
gtk.h with the following diff.

Options differ for x11/gtk3
pkgsrc:     x11
installed:  gtk3-atk-bridge x11

Anyway, without thinking much I'll delete binary packages that differ from
my options and see what happens.


#!/usr/bin/env bash
  
PKGDBDIR="/usr/pkg/pkgdb/"
PKGSRC="/usr/pkgsrc"

find $PKGDBDIR -name "+BUILD_INFO" |
while read BUILDINFO
do
    PKGPATH=`grep -e ^PKGPATH $BUILDINFO | cut -d= -f2-`
    PKGINSTOPTS=`grep -e ^PKG_OPTIONS $BUILDINFO | cut -d= -f2-`
    cd $PKGSRC/$PKGPATH
    PKGSRCOPTS=`bmake show-var VARNAME=PKG_OPTIONS`
    if [ "$PKGSRCOPTS" != "$PKGINSTOPTS" ]
    then
        echo "=============================="
        echo "Options differ for $PKGPATH"
        echo "pkgsrc:    " $PKGSRCOPTS
        echo "installed: " $PKGINSTOPTS
        echo "=============================="
    fi
done


Thanks again.

Mayuresh


Home | Main Index | Thread Index | Old Index