Package Details: orpie 1.5.2-11

Git Clone URL: https://aur.archlinux.org/orpie.git (read-only)
Package Base: orpie
Description: https://github.com/pelzlpj/orpie
Upstream URL: http://pessimization.com/software/orpie/
Keywords: calculator RPN
Licenses: GPL
Submitter: None
Maintainer: aksr
Last Packager: aksr
Votes: 16
Popularity: 0.000237
First Submitted: 2007-09-26 16:54
Last Updated: 2016-08-31 18:08

Latest Comments

kazuo commented on 2017-07-09 22:55

I needed new/updated patches to build it. I don't understand ocaml, ocamlgsl and orpie source base, so... But its build and run.

This is the updated PKGBUILD:
https://gist.github.com/2247bdebcdbeec95a616125daeba7b58

I split the mlgsl_sf.patch:
https://gist.github.com/f32ea2ad1b433bc8017cbd1b15cd9d6c
and:
https://gist.github.com/ae89f2e0829e1d42e31edcbb29857f41
for this one I also needed to remove the definitions in `gsl/gsl_sf.ml`

This `Makefile.in` comes from [1]:
https://gist.github.com/6931adc398a5cc9aeb618147642b792b

And this comes from [2]:
https://gist.github.com/4167fb5d9ce82f996d5d56c950df9fb7

Thanks!

1: https://github.com/pelzlpj/orpie/pull/2
2: https://github.com/pelzlpj/orpie/issues/10

ecocode commented on 2017-05-02 15:03

Hello,

I'm trying to install orpie with the AUR package, but orpie seems to fail to build. I added the complete build log below. Appreciate if anyone can help! Thanks!

