Discussion:
Trying to install the SailfishOS SDK
(too old to reply)
Christoph-Simon Senjak
2017-01-19 20:13:55 UTC
Permalink
Hi.

I am trying to write a package for the SailfishOS SDK. It can be
downloaded from [1]. As this seems to be a graphical installer, I first
want to run it manually (before trying to package it), so I ran a
nix-shell in the following way:

nix-shell --pure -p glibc -p freetype -p xorg.libXrender -p glib -p
pkgconfig -p patchelf -p xorg.libX11 -p xorg.libXi -p xorg.libSM -p
xorg.libICE -p fontconfig -p mesa -p gcc5

Furthermore, I ran several patchelf commands:

patchelf --replace-needed libgobject-2.0.so.0
/nix/store/8n9yqcp590d005mp9xmsn4fkkn8nbb0b-glib-2.48.2/lib/libgobject-2.0.so.0
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libX11-xcb.so.1
/nix/store/04d88aazadyi6pr9ssyr16jr9bv90iiv-libX11-1.6.4/lib/libX11-xcb.so.1
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libXi.so.6
/nix/store/kjas1jj6hmkj8bwm86xds9xnhb4b9w6m-libXi-1.7.7/lib/libXi.so.6
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libSM.so.6
/nix/store/0ki1zd5icc1wxh8r0a3a8c2i12fvl8l2-libSM-1.2.2/lib/libSM.so.6
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libICE.so.6
/nix/store/8jzhn006vyp6vd2ksa1dnsdzbjxlb0bd-libICE-1.0.9/lib/libICE.so.6
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libxcb.so.1
/nix/store/iscdrla2wi6rvla9ndpxsy86qdzscyma-libxcb-1.12/lib/libxcb.so.1
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libfontconfig.so.1
/nix/store/nwaqrp0327cfcjwj1ms9cnpnkvccl9fl-fontconfig-2.11.1-lib/lib/libfontconfig.so.1
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libfreetype.so.6
/nix/store/blgfqhxdwh6mm2g7n663n7s9qcv1m40b-freetype-2.6.5/lib/libfreetype.so.6
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libXrender.so.1
/nix/store/cb9bwxsssd6dymmy095prc8sgpcaqjlb-libXrender-0.9.10/lib/libXrender.so.1
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libX11.so.6
/nix/store/04d88aazadyi6pr9ssyr16jr9bv90iiv-libX11-1.6.4/lib/libX11.so.6
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libglib-2.0.so.0
/nix/store/8n9yqcp590d005mp9xmsn4fkkn8nbb0b-glib-2.48.2/lib/libglib-2.0.so.0
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
patchelf --replace-needed libGL.so.1
/nix/store/fw5mpi91cqnjcp3f6skj2jgj1bwr5zkv-mesa-noglu-12.0.5/lib/libGL.so.1
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run

Finally, after running

patchelf --replace-needed libstdc++.so.6
/nix/store/fqx37fwx5g0c4m6zv9wb6d8cfblrrvi6-gcc-5.4.0-lib/lib/libstdc++.so.6
SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run

I get the error message

Inconsistency detected by ld.so: dl-version.c: 224:
_dl_check_map_versions: Assertion `needed != NULL' failed!

Any ideas what I could do about that?

(I am using the stable branch of nixos)

Best Regards,
Christoph-Simon Senjak


[1]:http://releases.sailfishos.org/sdk/installers/1611/SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run
Profpatsch
2017-01-20 09:58:01 UTC
Permalink
Post by Christoph-Simon Senjak
I get the error message
Assertion `needed != NULL' failed!
Any ideas what I could do about that?
I am not sure, but have you tried a search, like:
Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions

Normally every possible linker error has already bitten
someone else in the past.
--
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
David
2017-06-17 20:26:30 UTC
Permalink
On Thu, 19 Jan 2017 21:13:55 +0100
Post by Christoph-Simon Senjak
I am trying to write a package for the SailfishOS SDK.
I am sorry for the necrobump but... is there any news on this?
David Izquierdo
2017-06-18 10:11:59 UTC
Permalink
I was recently looking for info on this too. I'll ask a more general
question: Is there any other piece of softrware in nixpkgs that's based
on a QtInstallerFramework? The installer for Sailfish SDK is one, and,
even though it runs via steam-run (and promptly detects my lack of
VirtualBox), I'd prefer to properly package it. I suspect the secret
sauce will be, unsurprisingly, in the AUR. I'll have a go in the
following weeks at replicating the PKGBUILD in nix and see how it works out.


https://aur.archlinux.org/packages/sailfishos-sdk-bin/
Post by David
On Thu, 19 Jan 2017 21:13:55 +0100
Post by Christoph-Simon Senjak
I am trying to write a package for the SailfishOS SDK.
I am sorry for the necrobump but... is there any news on this?
_______________________________________________
nix-dev mailing list
https://mailman.science.uu.nl/mailman/listinfo/nix-dev
David Costa
2017-06-19 18:40:31 UTC
Permalink
On Sun, 18 Jun 2017 12:11:59 +0200
I'll ask a more general question: Is there any other piece of
softrware in nixpkgs that's based on a QtInstallerFramework?
Is the installer only a way to avoid packaging the SDK for one thousand
distros? If so we can build the SDK from sources and avoid the
installer at all.
I suspect the secret sauce will be, unsurprisingly, in the AUR.
The AUR solution calls the installer with a --script option, passing
enough javascript to make the setup fully automated. I hadn't time to
try if this works in a headless environment or not.

Unless the SDK has binary only and unfree components I'd prefer a
package that can build it from source, but I don't know if we have a
guideline about wrapping binary releases.
For instance, is libreoffice compiled from source by hydra or just
wrapped?
The installer for Sailfish SDK [...] runs via steam-run
Thank you so much ! I didn't think of steam-run, now I can give it a
whirl!

Loading...