[MacPorts] #62997: htop @3.0.5_0: Unable to build on 10.4 Tiger ppc

MacPorts noreply at macports.org
Sun May 30 17:07:32 UTC 2021


#62997: htop @3.0.5_0: Unable to build on 10.4 Tiger ppc
----------------------+-----------------------
  Reporter:  Sinccis  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.7.1
Resolution:           |   Keywords:  tiger ppc
      Port:  htop     |
----------------------+-----------------------

Comment (by kencu):

 Hello, and welcome. I don't recall seeing you around here before, and
 you're in the right place for older macOS systems support! I'm going to
 pitch this comment towards a new user.

 Tiger PPC and Intel have quite good support on MacPorts, but hiccups are
 still to be expected as fewer users are on these systems. Also there is no
 buildbot, so you have to build everything, which generates some
 challenges. Nevertheless, a great many things do build and work properly.

 The single most common issue with Tiger PPC is that the default compiler
 that MacPorts uses, Apple's fork of gcc-4.2 that is known on the system as
 apple-gcc42, is more than 15 years out of date now. A lot of software
 won't build with that old gcc version, and virtually nobody upstream ever
 tests it.

 Luckily, it is rather easy to try a newer compiler. You do this:
 {{{
 sudo port clean htop

 sudo port -v install htop configure.compiler=macports-gcc-7
 }}}

 Now of course to do that, you do need to have gcc7 installed. You probably
 do, but in case you might not, you can install it with:
 {{{
 sudo port -v install gcc7
 }}}

 In the case of htop, unfortunately, that does not fix the build in the end
 (but it often will work).

 The next line of defense we have is the LegacySupport PortGroup and
 system, which makes older systems look and work more like newer systems.
 As it turns out, htop already uses LegacySupport.

 Sometimes, the software will have so optional features that can be turned
 off on older systems, such has high-level encryption that uses Apple's
 Security Frameworks, or similar. That is easy enough, if it exists -- I
 did not investigate htop for this.

 So the easy fixes are not, unfortunately, going to be the ones that work
 here. It will require someone interested in htop who has a Tiger system
 (VM or real) to sit down with the code and sort out why it is failing, and
 generate a patch.

 There are interested users, and hopefully you might become one of them,
 that generate such fixes. If they are not too squirrely, sometimes the
 upstream projects might accept them -- but don't hold your breath on that,
 because it is Tiger after all, obsolete for 15 year now.

 For today, htop is not building on Tiger.

-- 
Ticket URL: <https://trac.macports.org/ticket/62997#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list