FreeBSD Bugzilla – Attachment 248241 Details for
Bug 261180
devel/ocaml-opam: does not build on ARM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-devel-ocaml-opam-Fix-build-on-armv7.patch
0001-devel-ocaml-opam-Fix-build-on-armv7.patch (text/plain), 2.34 KB, created by
Benjamin Jacobs
on 2024-02-07 19:42:20 UTC
(
hide
)
Description:
0001-devel-ocaml-opam-Fix-build-on-armv7.patch
Filename:
MIME Type:
Creator:
Benjamin Jacobs
Created:
2024-02-07 19:42:20 UTC
Size:
2.34 KB
patch
obsolete
>From c9eeffd7d0768a98ff05e36066bbae74e621031c Mon Sep 17 00:00:00 2001 >From: Benjamin Jacobs <freebsd@dev.thsi.be> >Date: Wed, 7 Feb 2024 18:10:46 +0000 >Subject: [PATCH 1/6] devel/ocaml-opam: Fix build on armv7. > >The LLVM assembler chokes on the assembly generated by the ARM32 >backend of OCAML. Fixed by forcing binutils on ARM32. > >The OCaml compiler generates text relocations on all of its supported >32 bits architectures, however the configure script only sets the -z >notext linker flag in the x86 case. This change makes sure that this >flag is used for the other architectures by setting LDFLAGS in the >environment of the configure script. > >This commit may fix armv6 and powerpc as well, but this hasn't been >verified. >--- > devel/ocaml-opam/Makefile | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-) > >diff --git a/devel/ocaml-opam/Makefile b/devel/ocaml-opam/Makefile >index d7e060451647..2231af210556 100644 >--- a/devel/ocaml-opam/Makefile >+++ b/devel/ocaml-opam/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= opam > DISTVERSION= 2.1.5 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= devel > MASTER_SITES= https://github.com/ocaml/opam/releases/download/${DISTVERSION}/ > PKGNAMEPREFIX= ocaml- >@@ -12,13 +12,13 @@ WWW= https://opam.ocaml.org/ > > LICENSE= LGPL21 > >-BROKEN_armv6= ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: caml_program in readonly segment >-BROKEN_armv7= ld: error: can't create dynamic relocation R_ARM_ABS32 against symbol: caml_program in readonly segment >- > RUN_DEPENDS= curl:ftp/curl \ > gpatch:devel/patch > > USES= gmake >+.if ${ARCH} == armv6 || ${ARCH} == armv7 >+USE_BINUTILS= yes >+.endif > > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --disable-checks >@@ -26,6 +26,12 @@ CONFIGURE_ARGS= --disable-checks > MAKE_JOBS_UNSAFE= yes > ALL_TARGET= cold-lib-ext cold-all > >+LDFLAGS_armv6= -Wl,-z,notext >+LDFLAGS_armv7= -Wl,-z,notext >+LDFLAGS_powerpc= -Wl,-z,notext >+ >+NOPRECIOUSMAKEVARS= yes >+ > OPTIONS_DEFINE= DARCS GIT MERCURIAL RSYNC > OPTIONS_DEFAULT= GIT RSYNC > NO_OPTIONS_SORT= yes >@@ -37,10 +43,8 @@ GIT_RUN_DEPENDS= git:devel/git > MERCURIAL_RUN_DEPENDS= ${PY_MERCURIAL} > RSYNC_RUN_DEPENDS= rsync:net/rsync > >-NOPRECIOUSMAKEVARS= yes >- > pre-configure: >- cd ${WRKSRC} && ${MAKE_CMD} compiler >+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} compiler) > > post-install: > @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/opam-installer >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
hannes
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 261180
:
230990
|
231075
|
231080
|
231087
|
232043
|
232044
|
248241
|
248242
|
248259
|
248260
|
248261
|
248262