pkgsrc-Users archive

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

Re: pkgin fails to build with pkgsrc current



Greg,

Thank you for responding. Yes I did make clean clean-depends in both pkgtools/pkgin and net/libfetch.

I did "make install" from /usr/pkgsrc/net/libfetch, and it failed. I do have a "working", albeit a little bloated /etc/mk.conf file that i copied from the default directory. I did remove all the stuff that is not needed per the documentation (gasp! I read the docs!).

I did get libfetch to compile by removing this line from the PLIST file:

$ diff PLIST PLIST.ORG
3a4
> man/cat3/fetch.0

BUT, now pkgin fails:

=> Creating installation directories
/usr/bin/grep -i NetBSD /usr/pkgsrc/pkgtools/pkgin/work/pkgin-0.14.0/REPOSITORIES >> /usr/pkgsrc/pkgtools/pkgin/work/pkgin-0.14.0/repositories.conf /usr/bin/install -c -s -o root -g wheel -m 755 /usr/pkgsrc/pkgtools/pkgin/work/pkgin-0.14.0/pkgin /usr/pkgsrc/pkgtools/pkgin/work/.destdir/usr/pkg/bin /usr/bin/install -c -o root -g wheel -m 644 /usr/pkgsrc/pkgtools/pkgin/work/pkgin-0.14.0/pkgin.1 /usr/pkgsrc/pkgtools/pkgin/work/.destdir/usr/pkg/man/man1 /usr/bin/install -c -o root -g wheel -m 644 /usr/pkgsrc/pkgtools/pkgin/work/pkgin-0.14.0/pkgin.cat1 /usr/pkgsrc/pkgtools/pkgin/work/.destdir/usr/pkg/man/cat1/pkgin.0 install: /usr/pkgsrc/pkgtools/pkgin/work/pkgin-0.14.0/pkgin.cat1: stat: No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/pkgtools/pkgin
*** Error code 1

Still hunting.

On 1/9/20 8:02 PM, Greg Troxel wrote:
Ron Georgia <netverbs%gmail.com@localhost> writes:

I tried to build pkgin from source. I "installed" pkgsrc current. I
may be doing something, but not sure what that might be.
It built for me, not that this really helps.  (on netbsd-8)


uname -a:

NetBSD netverbs07 9.99.34 NetBSD 9.99.34 (GENERIC) #0: Wed Jan  8
08:10:15 UTC 2020
mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
amd64
normal enough

Error:

=> Automatic manual page handling
=> Generating post-install file lists
pkg_create: can't stat
`/usr/pkgsrc/net/libfetch/work/.destdir/usr/pkg/man/cat3/fetch.0'
=> Checking file-check results for libfetch-2.39
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in
/usr/pkgsrc/net/libfetch/work/.destdir/usr/pkg:
ERROR: /usr/pkgsrc/net/libfetch/work/.destdir/usr/pkg/man/cat3/fetch.0
*** Error code 1

Stop.
make[2]: stopped in /usr/pkgsrc/net/libfetch
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/net/libfetch
*** Error code 1
So pkgin needs libfetch, and it basically invokes the "build libfetch"
subroutine.  For debugging, I would try to figure out one thing at a
time.

General advice is to remove all work directories before retrying.  stale
work dirs cause vast amounts of trouble.

then, I'd try to 'make package' in libfetch, and save the output, and
then go looking into that and the error.

In my case, I see fetch.0 in the PLIST but it is not in .destdir/ but
that is ok -- there are different rules on different systems about
whether man pages are source or bin, and I don't follow how that
interacts with PLIST.

Do you have an /etc/mk.conf file or one in /usr/pkgsrc/etc/mk.conf, and
what is in it?

--
90% of my problems are due to ignorance, the other 10% is because I just don't know any better.



Home | Main Index | Thread Index | Old Index