Opened 3 years ago

Last modified 2 years ago

#62813 new defect

trace mode errors when a registered dependency is not active

Reported by: cave-canem Owned by:
Priority: Normal Milestone: MacPorts Future
Component: base Version:
Keywords: Cc: mascguy (Christopher Nielsen)
Port:

Description

I'm not sure if this is a defect, but nevertheless, I decided to write about it.

Port "clang-11 @ 11.1.0_2" cannot be built with "legacy-support-devel @ 20210503_0", but can be built with "legacy-support @ 1.0.1_0".

port -v installed legacy*; sudo port -kvt upgrade outdated
The following ports are currently installed:
  legacy-support @0.14.1_0 platform='darwin 13' archs='x86_64' date='2021-04-03T09:41:23+0300'
  legacy-support @0.14.2_0 platform='darwin 13' archs='x86_64' date='2021-04-17T21:11:08+0300'
  legacy-support @0.14.2_1 platform='darwin 13' archs='x86_64' date='2021-04-25T07:45:00+0300'
  legacy-support @0.15_0 platform='darwin 13' archs='x86_64' date='2021-04-26T04:00:59+0300'
  legacy-support @0.15_2 platform='darwin 13' archs='x86_64' date='2021-05-01T16:20:20+0300'
  legacy-support @1.0.1_0 platform='darwin 13' archs='x86_64' date='2021-05-03T16:02:40+0300'
  legacy-support-devel @20201104_0 platform='darwin 13' archs='x86_64' date='2020-11-07T04:27:05+0300'
  legacy-support-devel @20210402_0 platform='darwin 13' archs='x86_64' date='2021-04-14T21:03:12+0300'
  legacy-support-devel @20210415_0 platform='darwin 13' archs='x86_64' date='2021-04-16T01:08:39+0300'
  legacy-support-devel @20210425_0 platform='darwin 13' archs='x86_64' date='2021-04-27T00:32:35+0300'
  legacy-support-devel @20210501_4 platform='darwin 13' archs='x86_64' date='2021-05-02T16:39:11+0300'
  legacy-support-devel @20210503_0 (active) platform='darwin 13' archs='x86_64' date='2021-05-04T02:56:38+0300'
--->  Computing dependencies for clang-11.
--->  Extracting clang-11
--->  Extracting llvm-project-11.1.0.src.tar.xz
Executing:  cd "/opt/MacPorts/var/macports/build/_opt_macports-ports_lang_llvm-11/clang-11/work" && /opt/MacPorts/bin/xz -dc '/opt/MacPorts/var/macports/distfiles/llvm/llvm-project-11.1.0.src.tar.xz' | /usr/bin/tar -xf -
--->  Applying patches to clang-11
...
--->  Configuring clang-11
Error: Registry error: legacy-support not registered as installed & active.
Error: See /opt/MacPorts/var/macports/logs/_opt_macports-ports_lang_llvm-11/clang-11/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

See attached log.

Attachments (1)

main.log (78.2 KB) - added by cave-canem 3 years ago.
main.log

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by cave-canem

Attachment: main.log added

main.log

comment:1 Changed 3 years ago by kencu (Ken)

yeah, this must be related in some way to #62799 but I don't presently understand what is going on now.

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Doesn't seem particularly related to #62799. This seems to be an issue with trace mode's gathering of dependencies. I'm guessing there is something else installed that was built against legacy-support (like say llvm-11), and legacy-support was force deactivated in order to install legacy-support-devel? port dependents legacy-support will show you.

Last edited 3 years ago by jmroot (Joshua Root) (previous) (diff)

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Yes, trace mode routinely does not like it when you substitute one port for another (e.g. a -devel port for a non-devel port). As a workaround, don't use trace mode.

comment:4 Changed 3 years ago by cave-canem

Joshua Root, Ryan Schmidt - you are right - this is due to substitution in trace mode and not related to port "clang-11 @ 11.1.0_2".

Thank you!

#62813 can be closed.

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

Component: portsbase
Milestone: MacPorts Future
Summary: clang-11 @11.1.0_2 Registry error: legacy-support not registered as installed & active.trace mode errors when a registered dependency is not active

Why close it? It's still a bug.

comment:6 Changed 3 years ago by kencu (Ken)

Port: clang-11 removed

comment:7 Changed 2 years ago by jmroot (Joshua Root)

In e12d52d7a1446b2c76c6aeffea747cbc83e9e8cc/macports-base (master):

Don't error on inactive ports in recursive_collect_deps

See: #62813

comment:8 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added
Note: See TracTickets for help on using tickets.