Opened 5 weeks ago

Last modified 11 days ago

#70547 new defect

Unable to install p5.34-*. Possible dependency cycle

Reported by: michmill1970 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.0
Keywords: Cc: andikawiraa, nanigashi-uji (Nanigashi Uji), dbevans (David B. Evans), cgilles (HumanDynamo)
Port: p5.34-b-cow p5.34-test-simple p5.34-module-pluggable p5.34-module-runtime p5.34-module-build p5.34-software-license p5.34-data-section p5.34-text-template p5.34-sub-exporter p5.34-data-optlist p5.34-params-util p5.34-config-autoconf p5.34-file-slurper p5.34-test-warnings p5.34-cpan-meta-check

Description

Computing dependencies for p5.34-b-cow
--->  Dependencies to be installed: p5.34-test-simple p5.34-module-pluggable p5.34-module-runtime p5.34-module-build p5.34-software-license p5.34-data-section p5.34-text-template p5.34-sub-exporter p5.34-data-optlist p5.34-params-util p5.34-config-autoconf p5.34-file-slurper p5.34-test-warnings p5.34-cpan-meta-check
Error: The following dependencies were not installed because all of them have unmet dependencies (likely due to a dependency cycle): p5.34-test-simple p5.34-module-pluggable p5.34-module-runtime p5.34-module-build p5.34-software-license p5.34-data-section p5.34-text-template p5.34-sub-exporter p5.34-data-optlist p5.34-params-util p5.34-config-autoconf p5.34-file-slurper p5.34-test-warnings p5.34-cpan-meta-check
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port p5.34-b-cow failed
FAILED COMMAND: port install p5.34-b-cow

I've tried installing the dependencies one at a time in various orders, but I always get the same error message. This is on a fresh MacBook Pro M1 (ARM64) with no existing macports installation. I'm installing into a custom directory (/opt/digikam.arm64).

Change History (11)

comment:1 Changed 5 weeks ago by nanigashi-uji (Nanigashi Uji)

I also met the same isssue. Some perl modules can be installed by changing Portfiles manually (Not checked, but can be installed.)

*** rsync.macports.org/macports/release/tarballs/ports/perl/p5-params-util/Portfile~	Tue Jan  4 03:19:50 2022
--- rsync.macports.org/macports/release/tarballs/ports/perl/p5-params-util/Portfile	Wed Aug 14 04:04:17 2024
***************
*** 19,29 ****
                      size    194986
  
  if {${perl5.major} != ""} {
!     depends_build-append \
!                     port:p${perl5.major}-config-autoconf \
!                     port:p${perl5.major}-test-leaktrace \
!                     port:p${perl5.major}-test-simple
  
      depends_lib-append \
                      port:p${perl5.major}-xsloader
  }
--- 19,32 ----
                      size    194986
  
  if {${perl5.major} != ""} {
!     # depends_build-append \
!     #                 port:p${perl5.major}-config-autoconf \
!     #                 port:p${perl5.major}-test-leaktrace \
!     #                 port:p${perl5.major}-test-simple
  
+     depends_build-append \
+                     port:p${perl5.major}-config-autoconf
+     
      depends_lib-append \
                      port:p${perl5.major}-xsloader
  }

