Project

General

Profile

Bug #11255

After GCC 7 switch dependencies on GCC runtime packages are incorrect

Added by Alexander Pyhalov 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

When a package depends on a library which can be found in RPATH and in standard path, pkgdepend generates require any dependency, like

depend fmri=pkg:/system/library/gcc-7-runtime@7.4.0-2018.0.0.0 fmri=pkg:/system/library/gcc-4-runtime@4.9.4-2018.0.0.6 type=require-any

for developer/build/make , which depends on libstdc++.so.6 and libgcc_s.so.1.

Now, when system already has gcc-4-runtime installed (and it will by default), which delivers runtime libraries in /usr/lib ,
when one installs developer/build/make, gcc-7-runtime is not installed and we likely have non-working make.

We've implemented the following workaround in oi-userland, when switched to GCC-6:

https://github.com/OpenIndiana/oi-userland/commit/90207d45219cd3f1aee0306db74122d7c9634aed

Likely, something similar should be implemented in illumos-gate (or we should fix pkgdepend and rely on it being fixed in build environment).

History

#1

Updated by Alexander Pyhalov 4 months ago

For OpenIndiana I've fixed it by illumos-gate transform in https://github.com/OpenIndiana/oi-userland/pull/5093.

Final suggested illumos-gate webrev is available here: http://buildzone.oi-build.r61.net/11255/.

Also available in: Atom PDF