diff options
author | marino <marino> | 2012-11-23 22:55:22 +0000 |
---|---|---|
committer | marino <marino> | 2012-11-23 22:55:22 +0000 |
commit | c77c77fb05a3484f01a8849ed298ff1859aa1f9c (patch) | |
tree | a30360a12edc28ff545934820331a9ef75e5d02d /devel | |
parent | f5c312d62738cdfe16f217ff58cba038f77c397d (diff) | |
download | pkgsrc-c77c77fb05a3484f01a8849ed298ff1859aa1f9c.tar.gz |
devel/omake: Disable treat error as warnings
GCC 4.7.x will emit warnings on ocaml if a function or a constant is
unreferenced. There are a few dozen of these in omake. The alternative
to disabling warnings=errors is to remove functions and contants over
many files (probably more than a dozen).
Diffstat (limited to 'devel')
-rw-r--r-- | devel/omake/distinfo | 3 | ||||
-rw-r--r-- | devel/omake/patches/patch-lib_build_OCaml.om | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/devel/omake/distinfo b/devel/omake/distinfo index deaef4ce682..564a6e4d712 100644 --- a/devel/omake/distinfo +++ b/devel/omake/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2012/11/16 00:46:04 joerg Exp $ +$NetBSD: distinfo,v 1.4 2012/11/23 22:55:22 marino Exp $ SHA1 (omake-0.9.8.6-0.rc1.tar.gz) = f714fa992bf391b8bac49a488bc654128962d1cc RMD160 (omake-0.9.8.6-0.rc1.tar.gz) = b7ceebea6f4c40460625e2e9528257e200676bca @@ -27,4 +27,5 @@ SHA1 (patch-au) = efb7a298c259e645d2031fee5b016a47389621dd SHA1 (patch-av) = 10edbea63bca8788f922c9debb2ebc50655760a5 SHA1 (patch-aw) = 4999a863230373cca75a6e5cbc4203430823468d SHA1 (patch-ax) = 0a91c5d1a561b319885e848def2a3c54d52751d7 +SHA1 (patch-lib_build_OCaml.om) = 19cf48d1480086db866e7f5d095ace4edf3db8c9 SHA1 (patch-src_libmojave-external_cutil_fam__pseudo.h) = cffac5428d8ff93db0773e5604176df974321b2e diff --git a/devel/omake/patches/patch-lib_build_OCaml.om b/devel/omake/patches/patch-lib_build_OCaml.om new file mode 100644 index 00000000000..dfcbc0ead32 --- /dev/null +++ b/devel/omake/patches/patch-lib_build_OCaml.om @@ -0,0 +1,19 @@ +$NetBSD: patch-lib_build_OCaml.om,v 1.1 2012/11/23 22:55:22 marino Exp $ + +Omake will break in over a dozen places on gcc 4.7.x if warnings are +treated as errors. All valid but unreferenced functions and constants +are warned about in gcc 4.7, and the alternative to removing the +warn-error flag is to remove all these unreferenced functions and +constants via patches. + +--- lib/build/OCaml.om.orig 2008-03-05 01:07:25.000000000 +0000 ++++ lib/build/OCaml.om +@@ -176,7 +176,7 @@ public.PREFIXED_OCAMLPACKS =\ + # + declare OCAMLDEPFLAGS + public.OCAMLPPFLAGS = +-public.OCAMLFLAGS = -warn-error A ++public.OCAMLFLAGS = + public.OCAMLCFLAGS = -g + public.OCAMLOPTFLAGS = + public.OCAMLCPPFLAGS = |