NewsFlash - Libreoffice work ongoing

  • Posted on: 4 October 2015
  • By: tomww

!!Article is outdated, please read from the startpage!!

Update 20151024: [Solved OIHipster] pfexec pkg update -v consolidation/userland/userland-incorporation@0.5.11,5.11-2015.0.2.0:20151023T185528Z #(or newer!)
pfexec pkg uninstall g++/icu g++/boost
(update) pfexec pkg uninstall pkg://openindiana.org/developer/gcc-48
pfexec pkg install -v libreoffice4
This should give you now a correct install for libreoffice. Alex from OI-Hipster removed the forced dependency for the g++/icu and g++/boost packages, they aren't longer in use for OIH

Update 20151023: (hackers interest) OIHipster has a proposed change to userland-incorporation, see https://github.com/OpenIndiana/oi-userland/compare/OpenIndiana:oi/hipste...
Update 20151021: OIHipster users may see pkg conflicts with g++/boost and g++/icu. Currently the consolidation/userland/userland-incorporation lists both, the old OI package and the new one. I believe this will be fixed shortly on the OIHipster side. Workaround: Use version unlock or uninstall g++/icu g++/boost and probably as well consolidation/userland/userland-incorporation.
Update 20151018: OIHipster users can test desktop/application/libreoffice4 second build now!

===========
Just wanted to let you know, I got a fresh drop of spec files for SFElibreoffice4 from pjama's workbench.

It will take a moment to work though it, test-compile and merge the changes into our SVN repository.
(Why does it take some days? The first reason is, pjama has been *very* busy enhancing the spec files
and the second one, I only want to publish packages which are of good quality which takes time)

Questions? Comments? Please! Drop me a note, if this LibreOffice package works for you!

User registration is open, then you can drop comments.

Regards
tomww

Comments

Sounds good, I am looking forward for LO on Solaris. And I am pleasured that you wait with release until it is quite good quality. :)

Hi,

while desktop/application/libreoffice now looks working well on OpenIndiana Hipster, it will take a little while until we can say if ir runs on Solaris 11 too. The reason is a) the build machine needs to complete the 11.0 -> 11.2 upgrade and
b) if I remember correctly, it needs some trickery to get an updated package "poppler" for PDF files. At least the version for poppler provided by the (now very old) Solaris 11.0 was too old (same with "cairo").

The next task is indeed making LibreOffice work in Solaris.

Regards!

predrag.zecevic's picture

Hi,

I have tried:

$ pfexec pkg update -v consolidation/userland/userland-incorporation@0.5.11,5.11-2015.0.2.0:20151023T185528Z
.
pkg update: 'consolidation/userland/userland-incorporation@0.5.11,5.11-2015.0.2.0:20151023T185528Z' matches no installed packages

