#9459 closed defect (invalid)
gnuplot missing readline dependency
Reported by: | tristan@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.2 |
Keywords: | Cc: | ||
Port: |
Description
gnuplot doesn't work after readline upgrade. This is the same kind of bug as #9335
~> gnuplot test.gp dyld: Library not loaded: /opt/local/lib/libreadline.5.0.dylib
Referenced from: /opt/local/bin/gnuplot Reason: image not found
Trace/BPT trap
Change History (5)
comment:1 Changed 18 years ago by gwright@…
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 18 years ago by tristan@…
OK, this may be a bug in gnuplot, but it seems to me like this is a bug in darwinports as well. If gnuplot requires a rebuild when readline is updated, then the packaging system should somehow be able to determine this. In other words if I have gnuplot and readline installed, and readline gets updated, then "port upgrade outdated" should also do the "port uninstall gnuplot; port clean --all gnuplot; port install gnuplot". I think that is what the average user would expect.
comment:3 Changed 18 years ago by gwright@…
Hi Tristan,
Your criticisms are fair. The mechanism for doing what you want exists:
sudo port -R upgrade readline
will upgrade readline and everthing that depends on it. However, this is not the default. Thinking out loud (so to speak), perhaps the portfile should identify a port as installing a library, and when upgrading, default to the -R behavior.
Would this satisfy your concern?
Best Wishes, Greg
comment:4 Changed 18 years ago by gwright@…
Hi Tristan,
Your criticisms are fair. The mechanism for doing what you want exists:
sudo port -R upgrade readline
will upgrade readline and everthing that depends on it. However, this is not the default. Thinking out loud (so to speak), perhaps the portfile should identify a port as installing a library, and when upgrading, default to the -R behavior.
Would this satisfy your concern?
Best Wishes, Greg
comment:5 Changed 18 years ago by tristan@…
Yes that sounds good. I wasn't aware of the "-R" option - still new to Darwinports!
Cheers, Tristan
Hi Tristan,
I'm closing this bug as INVALID. Gnuplot requires that you do a
sudo port uninstall gnuplot sudo port clean --all gnuplot sudo port install gnuplot
The problem is not the gnuplot port (readline is in fact a dependency) or readline itself, but that gnuplot links with the most specific verison number of the readline port. This is not really a bug, but historical baggage from the days when readline was less stable, so people wrote their autoconf scripts to pick up the most specific version, rather than the symlinks with the major revision number.
You need to clean out everything to make gnuplot build against the latest readline.
I know it is annoyance; you might bring it to the attention of the gnuplot maintainers.
Best Wishes, Greg