pkgsrc-Users archive

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

Re: [HEADS UP] pkgsrc default database directory changed



I just gave it another try today, again on a new install. This time also passing USE_CWRAPPERS=no to building cwrappers as well. This time at least it doesn't abort with a cyclic dependency, but fails to build digest:

===> Installing binary package of digest=20190127
pkg_add: Can't process file:///usr/pkgsrc/pkgtools/digest/work/.packages/digest-20190127*: No such file or directory
pkg_add: no pkg found for '/usr/pkgsrc/pkgtools/digest/work/.packages/digest-20190127.tgz', sorry.
pkg_add: 1 package addition failed

I had this before as well, so I installed digest manually. That works, but now the problem is just moved:

===> Installing dependencies for dtc-1.4.7
=> Tool dependency dtc>=1.4.2: NOT found
=> Verifying reinstall for ../../sysutils/dtc
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected

This is the exact same as yesterday (so tried on 2 fresh installs now). This is not related to the package at hand, at all:

===> Installing dependencies for pkgconf-1.7.3
=> Tool dependency pkgconf-[0-9]*: NOT found
=> Verifying reinstall for ../../devel/pkgconf
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected

(If there are any typos: I typed this by hand)

The only thing that I realized today is that I have my usual hardening in mk.conf, which not everybody might have:

PKGSRC_MKPIE = yes
PKGSRC_MKREPRO = yes
PKGSRC_USE_RELRO = yes
PKGSRC_USE_STACK_CHECK = yes
MAKE_JOBS = 8

-- 
Jonathan

> Am 08.12.2020 um 23:22 schrieb Thomas Klausner <wiz%NetBSD.org@localhost>:
> 
> On Tue, Dec 08, 2020 at 11:14:45PM +0100, Jonathan Schleifer wrote:
>> 
>>> Am 07.12.2020 um 22:11 schrieb Thomas Klausner <wiz%NetBSD.org@localhost>:
>>> 
>>> Before the last edit they were:
>>> 
>>> (cvs update)
>>> cd /usr/pkgsrc/pkgtools/pkg_install
>>> pkg_delete -ff pkg_install
>>> make USE_CWRAPPERS=no install
>> 
>> For example, this doesn't work. USE_CWRAPPERS needs to be in env or /etc/mk.conf.
> 
> It does work for me. I don't know why it doesn't work for me.
> 
> Yes, I tried on NetBSD 9.1 with -current pkgsrc.
> 
>>> cd /usr/pkg/sbin && install -c pkg_add pkg_admin pkg_create pkg_delete pkg_info /usr/sbin/
>>> 
>>> Please be more explicit what doesn't work. I've tested these and they
>>> worked fine for me.
>> 
>> Can you please test them on a *fresh* 9.1 system? Because for me, even with fixing the USE_CWRAPPERS=no, they lead to an unusable setup where every package fails with a cyclic dependency (without printing which one).
> 
> After you install the pkg_* files to /usr/sbin I don't see how this
> can happen.
> Thomas



Home | Main Index | Thread Index | Old Index