Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tab-Completion in gnuplot

185 views
Skip to first unread message

Joerg Johannes

unread,
Jun 18, 2003, 7:00:07 AM6/18/03
to
Hi everybody

Last week I helped a friend out with some gnuplot graphs on his SuSE
machine. He asked me why I was typing in the whole filenames in gnuplot
instead of using auto-completion with the "Tab" key. I said, because
gnuplot does not support it. BUT -> On SuSE it does!Back home I tried
it on my sid box, and there is really no auto-completion. Does anybody
know how I can turn that on? What did SuSE do to gnuplot???

thanks
joerg

--
Gib GATES keine Chance!


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Sudarshan

unread,
Jun 18, 2003, 5:12:03 PM6/18/03
to
Joerg Johannes <liste...@gmx.de> wrote in message news:<20030618110007$1b...@gated-at.bofh.it>...
> Hi everybody
Yeah for some reason, the debian version oof gnuplot does not support
tab completion byu default. so i had to apt-get the source, and made a
change in the debian/rules file. in the section 'config.status:
configure' you can add the foll line '--with-readline=gnu'. if i
remember right, that was the modification i did for this to work.

BUt this brings me to another question. now that i have compiled my
pown gnuplot, if gnuplot is upgraded on debian/testing, then apt-get
install does not not download it. I would really like it to download
the new source, compile it with the changes I made and install it, on
the fly. Is there a script that would do this?
Thanks
-sudarshan

Joey Hess

unread,
Jun 20, 2003, 6:50:06 PM6/20/03
to
Joerg Johannes wrote:
> Last week I helped a friend out with some gnuplot graphs on his SuSE
> machine. He asked me why I was typing in the whole filenames in gnuplot
> instead of using auto-completion with the "Tab" key. I said, because
> gnuplot does not support it. BUT -> On SuSE it does!Back home I tried
> it on my sid box, and there is really no auto-completion. Does anybody
> know how I can turn that on? What did SuSE do to gnuplot???

Quoting /usr/share/doc/gnuplot/README.Debian:

libreadline
-----------

Yes, the built in readline of gnuplot is bad. However, libreadline
cannot be used instead because it is licensed under the GPL, whereas
gnuplot has special licenses (patches only). Linking those programs
together is forbidden by the GPL. Please don't file bugs telling me to
use libreadline in gnuplot...

--
see shy jo

Gary Hennigan

unread,
Jun 20, 2003, 9:10:09 PM6/20/03
to

For this reason I generally build gnuplot from source and add the
necessary config stuff to link to libreadline. Steps, roughly, are:

apt-get install libreadline4
apt-get install libreadline4-dev
cd /usr/local/src
apt-get source gnuplot
cd gnuplot-3.7.3/debian
# Edit the file named "rules" and change
--without-gnu-readline
TO
--with-readline=gnu
cd ..
dpkg-buildpackage
cd ..
dpkg -i gnuplot*3.7.3-1*.deb

Then I go into dselect and put a hold on gnuplot so it doesn't get
upgraded automatically during an "apt-get dist-upgrade".

Of course I don't fully understand all the "GPL implications". I
believe what the Debian gnuplot maintainer means is that it's ok to
use GNU readline library with gnuplot, gnuplot just can't be
distributed that way and so (s)he doesn't distribute it that way with
Debian.

Gary

Colin Watson

unread,
Jun 20, 2003, 11:40:06 PM6/20/03
to
On Fri, Jun 20, 2003 at 04:53:56PM -0600, Gary Hennigan wrote:
> Joey Hess <jo...@debian.org> writes:
> > Quoting /usr/share/doc/gnuplot/README.Debian:
> >
> > libreadline
> > -----------
> >
> > Yes, the built in readline of gnuplot is bad. However, libreadline
> > cannot be used instead because it is licensed under the GPL, whereas
> > gnuplot has special licenses (patches only). Linking those programs
> > together is forbidden by the GPL. Please don't file bugs telling me to
> > use libreadline in gnuplot...
[...]

> Of course I don't fully understand all the "GPL implications". I
> believe what the Debian gnuplot maintainer means is that it's ok to
> use GNU readline library with gnuplot, gnuplot just can't be
> distributed that way and so (s)he doesn't distribute it that way with
> Debian.

