Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#65878 closed defect (fixed)

lbzip2 @2.5: lbzip2: WORKER-THREADS not set, specify "-h" for help

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: tiger ppc Cc:
Port: libxml2

Description

DEBUG: Creating libxml2-2.10.2_1+readline.darwin_8.ppc.tbz2
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_libxml2/libxml2/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Developer'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.4'
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_libxml2/libxml2/work/destroot" && /usr/bin/tar -cvf - . | /opt/local/bin/lbzip2 -c9 > /opt/local/var/macports/software/libxml2/libxml2-2.10.2_1+readline.darwin_8.ppc.tbz2 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_libxml2/libxml2/work/destroot" && /usr/bin/tar -cvf - . | /opt/local/bin/lbzip2 -c9 > /opt/local/var/macports/software/libxml2/libxml2-2.10.2_1+readline.darwin_8.ppc.tbz2 
./
./+COMMENT
./+CONTENTS
lbzip2: WORKER-THREADS not set, specify "-h" for help
/usr/bin/tar: -: Cannot write: Broken pipe
/usr/bin/tar: Error is not recoverable: exiting now
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_libxml2/libxml2/work/destroot" && /usr/bin/tar -cvf - . | /opt/local/bin/lbzip2 -c9 > /opt/local/var/macports/software/libxml2/libxml2-2.10.2_1+readline.darwin_8.ppc.tbz2 
Exit code: 1
Error: Failed to install libxml2: command execution failed
DEBUG: Error code: CHILDSTATUS 901 1

There is enough space on disk:

Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/disk0s7     52G     38G   13G   75% /

Attachments (1)

main.log (238.7 KB) - added by ballapete (Peter "Pete" Dyballa) 19 months ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (12)

comment:1 Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

No log file left…

comment:2 Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

Port: libxml2 added; lbzip2 removed
Summary: lbzip2 @2.5_1 does not install on PPC Tiger, Mac OS X 10.4.11, because tar cannot writelibxml2 @2.10.2_1 +readline does not install on PPC Tiger, Mac OS X 10.4.11, because tar cannot write

Sorry, I thought it was still building libxml2! Before it worked to upgrade to pure libxml2 @2.10.2_1, without variant readline added. Main.log of course exists!

Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:3 Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

I think I first gave this ticket the proper title – because now I cannot install other ports, for example mpack. This fails like this:

DEBUG: Creating mpack-1.6_1.darwin_8.ppc.tbz2
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_mail_mpack/mpack/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Developer'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.4'
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_mail_mpack/mpack/work/destroot" && /usr/bin/tar -cvf - . | /opt/local/bin/lbzip2 -c9 > /opt/local/var/macports/software/mpack/mpack-1.6_1.darwin_8.ppc.tbz2 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_mail_mpack/mpack/work/destroot" && /usr/bin/tar -cvf - . | /opt/local/bin/lbzip2 -c9 > /opt/local/var/macports/software/mpack/mpack-1.6_1.darwin_8.ppc.tbz2 
./
./+COMMENT
./+CONTENTS
lbzip2: WORKER-THREADS not set, specify "-h" for help
./+DESC
./+PORTFILE
./+STATE
./opt/
./opt/local/
./opt/local/bin/
./opt/local/bin/mpack
/usr/bin/tar: -: Cannot write: Broken pipe
/usr/bin/tar: Error is not recoverable: exiting now
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_mail_mpack/mpack/work/destroot" && /usr/bin/tar -cvf - . | /opt/local/bin/lbzip2 -c9 > /opt/local/var/macports/software/mpack/mpack-1.6_1.darwin_8.ppc.tbz2 
Exit code: 1
Error: Failed to install mpack: command execution failed

So I am going to remove lbzip2 and see what this changes.

comment:4 Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

After deactivation of lbzip2 mpack could be installed and port started to install the next port

comment:5 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Ok, so the bug is that your lbzip2 program doesn't work?

comment:6 in reply to:  5 Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign:

Yes, that's my impression.

comment:7 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: eborisch added; eborisch@… removed
Summary: libxml2 @2.10.2_1 +readline does not install on PPC Tiger, Mac OS X 10.4.11, because tar cannot writelbzip2 doesn't work

I just installed lbzip2 on a PowerBook running Tiger and MacPorts was able to use it just fine. Does rebuilding lbzip2 help? If not, can you get any other information about how lbzip2 is failing?

sudo port clean lbzip2
sudo port -ns upgrade --force lbzip2

comment:8 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added; eborisch removed
Owner: set to ryandesign
Status: newaccepted
Summary: lbzip2 doesn't worklbzip2 @2.5: lbzip2: WORKER-THREADS not set, specify "-h" for help

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 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.

comment:9 in reply to:  8 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed

Replying to ryandesign:

Excuse me! On my PowerBook MacPorts was able to use lbzip2 to decompress a source tarball,

Excuse me again! Decompressing didn't work either, prior to the fix.

comment:10 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 65758c790cb41feb076faf40d1135ecd24058b45/macports-ports (master):

lbzip2: Use legacysupport for _SC_NPROCESSORS_ONLN

Closes: #65878

comment:11 Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

lbzip2 built, the tests succeeded, and port could upgrade a first software, expat.

Note: See TracTickets for help on using tickets.