Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#44922 closed defect (fixed)

coreutils @8.23_0 stdbuf: missing libstdbuf.so

Reported by: zmwangx@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: zmwangx@…, kurthindenburg (Kurt Hindenburg), cooljeanius (Eric Gallager)
Port: coreutils

Description

(My system environment: OS X 10.9.4, Xcode 5.1.1.)

The executables /opt/local/libexec/gnubin/stdbuf or /opt/local/bin/gstdbuf from coreutils cannot be used due to missing libstdbuf.so. For instance, try

$ stdbuf -oL echo 'hello, world'
stdbuf: failed to find ‘libstdbuf.so’

In fact, by inspecting the files related to stdbuf installed by coreutils,

$ port contents coreutils | grep stdbuf
  /opt/local/bin/gstdbuf
  /opt/local/libexec/coreutils/glibstdbuf.so
  /opt/local/libexec/gnubin/man/man1/stdbuf.1.gz
  /opt/local/libexec/gnubin/stdbuf
  /opt/local/share/man/man1/gstdbuf.1.gz

it is immediately clear that we are only missing a symlink here (the g prefix ruined the linking). I was able to fix the issue by

ln -s /opt/local/libexec/coreutils/glibstdbuf.so /opt/local/libexec/coreutils/libstdbuf.so

Change History (7)

comment:1 Changed 10 years ago by zmwangx@…

Cc: zmwangx@… added

Cc Me!

comment:2 Changed 10 years ago by P@…

We really shouldn't be transforming any libexec binaries at all. Probably the best fix is to patch Makefile.in like so:

-transform = s/ginstall/install/; $(program_transform_name)
+transform = s/ginstall/install/; /libstdbuf/!$(program_transform_name)

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:4 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

Thanks for report and patch - fixed in r126172

comment:5 Changed 10 years ago by jmroot (Joshua Root)

Has someone reported this upstream?

comment:6 Changed 10 years ago by zmwangx@…

Has someone reported this upstream?

Someone seemed to have reported, and they had an upstream fix for this a month ago. See
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=6f9b018
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=3cf19b5

comment:7 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.