From nobody Tue Mar 19 21:53:51 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tzlq33h3kz5FXnB for ; Tue, 19 Mar 2024 21:53:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tzlq31Fldz47FH for ; Tue, 19 Mar 2024 21:53:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710885231; a=rsa-sha256; cv=none; b=U3H0d89Xc6f5wDdkl3ukCw8+TZ4fkv4DJbQC2FpKocgnQ4ldl+CMwCJDm/jsabE6mdtuKu 0LyDMUVIwaby/kG8k5MzEw54igRJICEv/ODbrFcR7oQoqLkiOTKofuyWl/ARKtxQYkAvql n5N5SsO/OWF6KEcLev2YBFGzC3PtTxdcR2p+9G6W9IpkumqTO85SnFZ+t8RYszbgaUHa7j W3Jhi/jemxIs9Ck6KMIFPHdadi8m7OnkMI0b4AIm6UlXr68xJG9UHWWzxUF3cZ/JgwTbg6 jeVDanCV6RaRh21RGwNM0xxHVBRMn8lDD1/SbGckXwvZFWmAtq0CUZgpfukkfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710885231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=y5dHFBPWSvVAJI2+pt278pIrBZ3PjGnRvbyUVEktumc=; b=wWN3H2SSdf4PUU/nAiO++naORKG3ZkGaM/px1eUGTnetfiVxITZtm7/G+6iDvl+zOSClNZ /cwFnf+070uX5DvotT6bDYgvQB1dkOlHrBt8tC0wOawsoCvN7kMRqdDnvjTgf3mcLkyCu9 iSdfa/XUWe0uf5FzqKEBr/7i3NUFB3cXjzsMX7qE8ktJ7oss3b3uItHm5eKvc+KkkBGhjs bBMvxW8B+VTsVZThNGk6EiHlCowuWiBchsbHCkeJBd9wFlbggnsYwdPZ7Lqy8ZhoGDxVQM fgLgruTAWqn3bKmx/xQSt7NIAtdGZghUjSWOEPhlPmDG33WkaIU2XSqOMvF2Fg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tzlq30sdPzPl9 for ; Tue, 19 Mar 2024 21:53:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42JLrpMB063608 for ; Tue, 19 Mar 2024 21:53:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42JLrpSK063604 for ports-bugs@FreeBSD.org; Tue, 19 Mar 2024 21:53:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 277821] Mk/bsd.ocaml.mk USE_OCAML_LDCONFIG generates duplicates Date: Tue, 19 Mar 2024 21:53:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@dev.thsi.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 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.=