==> Building and installing package
==> Making package: orpie 1.5.2-11 (Tue May 2 16:59:24 CEST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading orpie-1.5.2.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 594 0 594 0 0 235 0 --:--:-- 0:00:02 --:--:-- 235
100 370k 100 370k 0 0 104k 0 0:00:03 0:00:03 --:--:-- 1382k
-> Found mlgsl_sf.patch
==> Validating source files with md5sums...
orpie-1.5.2.tar.gz ... Passed
mlgsl_sf.patch ... Passed
==> Validating source files with sha1sums...
orpie-1.5.2.tar.gz ... Passed
mlgsl_sf.patch ... Passed
==> Validating source files with sha256sums...
orpie-1.5.2.tar.gz ... Passed
mlgsl_sf.patch ... Passed
==> Extracting sources...
-> Extracting orpie-1.5.2.tar.gz with bsdtar
==> Starting prepare()...
patching file mlgsl_sf.c
==> Starting build()...
checking for ocamlc... ocamlc
ocaml version is 4.04.0
ocaml library path is /usr/lib/ocaml
checking for ocamlopt... ocamlopt
checking ocamlopt version... ok
checking for ocamlc.opt... ocamlc.opt
checking ocamlc.opt version... ok
checking for ocamlopt.opt... ocamlopt.opt
checking ocamlc.opt version... ok
checking for ocamldep... ocamldep
checking for ocamllex... ocamllex
checking for ocamllex.opt... ocamllex.opt
checking for ocamlyacc... ocamlyacc
checking platform... not Win32
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for working curses... yes
checking for gsl-config... /usr/bin/gsl-config
checking for GNU Scientific Library... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating install.ml
ocamlc.opt -c -g -I ./curses -thread curses/curses.mli
ocamlopt.opt -c -I ./curses -thread curses/curses.ml
cd curses && ocamlc.opt -ccopt "-Wall -fPIC -DPIC -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong" -c ml_curses.c
functions.c: In function ‘mlcurses_unctrl’:
functions.c:407:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ML1(unctrl,string,chtype)
^
ml_curses.c:50:15: note: in definition of macro ‘r_string’
{ char *ret=f; \
^
functions.c:407:1: note: in expansion of macro ‘ML1’
ML1(unctrl,string,chtype)
^~~
functions.c: In function ‘mlcurses_keyname’:
functions.c:408:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ML1(keyname,string,int)
^
ml_curses.c:50:15: note: in definition of macro ‘r_string’
{ char *ret=f; \
^
functions.c:408:1: note: in expansion of macro ‘ML1’
ML1(keyname,string,int)
^~~
In file included from ml_curses.c:176:0:
functions.c: In function ‘mlcurses_getsyx’:
functions.c:295:10: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
BEG0 int x,y; getsyx(y,x); r_int_int(x,y); END
^
functions.c:295:12: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
BEG0 int x,y; getsyx(y,x); r_int_int(x,y); END
^
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_error.c
In file included from mlgsl_error.c:9:0:
mlgsl_error.c: In function ‘ml_gsl_raise_exn’:
/usr/lib/ocaml/caml/memory.h:236:12: error: ‘caml__frame’ undeclared (first use in this function)
(void) caml__frame, \
^
/usr/lib/ocaml/caml/memory.h:309:3: note: in expansion of macro ‘CAMLxparam2’
CAMLxparam2 (x, y)
^~~~~~~~~~~
mlgsl_error.c:37:3: note: in expansion of macro ‘CAMLlocal2’
CAMLlocal2(exn_msg, exn_arg);
^~~~~~~~~~
/usr/lib/ocaml/caml/memory.h:236:12: note: each undeclared identifier is reported only once for each function it appears in
(void) caml__frame, \
^
/usr/lib/ocaml/caml/memory.h:309:3: note: in expansion of macro ‘CAMLxparam2’
CAMLxparam2 (x, y)
^~~~~~~~~~~
mlgsl_error.c:37:3: note: in expansion of macro ‘CAMLlocal2’
CAMLlocal2(exn_msg, exn_arg);
^~~~~~~~~~
/usr/lib/ocaml/caml/memory.h:236:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
(void) caml__frame, \
^
/usr/lib/ocaml/caml/memory.h:309:3: note: in expansion of macro ‘CAMLxparam2’
CAMLxparam2 (x, y)
^~~~~~~~~~~
mlgsl_error.c:37:3: note: in expansion of macro ‘CAMLlocal2’
CAMLlocal2(exn_msg, exn_arg);
^~~~~~~~~~
make: *** [Makefile:219: gsl/mlgsl_error.o] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build orpie.

aksr commented on 2016-08-31 18:09

Updated, thank you.

pigmonkey commented on 2016-08-31 16:15

Orpie is now on GitHub. Can we update the PKGBUILD?

https://github.com/pelzlpj/orpie
https://github.com/pelzlpj/orpie/releases/tag/release-1.5.2

pigmonkey commented on 2016-08-31 01:56

I contacted the Orpie author and asked him if he would mind putting the source on GitHub. He said he would get it moved in a few days. When that happens we can change the PKGBUILD to pull from there.

trickyelf commented on 2016-08-28 16:48

Can we just grab it from debian?

jshuping commented on 2016-08-28 16:14

Flagged out of date due to mirror being down.

Moxon commented on 2016-07-28 16:19

Somehow the download link is not working for me (times out). I tried over a couple of days but with no success. Any hints?

aksr commented on 2016-05-04 16:30

trickyelf, kazuo: For now, the debian patch is applied.

trickyelf commented on 2016-04-28 22:33

Any update on this? Including gentoo or debian patches seems reasonable.

aksr commented on 2016-04-15 05:18

The maintainer responded very fast before.
I contacted him again (a week or so ago).
kazuo, typoofcem: I'll see what can be done. ;)

kazuo commented on 2016-04-14 22:38

The upstream can take sometime (like years) to include patches. So for a long time the aur/orpie included gentoo/debian patches.

typoofcem commented on 2016-04-14 21:34

Package fails to build with GSL 2.x. Temporary fix is to use GSL 1.16, as upstream hasn't issued a patch, afaik. Debain did patch it to use GSL 2 for stretch and sid. Macports simply removed some function calls.

Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804497

Macports patch: https://trac.macports.org/ticket/50338

trickyelf commented on 2016-04-02 21:49

This package fails to build for me.

cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_matrix_complex.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_matrix_double.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_matrix_float.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_matrix_complex_float.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_vector_double.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_vector_float.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_permut.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_linalg.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_linalg_complex.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_fun.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_math.c
cd gsl && ocamlc.opt -ccopt "-I/usr/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DHAVE_INLINE -DHAVE_FENV -g -O2" -c mlgsl_sf.c
In file included from mlgsl_sf.c:10:0:
mlgsl_sf.c: In function ‘ml_gsl_sf_ellint_D’:
mlgsl_sf.c:95:7: error: too many arguments to function ‘gsl_sf_ellint_D’
ML4(gsl_sf_##name, conv1, conv2, conv3, conv4, copy_double) \
^
/usr/lib/ocaml/caml/memory.h:226:29: note: in definition of macro ‘CAMLreturnT’
type caml__temp_result = (result); \
^
wrappers.h:74:5: note: in expansion of macro ‘CAMLreturn’
CAMLreturn(convr(name(conv1(arg1), conv2(arg2), conv3(arg3), conv4(arg4)))) ; }
^
mlgsl_sf.c:95:3: note: in expansion of macro ‘ML4’
ML4(gsl_sf_##name, conv1, conv2, conv3, conv4, copy_double) \
^
mlgsl_sf.c:261:1: note: in expansion of macro ‘SF4’
SF4(ellint_D, Double_val, Double_val, Double_val, GSL_MODE_val)
^
In file included from /usr/include/gsl/gsl_sf.h:17:0,
from mlgsl_sf.c:6:
/usr/include/gsl/gsl_sf_ellint.h:85:8: note: declared here
double gsl_sf_ellint_D(double phi, double k, gsl_mode_t mode);
^
In file included from mlgsl_sf.c:8:0:
mlgsl_sf.c: In function ‘ml_gsl_sf_ellint_D_e’:
/usr/lib/ocaml/caml/mlvalues.h:76:20: warning: passing argument 4 of ‘gsl_sf_ellint_D_e’ makes pointer from integer without a cast [-Wint-conversion]
#define Int_val(x) ((int) Long_val(x))
^
mlgsl_sf.c:77:49: note: in expansion of macro ‘Int_val’
name(conv1(arg1), conv2(arg2), conv3(arg3), conv4(arg4), &res); \
^
mlgsl_sf.c:96:3: note: in expansion of macro ‘ML4_res’
ML4_res(gsl_sf_##name##_e, conv1, conv2, conv3, conv4)
^
mlgsl_sf.c:261:1: note: in expansion of macro ‘SF4’
SF4(ellint_D, Double_val, Double_val, Double_val, GSL_MODE_val)
^
mlgsl_sf.c:261:51: note: in expansion of macro ‘GSL_MODE_val’
SF4(ellint_D, Double_val, Double_val, Double_val, GSL_MODE_val)
^
In file included from /usr/include/gsl/gsl_sf.h:17:0,
from mlgsl_sf.c:6:
/usr/include/gsl/gsl_sf_ellint.h:84:5: note: expected ‘gsl_sf_result * {aka struct gsl_sf_result_struct *}’ but argument is of type ‘int’
int gsl_sf_ellint_D_e(double phi, double k, gsl_mode_t mode, gsl_sf_result * result);
^
mlgsl_sf.c:96:11: error: too many arguments to function ‘gsl_sf_ellint_D_e’
ML4_res(gsl_sf_##name##_e, conv1, conv2, conv3, conv4)
^
mlgsl_sf.c:77:5: note: in definition of macro ‘ML4_res’
name(conv1(arg1), conv2(arg2), conv3(arg3), conv4(arg4), &res); \
^
mlgsl_sf.c:261:1: note: in expansion of macro ‘SF4’
SF4(ellint_D, Double_val, Double_val, Double_val, GSL_MODE_val)
^
In file included from /usr/include/gsl/gsl_sf.h:17:0,
from mlgsl_sf.c:6:
/usr/include/gsl/gsl_sf_ellint.h:84:5: note: declared here
int gsl_sf_ellint_D_e(double phi, double k, gsl_mode_t mode, gsl_sf_result * result);
^
Makefile:219: recipe for target 'gsl/mlgsl_sf.o' failed
make: *** [gsl/mlgsl_sf.o] Error 2
==> ERROR: A failure occurred in build().
Aborting...

ryanmjacobs commented on 2014-09-26 22:32

@emlimik31
Turns out the package camlp4 is needed for the build. https://www.archlinux.org/packages/extra/i686/camlp4/

This should be added to the PKGBUILD build dependencies.

ryanmjacobs commented on 2014-09-26 22:31

#elimik31
Turns out the package camlp4 is needed to build. https://www.archlinux.org/packages/extra/i686/camlp4/

It should be added to the PKGBUILD build dependencies.

elimik31 commented on 2014-09-26 15:51

I get the error ("Kommando nicht gefunden" is German for "Command not found":
...
config.status: creating Makefile
config.status: creating install.ml
ocamlopt.opt -c -pp camlp4o -I ./curses -I ./gsl -I ./units -thread big_int_str.ml
sh: camlp4o: Kommando nicht gefunden.
File "big_int_str.ml", line 1:
Error: Error while running external preprocessor
Command line: camlp4o 'big_int_str.ml' > /tmp/ocamlpp6e1114
...
With ocaml, ncurses and gsl I should have all the dependencies. What is the matter?

ryanmjacobs commented on 2014-08-29 04:43

Yup. ocaml-gsl should not be a dependency. However, GSL (GNU Scientific Library) is. It says right there on Orpie's website: http://pessimization.com/software/orpie/.

Here's the fixed PKGBUILD: https://gist.github.com/ryanmjacobs/e2f367bd676d07a67076

fionn commented on 2014-05-10 06:41

Getting the same error as OliK on 2014-04-12 with identical output.

Once this one is addressed, are there other dependencies that need to be taken care of?

parrotbsd commented on 2014-04-14 22:22

ocaml-gsl shouldn't be a dependency. I successfully compiled from source without it. I did install 'ocaml' package from the 'extra' repository.

OliK commented on 2014-04-12 11:39

Got an error:

ocamllex.opt txtin_lexer.mll
25 states, 706 transitions, table size 2974 bytes
ocamlopt.opt -c -pp camlp4o -I ./curses -I ./gsl -I ./units -thread curses_keys.ml
File "curses_keys.ml", line 35, characters 45-75:
Error: Unbound module Curses_assist
Makefile:285: recipe for target 'curses_keys.cmx' failed
make: *** [curses_keys.cmx] Error 2
make: *** Waiting for unfinished jobs....
rm txtin_parser.mli txtin_lexer.ml

calculuswhiz commented on 2014-04-10 05:07

Got an error:
gcc: error: /usr/lib/ocaml/gsl/gsl.a: No such file or directory

kazuo commented on 2010-06-15 11:09

Ouch, I copied a tab from somewhere... can you change the tab for spaces on pkgbuild (in the patch lines)? Dont change anything but well, tab and space mixed are ugly...

Anonymous comment on 2010-06-14 11:24

Thanks!

kazuo commented on 2010-06-14 10:57

Hi. This PKGBUILD dont build, I used the patch's from gentoo and its builds and works with the last ocaml (remember that you need to rebuild ocaml-gsl). A modified PKGBUILD can be found at http://fma.if.usp.br/~kazuo/orpie-1.5.1-5.src.tar.gz