commit ac3c9d079083548932951cb87ab095393be2eeb0
parent fda5f42c5c7394ce152bab7160ce368d91859e21
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Wed, 22 Oct 2025 18:40:09 +0000
ocaml packages
Diffstat:
5 files changed, 41 insertions(+), 6 deletions(-)
diff --git a/templates/pkg/opam b/templates/pkg/opam
@@ -1,4 +1,5 @@
{%- set pkg_version="2.4.1" -%}
+{%- set src_dir="opam-full-"+pkg_version -%}
{% extends "genlinks" %}
{% block package_deps -%}
#+{{pkg_install_name("busybox-diffutils")}}
@@ -7,6 +8,10 @@
#+{{pkg_install_name("dune")}}
#@untar:-z:{{downloads["opam-full-" + assertion(pkg_version) + ".tar.gz"]}}:.
{% endblock %}
+{%- block prepare %}
+{% include "functions/check_static" %}
+{{ super() }}
+{% endblock %}
{%- block configure %}
./configure \
--prefix="$prefix" \
diff --git a/variants/ccx-x86_64/opam b/variants/ccx-x86_64/opam
@@ -10,9 +10,24 @@
# - 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 'opam-2.4.1'
+cd 'opam-full-2.4.1'
+
./configure \
diff --git a/variants/ccx-x86_64/wip.environment b/variants/ccx-x86_64/wip.environment
@@ -3,4 +3,4 @@
#+dune.37ab3bc1107904f825cd30c58a660280156d915b26ffb0e1991b27e7bb46d178
#+ocamlbuild.bc0dcc5465fec021273e3aced8531c2c40c0d06249ce95766c14fdbd1e2b6608
#+ocaml-base.012e652d51d556f2bb397eaaf911732d7d862483ba3770f17cd8609e6fdb5136
-#+opam.8179119d69b49eeb2fc7d3bbf5267471a9c53c708b9685bb708fdb25af353423-
\ No newline at end of file
+#+opam.3a3d9b8e0b47583e53e34a00dfbf2aa15b1e279e8c001c211b11472ad30c7967+
\ No newline at end of file
diff --git a/variants/root-x86_64/opam b/variants/root-x86_64/opam
@@ -10,9 +10,24 @@
# - 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 'opam-2.4.1'
+cd 'opam-full-2.4.1'
+
./configure \
diff --git a/variants/root-x86_64/wip.environment b/variants/root-x86_64/wip.environment
@@ -3,4 +3,4 @@
#+dune.45b7129519ec9237967ca5c6fbb697c4ff9ededdc017623a58e431a90f7b42be
#+ocamlbuild.7eaa6dc8723366dd4c460566e807f1740d9b422033342b8edf8a18eca72a2b10
#+ocaml-base.69d12d13b62d883b29079edf033c845ba92644fc072b08a46840e96b24d673ac
-#+opam.0c12521d05615c09dba24e2a72c7efc34532cc177039efed44022de6d153c9c4-
\ No newline at end of file
+#+opam.07cbc488c826a4c4938858c7a3919c0d7cd960918bf93380fec23aa68af16776+
\ No newline at end of file