Package Details: omake 0.9.8.6_0.rc1-5

Git Clone URL: https://aur.archlinux.org/omake.git (read-only)
Package Base: omake
Description: A build system designed for scalability and portability
Upstream URL: http://omake.metaprl.org/index.html
Licenses: GPL2
Submitter: None
Maintainer: oriba
Last Packager: oriba
Votes: 23
Popularity: 0.005207
First Submitted: 2008-04-02 01:27
Last Updated: 2015-08-30 21:08

Latest Comments

suracuto commented on 2015-01-11 13:05

I couldn't compile omake with ocaml 4.02.1-1, so I made change in disable-warnings.patch:

https://gist.github.com/suracuto/5453d457c78ea58ab9a3

suracuto commented on 2015-01-11 12:59

I couldn't compile omake with ocaml 4.02.1.

*** omake: finished reading OMakefiles (0.20 sec)
- build src/env omake_env.cmx
+ ocamlopt.opt -warn-error A -w Aer-3-29-32..35-37..39-41-44z -I . -I ../libmojave -I ../util -I ../exec -I ../magic -I ../ast -I ../ir -c omake_env.ml
File "omake_env.ml", line 1995, characters 28-52:
Warning 48: implicit elimination of optional argument ?force
File "omake_env.ml", line 1997, characters 28-52:================================================================================================= ] 01109 / 01203
Warning 48: implicit elimination of optional arguments ?force, ?follow_symlinks
File "omake_env.ml", line 1999, characters 28-55:
Warning 48: implicit elimination of optional arguments ?force, ?follow_symlinks
File "omake_env.ml", line 1:
Error: Some fatal warnings were triggered (3 occurrences)
*** omake: 1109/1203 targets are up to date
*** omake: failed (2.38 sec, 0/234 scans, 1/415 rules, 360/1665 digests)
*** omake: targets were not rebuilt because of errors:
src/env/omake_env.cmx
depends on: src/env/omake_env.ml
src/env/omake_env.o
depends on: src/env/omake_env.ml
Makefile:31: recipe for target 'all' failed
make: *** [all] Error 2


So I made change in disable-warnings.patch.

--- OMakefile.orig 2010-10-27 09:42:37.000000000 +0900
+++ OMakefile 2013-12-14 02:40:56.694296965 +0900
@@ -57,7 +57,7 @@
#
# OCaml options
#
-OCAMLFLAGS[] += -w Ae$(if $(OCAML_ACCEPTS_Z_WARNING), z)
+OCAMLFLAGS[] += -w Aer-3-29-32..35-37..39-41-44-48$(if $(OCAML_ACCEPTS_Z_WARNING), z)
if $(THREADS_ENABLED)
OCAMLFLAGS += -thread
export

oriba commented on 2014-02-20 01:30

Hello, picked up the package.
It can be created and used, so I hope it's ok as it is.
Please drop me a note, if it needs to be enhanced.

oriba commented on 2014-02-20 01:08

hmhh, the omake-hompage is weird: 0.99 is older than 0.9.8.6 ?!
http://omake.metaprl.org/index.html

tomoki commented on 2013-11-04 22:24

I made change in disable-warnings.patch.
Please use this if you use ocaml 4.01.0.
---------------------------------------------------------------------------------
--- OMakefile.orig 2010-10-27 09:42:37.000000000 +0900
+++ OMakefile 2011-06-07 02:52:21.244832088 +0900
@@ -57,7 +57,7 @@
#
# OCaml options
#
-OCAMLFLAGS[] += -w Ae$(if $(OCAML_ACCEPTS_Z_WARNING), z)
+OCAMLFLAGS[] += -w Aer-3-29-32..35-37..39-41-44$(if $(OCAML_ACCEPTS_Z_WARNING), z)
if $(THREADS_ENABLED)
OCAMLFLAGS += -thread
export

tomoki commented on 2013-11-03 18:33

Now I can't compile omake with ocaml 4.01.0.

--------------------------------
** omake: finished reading OMakefiles (1.12 sec)
- build src/libmojave lm_list_util.o
+ ocamlopt.opt -warn-error A -w Aer-29-32..35-37..39z -I . -c lm_list_util.ml
File "lm_list_util.ml", line 579, characters 19-21:
Warning 3: deprecated feature: operator (or); you should use (||) instead
File "lm_list_util.ml", line 766, characters 18-19: ] 00599 / 01203
Warning 3: deprecated feature: operator (&); you should use (&&) instead
File "lm_list_util.ml", line 816, characters 32-33:
Warning 3: deprecated feature: operator (&); you should use (&&) instead
File "lm_list_util.ml", line 825, characters 14-16:
Warning 3: deprecated feature: operator (or); you should use (||) instead
File "lm_list_util.ml", line 1:
Error: Some fatal warnings were triggered (4 occurrences)
*** omake: 600/1203 targets are up to date
*** omake: failed (11.43 sec, 148/148 scans, 78/88 rules, 287/1307 digests)
*** omake: targets were not rebuilt because of errors:
src/libmojave/lm_list_util.cmx
src/libmojave/lm_list_util.o
Makefile:31: recipe for target 'all' failed
make: *** [all] Error 2
--------------------------------
I think, it is because (or) and (&) are obsolute now and that warnings abort the build.
"disable-warnings.patch" doesn't work for this warning.

Anonymous comment on 2010-08-12 23:49

(Consolidating two comments.) To compile against ocaml 3.12, you have to specify that warnings 9 and 29 shouldn't abort the build. Applying this patch to the PKGBUILD does the trick:


--- PKGBUILD.orig 2009-06-21 13:35:17.000000000 -0400
+++ PKGBUILD 2010-08-12 19:47:28.046618053 -0400
@@ -23,8 +23,10 @@ build() {

patch -Np0 -i ${srcdir}/$pkgname-build-0.9.8.5.diff || return 1
patch -Np0 -i ${srcdir}/$pkgname-lm_printf-gcc44.diff || return 1
+ sed -i.orig -r '/^public\.OCAMLFLAGS.*\S/s//&-9-29/' lib/build/OCaml.om || return 1

make bootstrap || return 1
make PREFIX=/usr all || return 1
make PREFIX=/usr INSTALL_ROOT=${pkgdir} install
+ install -Dm444 lib/build/OCaml.om.orig ${pkgdir}/usr/lib/omake/build/OCaml.om
}