mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

commit 9b3186176a97c6d75dcd2d7424deeb3179a04616
parent ca8d1461622e19e221dd622f89fd7b3bcfc59d68
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Wed, 22 Oct 2025 21:00:13 +0000

ocaml packages

Diffstat:
Mtemplates/pkg/ocamlbuild | 4++++
Mvariants/ccx-x86_64/ocamlbuild | 15+++++++++++++++
Mvariants/ccx-x86_64/wip.environment | 2+-
Mvariants/root-x86_64/ocamlbuild | 15+++++++++++++++
Mvariants/root-x86_64/wip.environment | 2+-
5 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/templates/pkg/ocamlbuild b/templates/pkg/ocamlbuild @@ -8,6 +8,10 @@ #+{{pkg_install_name("ocaml")}} #@untar:-z:sha256:2ba6857f2991b7f69368e8db818b163d31cf5a367f15f5953bf8f01a77b3d4fc:. {% endblock %} +{%- block prepare %} +{% include "functions/check_static" %} +{{ super() }} +{% endblock %} {%- block configure %} make configure \ PREFIX="$prefix" \ diff --git a/variants/ccx-x86_64/ocamlbuild b/variants/ccx-x86_64/ocamlbuild @@ -11,11 +11,26 @@ # - build script start - + +check_static() { + local exe || true + exe=$pthbs_destdir'/home/ccx/versions'/$pthbs_package/$1 + if ! test -f $exe; then + printf '%s\n' "Error: file '$1' doesn't exist!" + exit 1 + fi + interp_info=$(readelf --string-dump=.interp "$exe") || exit $? + if test x '!=' "x$interp_info"; then + printf '%s\n' "Error: '$1' is a dynamic binary!" + exit 1 + fi +} prefix=/home/ccx/versions/$pthbs_package dest=${pthbs_destdir%/}${prefix} cd 'ocamlbuild-0.16.1' + make configure \ PREFIX="$prefix" \ OCAML_NATIVE=true \ diff --git a/variants/ccx-x86_64/wip.environment b/variants/ccx-x86_64/wip.environment @@ -1,6 +1,6 @@ #!/usr/bin/env pthbs-build #+ocaml.5b34db3f087fd067e8cf20c9806c599c52cf1d4564105f3841aa3594496ef578 #+dune.37ab3bc1107904f825cd30c58a660280156d915b26ffb0e1991b27e7bb46d178 -#+ocamlbuild.c2dddf9f5fb1134a0b0efdf1e18bb461c583787e93530f5222cadc005844fc06 +#+ocamlbuild.b1a207889e03562ae93b48b197266f18124a8ccbb4707a3c95a3b5ac69629454 #+ocaml-base.5244c768044e5b45eb387c7f0a5d6444f6e270127bd35b2a866b6f368d5efe2d #+opam.accb6478611d17a4880bdab1e5208a56618ba1574f3b5d9f402dc3c0ba7cec25 \ No newline at end of file diff --git a/variants/root-x86_64/ocamlbuild b/variants/root-x86_64/ocamlbuild @@ -11,11 +11,26 @@ # - build script start - + +check_static() { + local exe || true + exe=$pthbs_destdir'/versions'/$pthbs_package/$1 + if ! test -f $exe; then + printf '%s\n' "Error: file '$1' doesn't exist!" + exit 1 + fi + interp_info=$(readelf --string-dump=.interp "$exe") || exit $? + if test x '!=' "x$interp_info"; then + printf '%s\n' "Error: '$1' is a dynamic binary!" + exit 1 + fi +} prefix=/versions/$pthbs_package dest=${pthbs_destdir%/}${prefix} cd 'ocamlbuild-0.16.1' + make configure \ PREFIX="$prefix" \ OCAML_NATIVE=true \ diff --git a/variants/root-x86_64/wip.environment b/variants/root-x86_64/wip.environment @@ -1,6 +1,6 @@ #!/usr/bin/env pthbs-build #+ocaml.7dac3082b76965ebaab371cfb7848a931581faf39bda33a9701667cb7503f802 #+dune.45b7129519ec9237967ca5c6fbb697c4ff9ededdc017623a58e431a90f7b42be -#+ocamlbuild.34685bf576108ed87881af9a9f3bcd96bf2305899e759df7f7192a25a41f5313 +#+ocamlbuild.f7f82e3a81af712dc4a9d4766b2c9d9984c292caa104d1d138cbd71144b675c8 #+ocaml-base.8f83913cae5377ca6a06ad1f21384d4e8e906f377fce629fdaa7603a7c73d1e4 #+opam.fe1b8551f2828970cf1e06578d521f87ecdfc85d5cf3912dd9f1305865cf54e7 \ No newline at end of file