NetBSD / pkgsrc

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

bootstrap failed on Artix Linux: ERROR: Circular dependency detected #124

Closed wang-songbo closed 1 year ago

wang-songbo commented 1 year ago

Hi. I fetched the git HEAD (commit f9d73e5e9) and tried bootstrapping on my Artix Linux box:

# uname -a
Linux hostname 6.3.6-artix1-1 #1 SMP PREEMPT_DYNAMIC Mon, 05 Jun 2023 19:57:22 +0000 x86_64 GNU/Linux

and it failed with the following messages:

===> Installing dependencies for cwrappers-20220403
=> Tool dependency coreutils>=5.2.1: NOT found
=> Verifying reinstall for ../../sysutils/coreutils
=> Bootstrap dependency digest>=20211023: NOT found
=> Verifying reinstall for ../../pkgtools/digest
===> Installing dependencies for digest-20220214
=> Tool dependency mktools-[0-9]*: NOT found
=> Verifying reinstall for ../../pkgtools/mktools
===> Installing dependencies for mktools-20220614
=> Tool dependency cwrappers>=20150314: NOT found
=> Verifying reinstall for ../../pkgtools/cwrappers
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 1

Stop.
bmake[4]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
bmake[3]: stopped in /usr/pkgsrc/pkgtools/mktools
*** Error code 1

Stop.
bmake[2]: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/sysutils/coreutils
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/cwrappers
===> exited with status 1
aborted.

Also, running with the option --cwrappers no did not help and produced the message

===> Installing dependencies for digest-20220214
=> Tool dependency mktools-[0-9]*: NOT found
=> Verifying reinstall for ../../pkgtools/mktools
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 1

Stop.
bmake[3]: stopped in /usr/pkgsrc/pkgtools/mktools
*** Error code 1

Stop.
bmake[2]: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/sysutils/coreutils
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/mktools
===> exited with status 1
aborted.

Full log file: bootstrap.log

This seems to be related to https://github.com/NetBSD/pkgsrc/issues/106.

jsonn commented 1 year ago

Do you have hostname available?

wang-songbo commented 1 year ago

Hi @jsonn ! Thanks for your reply. No indeed I did not have the hostname utility installed, and installing the inetutils which provides a hostname did resolve the problem. Thanks for your suggestion!