*** rsync.macports.org/macports/release/tarballs/ports/perl/p5-test-warnings/Portfile~	Sun Feb 11 16:32:21 2024
--- rsync.macports.org/macports/release/tarballs/ports/perl/p5-test-warnings/Portfile	Wed Aug 14 03:36:29 2024
***************
*** 19,26 ****
                      size    44091
  
  if {${perl5.major} != ""} {
!     depends_build-append \
!                     port:p${perl5.major}-cpan-meta-check
  
      #depends_lib-append \
      #                port:p${perl5.major}-test2-suite
--- 19,26 ----
                      size    44091
  
  if {${perl5.major} != ""} {
!     #depends_build-append \
!     #                port:p${perl5.major}-cpan-meta-check
  
      #depends_lib-append \
      #                port:p${perl5.major}-test2-suite

*** rsync.macports.org/macports/release/tarballs/ports/perl/p5-cpan-meta-check/Portfile~	Sat Jul 22 03:54:55 2023
--- rsync.macports.org/macports/release/tarballs/ports/perl/p5-cpan-meta-check/Portfile	Wed Aug 14 03:47:17 2024
***************
*** 20,27 ****
  
  if {${perl5.major} != ""} {
      depends_build-append \
!                     port:p${perl5.major}-scalar-list-utils \
!                     port:p${perl5.major}-test-simple
      
      depends_lib-append \
                      port:p${perl5.major}-cpan-meta \
--- 20,30 ----
  
  if {${perl5.major} != ""} {
      depends_build-append \
!                     port:p${perl5.major}-scalar-list-utils
!     
! #    depends_build-append \
! #                    port:p${perl5.major}-scalar-list-utils \
! #                    port:p${perl5.major}-test-simple
      
      depends_lib-append \
                      port:p${perl5.major}-cpan-meta \

comment:2 Changed 5 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: andikawiraa nanigashi-uji dbevans added
Keywords: p5.34-test-simple p5.34-module-pluggable p5.34-module-runtime p5.34-module-build p5.34-software-license p5.34-data-section p5.34-text-template p5.34-sub-exporter p5.34-data-optlist p5.34-params-util p5.34-config-autoconf p5.34-file-slurper p5.34-test-warnings p5.34-cpan-meta-check removed
Port: p5.34-test-simple p5.34-module-pluggable p5.34-module-runtime p5.34-module-build p5.34-software-license p5.34-data-section p5.34-text-template p5.34-sub-exporter p5.34-data-optlist p5.34-params-util p5.34-config-autoconf p5.34-file-slurper p5.34-test-warnings p5.34-cpan-meta-check added

Has duplicate #70541.

comment:3 Changed 5 weeks ago by jmroot (Joshua Root)

p5.34-test-simple -> p5.34-module-pluggable -> p5.34-module-runtime -> p5.34-module-build -> p5.34-software-license -> p5.34-data-section -> p5.34-sub-exporter -> p5.34-data-optlist -> p5.34-params-util -> p5.34-test-simple

comment:4 Changed 5 weeks ago by jmroot (Joshua Root)

The proximate cause is likely the dependency changes in [9ca0a3a38c3dbc3f613de0d0e9a7d9b13c923e55/macports-ports].

comment:5 Changed 4 weeks ago by M-Rick

I wanted to build gd2 and have the same error with all the p5.34 modules…

comment:6 Changed 3 weeks ago by cgilles (HumanDynamo)

Fully reproducible problem on my computer too. Reported in bug #70643

comment:7 Changed 3 weeks ago by cgilles (HumanDynamo)

Cc: cgilles added

comment:8 Changed 2 weeks ago by cgilles (HumanDynamo)

Any update here? As Perl is a core component used by many other ports, a macports install can be quickly broken due to this bug.

For me this bug must be considerated with a HIGH priority...

comment:9 Changed 13 days ago by ryandesign (Ryan Carsten Schmidt)

If you or anybody knows what change(s) to make to what port(s) to fix this or any other problem, you can submit a pull request.

comment:10 Changed 13 days ago by cgilles (HumanDynamo)

Hi Ryan,

I tried to take a look in macports port configuration file, following the Nanigashi patch but it do not work at all on my computer (M1 + Somona 14.8.1 + Xcode 15.4). I'm lost...

Gilles

comment:11 Changed 11 days ago by cgilles (HumanDynamo)

Ok, i found a workaround to this problem (it's not the solution).

In my whole macports install, git port is installed and Perl dependency is enabled by default. The fix is:

port install git -perl5_34
Note: See TracTickets for help on using tickets.