Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2024 21:53:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates
Message-ID:  <bug-277821-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277821

            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=3D249312&action=
=3Dedit
patch

The postexec pkg script created by bsd.ocaml.mk with USE_OCAML_LDCONFIG=3Dy=
es
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 upgr=
ade
or re-installation.

The attached patch fixes the issue and, while at it, makes the un-installat=
ion
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?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277821-7788>