Correct. You can't take GPL code, link it against non-GPL code (more
specifically code that cannot be distributed under the terms of the GPL;
this means that BSD-minus-advertising-clause and LGPL are not a problem,
for example, but gnuplot's licence is since it imposes additional
restrictions over and above those in the GPL), and distribute the
resulting binary.

However, the GPL explicitly does not cover use, as section 0 says:

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

Cheers,

--
Colin Watson [cjwa...@flatline.org.uk]

Bruce Sass

unread,
Jun 21, 2003, 3:40:09 PM6/21/03
to
On Sat, 21 Jun 2003, Colin Watson wrote:

> On Fri, Jun 20, 2003 at 04:53:56PM -0600, Gary Hennigan wrote:
> > Joey Hess <jo...@debian.org> writes:
> > > Quoting /usr/share/doc/gnuplot/README.Debian:
> > >
> > > libreadline
> > > -----------

> [...]
> > Of course I don't fully understand all the "GPL implications". I
> > believe what the Debian gnuplot maintainer means is that it's ok to
> > use GNU readline library with gnuplot, gnuplot just can't be
> > distributed that way and so (s)he doesn't distribute it that way with
> > Debian.
>
> Correct. You can't take GPL code, link it against non-GPL code (more
> specifically code that cannot be distributed under the terms of the GPL;
> this means that BSD-minus-advertising-clause and LGPL are not a problem,
> for example, but gnuplot's licence is since it imposes additional
> restrictions over and above those in the GPL), and distribute the
> resulting binary.

What other .debs are in the same situation and would therefore benefit
from a local tweak and rebuild?

Joerg Johannes

unread,
Jun 24, 2003, 5:20:12 AM6/24/03
to
<snip>

> > Yes, the built in readline of gnuplot is bad. However, libreadline
> > cannot be used instead because it is licensed under the GPL,
> > whereas gnuplot has special licenses (patches only). Linking those
> > programs together is forbidden by the GPL. Please don't file bugs
> > telling me to use libreadline in gnuplot...

Oh, yes, sometimes it IS worth reading the Readme's ... sorry.

> For this reason I generally build gnuplot from source and add the
> necessary config stuff to link to libreadline. Steps, roughly, are:
>
> apt-get install libreadline4
> apt-get install libreadline4-dev
> cd /usr/local/src
> apt-get source gnuplot
> cd gnuplot-3.7.3/debian
> # Edit the file named "rules" and change
> --without-gnu-readline
> TO
> --with-readline=gnu
> cd ..
> dpkg-buildpackage
> cd ..
> dpkg -i gnuplot*3.7.3-1*.deb

Great, that worked for me, too

> Then I go into dselect and put a hold on gnuplot so it doesn't get
> upgraded automatically during an "apt-get dist-upgrade".

Urghh, I hate dselect. It just scares me. However, I'll keep track of it
and reinstall my own .deb when upgrade wants to touch it.

thanks

joerg

--
Gib GATES keine Chance!

Derrick 'dman' Hudson

unread,
Jun 24, 2003, 8:40:09 AM6/24/03
to
On Tue, Jun 24, 2003 at 10:55:02AM +0200, Joerg Johannes wrote:

| > Then I go into dselect and put a hold on gnuplot so it doesn't get
| > upgraded automatically during an "apt-get dist-upgrade".
|
| Urghh, I hate dselect. It just scares me.

# echo "gnuplot hold" | dpkg --set-selections

-D

--
Even youths grow tired and weary,
and young men stumble and fall;
but those who hope in the Lord
will renew their strength.
They will soar on wings like eagles;
they will run and not grow weary,
they will walk and not be faint.

Isaiah 40:31

http://dman13.dyndns.org/~dman/

Joerg Johannes

unread,
Jun 24, 2003, 10:40:09 AM6/24/03
to
On Tuesday 24 June 2003 14:19, Derrick 'dman' Hudson wrote:

> | Urghh, I hate dselect. It just scares me.
>
> # echo "gnuplot hold" | dpkg --set-selections

Yes, I knew such an easy way existed, I was only too lazy to search the
archives...

Thanks, Derrick

0 new messages