[Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Mar 2024 21:53:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277821
Bug ID: 277821
Summary: Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates
duplicates
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs@FreeBSD.org
Reporter: freebsd@dev.thsi.be
Created attachment 249312
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=249312&action=edit
patch
The postexec pkg script created by bsd.ocaml.mk with USE_OCAML_LDCONFIG=yes
should check the existence of a line before adding it to
PREFIX/lib/ocaml/ld.conf. As far as I can tell, this bug has a no adverse
consequences, beside bloating said file with duplicates during package upgrade
or re-installation.
The attached patch fixes the issue and, while at it, makes the un-installation
precisely match the directory by anchoring the regex (that could become an
issue if some ocaml library shares the prefix of another). The escaping is a
bit gross though...
Ideally, a keyword similar to @shell may be created, couldn't it?
--
You are receiving this mail because:
You are the assignee for the bug.