Package Details: tpp 1.3.1-3

Git Clone URL: https://aur.archlinux.org/tpp.git (read-only)
Package Base: tpp
Description: A text presentation program in ncurses, LaTeX, or text.
Upstream URL: http://www.ngolde.de/tpp.html
Licenses: GPL
Submitter: None
Maintainer: None
Last Packager: Dragonlord
Votes: 25
Popularity: 0.004778
First Submitted: 2007-04-14 20:00
Last Updated: 2015-08-03 18:32

Required by (0)

Sources (2)

Latest Comments

taifunbrowser commented on 2015-02-25 01:33

Disregard, ruby 2.2 doesn't work (can't find symbol rb_thread_select, called by ncurses-ruby.)

Downgrading ruby to 2.1, scrapping ruby-ncurses and building from source using "gem install ncurses-ruby" worked, however.

taifunbrowser commented on 2015-02-25 00:29

The ruby-ncurses package doesn't seem to work with ruby 2.1, I got a LoadError trying to require 'ncurses' when it was installed, which made tpp fail.

Upgrading to ruby 2.2 fixed this.

Bersam commented on 2014-12-29 12:36

Updated PKGBUILD. thanks to @pancho.

taifunbrowser commented on 2014-12-11 07:30

Whoops, I missed one incorrect usage of ?.

Also, the backspace key was broken in command line mode so I fixed that too..

New patch:
http://pastebin.com/5jqc2LRT

taifunbrowser commented on 2014-12-11 06:32

The current version appears to be incompatible with ruby 1.9, as most of the hotkeys do not respond properly.

I tracked down the problem to this change in ruby 1.9:
http://stackoverflow.com/questions/1270209/getting-an-ascii-character-code-in-ruby-using-question-mark-fails

Replacing all instances of [0] with [0].ord to get the ascii value of characters fixes the library for me. This should be compatible with ruby 1.8 as well, as ord has always had this behavior.

Patch:
http://pastebin.com/Hj0rm6jZ

Bersam commented on 2013-06-09 11:16

if you have this problem:
ruby: symbol lookup error: /usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/ncurses_bin.so: undefined symbol: STR2CSTR
try to upgrade ruby-ncurses to last rev.

Bersam commented on 2013-06-08 15:05

Updated this package to work with ruby 2 using spec files from fedora commiunity, also created ruby-ncurses-patched witch is compatible with ruby>=1.9.2
Please report any error due this update.

Bersam commented on 2013-06-08 05:13

and build() should change to package().
you are using "make install" in build function witch is wrong and should be used in package function.

Bersam commented on 2013-06-07 21:15

and build() should change to package().
you are using "make install" in build function witch is wrong and should be used in package function.

Bersam commented on 2013-06-07 21:13

Due new changes on package function, you should change this line:
make prefix=$startdir/pkg/usr install
to:
make prefix=$pkgdir/usr install
or it will create an empty package.

erikw commented on 2013-03-16 21:57

The ruby-ncurses issue should have been fixed upstream according to https://bugzilla.redhat.com/show_bug.cgi?id=822814.

Ambrevar commented on 2012-05-15 20:30

That's right, I succeeded in running tpp by recompiling ruby-ncurses with a little patch as described here: http://www.ruby-forum.com/topic/215406.
So, first replace all STR2CSTR:

cd src/
sed -i 's/STR2CSTR/StringValuePtr/g' form_wrap.c menu_wrap.c ncurses_wrap.c

and apply the two following patches :
--------------------------------------
$ diff form_wrap.c form_wrap.c.b
626,627c626
< VALUE tmp = rb_ary_entry(arg3, (long)i);
< list[i] = StringValuePtr(tmp);
---
> list[i] = STR2CSTR(rb_ary_entry(arg3, (long)i));

--------------------------------------

$ diff ncurses_wrap.c ncurses_wrap.c.b
...
2244,2245d2243
< VALUE tmp = rb_funcall3(rb_mKernel, rb_intern("sprintf"), argc-1,
< argv + 1);
2247c2245,2246
< (VALUE)StringValuePtr(tmp));
---
> STR2CSTR(rb_funcall3(rb_mKernel, rb_intern("sprintf"), argc-1,
> argv + 1)));

Ambrevar commented on 2012-05-15 20:23

That's right, I succeeded in running tpp by recompiling ruby-ncurses with a little patch as described here: http://www.ruby-forum.com/topic/215406.
So, first replace all STR2CSTR:

cd src/
sed -i 's/STR2CSTR/StringValuePtr/g' form_wrap.c menu_wrap.c ncurses_wrap.c

and apply the two following patches :
--------------------------------------
$ diff form_wrap.c form_wrap.c.b
626,627c626
< VALUE tmp = rb_ary_entry(arg3, (long)i);
< list[i] = StringValuePtr(tmp);
---
> list[i] = STR2CSTR(rb_ary_entry(arg3, (long)i));

--------------------------------------

$ diff ncurses_wrap.c ncurses_wrap.c.b
...
2244,2245d2243
< VALUE tmp = rb_funcall3(rb_mKernel, rb_intern("sprintf"), argc-1,
< argv + 1);
2247c2245,2246
< (VALUE)StringValuePtr(tmp));
---
> STR2CSTR(rb_funcall3(rb_mKernel, rb_intern("sprintf"), argc-1,
> argv + 1)));

hollunder commented on 2012-05-13 08:42

Don't flag out of date if it doesn't work. Flag out of date if there is a new stable version.

Anonymous comment on 2012-05-11 17:16

undefined symbol: STR2CSTR is actually a ruby-ncurses problem, not a tpp one.

hollunder commented on 2010-12-02 11:32

ruby: symbol lookup error: /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/ncurses_bin.so: undefined symbol: STR2CSTR