I'm embarrassed to come back to this thread asking for more help, but i still haven't solved this.
I have updated my /usr/mk.conf
like so:
VARBASE= /var
LOCALBASE= /usr/pkg
PKG_DBDIR= /usr/pkg/pkgdb
PKG_TOOLS_BIN= /usr/pkg/sbin
PKGINFODIR= info
PKGMANDIR= man
MAKE_JOBS= 6
PKGSRC_USE_MKTOOLS= yes
SKIP_LICENSE_CHECK= yes
ALLOW_VULNERABLE_PACKAGES= yes
I have
# rm -R /usr/pkgsrc
# rm -R /usr/distfiles
pulled in a new pkgsrc and this time placed it in my home directory
$ ftp ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc.tar.gz
$ tar -xzf pkgsrc.tar.gz -C ~
I've cloned pkgsrc/wip
into ~/pkgsrc
~/pkgsrc $ git clone git://wip.pkgsrc.org/pkgsrc-wip.git wip
And I'm getting the same error I first got initially.. WTF!!
~/pkgsrc/wip/pinentry-dmenu $ doas make install clean
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Fetching pinentry-dmenu-0.2.2.tar.gz
=> Total size: 54746 bytes
Requesting https://github.com/ritze/pinentry-dmenu/archive/0.2.2.tar.gz
Redirected to https://codeload.github.com/ritze/pinentry-dmenu/tar.gz/refs/tags/0.2.2
Requesting https://codeload.github.com/ritze/pinentry-dmenu/tar.gz/refs/tags/0.2.2
54746 1.05 MiB/s
54746 bytes retrieved in 00:00 (1.05 MiB/s)
=> Checksum RMD160 OK for pinentry-dmenu-0.2.2.tar.gz
=> Checksum SHA512 OK for pinentry-dmenu-0.2.2.tar.gz
===> Installing dependencies for pinentry-dmenu-0.2.2
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.2.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Full dependency gnupg2>=2.2.0: found gnupg2-2.4.5
=> Full dependency gpgme>=1.8.0nb1: found gpgme-1.23.2
=> Full dependency libassuan>=2.4.2: found libassuan-2.5.7
=> Full dependency freetype2>=2.13.2nb1: found freetype2-2.13.2nb1
=> Full dependency libconfig>=1.4: found libconfig-1.7.2
===> Checking for vulnerabilities in pinentry-dmenu-0.2.2
===> Overriding tools for pinentry-dmenu-0.2.2
===> Extracting for pinentry-dmenu-0.2.2
===> Patching for pinentry-dmenu-0.2.2
=> Applying pkgsrc patches for pinentry-dmenu-0.2.2
===> Creating toolchain wrappers for pinentry-dmenu-0.2.2
===> Configuring for pinentry-dmenu-0.2.2
===> Building for pinentry-dmenu-0.2.2
--- options ---
--- pinentry ---
--- pinentry-dmenu.o ---
--- drw.o ---
--- util.o ---
--- options ---
pinentry-dmenu build options:
--- util.o ---
CC util.c
--- pinentry-dmenu.o ---
CC pinentry-dmenu.c
--- pinentry ---
/usr/bin/make -C pinentry
--- options ---
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
Package 'xinerama' not found
Package 'xft' not found
CFLAGS = -DHAVE_MLOCK -DHAVE_MMAP -DHAVE_GETPAGESIZE -D_NETBSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION="0.1" -DPACKAGE_VERSION="0.1" -DPACKAGE_BUGREPORT="https:\/\/github.com\/ritze\/pinentry-dmenu"
--- pinentry-dmenu.o ---
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
Package 'xinerama' not found
Package 'xft' not found
--- drw.o ---
CC drw.c
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
--- util.o ---
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
Package 'xinerama' not found
--- drw.o ---
Package 'xinerama' not found
--- util.o ---
Package 'xft' not found
--- options ---
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
--- drw.o ---
Package 'xft' not found
--- pinentry ---
--- pinentry.o ---
--- argparse.o ---
--- options ---
Package 'xinerama' not found
--- pinentry ---
--- pinentry.o ---
CC pinentry.c
--- argparse.o ---
CC argparse.c
--- options ---
Package 'xft' not found
LDFLAGS = -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
CC = cc
--- pinentry ---
--- password-cache.o ---
CC password-cache.c
--- pinentry.o ---
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
Package 'xinerama' not found
Package 'xft' not found
--- password-cache.o ---
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
Package 'xinerama' not found
--- argparse.o ---
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x11' not found
Package 'xinerama' not found
--- password-cache.o ---
Package 'xft' not found
--- argparse.o ---
Package 'xft' not found
--- drw.o ---
drw.c:5:10: fatal error: X11/Xlib.h: No such file or directory
5 | #include <X11/Xlib.h>
| ^~~~~~~~~~~~
compilation terminated.
*** [drw.o] Error code 1
make: stopped in /home/dave/pkgsrc/wip/pinentry-dmenu/work/pinentry-dmenu-0.2.2
--- pinentry ---
*** [pinentry] Error code 6
make: stopped in /home/dave/pkgsrc/wip/pinentry-dmenu/work/pinentry-dmenu-0.2.2
--- pinentry-dmenu.o ---
pinentry-dmenu.c:14:10: fatal error: X11/Xlib.h: No such file or directory
14 | #include <X11/Xlib.h>
| ^~~~~~~~~~~~
compilation terminated.
*** [pinentry-dmenu.o] Error code 1
make: stopped in /home/dave/pkgsrc/wip/pinentry-dmenu/work/pinentry-dmenu-0.2.2
make: 3 errors
make: stopped in /home/dave/pkgsrc/wip/pinentry-dmenu/work/pinentry-dmenu-0.2.2
*** Error code 2
Stop.
make[1]: stopped in /home/dave/pkgsrc/wip/pinentry-dmenu
*** Error code 1
Stop.
make: stopped in /home/dave/pkgsrc/wip/pinentry-dmenu
I've installed pkgconf
as before
$ ls /usr/pkg/bin/ | grep pkgconf
lrwxr-xr-x - root 4 May 19:17 pkg-config -> pkgconf
.rwxr-xr-x 46k root 4 May 19:17 pkgconf
the packages in question are present..
/X11R7/lib/pkgconfig λ ls | grep xft
.r--r--r-- 283 root 2 May 07:34 xft.pc
/usr/X11R7/lib/pkgconfig λ ls | grep x11.pc
.r--r--r-- 311 root 2 May 07:34 x11.pc
/usr/X11R7/lib/pkgconfig λ ls | grep xinerama.pc
.r--r--r-- 260 root 2 May 07:34 xcb-xinerama.pc
.r--r--r-- 280 root 2 May 07:34 xinerama.pc
SHould I just install Ubuntu now or just stick to Windows?? 😧