Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#62285 closed defect (fixed)

libsgml @1.1.4_1: rev-upgrade failure: still broken after rebuilding it more than 3 times.

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: libsgml

Description

Apparently it unconditionally uses libstdc++:

--->  No broken files found.
libsgml is using libstdc++ (this installation is configured to use libc++)
Error: Port libsgml is still broken after rebuilding it more than 3 times.
DEBUG: rev-upgrade failed: Port libsgml still broken after rebuilding 3 times
    while executing
"error "Port $portname still broken after rebuilding $rebuild_tries time${s}""
    (procedure "revupgrade_scanandrebuild" line 306)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    ("uplevel" body line 3)
    invoked from within
"uplevel 1 $body"
Error: rev-upgrade failed: Port libsgml still broken after rebuilding 3 times
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

(I am on Big Sur using Xcode 12.4)

Change History (4)

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

Owner: set to ryandesign
Status: newaccepted

It builds the C++ code using c++ instead of the compiler MacPorts tells it to. On your system, presumably c++ is g++ which uses libstdc++. On my system, c++ is clang++ which uses libc++.

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

In fact it only uses c++ to link the dylib, which is inexplicable since the project contains no C++ code that I can see. This happening because of a patch that we added shortly after the port was added; see #15281. I'll try to fix it to link with $(CC) instead. At the same time, I'll try to fix it so that it uses MacPorts CFLAGS and LDFLAGS which it currently does not.

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Resolution: fixed
Status: acceptedclosed

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

In b424f8f2cc1d7d8506d68de9fd59914cf57e02fc/macports-ports (master):

libsgml: Use CC not CXX as the linker

This project contains no C++ code so use CC not CXX as the linker.

Use MacPorts CFLAGS, CPPFLAGS, LDFLAGS. Fixes universal variant among
other things.

Closes: #62285

Also modernize checksums and update homepage.

Note: See TracTickets for help on using tickets.