From nobody Thu Feb 8 14:22:37 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 4TVzhs6Jpzz59nJx for ; Thu, 8 Feb 2024 14:22:37 +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 4TVzhs3zLZz47J6 for ; Thu, 8 Feb 2024 14:22:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707402157; 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=8JSFmMNkCP+OyRaAkmcTZH029ryruIRrfvtEDHbxkjg=; b=xkf9Yn+ANin2lUtJqezYGgHqem5e0ONa40iueQdTK8gzPW7LmDW9Pu9Obm+RRaJwc0Aqm0 a1pMqecc50BiME5fO22iqU96f/eFEQK4SRo81mCoP0v0bapJGUGZmS3tkQYAu7m5cNZxgc XRp8VUs37Hz8O6syLmzR68mzuYpIj6raXw+cN0JqSPrCUW9kcffeS0E+5H1Yfio5tQZmZ+ g6ocQbuvqOFCPE8GScytIzt3yC7vJeEByoULJkFmHesd88zv1l8uk6tFTrO0nAoCQ9TEu7 kXmsWn+ZNXYjhgTaL+uXiwB/+/hOrMEcJFKC5BN1IaE1oiH4dfMZZnrmnpAOFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707402157; a=rsa-sha256; cv=none; b=h8MnnAgtWAoOxPB6lP8sDebmUYWdnNA01bCWoEbAYib708HaljCCLbE30rZcnUw1E9Yr0d jq9f8dWombEvVI3F2ErYE2tA+ebsOI96h50s03fIC20nIw/I4f7BDbML9Ap+2p0u6ewTvV RjCHzOt8SLC/zngGB4Rin9ipn+eB/54lC8TL7XvRihf3z7x8QcBtRozvA1VRePma5O8hO0 mghopGSTsV0eolG47csyArDFFaiMDXS0QQv1o51QRsB6mfwbknIw3yscojnKs3TGyWPuMF J9ITq+EvYujc+GBhoTjOVTRDUupBEa+4LqS/WrhX31u8TzDdos9qOlxv+Y+ebg== 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 4TVzhs33cPztLf for ; Thu, 8 Feb 2024 14:22:37 +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 418EMbA0065149 for ; Thu, 8 Feb 2024 14:22:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 418EMbje065148 for ports-bugs@FreeBSD.org; Thu, 8 Feb 2024 14:22:37 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 276893] devel/ocaml-dune: dune install should be able to install stublibs in the package directory Date: Thu, 08 Feb 2024 14:22:37 +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 Many People X-Bugzilla-Who: freebsd@dev.thsi.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: danfe@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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=3D276893 Bug ID: 276893 Summary: devel/ocaml-dune: dune install should be able to install stublibs in the package directory Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: danfe@FreeBSD.org Reporter: freebsd@dev.thsi.be Flags: maintainer-feedback?(danfe@FreeBSD.org) Assignee: danfe@FreeBSD.org Created attachment 248257 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D248257&action= =3Dedit 0001-devel-ocaml-dune-FreeBSD-patch-for-custom-stublibs-d.patch Hello, It seems that, traditionnaly, packages are more-or-less expected to install their OCaml stublibs in a package-specific subdirectory, cf. USE_OCAML_LDCO= NFIG and/or USE_OCAML_FINDLIB. It has the advantage of not polluting the global OCaml namespace (that is, unless the ld.conf is modified of course).=20 The problem is that dune, which is the "last gen" OCaml build tool that is = used by a growing number of OCaml projects, seems unable to support this configuration by default. Meaning that a growing number of FreeBSD packages= are likely to install their C shared-libraries into the same "stublibs" subdirectory, which is a sub-optimal solution in my opinion. The attached patch provide a solution to this problem by modifying dune in = the context of the FreeBSD ports. It also convert dune's own packaging to that "new-old" way by defining the introduced DUNE_FREEBSD_STUBLIBS_RELATIVE_TO_LIBDIR variable. I've rebuilt about 86 OCaml packages with this patch, and I haven't been ab= le to detect any regression. I intend to propose further contribution to the O= Caml ports, so I'd gladly hear any feedback there would be about this proposal. Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.=