Bug 285944 - archivers/libarchive: Building package with libb2 present uses libb2 without adding a package dependency
Summary: archivers/libarchive: Building package with libb2 present uses libb2 without ...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
: 285945 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-04-07 15:58 UTC by Jan Martin Mikkelsen
Modified: 2025-06-10 18:10 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (glewis)


Attachments
Patch to add a LIBB2 option (597 bytes, patch)
2025-04-07 15:58 UTC, Jan Martin Mikkelsen
no flags Details | Diff
libarchive.patch (585 bytes, patch)
2025-06-10 18:10 UTC, Mark Linimon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Martin Mikkelsen 2025-04-07 15:58:35 UTC
Created attachment 259374 [details]
Patch to add a LIBB2 option

The pkg 2.1.0 now checks for required shared libraries and refuses to install a package if some shared libraries are not present.

Building an archivers/libarchive package on a system with libb2 present will use libb2, but not mark it as a port dependency. Attempting to install the package on a machine without libb2 then fails.

The attached (trivial) patch adds a LIBB2 option to control building with or without libb2 support, and to have the correct package dependencies.
Comment 1 Jan Martin Mikkelsen 2025-04-07 16:05:29 UTC
*** Bug 285945 has been marked as a duplicate of this bug. ***
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2025-06-10 18:09:14 UTC
^Triage: now that we have the Patch flag for attachments, the [patch] convention
is no longer needed.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2025-06-10 18:10:19 UTC
Created attachment 261153 [details]
libarchive.patch

^Triage: rebase patch.