Bug 365337 - Install to non-system volume permitted but fails
Summary: Install to non-system volume permitted but fails
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 5.0.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-10 21:51 UTC by SK
Modified: 2017-10-21 21:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.8.0
Sentry Crash Report:


Attachments
Install log from unsuccessful install to non-root volume. (8.24 KB, text/plain)
2016-07-10 21:51 UTC, SK
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SK 2016-07-10 21:51:29 UTC
Created attachment 99997 [details]
Install log from unsuccessful install to non-root volume.

On OSX 10.11.5, attempting to install to a non-root volume failed: "The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."  

Files were copied to /Volumes/<Non-Root Volume>/opt/digikam.  /Applications/Digikam folder was created, but application shortcuts inside it were not.

Install to system volume works great.

Errors appear to result from hard-coded paths in the install script. Install log is attached.
Comment 1 caulier.gilles 2016-07-11 04:32:15 UTC
yes the bundle of application is not yet relocatable. Also the installer permit to change the root install dir. This must be fixed.

Gilles Caulier
Comment 2 caulier.gilles 2016-07-12 04:15:50 UTC
So also the entry :

https://bugs.kde.org/show_bug.cgi?id=365331

... where some technical information are given to solve the problem (rpath support while compilation)

Gilles Caulier
Comment 3 caulier.gilles 2017-10-14 16:01:09 UTC
Git commit 06310dac564f758a864f2f8097d77756a0eae7f1 by Gilles Caulier.
Committed on 14/10/2017 at 15:53.
Pushed by cgilles into branch 'master'.

First stage to fix the relative path registration of MAcOS bundle to be instalable everywhere, and not only on /opt/digikam.
All binary files from the bundle are now patched while PKG build to fix pathes to shared library in relative point of internal bundle root.
For this we use Apple tools "otool" and "install_name_tool" to perform these changes.
Still TODO : fix OSA scripts to not use and absolute path
Related: bug 365331

M  +42   -0    project/bundles/macports/04-build-installer.sh
M  +34   -0    project/bundles/macports/common.sh
M  +1    -1    project/bundles/macports/installer/digikam.pkgproj

https://commits.kde.org/digikam-software-compilation/06310dac564f758a864f2f8097d77756a0eae7f1
Comment 4 caulier.gilles 2017-10-21 15:58:31 UTC
Git commit a31f61578bf7c53cf03dec9183c1aab1d017e86b by Gilles Caulier.
Committed on 21/10/2017 at 15:56.
Pushed by cgilles into branch 'master'.

update Packages project file with 1.2.0 release.

M  +37   -0    project/bundles/macports/installer/digikam.pkgproj

https://commits.kde.org/digikam-software-compilation/a31f61578bf7c53cf03dec9183c1aab1d017e86b
Comment 5 caulier.gilles 2017-10-21 21:29:43 UTC
Git commit 7993e021cbd04336470517db141c59664dfac7d0 by Gilles Caulier.
Committed on 21/10/2017 at 21:24.
Pushed by cgilles into branch 'master'.

Use new Packages V2.0 in Distribution mode to build MacOS PKG installer.
Disable target drive selection to host bundle while installing.
Always use bootable drive in all cases as install path still "/opt/digikam/".
Show GPL license while installing.
FIXED-IN: 5.8.0

M  +1    -4    project/bundles/macports/04-build-installer.sh
A  +340  -0    project/bundles/macports/installer/GPL.txt
M  +780  -623  project/bundles/macports/installer/digikam.pkgproj

https://commits.kde.org/digikam-software-compilation/7993e021cbd04336470517db141c59664dfac7d0