Project

General

Profile

Bug #2729

oi-151.1.4 problems with SFEbuild and SFEencumbered

Added by r a over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2012-05-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Hi,

After upgrading to oi-151.1.4 I am unable to add Stellarium and VLC from the SFEbuild and SFEencumbered repositories. The installation fails due to incompatible links issue, details provided below. There is a conflict between the GCC 3.4.5 included as part of the OpenIndiana build and the SFE builds which use GCC 4.6. Should OpenIndiana Development be shipped with GCC 4.6?

Preparing...
Gathering package information

Error:
The requested change to the system attempts to install multiple actions
for link 'usr/bin/gcc' with conflicting attributes:

1 package delivers 'link path=usr/bin/gcc target=../gcc/4.6/bin/gcc':
pkg:,5.11-0.151.1:20111222T011404Z
1 package delivers 'link path=usr/bin/gcc target=../sfw/bin/gcc':
pkg:,5.11-0.151.1.4:20120502T222653Z

These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.

The requested change to the system attempts to install multiple actions
for link 'usr/bin/g++' with conflicting attributes:

1 package delivers 'link path=usr/bin/g++ target=../gcc/4.6/bin/g++':
pkg:,5.11-0.151.1:20111222T011404Z
1 package delivers 'link path=usr/bin/g++ target=../sfw/bin/g++':
pkg:,5.11-0.151.1.4:20120502T222653Z

These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.

The requested change to the system attempts to install multiple actions
for link 'usr/bin/gcov' with conflicting attributes:

1 package delivers 'link path=usr/bin/gcov target=../gcc/4.6/bin/gcov':
pkg:,5.11-0.151.1:20111222T011404Z
1 package delivers 'link path=usr/bin/gcov target=../sfw/bin/gcov':
pkg:,5.11-0.151.1.4:20120502T222653Z

These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.

#1

Updated by Milan Jurik over 8 years ago

This has to be solved on SFE side. With new gcc moving to /usr (out of /usr/sfw), it is necessary for SFE to stay away from it.

#2

Updated by r a over 8 years ago

Thanks for the update, when will the SFE repositories be updated to reflect the new position for gcc

#3

Updated by Th. Wagner over 8 years ago

At the time oi-sfe was done there was no fresh gcc 4.x available in OI, so the gcc 4.6 used in the oi-sfe variant was decided to put the runtime into /usr/lib. This is not the SFE default location which is instead a very "private" one in /usr/gcc/<major.minor>/lib . The location /usr/lib of oi-sfe led to the need for a workaround to run VirtualBox on OI if /usr/lib/<gccruntimelibs> libs where present on an OI system (the underlaying root case for that problem is different and not related to this conflicting file path form this bug)

As Milan Jurik stated, the immediate fix on the SFE side will be to rebuild oi-sfe packages with the SFE default configuration to always use correct runtime libs from the private directory /usr/gcc/4.6/lib/ .

OI should enable install for multiple gcc versions by using LINK_LIBGCC_SPEC and placing gcc runtime libraries into private directories /usr/gcc/<major.minor>/lib only. That avoids as well the VirtualBox library effect described elsewhere.
SFE packages in oi-sfe should build own gcc and runtime libraries with the LINK_LIBGCC_SPEC features enabled and build all packages using own gcc with one exception.
oi-sfe programs should always load runtime libs first from the directory /usr/gcc/<major.minor>/lib/ .
oi-sfe packages should use the distro provided gcc in case it uses LINK_LIBGCC_SPEC with the /usr/gcc/<major.minor>/lib/ layout and if it is available from OI in the same version then SFE would provide its own gcc variant.

#4

Updated by r a over 8 years ago

Created Bug to have the OI SFE and SFEencumbered SPEC files updated Bug #2925 which resulted in the following comment.

"Updated by Milan Jurik 1 day ago

I would like to rebuild it but I did not receive needed access to pkg.openindiana.org so I cannot do that.

Currently OI SFE is in very bad situation."

#5

Updated by Dieter Lange over 8 years ago

concerning VirtualBox (4.1.18) on oi_151pre5 host, this might make it run for now (which it did not and does after adding the 2 lines to the top of /usr/bin/VirtualBox):
LD_NODIRECT=1
export LD_NODIRECT

cf. <https://forums.virtualbox.org/viewtopic.php?f=11&t=46155>

#6

Updated by Th. Wagner over 8 years ago

related bug: https://www.illumos.org/issues/2786 OI should enable multiple gcc versions at a time and store gccruntime in private directories

#7

Updated by Ken Mays almost 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF