From ceb8d922d6cadefd835278d20184348b1b1dbf98 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 20 Mar 2023 21:50:15 +0300 Subject: Don't generate main binary package for header-only libraries on Debian and Fedora --- bpkg/system-package-manager-archive.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bpkg/system-package-manager-archive.cxx') diff --git a/bpkg/system-package-manager-archive.cxx b/bpkg/system-package-manager-archive.cxx index 0df4580..b8df860 100644 --- a/bpkg/system-package-manager-archive.cxx +++ b/bpkg/system-package-manager-archive.cxx @@ -313,6 +313,11 @@ namespace bpkg const package_name& pn (sp->name); const version& pv (sp->version); + // Use version without iteration in paths, etc. + // + string pvs (pv.string (false /* ignore_revision */, + true /* ignore_iteration */)); + bool lib (pt == "lib"); bool priv (ops->private_ ()); // Private installation. @@ -497,7 +502,7 @@ namespace bpkg // libhello-1.2.3-x86_64-windows10-msvc17.4 // libhello-1.2.3-x86_64-debian11-gcc12-rust1.62 // - string base (pn.string () + '-' + pv.string ()); + string base (pn.string () + '-' + pvs); if (ops->archive_build_meta_specified ()) { -- cgit v1.1