[MacPorts] #65878: lbzip2 @2.5: lbzip2: WORKER-THREADS not set, specify "-h" for help (was: lbzip2 doesn't work)

MacPorts noreply at macports.org
Fri Sep 23 11:39:34 UTC 2022


#65878: lbzip2 @2.5: lbzip2: WORKER-THREADS not set, specify "-h" for help
------------------------+------------------------
  Reporter:  ballapete  |      Owner:  ryandesign
      Type:  defect     |     Status:  accepted
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.2
Resolution:             |   Keywords:  tiger ppc
      Port:  libxml2    |
------------------------+------------------------
Changes (by ryandesign):

 * status:  new => accepted
 * owner:  (none) => ryandesign
 * cc: eborisch (removed)
 * cc: ryandesign (added)


Comment:

 Excuse me! On my PowerBook MacPorts was able to use lbzip2 to decompress a
 source tarball, but when MacPorts tried to use lbzip2 to compress an
 archive, it failed for me as it did for you:
 {{{
 lbzip2: WORKER-THREADS not set, specify "-h" for help
 }}}
 According to
 [https://github.com/kjn/lbzip2/blob/8702655221f8e9cd488beb9572294baa734d2d09/src/main.c#L613-L624
 the source code], this message is only emitted if `_SC_NPROCESSORS_ONLN`
 is not defined, which is indeed the case on Tiger; it was introduced in
 Leopard.

 MacPorts legacy support has an implementation of `sysconf` that supports
 `_SC_NPROCESSORS_ONLN`  on Tiger, and including that in the port fixes it
 for me, so I'll commit that along with the required revbump shortly.

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


More information about the macports-tickets mailing list