Opened 14 years ago

Closed 14 years ago

#25419 closed defect (worksforme)

readline does not provide /opt/local/lib/libreadline.dylib

Reported by: thomas@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), nerdling (Jeremy Lavergne)
Port: readline

Description

Here's what I get when trying to install mysql5:

% sudo port install -d mysql5                                                                                                                                                                                           1
--->  Computing dependencies for mysql5
--->  Configuring mysql5
Error: The file /opt/local/lib/libreadline.dylib does not exist, though it was
Error: expected to have been provided by one of mysql5's dependencies. Try
Error: rebuilding the port that should have provided that file by running
Error: 
Error:     sudo port -n upgrade --force <portname>
Error: 
Error: Target org.macports.configure returned: missing required file

The dependencies of mysql5 are :

Library Dependencies: zlib, openssl, readline

However libreadline.dylib is not installed by the "readline" port:

% port contents readline                                                                                                                                                                                                0
Port readline contains:
  /opt/local/include/readline/chardefs.h
  /opt/local/include/readline/history.h
  /opt/local/include/readline/keymaps.h
  /opt/local/include/readline/readline.h
  /opt/local/include/readline/rlconf.h
  /opt/local/include/readline/rlstdc.h
  /opt/local/include/readline/rltypedefs.h
  /opt/local/include/readline/tilde.h
  /opt/local/lib/libhistory.5.0.dylib
  /opt/local/lib/libhistory.5.1.dylib
  /opt/local/lib/libhistory.5.2.dylib
  /opt/local/lib/libhistory.a
  /opt/local/lib/libreadline.5.0.dylib
  /opt/local/lib/libreadline.5.1.dylib
  /opt/local/lib/libreadline.5.2.dylib
  /opt/local/lib/libreadline.a
  /opt/local/share/doc/readline/CHANGELOG
  /opt/local/share/doc/readline/CHANGES
  /opt/local/share/doc/readline/COPYING
  /opt/local/share/doc/readline/NEWS
  /opt/local/share/doc/readline/README
  /opt/local/share/doc/readline/html/history.html
  /opt/local/share/doc/readline/html/readline.html
  /opt/local/share/doc/readline/html/rluserman.html
  /opt/local/share/info/history.info
  /opt/local/share/info/readline.info
  /opt/local/share/info/rluserman.info
  /opt/local/share/man/man3/history.3.gz
  /opt/local/share/man/man3/readline.3.gz
  /opt/local/share/readline/excallback.c
  /opt/local/share/readline/fileman.c
  /opt/local/share/readline/histexamp.c
  /opt/local/share/readline/manexamp.c
  /opt/local/share/readline/rl-fgets.c
  /opt/local/share/readline/rl.c
  /opt/local/share/readline/rlcat.c
  /opt/local/share/readline/rlevent.c
  /opt/local/share/readline/rlptytest.c
  /opt/local/share/readline/rltest.c
  /opt/local/share/readline/rlversion.c

Change History (12)

comment:1 Changed 14 years ago by thomas@…

Actually the readline port is completely broken, here's the files it installs:

lrwxr-xr-x  1 root  admin      21 25 jui 15:46 /opt/local/lib/libreadline.5.0.dylib -> libreadline.6.1.dylib
lrwxr-xr-x  1 root  admin      21 25 jui 15:46 /opt/local/lib/libreadline.5.1.dylib -> libreadline.6.1.dylib
lrwxr-xr-x  1 root  admin      21 25 jui 15:46 /opt/local/lib/libreadline.5.2.dylib -> libreadline.6.1.dylib
-rw-r--r--  2 root  admin  387008 25 jui 15:46 /opt/local/lib/libreadline.a

libreadline6.1.dylib is missing!

comment:3 Changed 14 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ryandesign@…
Port: mysql5 added

In the future, please fill in the port field and Cc the maintainer(s).

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

Cc: ryandesign@… added
Owner: changed from ryandesign@… to mcalhoun@…
Port: readline added; mysql5 removed
Summary: Cannot install mysql5 - readline does not install /opt/local/lib/libreadline.dylibreadline does not provide /opt/local/lib/libreadline.dylib

I agree your readline installation is broken. It certainly should be installing libreadline.dylib, libreadline.6.1.dylib, etc. Have you tried rebuilding readline?

sudo port -n upgrade --force readline

comment:5 Changed 14 years ago by thomas@…

Of course. It didn't change anything.

comment:6 Changed 14 years ago by nerdling (Jeremy Lavergne)

x86_64 on 10.6?

comment:7 Changed 14 years ago by thomas@…

Yes.

comment:8 Changed 14 years ago by nerdling (Jeremy Lavergne)

Give this a wing:

sudo port clean --all readline
sudo port destroot readline
ls `port work readline`/destroot/opt/local/lib

comment:9 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Cc Me!

comment:9 Changed 14 years ago by thomas@…

ls -la `port work readline`/destroot/opt/local/lib                                                                                                                        

total 888
drwxr-xr-x  10 root  admin     340 25 jui 17:53 .
drwxr-xr-x   5 root  admin     170 25 jui 17:53 ..
lrwxr-xr-x   1 root  admin      20 25 jui 17:53 libhistory.5.0.dylib -> libhistory.6.1.dylib
lrwxr-xr-x   1 root  admin      20 25 jui 17:53 libhistory.5.1.dylib -> libhistory.6.1.dylib
lrwxr-xr-x   1 root  admin      20 25 jui 17:53 libhistory.5.2.dylib -> libhistory.6.1.dylib
-rw-r--r--   1 root  admin   40872 25 jui 17:53 libhistory.a
lrwxr-xr-x   1 root  admin      21 25 jui 17:53 libreadline.5.0.dylib -> libreadline.6.1.dylib
lrwxr-xr-x   1 root  admin      21 25 jui 17:53 libreadline.5.1.dylib -> libreadline.6.1.dylib
lrwxr-xr-x   1 root  admin      21 25 jui 17:53 libreadline.5.2.dylib -> libreadline.6.1.dylib
-rw-r--r--   1 root  admin  387008 25 jui 17:53 libreadline.a

libreadline6.1.dylib is missing...

comment:10 Changed 14 years ago by nerdling (Jeremy Lavergne)

That is so peculiar. Before you do a clean (from that destroot) can you attach the log file? It should be at /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_readline/main.log

comment:11 Changed 14 years ago by thomas@…

Thanks, according to the log make failed because of some hacks I had on my machine. Entirely my fault. You can close, sorry for the noise.

comment:12 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: worksforme
Status: newclosed

Alrighty.

Note: See TracTickets for help on using tickets.