sgidevnet / pkgsrc

Automatic conversion of the NetBSD pkgsrc CVS module, use with care
https://www.pkgsrc.org
0 stars 0 forks source link

libarchive dep: pkg-config build issue #2

Open unxmaal opened 5 years ago

unxmaal commented 5 years ago

Describe the bug Running "bmake install" in libarchive fails due to missing pkg-config binary.

To Reproduce bmake install

Expected behavior It doesn't do this.

Screenshots

./configure[10467]: --print-errors: not found
checking whether make supports nested variables... (cached) yes
checking for rename... yes
checking for fchmod... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for X... configure: error: in `/usr/pkgsrc/devel/makedepend/work/makedepend-1.0.5':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables X_CFLAGS
and X_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details

====
Config log shows:

configure:10985: error: in `/usr/pkgsrc/devel/makedepend/work/makedepend-1.0.5':
configure:10987: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

*** Error code 1

IRIX(please complete the following information):

Additional context Add any other context about the problem here.

unxmaal commented 5 years ago

Hacked the configure file to skip the pkg-config version check.

 10956  pkg_failed=no

In current pkgsrc, pkg-config is a wrapper for pkgconf, so this check will always fail.


/usr/pkg/bin/pkg-config: error: '/usr/pkg/bin/.libs/pkgconf' does not exist
This script is just a wrapper for pkgconf.
See the libtool documentation for more information.```
onre commented 5 years ago

In current pkgsrc, pkg-config is a wrapper for pkgconf, so this check will always fail.

Nope. The message means the build has failed because of the libtool issue. Fix libtool and this goes away.

pkgsrc has both pkgconf and pkg-config as a remnant from the period when pkg-config was a build dependency for itself and you could not build it from scratch. pkgconf will work fine with the modification from http://www.sgidev.org/wiki/pkgsrc_build_notes.html - IRIX printf() crashes on format specifiers it does not understand.