and got to the problem straight away (BTW, i have update image this morning, so change https://github.com/OpenIndiana/oi-userland/commit/bd7a4342eab3cb61abee46... from Alexander should be already there?)

Moreover, this fails too:

pfexec pkg uninstall g++/icu g++/boost
.
pkg uninstall: 'g++/boost' matches no installed packages
'g++/icu' matches no installed packages

Regards.

predrag.zecevic's picture

UPDATE:

If I run

$ pfexec pkgrecv -s http://pkg.openindiana.org/hipster-2015/ --newest > /tmp/pkg.openindiana.org_hipster-2015--newest.txt
$ grep consolidation/userland/userland-incorporation ~/tmp/pkg.openindiana.org_hipster-2015--newest.txt
pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151023T185528Z

why it has failed with: "pkg update: 'consolidation/userland/userland-incorporation@0.5.11,5.11-2015.0.2.0:20151023T185528Z' matches no installed packages" error?
Maybe because I do not have one installed:

$ pkg list consolidation/userland/userland-incorporation
pkg list: no packages matching the following patterns are installed:
consolidation/userland/userland-incorporation

So, tried to install it:

$ pfexec pkg install -vn consolidation/userland/userland-incorporation
Creating Plan (Solver setup): \
pkg install: No matching version of consolidation/userland/userland-incorporation can be installed:
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151003T234529Z
Reason: No version matching 'incorporate' dependency backup/rdiff-backup@1.3.3-2015.0.2.1:20151003T233118Z can be installed
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T015312Z
Reason: No version matching 'incorporate' dependency backup/rdiff-backup@1.3.3-2015.0.2.1:20151004T013905Z can be installed
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T055002Z
to
pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T150924Z
Reason: No version matching 'incorporate' dependency consolidation/gnome/gnome-incorporation@0.5.11-0.151.1.8:20150824T204856Z can be installed
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T163056Z
Reason: No version matching 'incorporate' dependency consolidation/gnome/gnome-incorporation@0.5.11-0.151.1.8:20151004T155930Z can be installed
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151005T203207Z
to
pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151007T214737Z
Reason: No version matching 'incorporate' dependency database/postgres-93@9.3.9-2015.0.1.0:20150727T210527Z can be installed
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151009T122932Z
Reason: No version matching 'incorporate' dependency library/perl-5/xml-parser@2.41-2015.0.2.0:20151004T121154Z can be installed
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151014T211107Z
Reason: No version matching 'incorporate' dependency developer/ccache@3.2.3-2015.0.2.0:20151014T204326Z can be installed
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151022T081702Z
pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151023T185528Z
Reason: No version matching 'incorporate' dependency library/perl-5/xml-parser@2.41-2015.0.2.0:20151004T121154Z can be installed

OK, specifying exact version:

$ pfexec pkg install -vn pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151023T185528Z
Creating Plan (Solver setup): \
pkg install: No matching version of consolidation/userland/userland-incorporation can be installed:
Reject: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151023T185528Z
Reason: No version matching 'incorporate' dependency library/perl-5/xml-parser@2.41-2015.0.2.0:20151004T121154Z can be installed

That per package exists!

$ grep -E "library/perl-5/xml-parser.*20151004T121154Z" ~/tmp/pkg.openindiana.org_hipster-2015--newest.txt
pkg://openindiana.org/library/perl-5/xml-parser@2.41-2015.0.2.0:20151004T121154Z


$ pfexec pkg install -vn pkg://openindiana.org/library/perl-5/xml-parser@2.41-2015.0.2.0:20151004T121154Z
Creating Plan (Solver setup): \
pkg install: No matching version of library/perl-5/xml-parser can be installed:


$ pfexec pkg install -vn pkg://openindiana.org/library/perl-5/xml-parser
No updates necessary for this image.
...

Any idea how to fix this mess?
Regards.

Regards.

Hi Predrag,

I'm wondering if there is a fatal or a more cosmetic problem. The meta-Package userland-incorporation is not badly needed.
It just was the blocking factor to get uninstalld OI-Hipster packages with the exact same name then our SFE g++/icu and g++/boost. That blocking has been removed.

So for the moment one could possibly go without the version-tighthening by meta-package. The next complete update to OI-Hipster would then be the first in the need for again a userland-incorporation to pull in the new versions of the various packages below that.

Update:
Most times OIHipster gcc compiler is in the way. Just uninstall the compiler and leave the runtime: (ref: http://sfe.opencsw.org/comment/30#comment-30)

pfexec pkg uninstall -v developer/gcc-48
(optional: pfexec pkg uninstall -v developer/clang-3.4 )

So could you please collect these outputs and then try a dryrun install?
PUBLISHER=pkg://localhostoih/ #OI-Hipster repository
pkg info $PUBLISHER/library/g++/icu
pkg info $PUBLISHER/system/library/g++/boost

pkg info entire
pkg info consolidation/userland/userland-incorporation
pkg info -r consolidation/userland/userland-incorporation

pfexec pkg install -v $PUBLISHER/library/g++/icu
pkg info g++/icu
#check for publisher localhost*, else pfexec pkg uninstall g++/icu (as well for g++/boost) and try again

pfexec pkg install -v $PUBLISHER/system/library/g++/boost
pkg info g++/boost
#check for publisher localhost*, else uninstall g++/boost (as well for g++/icu) and try again

then
pfexec pkg install -v libreoffice4

Thanks!
tomww

predrag.zecevic's picture

Hi Tom,

is it possible to attach file here?

Anyway:

predrag_zecevic@solarix ~$ script /tmp/sfe.opencsw.org-libreoffice4-solving.1.txt
Script started, file is /tmp/sfe.opencsw.org-libreoffice4-solving.1.txt
predrag_zecevic@solarix ~$ pkg info g++/icu
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try querying remotely instead:

g++/icu
predrag_zecevic@solarix ~$ pkg info g++/boost
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try querying remotely instead:

g++/boost
predrag_zecevic@solarix ~$ pkg info entire
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try querying remotely instead:

entire
predrag_zecevic@solarix ~$ pkg info consolidation/userland/userland-incorporation
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try querying remotely instead:

consolidation/userland/userland-incorporation
predrag_zecevic@solarix ~$ pkg info -r consolidation/userland/userland-incorporation
Name: consolidation/userland/userland-incorporation
Summary: userland consolidation incorporation
(consolidation/userland/userland-incorporation)
Description: This incorporation constrains packages from the userland
consolidation
Category: Meta Packages/Incorporations
State: Not installed
Publisher: openindiana.org
Version: 0.5.11
Branch: 2015.0.2.0
Packaging Date: October 23, 2015 06:55:28 PM
Size: 0.00 B
FMRI: pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151023T185528Z
predrag_zecevic@solarix ~$ pfexec pkg install -v g++/icu

pkg install: 'g++/icu' matches multiple packages
pkg://openindiana.org/developer/g++/icu
pkg://localhostoih/library/g++/icu
pkg://openindiana.org/library/g++/icu

Please provide one of the package FMRIs listed above to the install command.
predrag_zecevic@solarix ~$ pfexec pkg install -v pkg://localhostoih/library/g++/icu
Creating Plan (Checking for conflicting actions): / Packages to install: 3
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
localhostoih
library/g++/icu
None -> 55.1-0.0.151.1.8
sfe/system/library/gcc-48-runtime
None -> 4.8.5-0.0.151.1.8
sfe/system/library/gcc-runtime
None -> 4.8.5-0.0.151.1.8

pkg install: The following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libquadmath.so.0.0.0:

pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z
pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libgomp.so.1.0.0:

pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z
pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libobjc.so.4.0.0:

pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z
pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libssp.so.0.0.0:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libstdc++.so.6.0.19-gdb.py:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libstdc++.so.6.0.19-gdb.py:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libatomic.so.1.0.0:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libstdc++.so.6.0.19:

pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z
pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libgomp.spec:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libgcc_s.so.1:

pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z
pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libquadmath.so.0.0.0:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libgfortran.spec:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libgfortran.spec:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libgfortran.so.3.0.0:

pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z
pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libgcc_s.so.1:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libgomp.so.1.0.0:

pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z
pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libgomp.spec:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libssp.so.0.0.0:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libgfortran.so.3.0.0:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/amd64/libobjc.so.4.0.0:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libstdc++.so.6.0.19:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

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 following packages all deliver file actions to usr/gcc/4.8/lib/libatomic.so.1.0.0:

pkg://localhostoih/sfe/system/library/gcc-48-runtime@4.8.5,5.11-0.0.151.1.8:20151010T221843Z
pkg://openindiana.org/developer/gcc-48@4.8.5,5.11-2015.0.1.0:20150626T225710Z

These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.
predrag_zecevic@solarix ~$
predrag_zecevic@solarix ~$
predrag_zecevic@solarix ~$ pfexec pkg install -v g++/boost
No updates necessary for this image.
Planning linked: 0/1 done; 1 working: zone:hipster
Linked image 'zone:hipster' output:
| No updates necessary for this image. (zone:hipster)
`
Planning linked: 1/1 done
predrag_zecevic@solarix ~$ pkg info g++/boost
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try querying remotely instead:

g++/boost
predrag_zecevic@solarix ~$ pfexec pkg install -v libreoffice4
Creating Plan (Solver setup): /
pkg install: No matching version of desktop/application/libreoffice4 can be installed:
Reject: pkg://localhostoih/desktop/application/libreoffice4@4.4.5.2-0.0.151.1.8
Reason: No version matching 'require' dependency system/library/g++/boost@1.58.0-0.0.151.1.8 can be installed
----------------------------------------
Reject: pkg://localhostoih/system/library/g++/boost@1.58.0-0.0.151.1.8
Reason: Higher ranked publisher openindiana.org was selected
----------------------------------------
Reject: pkg://localhostoih/desktop/application/libreoffice4@4.4.5.2-0.0.151.1.8
Reason: No version matching 'require' dependency library/g++/icu@55.1-0.0.151.1.8 can be installed
----------------------------------------
Reject: pkg://localhostoih/library/g++/icu@55.1-0.0.151.1.8
pkg://localhostoih/library/g++/icu@55.1-0.0.151.1.8
Reason: Higher ranked publisher openindiana.org was selected
----------------------------------------
predrag_zecevic@solarix ~$
predrag_zecevic@solarix ~$
predrag_zecevic@solarix ~$ pkg publisher
PUBLISHER TYPE STATUS P LOCATION
openindiana.org origin online F http://pkg.openindiana.org/hipster-2015/
localhostoih origin online F http://sfe.opencsw.org/localhostoih/
sfe (non-sticky, disabled) origin online F http://pkg.openindiana.org/sfe/
sfe-encumbered (disabled) origin online F http://pkg.openindiana.org/sfe-encumbered/
hipster-encumbered origin online F http://pkg.openindiana.org/hipster-encumbered/

Best regards.

Hi Predrag,

it looks like you need to uninstall the gcc compiler from Hipster, as it uses the same paths as the SFE gcc(runtime).
The install of the hipster g++/icu and g++/boost unfortunatly was not intended, so those need to be uninstalled again. I've updated the previous comment to reflect the fact, that g++/icu and g++/boost need to be from the localhostoih publisher.

About a file upload to comments, sorry, that blog setup can't do this. We can shorten the comment later on anyways, so not a big problem. I didn't check the experimental forum if it could be done there.

I would suggest to use an online chat for further steps, so to make things a bit more interactive and quicker. If you like, you can use web irc gateway http://webchat.freenode.net?channels=%23pkgbuild (just ask there and be sure to idle around for *long* time until leaving)

The next steps should be uninstalling the Hipster gcc compiler and only leave the runtime installed. Then uninstall the hipster g++/icu and g++/boost again to clear the way for SFE localhostoi/*/g++/icu and localhostoi/*/g++/boost.

(adopted from previous, now updated comment - reference: http://sfe.opencsw.org/comment/30#comment-30)
Most times OIHipster gcc compiler is in the way. Just uninstall the compiler and leave the runtime:

pfexec pkg uninstall -v pkg://openindiana.org/developer/developer/gcc-48
#(leave the runtime installed!)
pfexec pkg uninstall -v pkg://openindiana.org/developer/developer/clang-3.4

pfexec pkg uninstall -v pkg://openindiana.org/developer/g++/boost
pfexec pkg uninstall -v pkg://openindiana.org/developer/g++/icu

P=pkg://localhostoih/
pfexec pkg install -v $P/library/g++/icu
pkg info g++/icu
#check for publisher localhost*

pfexec pkg install -v $P/system/library/g++/boost
pkg info g++/boost
#check for publisher localhost*

then try
pfexec pkg install -v libreoffice4

Regards,
Thomas

predrag.zecevic's picture

Hi Tom,

here are steps I took:

predrag_zecevic@solarix ~$ pfexec pkg uninstall -v pkg://openindiana.org/developer/developer/gcc-48

pkg uninstall: 'pkg://openindiana.org/developer/developer/gcc-48' matches no installed packages
predrag_zecevic@solarix ~$ pkg list | grep gcc
developer/gcc-3 3.4.3-2014.0.1.0 i--
developer/gcc-47 4.7.4-2015.0.1.0 i--
developer/gcc-48 4.8.5-2015.0.1.0 i--
library/mpich/gcc 3.1.3-2014.1.3.0 i--
sfe/system/library/gcc-46-runtime (sfe) 4.6.4-0.151.1.8 i--
system/library/gcc-3-runtime 3.4.3-2014.0.1.0 i--
system/library/gcc-4-runtime 4.8.5-2015.0.1.0 i--
predrag_zecevic@solarix ~$ pfexec pkg uninstall -v pkg://openindiana.org/developer/gcc-48
Creating Plan (Solver setup): -
pkg uninstall: Unable to remove 'developer/gcc-48@4.8.5-2015.0.1.0' due to the following packages that depend on it:
developer/clang-3.4@3.4.2-2015.0.1.1
predrag_zecevic@solarix ~$ pfexec pkg uninstall -v pkg://openindiana.org/developer/gcc-48 pkg://openindiana.org/developer/clang-3.4
Packages to remove: 2
Packages to change: 1
Mediators to change: 2
Services to change: 1
Estimated space available: 71.63 GB
Estimated space to be consumed: 220.98 MB
Create boot environment: No
Create backup boot environment: Yes
Rebuild boot archive: No

Changed mediators:
mediator clang:
version: 3.4 (system default) -> None

mediator gcc:
version: 4.8 (system default) -> 4.7 (system default)

Changed packages:
openindiana.org
developer/clang-3.4
3.4.2-2015.0.1.1 -> None
developer/gcc-48
4.8.5-2015.0.1.0 -> None
developer/gcc-47
4.7.4-2015.0.1.0

Services:
restart_fmri:
svc:/application/texinfo-update:default

Planning linked: 0/1 done; 1 working: zone:hipster
Linked image 'zone:hipster' output:
| Estimated space available: 71.63 GB
| Estimated space to be consumed: 214.13 MB
| Rebuild boot archive: No
`
Planning linked: 1/1 done
Downloading linked: 0/1 done; 1 working: zone:hipster
Downloading linked: 1/1 done
PHASE ITEMS
Removing old actions 3129/3129
Updating modified actions 11/11
Updating package state database Done
Updating package cache 2/2
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 3/3
Executing linked: 0/1 done; 1 working: zone:hipster
Executing linked: 1/1 done
Updating package cache 5/5
predrag_zecevic@solarix ~$ pfexec pkg uninstall -v pkg://openindiana.org/developer/g++/boost pkg://openindiana.org/developer/g++/icu

pkg uninstall: 'pkg://openindiana.org/developer/g++/icu' matches no installed packages
'pkg://openindiana.org/developer/g++/boost' matches no installed packages
predrag_zecevic@solarix ~$ P=pkg://localhostoih/
predrag_zecevic@solarix ~$ pfexec pkg install -v $P/library/g++/icu
pkg install: Illegal FMRI 'pkg://localhostoih//library/g++/icu': Invalid Package Name: /library/g++/icu
predrag_zecevic@solarix ~$ P=pkg://localhostoih
predrag_zecevic@solarix ~$ pfexec pkg install -v $P/library/g++/icu
Packages to install: 3
Estimated space available: 71.46 GB
Estimated space to be consumed: 349.72 MB
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
localhostoih
library/g++/icu
None -> 55.1-0.0.151.1.8
sfe/system/library/gcc-48-runtime
None -> 4.8.5-0.0.151.1.8
sfe/system/library/gcc-runtime
None -> 4.8.5-0.0.151.1.8

Planning linked: 0/1 done; 1 working: zone:hipster
Linked image 'zone:hipster' output:
| Estimated space available: 71.46 GB
| Estimated space to be consumed: 214.13 MB
| Rebuild boot archive: No
`
Planning linked: 1/1 done
Building new search index 1765/1765
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 3/3 293/293 27.8/27.8 5.0M/s

Downloading linked: 0/1 done; 1 working: zone:hipster
Downloading linked: 1/1 done
PHASE ITEMS
Installing new actions 493/493
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 3/3
Executing linked: 0/1 done; 1 working: zone:hipster
Executing linked: 1/1 done
Updating package cache 5/5
predrag_zecevic@solarix ~$ pkg info g++/icu
Name: library/g++/icu
Summary: International Components for Unicode (/usr/g++)
Description: ICU is a mature, widely used set of C/C++ and Java libraries
providing Unicode and Globalization support for software
applications. ICU is widely portable and gives applications
the same results on all platforms and between C/C++ and Java
software.
State: Installed
Publisher: localhostoih
Version: 55.1
Branch: 0.0.151.1.8
Packaging Date: October 11, 2015 12:37:34 PM
Last Install Time: October 27, 2015 06:39:16 AM
Size: 66.69 MB
FMRI: pkg://localhostoih/library/g++/icu@55.1-0.0.151.1.8:20151011T123734Z
Project URL: http://site.icu-project.org/
Source URL: http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz
predrag_zecevic@solarix ~$ pfexec pkg install -v $P/system/library/g++/boost
Packages to install: 1
Estimated space available: 71.26 GB
Estimated space to be consumed: 263.47 MB
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
localhostoih
system/library/g++/boost
None -> 1.58.0-0.0.151.1.8

Planning linked: 0/1 done; 1 working: zone:hipster
Linked image 'zone:hipster' output:
| Estimated space available: 71.26 GB
| Estimated space to be consumed: 214.13 MB
| Rebuild boot archive: No
`
Planning linked: 1/1 done
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 1/1 63/63 7.1/7.1 3.7M/s

Downloading linked: 0/1 done; 1 working: zone:hipster
Downloading linked: 1/1 done
PHASE ITEMS
Installing new actions 141/141
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 1/1
Executing linked: 0/1 done; 1 working: zone:hipster
Executing linked: 1/1 done
Updating package cache 5/5
predrag_zecevic@solarix ~$ pkg info g++/boost
Name: system/library/g++/boost
Summary: Free peer-reviewed portable C++ libraries (g++-built)
Category: System/Libraries
State: Installed
Publisher: localhostoih
Version: 1.58.0
Branch: 0.0.151.1.8
Packaging Date: October 5, 2015 10:29:30 PM
Last Install Time: October 27, 2015 06:42:07 AM
Size: 27.70 MB
FMRI: pkg://localhostoih/system/library/g++/boost@1.58.0-0.0.151.1.8:20151005T222930Z
Project URL: http://www.boost.org/
Source URL: http://downloads.sourceforge.net/boost/boost_1_58_0.tar.bz2
predrag_zecevic@solarix ~$ pfexec pkg install -v libreoffice4
Packages to install: 2
Estimated space available: 71.23 GB
Estimated space to be consumed: 1.63 GB
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
localhostoih
desktop/application/libreoffice4
None -> 4.4.5.2-0.0.151.1.8
sfe/library/libglew
None -> 1.13.0-0.0.151.1.8
Planning linked: 0/1 done; 1 working: zone:hipster
Linked image 'zone:hipster' output:
| Estimated space available: 71.23 GB
| Estimated space to be consumed: 214.13 MB
| Rebuild boot archive: No
`
Planning linked: 1/1 done
DOWNLOAD PKGS FILES XFER (MB) SPEED
desktop/application/libreoffice4 0/2 5523/13739 100.2/251.9 2.5M/s
...

Among few typos fixed, I have question:

Which gcc 4.8 I can use now?

Regrads.

Hi Predag,

in the setup described above, the compiler gcc-48 from the SFE repository can be used for compilation.
The runtime package for gcc-48 seen from the OI side can remain installed, but should normally only be used by the binaries OI deliver.

Packages compiled with the gcc-48 from SFE add the path for the gcc runtime into the binaries which are produced.
That ensures seen from the SFE side, that these binaries really run with a) the gcc runtime which has been designed for that gcc version (yes, next versions will likely be not backwards compatible) and b) an important setting is used for binaried produced with the SFE gcc-48: No lazy loading for runtime libraries. For a binary with C++, in case of an "exception", it might have loaded first the OS's libc which contains as well exception handling but we can't reliably use that one. "No lazy loading" ensures, that gcc runtime is loaded without delay, that results in loading it *before* loading libc.
That way, it is ensured that C++ exception handling happens in the gcc runtime libs and not accidentially in libc.

If you have a strong need to use the OI-Hipster version of gcc-48, then please let us know, so we could probably enhance the SFE gcc-48 accordingly.

As in the comment from a few weeks before, we currently do not plan to build an exception for OI Hipster into SFE regarding the path location and name of the package of SFE's developer/gcc-48.

Regards,
Thomas

predrag.zecevic's picture

Hi Tom,

many thanks for explanation., but unfortunately that doesn't work either:

$ pfexec pkg install -vn sfe/developer/gcc
Creating Plan (Checking for conflicting actions): / Packages to install: 3
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
localhostoih
library/libiconv
None -> 1.14-0.0.151.1.8
sfe/developer/gcc
None -> 4.8.5-0.0.151.1.8
sfe/developer/gcc-48
None -> 4.8.5-0.0.151.1.8

pkg install: The following packages all deliver file actions to usr/gnu/share/man/man1/iconv.1:

pkg://openindiana.org/library/gnu-libiconv@1.14,5.11-2014.0.1.0:20140528T101838Z
pkg://localhostoih/library/libiconv@1.14,5.11-0.0.151.1.8:20150809T232334Z
...
The following packages all deliver file actions to usr/gnu/include/localcharset.h:

pkg://localhostoih/library/libiconv@1.14,5.11-0.0.151.1.8:20150809T232334Z
pkg://openindiana.org/library/gnu-libiconv@1.14,5.11-2014.0.1.0:20140528T101838Z

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

predrag_zecevic@solarix ~$ pfexec pkg uninstall -vn pkg://openindiana.org/library/gnu-libiconv
Creating Plan (Solver setup): -
pkg uninstall: Unable to remove 'library/gnu-libiconv@1.14-2014.0.1.0' due to the following packages that depend on it:
library/audio/libcdio@0.93-2015.0.1.0
service/network/samba@4.1.19-2015.0.1.0

predrag_zecevic@solarix ~$ pfexec pkg uninstall -vn library/audio/libcdio service/network/samba library/gnu-libiconv
Creating Plan (Solver setup): \
pkg uninstall: Unable to remove 'library/audio/libcdio@0.93-2015.0.1.0' due to the following packages that depend on it:
library/audio/gstreamer/plugin/ugly@0.10.19-2015.0.1.0

^^^^ Here I have gave up - I need gstreamer plug-in.

What next?

Best regards.

This looks like a very old package which should not be on the system, therefore the dependent packages as well.
library/gnu-libiconv@1.14-2014.0.1.0

So this is does not look like originating from SFE, it looks like remainings from an older OI Hipster install where packages haven't been updated to the latest OI-Hipster versions.

Regards,
Thomas

predrag.zecevic's picture

Hi Tom,

well, I did updates on regular basis - not that I kept it on purpose:

$ pkg info library/gnu-libiconv@1.14-2014.0.1.0
Name: library/gnu-libiconv
Summary: GNU libiconv - library used to convert between different
character encodings
Category: System/Libraries
State: Installed
Publisher: openindiana.org
Version: 1.14
Branch: 2014.0.1.0
Packaging Date: May 28, 2014 10:18:38 AM
Size: 3.93 MB
FMRI: pkg://openindiana.org/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z
Project URL: http://www.gnu.org/software/libiconv/
Source URL: http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz

$ pkg search -r library/gnu-libiconv
INDEX ACTION VALUE PACKAGE
require depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0 pkg:/library/audio/libcdio@0.93-2015.0.1.0
require depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0 pkg:/service/network/samba@4.1.19-2015.0.1.0
require depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0 pkg:/library/audio/libcdio@0.93-2015.0.1.0
require depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0 pkg:/service/network/samba@4.1.19-2015.0.1.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2015.0.2.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2014.1.0.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2015.0.2.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2015.0.1.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2014.1.2.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2015.0.1.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2014.1.2.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2014.1.0.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2015.0.2.0
incorporate depend pkg:/library/gnu-libiconv@1.14-2014.0.1.0:20140528T101838Z pkg:/entire@0.5.11-2014.1.2.0
pkg.fmri set openindiana.org/library/gnu-libiconv pkg:/library/gnu-libiconv@1.14-2014.0.1.0

Trying now:
$ pfexec pkg uninstall -v library/audio/libcdio service/network/samba library/gnu-libiconv library/audio/gstreamer/plugin/ugly
...
Packages to remove: 4
Services to change: 2
Estimated space available: 72.08 GB
Estimated space to be consumed: 224.91 MB
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
hipster-encumbered
library/audio/gstreamer/plugin/ugly
0.10.19-2015.0.1.0 -> None
openindiana.org
library/audio/libcdio
0.93-2015.0.1.0 -> None
library/gnu-libiconv
1.14-2014.0.1.0 -> None
service/network/samba
4.1.19-2015.0.1.0 -> None

Services:
restart_fmri:
svc:/application/texinfo-update:default
svc:/system/manifest-import:default
...

Now THIS WORKS... wIll see what to do with samba and gstreamer/plugin/ugly packages:
$ pfexec pkg install -v sfe/developer/gcc
Packages to install: 3
Estimated space available: 72.07 GB
Estimated space to be consumed: 402.27 MB
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
localhostoih
library/libiconv
None -> 1.14-0.0.151.1.8
sfe/developer/gcc
None -> 4.8.5-0.0.151.1.8
sfe/developer/gcc-48
None -> 4.8.5-0.0.151.1.8
...

Regards.

predrag.zecevic's picture

So, this is failing now:

$ pfexec pkg install -vn service/network/samba library/audio/gstreamer/plugin/ugly
Creating Plan (Checking for conflicting actions): | Packages to install: 4
Create boot environment: No
Create backup boot environment: No
Rebuild boot archive: No

Changed packages:
hipster-encumbered
library/audio/gstreamer/plugin/ugly
None -> 0.10.19-2015.0.1.0
openindiana.org
library/audio/libcdio
None -> 0.93-2015.0.1.0
library/gnu-libiconv
None -> 1.14-2014.0.1.0
service/network/samba
None -> 4.1.19-2015.0.1.0

pkg install: The following packages all deliver file actions to usr/gnu/bin/iconv:

pkg://localhostoih/library/libiconv@1.14,5.11-0.0.151.1.8:20150809T232334Z
pkg://openindiana.org/library/gnu-libiconv@1.14,5.11-2014.0.1.0:20151027T065404Z

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 following packages all deliver file actions to usr/gnu/share/man/man3/iconv_close.3:

pkg://localhostoih/library/libiconv@1.14,5.11-0.0.151.1.8:20150809T232334Z
pkg://openindiana.org/library/gnu-libiconv@1.14,5.11-2014.0.1.0:20151027T065404Z

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

Is there any possibility/way to fix this?
Regards.

I would say, yes. It is, uninstalling the packages from the old version of the OI Hipster distro.

Doesn't hipster 2015 offer newly built packages for gstreamer? Besides that, which funktionality do you need which is provided by the gstreamer packages in the old version? Maybe there is an alternative way to achieve the same or similar features with newer packages.

Regards,
Thomas