pkgsrc-Users archive

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

Re: www/seamonkey build stopped by failure to find nonexistent packages



On Mon, Jul 10, 2017 at 10:21:44AM +0200, Thomas Klausner wrote:
> > On Sun, Jul 09, 2017 at 11:02:55PM +0000, Thomas Mueller wrote:
> > > > Look in the config.log file in the work directory, perhaps it has more
> > > > details which of the dependencies is/are not found.
> > > >  Thomas (Klausner)

> > > I found build/config.log in the work directory (work899.amd64).

> > > DEBUG: configure:15477: checking for gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0
> > > DEBUG: configure: error: Library requirements (gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a
> > > nonstandard prefix so pkg-config can find them.
> > > ERROR: old-configure failed
> > > *** Error code 1

> > That's not helpful :(

> > > So do I need to export PKG_CONFIG_PATH=/usr/pkg/lib/pkgconfig/ or prefix the build command with env PKG_CONFIG_PATH=/usr/pkg/lib/pkgconfig/ ?

> > This builds for me in an empty environment with latest pkgsrc.

> > Try debugging it:

> > # pkg-config --print-errors --exists gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0
        
> Of course, you'll need to quote the '>' operators :)
>  Thomas

From directory /BETA1/pkgsrc/www/seamonkey/work899.amd64/build, I ran

pkg-config --print-errors --exists gtk+-2.0 \>= 2.18.0 gtk+-unix-print-2.0 glib-2.0 \>= 2.22 gobject-2.0 gdk-x11-2.0

and got no screen output, presomably meaning no errors.

After looking at old-configure-vars with less, I found there was another pkg-config:

../.tools/bin/pkg-config --print-errors --exists gtk+-2.0 \>= 2.18.0 gtk+-unix-print-2.0 glib-2.0 \>= 2.22 gobject-2.0 gdk-x11-2.0

showed the packages/libraries that were not found.

When I ran

env PKG_CONFIG_PATH=/usr/pkg/bin/libconfig ../.tools/bin/pkg-config --print-errors --exists gtk+-2.0 \>= 2.18.0 gtk+-unix-print-2.0 glib-2.0 \>= 2.22 gobject-2.0 gdk-x11-2.0

no screen output, meaning no errors.

Does this suggest that I should preface "make install ..." command with "env PKG_CONFIG_PATH=/usr/pkg/bin/pkgconfig"?

But then why does this problem only show in www/seamonkey and not a lot of other packages?

Tom



Home | Main Index | Thread Index | Old Index