Opened 12 years ago

Closed 12 years ago

#35614 closed defect (invalid)

proctools: tsort: invalid option -- 'q'

Reported by: nunoslvdr@… Owned by: akitada@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: proctools

Description (last modified by ryandesign (Ryan Carsten Schmidt))

$ sudo port install clang-3.2 clang_select proctools
--->  Computing dependencies for clang-3.2
--->  Cleaning clang-3.2
--->  Cleaning clang_select
--->  Computing dependencies for proctools
--->  Building proctools
Error: org.macports.build for port proctools returned: command execution failed
Please see the log file for port proctools for details: 
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_proctools/proctools/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port proctools faile

$ xcodebuild -version
Xcode 4.4.1
Build version 4F1003

$ /usr/bin/clang -v 
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0

Attachments (2)

main.log (4.6 KB) - added by nunoslvdr@… 12 years ago.
main-after-port-clean-proctools.log (15.4 KB) - added by nunoslvdr@… 12 years ago.
main.log after "sudo port clean proctools" and "sudo port install proctools"

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by nunoslvdr@…

Attachment: main.log added

comment:1 Changed 12 years ago by nunoslvdr@…

Cc: nunoslvdr@… added

Cc Me!

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

Cc: nunoslvdr@… removed
Description: modified (diff)
Keywords: proctools removed
Owner: changed from macports-tickets@… to akitada@…
Summary: port proctools returned: command execution failedproctools: tsort: invalid option -- 'q'

The log says:

tsort: invalid option -- 'q'

This is curious since the tsort on my OS X box seems to support the -q option.

Since this was not a clean attempt, please "sudo port clean proctools" and try again, and attach the new main.log. Also please show the output of "which tsort".

Changed 12 years ago by nunoslvdr@…

main.log after "sudo port clean proctools" and "sudo port install proctools"

comment:3 Changed 12 years ago by nunoslvdr@…

Ive added the new log file after cleaning and installing.

$ which tsort 
/usr/bin/tsort
$ /usr/bin/tsort --version
tsort (coreutils) 8.9 

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

Cc: ryandesign@… added

Is it possible you have replaced Apple's /usr/bin/tsort with someone else's? Your output says "coreutils"; I didn't think OS X included any components that came from coreutils. On my Mountain Lion system, on which /usr/bin/tsort has not been modified, I get:

$ /usr/bin/tsort --version
/usr/bin/tsort: illegal option -- -
usage: tsort [-lq] [file]

So that is what I would expect to see on your system as well. Check your backups and see if you can restore Apple's /usr/bin/tsort.

comment:5 Changed 12 years ago by nunoslvdr@…

I got the osx Lion 10.7.4 and to be concrete, after running tsort --version i get this output:

$ /usr/bin/tsort --version
tsort (coreutils) 8.9
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mark Kettenis.

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

Resolution: invalid
Status: newclosed

Right, and Lion has been out for over a year, and the proctools port has not been updated in 2.5 years. If there were a general problem building proctools on Lion we would have heard about it by now.

I don't have a Lion machine handy, but I checked on Snow Leopard, and its tsort behaves the same as mine on Mountain Lion. So I still believe that the file /usr/bin/tsort on your system is not the file that should be there, and you should replace it from your backups or by reinstalling OS X.

Note: See TracTickets for help on using tickets.