pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/59514: ocaml package failures installing scripts
>Number: 59514
>Category: pkg
>Synopsis: ocaml package failures installing scripts
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 07 03:30:00 +0000 2025
>Originator: David A. Holland
>Release: pkgsrc 20250706
>Organization:
>Environment:
System: immaterial
Architecture:
Machine:
>Description:
The ocaml infrastructure, if you set OCAML_USE_DUNE or OCAML_USE_OPAM,
installs all executables with ${INSTALL_PROGRAM}, which, unless one
also sets INSTALL_UNSTRIPPED, tries to strip the programs it installs.
This in turn fails on scripts because that's what strip does.
Some packages force INSTALL_UNSTRIPPED as a workaround, which is
abusive, and also still fails if INSTALL_UNSTRIPPED is explicitly
turned off.
The underlying problem is that Dune doesn't distinguish scripts from
programs in the build metadata that gets handed off to the installer.
>How-To-Repeat:
cd lang/coq
remove reference to INSTALL_UNSTRIPPED from Makefile
make stage-install
>Fix:
A better workaround would be to install all executables with
INSTALL_SCRIPT, which unconditionally leaves off the strip call.
However, that's also abusive.
Probably we need to patch the installer (opaline) to examine the
programs it installs to see if they begin with #! and do something
different if so.
Home |
Main Index |
Thread Index |
Old Index