aboutsummaryrefslogtreecommitdiff
path: root/lang/ocaml
Commit message (Collapse)AuthorAgeFilesLines
* lang/ocaml: Remove redundant '-[0-9]*' from CONFLICTSStefan Eßer2021-10-291-1/+1
| | | | | | | Follow-up to previous commit: one occurance of "-[0-9]*" had been missed. Approved by: portmgr (blanket)
* */*: Remove redundant '-[0-9]*' from CONFLICTSStefan Eßer2021-10-291-2/+2
| | | | | | | | | | | | | The conflict checks compare the patterns first against the package names without version (as reported by "pkg query "%n"), then - if there was no match - agsinst the full package names including the version (as reported by "pkg query "%n-%v"). Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter for the bash package in any version. But that pattern is functionally identical with just "bash". Approved by: portmgr (blanket)
* *: Clean up some thingsTobias Kortkamp2021-09-031-1/+0
| | | | | | | | | | | - Fix typos - Remove duplicate variables - Remove nop or unreferenced variables - Add missing ports to the build - Clean up commented PORTREVISION - Add missing USES Reported by: portscan
* lang/ocaml: sort pkg-plist correctly, remove some old cruftAlexey Dokuchaev2021-08-302-99/+89
| | | | | | | | | - Sort the *flat* pkg-plist (after the PLIST_SUB expansion), and drop needless ``@dir lib/ocaml/threads'' entry - Remove "INSTALL* safeness" gimmick which had been added 16 years ago in r133975 and supposedly helped to preserve correct permissions in some circumstances, but these days it erroneously removes executable bits from some binaries, or causes nothing but stage Q/A warnings
* lang/ocaml: fix build on powerpcPiotr Kubaj2021-06-101-0/+2
| | | | | Use ld.bfd: ld: error: can't create dynamic relocation R_PPC_ADDR16_LO against symbol: caml_last_return_address in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
|
* lang/ocaml: fix packaging on armv6Piotr Kubaj2021-03-261-1/+1
| | | | | | | | | | | | | pkg-static: Unable to access file /wrkdirs/usr/ports/lang/ocaml/work/stage/usr/local/lib/ocaml/raw_spacetime_lib.a:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/lang/ocaml/work/stage/usr/local/lib/ocaml/raw_spacetime_lib.cma:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/lang/ocaml/work/stage/usr/local/lib/ocaml/raw_spacetime_lib.cmi:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/lang/ocaml/work/stage/usr/local/lib/ocaml/raw_spacetime_lib.cmx:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/lang/ocaml/work/stage/usr/local/lib/ocaml/raw_spacetime_lib.cmxa:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/lang/ocaml/work/stage/usr/local/lib/ocaml/raw_spacetime_lib.cmxs:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/lang/ocaml/work/stage/usr/local/lib/ocaml/raw_spacetime_lib.mli:No such file or directory Notes: svn path=/head/; revision=569239
* lang/ocaml: fix build on armv6Piotr Kubaj2021-03-011-0/+1
| | | | | | | | | Same issue as on armv7. MFH: 2021Q1 Notes: svn path=/head/; revision=566910
* lang/ocaml: fix build on powerpc64lePiotr Kubaj2021-01-032-5/+10
| | | | | | | | | Use GCC, like on powerpc64 and add powerpc64le entry to configure script. Approved by: tier 2 blanket Notes: svn path=/head/; revision=560007
* For ports on riscv64 that fail the same (or similar ways) to aarch64, markMark Linimon2021-01-021-0/+1
| | | | | | | | | | | them BROKEN. While here, pet portlint (Makevar order). Approved by: portmgr (tier-2 blanket) Notes: svn path=/head/; revision=559904
* lang/ocaml: Fix build with llvm 11Niclas Zeising2020-08-223-0/+71
| | | | | | | | | | | | | | Fix the build of lang/ocaml with llvm 11. There are two issues, first off, te issue with -fno-common, which is default with llvm 11. This is fixed by pulling in a modified patch from upstream, as well as local patches. Secondly, there's a problem with how asm sections are handled, patch this locally. Thanks to dim@ for help with this. MFH: 2020Q3 (implicit, -fno-common fixes, ok by joenum) Notes: svn path=/head/; revision=545786
* ocaml depends on as(1) at runtimeAntoine Brodin2020-05-291-0/+1
| | | | | | | PR: 205250 Notes: svn path=/head/; revision=536967
* lang/ocaml: add BUILD_DEPENDS as:devel/binutilsEd Maste2020-05-291-0/+2
| | | | | | | | | | | | | | | | /usr/bin/as will soon be removed from the FreeBSD base system, for FreeBSD 13.0. Depend on as (not ${LOCALBASE}/bin/as) so that this will introduce no change for existing 11.x and 12.x, which will continue to use the base system GNU as 2.17.50. PR: 205250 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=536827
* lang/ocaml: fix build on powerpc64 elfv2Piotr Kubaj2019-12-165-0/+192
| | | | | | | | | | | | | | | | | LLVM miscompiles ocaml on powerpc64 elfv2: ld: error: bytecomp/printlambda.ml:23:(.text+0x16): relocation R_PPC64_TOC16_DS out of range: 73024 is not in [-32768, 32767] Use GCC instead on powerpc64. Add a conditional patch enabled only on powerpc64 elfv2 to use elfv2 abi instead of elfv1. Add a bunch of other patches to correctly check for abi instead of relying on endianness. PR: 242389 Approved by: michipili@gmail.com (maintainer) Notes: svn path=/head/; revision=520254
* Add USES=xorg USES=gl, ports categories lNiclas Zeising2019-11-061-0/+1
| | | | | | | | Add USES=xorg and USES=gl to ports in categories starting with 'l' While here, try to sprinkle other USES (mostly gnome and sdl) as needed. Notes: svn path=/head/; revision=516915
* - Update WWWDmitry Marakasov2019-10-201-1/+1
| | | | | | | Approved by: portmgr blanket Notes: svn path=/head/; revision=514886
* lang/ocaml: fix build on armv7Piotr Kubaj2019-08-012-5/+22
| | | | | | | | | | | armv7 requires -Wl,-znotext in LDFLAGS (same as i386), added definition for triple target and include term.h in the test for tgetent. PR: 239157 Approved by: michipili@gmail.com (maintainer timeout), tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D21085 Notes: svn path=/head/; revision=507827
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-261-0/+1
| | | | | | | | | | | | | | | | | | as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330 Notes: svn path=/head/; revision=507372
* lang/ocaml: fix on powerpc64Piotr Kubaj2019-07-122-7/+8
| | | | | | | | | | | powerpc64 needs to be put to configure script to be recognized. PR: 238788 Approved by: michipili@gmail.com (maintainer timeout), tcberner (mat) Differential Revision: https://reviews.freebsd.org/D20891 Notes: svn path=/head/; revision=506445
* Make sure that correct LDFLAGS are passed when linking shared libraries,Alexey Dokuchaev2019-06-271-0/+9
| | | | | | | | | otherwise the build would fail on i386 with recent versions of FreeBSD. PR: 218333 Notes: svn path=/head/; revision=505208
* Fix up pkg-plist in case the THREADS option (which is on by default) isGerald Pfeifer2019-06-251-5/+5
| | | | | | | | | | off by marking a couple of files added in revision 505020 conditional on that option. PR: 218333 Notes: svn path=/head/; revision=505087
* Update OCaml to version 4.05.0 (this is the last version where stringsAlexey Dokuchaev2019-06-245-174/+867
| | | | | | | | | | | | | | | | | | | | | | | are unsafe by default, which is the main motivation why it was picked, but not the very latest one) and synchronize the rest of the stack and dependent ports with it, particularly: - Update `devel/ocaml-ocamlbuild' to version 0.14.0 and unbreak, register build dependency on all ports that require it (should be part of USE_OCAML, but we do not want to make any Mk-related changes the for time being) - Update `devel/ocaml-camlp4' to version 4.05+2 - Update `devel/ocaml-camlp5' to version 7.07 (the project had moved to GitHub) - Mark `devel/ocaml-deriving-ocsigen' as BROKEN for now, it is very outdated and requires quite a lot of work - Update `x11-toolkits/ocaml-labltk' to version 8.06.3 PR: 218333 Exp-run by: antoine Notes: svn path=/head/; revision=505020
* Do not set PORTDOCS twiceTobias Kortkamp2019-01-081-2/+0
| | | | Notes: svn path=/head/; revision=489683
* lang/ocaml: add -znotext to LDFLAGS on i386, for lldEd Maste2018-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | Example error: /usr/bin/ld: error: can't create dynamic relocation R_386_32 against symbol: caml_last_return_address in readonly segment; recompile object files with -fPIC This port links some non-PIC code, which fails with lld as it defaults to disallowing relocations against read-only segments. For i386 we can just add -znotext unconditionally: for GNU BFD ld it just affirms BFD's existing default. PR: 214864, 230209 Approved by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17200 Notes: svn path=/head/; revision=480033
* To make tracking of upcoming changes easier, sort pkg-plist (per LANG=C).Alexey Dokuchaev2018-08-011-84/+84
| | | | Notes: svn path=/head/; revision=476168
* Further pre-update cleanups for `lang/ocaml':Alexey Dokuchaev2017-12-183-109/+14
| | | | | | | | | | | | | | | | - Do not suppress .bak-files when patching things with ``sed(1) -i'', those can be useful for debugging and catching no-ops - Drop `files/manfiles', it is no longer used (looks like a relic from pre-staging times) - Do not pass ``-as "${AS} ${ASFLAGS}"'' in the initial CONFIGURE_ARGS: when ARM support was added in r361233, appropriate values are passed conditionally (subject to ${ARCH}), see line 69 - Simplify handling of CFLAGS (obtained from RedHat package): rather than passing them as part of the compiler and "fixing" one generated Makefile in `post-configure', teach the configure script about them Notes: svn path=/head/; revision=456636
* In sight of long-overdue update of `lang/ocaml', start cleaning things up:Alexey Dokuchaev2017-12-182-54/+1
| | | | | | | | | | | | | | | | | | | - Remove hunks from `patch-configure' that are irrelevant on *BSD - Do not aggressively edit configure script in `post-patch', especially when it is not required (e.g. no variables are expanded). This was the reason for bogus changes committed in r403835 by wen@ and r403898 by marino@ (cf. "$bytecclinkopts $bytecclinkopts $bytecclinkopts"); now ``make makepatch'' command is idempotent again - Do not needlessly pass STAGEDIR via MAKE_ENV: it is correctly passed via MAKE_ARGS (as DESTDIR), and OCaml's build system is aware of it, while nowhere referencing STAGEDIR variable - Drop permission fix for ld.conf that was added in r169472 by itetcu@ 11 years 4 months ago: it is no-op these days Build logs remain identical (modulo the whitespace), regression tests pass. Notes: svn path=/head/; revision=456594
* Actualize BROKEN_sparc64 statement. It was (re)marked broken last time inAlexey Dokuchaev2017-12-181-2/+1
| | | | | | | | | | | | | | | | | r138465 by mi@ (first time in r109062 by kris@), that's 12.5 years ago, and never revisited ever since (except minor facelifting in r387855 by marino@). The world was largely different back then, with GCC 3.4.4 and OCaml 3.08.3. Currently it does not build on 10.4-STABLE running under QEMU 2.9.0. While here, remove stale comment about hardcoded GCC for depend target that was added in r292093 by bf@ and later *not* removed in r385012 by marino@ together with in-place editing commands it was attributed to. I messed up the history with r456400, thinking it still applies yet not performing the proper archaeology check, and rightfully deserve a pointy hat for that. Notes: svn path=/head/; revision=456574
* First step to unbreak `lang/ocaml' on aarch64: teach configure script thatAlexey Dokuchaev2017-12-152-12/+27
| | | | | | | | | | | | | | | | | | the architecture exists on FreeBSD. Unfortunately, this is not enough for build to succeed, it now complains that as(1) is not found: ../boot/ocamlrun ../ocamlopt -strict-sequence -w +33..39 -g -warn-error A -bin-annot -nostdlib -safe-string `./Compflags camlinternalFormatBasics.cmx` -c camlinternalFormatBasics.ml sh: as: not found File "camlinternalFormatBasics.ml", line 1: Error: Assembler error, input left in file /tmp/camlasm4329ae.s gmake[7]: *** [Makefile.shared:84: camlinternalFormatBasics.cmx] Error 2 Developed on: ref11-aarch64.freebsd.org Notes: svn path=/head/; revision=456402
* Improve handling of the system architecture in `lang/ocaml'.Alexey Dokuchaev2017-12-152-6/+16
| | | | | | | | | | | | | | | | | | | | | OCaml is using ARCH variable throughout its makefiles, which clashes with our own variable of the same name. To workaround it, OCAML_ARCH variable was introduced which is set based on ARCH, and makefiles later patched in the `post-configure' target. This approach does not scale well with porting OCaml to new architectures as being fragile and sometimes making the build non-idempotent under some circumstances. Instead of "fixing" makefiles post-configure, rename ARCH to SYSTEM_ARCH: this avoids the clash altogether and lets configure script to set correct values for supported architectures in the first place with no adjustments required afterwards. Tested on: i386, amd64, powerpc Notes: svn path=/head/; revision=456400
* Attempt to build on armv7 by generalizing from armv6 code.Mark Linimon2017-11-301-2/+3
| | | | | | | | | | | | Unfortanately it didn't build for me on armv7: perhaps it is a difference in compiler. (It currently builds on armv6 on the freebsd.org cluster.) So, this is a necessary but insufficient step. Approved by: portmgr (tier-2 blanket) Notes: svn path=/head/; revision=455175
* Provide more descriptive error messages for ports failing on powerpc64.Mark Linimon2017-04-291-1/+1
| | | | | | | Approved by: portmgr (tier-2 blanket) Notes: svn path=/head/; revision=439717
* ${RM} already has -f.Mathieu Arnold2016-10-211-1/+1
| | | | | | | | | | PR: 213570 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Notes: svn path=/head/; revision=424411
* Mark as broken on aarch64.Mark Linimon2016-10-121-1/+1
| | | | | | | Approved by: portmgr (tier-2 blanket) Notes: svn path=/head/; revision=423823
* many ports: mark broken on powerpc64Steve Wills2016-04-211-0/+2
| | | | Notes: svn path=/head/; revision=413746
* Fix packaging on armv6 by enabling profiling libraries.Guido Falsi2016-03-242-8/+12
| | | | | | | | | PR: 206615 Submitted by: mikael.urankar at gmail.com Approved by: michipili at gmail.com (maintainer) Notes: svn path=/head/; revision=411811
* As usual, routinely update to the next version in r403835 had removed supportAlexey Dokuchaev2016-01-041-10/+22
| | | | | | | for DragonFly (readded in r403898) and FreeBSD/powerpc. Put it back (again). Notes: svn path=/head/; revision=405209
* lang/ocaml: Unbreak DragonFlyJohn Marino2015-12-171-13/+67
| | | | | | | | | | The previous upgrade removed all the dragonfly patches. Bring those back to restore the port on DragonFly. PR: 203589 Notes: svn path=/head/; revision=403898
* - Update to 4.02.3Wen Heping2015-12-164-215/+651
| | | | | | | | PR: 203589 Submitted by: michipili@gmail.com(maintainer) Notes: svn path=/head/; revision=403835
* Backout r398381, it fails to packageAntoine Brodin2015-10-023-25/+79
| | | | | | | | With hat: portmgr MFH: 2015Q4 Notes: svn path=/head/; revision=398402
* Upgrade from 4.02.1 to 4.02.3. Disable adding of explicit -O to compiler flags,Mikhail Teterin2015-10-013-79/+25
| | | | | | | | | | | because that ends up lowering optimization for most people (from -O2). Approved by: maintainer (The upgrade is too minor to justify revision bumping of depending ports.) Notes: svn path=/head/; revision=398381
* lang/ocaml: pet portlint, change pkg-plist as suggested by ohauerKurt Jaeger2015-08-232-8/+6
| | | | | | | | PR: 195736 Submitted by: ohauer Notes: svn path=/head/; revision=395081
* lang/ocaml: give execute permissions via pkg-plist to two filesKurt Jaeger2015-08-161-0/+2
| | | | | | | | | PR: 195736 Submitted by: mmatalka@gmail.com Approved by: Michael Gruenewald <michipili@gmail.com> (maintainer) Notes: svn path=/head/; revision=394415
* Fix the build on PowerPC (again) that was broken as of r385012.Alexey Dokuchaev2015-07-301-2/+16
| | | | Notes: svn path=/head/; revision=393227
* lang/ocaml: Remove softvfp option from ARMv6 build (no longer required)John Marino2015-05-311-2/+3
| | | | | | | | | PR: 200102 Submitted by: Mikael Urankar Approved by: maintainer (assumed good, not able to test) Notes: svn path=/head/; revision=388125
* lang/ocaml: Set BROKEN on 2 new ARCHESJohn Marino2015-05-291-4/+4
| | | | | | | | | | The MIPS platforms can't build ocaml. Set it and rework the BROKEN for sparc64 while here. PR: 197127 Notes: svn path=/head/; revision=387855
* MASTER_SITES cleanup.Mathieu Arnold2015-05-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | - Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight Notes: svn path=/head/; revision=386312
* lang/ocaml: Tweak PROFILE handling to support DragonFlyJohn Marino2015-05-131-1/+1
| | | | | | | | | | This changes a conditional statement to an equivalent variation. An internal transformation of DPorts was getting confused by this construct. Discussed with: Michael Gruenewald (maintainer) Notes: svn path=/head/; revision=386233
* - Remove incomplete check for configure arguments to fix build when ↵Sunpoet Po-Chuan Hsieh2015-05-031-0/+11
| | | | | | | | | | | CONFIGURE_ARGS contains = PR: 199884 Submitted by: sunpoet (myself) Approved by: Michael Grunewald <michipili@gmail.com> (maintainer) Notes: svn path=/head/; revision=385271
* lang/ocaml: Upgrade version 4.01 => 4.02John Marino2015-04-2921-1140/+268
| | | | | | | | | | | | PR: 195736 Submitted by: Michael Gruenewald (maintainer) Add'l fixes: marino Besides typical port cleanup, the dragonfly patches which had been removed for the update were added back to the configure patch. Notes: svn path=/head/; revision=385012