mirror of https://github.com/NetBSD/pkgsrc.git
6352c62517
https://github.com/NetBSDfr/pkgin/issues/133 configure.ac wrongly checks for header files in build environment When configuring with --with-libarchive=/usr/pkg, pkgin's configure script tests whether /usr/pkg and /usr/pkg/include/archive.h exist. This is wrong -- it doesn't matter whether /usr/pkg/include/archive.h exists; what matters is whether the compiler can resolve #include <archive.h>, which it might be doing relative to a sysroot like /home/riastradh/netbsd/current/obj.evbarm64/destdir.evbarm. configure.ac should use AC_CHECK_HEADER instead to check whether #include <archive.h> works, and AC_CHECK_LIB to check whether linking with -larchive works; similarly for libfetch, openssl, and sqlite3. It should also provide a way to specify other arguments than just CPPFLAGS=-I/prefix/include LDFLAGS=-L/prefix/lib LIBS=-lwhatever, e.g. in principle some environments may need LDFLAGS=-L/sdk/prefix/lib\ -Wl,-R/opt/prefix/lib or LIBS=-lfetch -lssl -lcrypto. The result of the status quo is that pkgin can't currently be reasonably cross-compiled. |
||
---|---|---|
.. | ||
R2pkg | ||
autoswc | ||
binpatch | ||
bootstrap-extras | ||
bootstrap-mk-files | ||
cdpack | ||
check-portability | ||
compat_headers | ||
createbuildlink | ||
cwrappers | ||
dfdisk | ||
digest | ||
distbb | ||
distlint | ||
genpkgng | ||
genrpm | ||
gensolpkg | ||
gimme | ||
import-package | ||
libkver | ||
libnbcompat | ||
lintpkgsrc | ||
mksandbox | ||
mktools | ||
mtree | ||
nih | ||
osabi | ||
p5-pkgsrc-Dewey | ||
pbulk | ||
pbulk-base | ||
pkg | ||
pkg_alternatives | ||
pkg_chk | ||
pkg_comp | ||
pkg_comp-cron | ||
pkg_comp1 | ||
pkg_distinst | ||
pkg_filecheck | ||
pkg_install | ||
pkg_install-info | ||
pkg_leaves | ||
pkg_notify | ||
pkg_online-client | ||
pkg_online-server | ||
pkg_p5up2date | ||
pkg_regress | ||
pkg_rolling-replace | ||
pkg_select | ||
pkg_summary-utils | ||
pkg_tarup | ||
pkgchkxx | ||
pkgclean | ||
pkgdep | ||
pkgdepgraph | ||
pkgdiff | ||
pkgfind | ||
pkgin | ||
pkglint | ||
pkglint4 | ||
pkgse | ||
pkgsrc-todo | ||
pkgsurvey | ||
pkgtasks | ||
plist-utils | ||
port2pkg | ||
prereq-readme | ||
python-versions-check | ||
rc.d-boot | ||
rc.subr | ||
rcorder | ||
rdigest | ||
revbump | ||
rpm2pkg | ||
shlock | ||
texlive2pkg | ||
url2pkg | ||
verifypc | ||
x11-links | ||
Makefile |