Merge lp:~sam-sgrs/ubuntu-filemanager-app/fix-1579487 into lp:ubuntu-filemanager-app
| Status: | Needs review |
|---|---|
| Proposed branch: | lp:~sam-sgrs/ubuntu-filemanager-app/fix-1579487 |
| Merge into: | lp:ubuntu-filemanager-app |
| Diff against target: |
99 lines (+42/-9) 2 files modified
CMakeLists.txt (+26/-2) src/plugin/folderlistmodel/CMakeLists.txt (+16/-7) |
| To merge this branch: | bzr merge lp:~sam-sgrs/ubuntu-filemanager-app/fix-1579487 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Carlos Jose Mazieri | 2016-08-22 | Needs Information on 2016-08-23 | |
|
Review via email:
|
|||
Description of the Change
Fix when the samba libs are installed on the host.
The samba libs use the rpath when compiled so the host libs are looked for fist before the bundled ones.
They can be stripped from the rpath using 'chrpath -d'.
The folderlistmodel also needs to be build using the dev packages from the bundled apps.
| Sam Segers (sam-sgrs) wrote : | # |
No. I didn't.
I'll check this later today.
Op wo 24 aug. 2016 00:49 schreef Carlos Jose Mazieri <
<email address hidden>>:
> Review: Needs Information
>
> Hello Sam,
>
> It is OK to me, just a question:
>
> Have you tested building for armf on device and building for armf on
> qtcreator using a sdk like click-ubuntu-
>
> This build was done by Alan Pope and Stefano Verzegnassi to prevent a bug
> that did not allow to install libsmbclien-dev in armf sdk, see
> https:/
> .
> --
>
> https:/
> You are the owner of lp:~sam-sgrs/ubuntu-filemanager-app/fix-1579487.
>
| Sam Segers (sam-sgrs) wrote : | # |
This *should* fix having to remove the libs on the system itself discussed
in the link you gave.
But I can't test this on a device (that's why I fixed it for the desktop so
I could try the content store in Unity8).
So maybe it's better if someone else tries it?
Op wo 24 aug. 2016 06:39 schreef Sam Segers <email address hidden>:
> No. I didn't.
> I'll check this later today.
>
> Op wo 24 aug. 2016 00:49 schreef Carlos Jose Mazieri <
> <email address hidden>>:
>
> > Review: Needs Information
> >
> > Hello Sam,
> >
> > It is OK to me, just a question:
> >
> > Have you tested building for armf on device and building for armf on
> > qtcreator using a sdk like click-ubuntu-
> >
> > This build was done by Alan Pope and Stefano Verzegnassi to prevent a bug
> > that did not allow to install libsmbclien-dev in armf sdk, see
> >
> https:/
> > .
> > --
> >
> >
> https:/
> > You are the owner of lp:~sam-sgrs/ubuntu-filemanager-app/fix-1579487.
> >
>
> --
>
> https:/
> You are the owner of lp:~sam-sgrs/ubuntu-filemanager-app/fix-1579487.
>
| Sam Segers (sam-sgrs) wrote : | # |
It builds fine in the 15.04 armhf kit but don't have a device for tests.
| Arto Jalkanen (ajalkane) wrote : | # |
I'll try to find the time to build and test this on device before weekend is over.
Thank you in advance anyway for doing these fixes for desktop. It does look like it shouldn't cause problems, but there was such many iterations to get these samba libs working on phone devices that I wouldn't be too surprised if something would break :).
Hello Arto and Sam,
The "apt-get install libsmbclient-dev" used to fail on any armf kit, so it was impossible to generate the click package in the qtcreator.
The build on device used to work because "apt-get install libsmbclient-dev" on device used to work.
That is the reason why Alan Pope and Stefano Verzegnassi came with solution of archiving samba libraries in the project.
| Sam Segers (sam-sgrs) wrote : | # |
But there are no samba headers in the project, so how is it building now if
thee Dev package can't be installed?
This change also downloads the development files the same way as the
included libs.
For the desktop, the main issue is the plugin loads libsmbclient, which in
turn loads numerous smb libs. Because libsmbclient is compiled with rpath
hard coded, it was loading the system smb libs which are xenial and the
bundled vivid.
So for the desktop only the rpath change is needed. Feel free to discard
the rest.
Op vr 26 aug. 2016 21:02 schreef Carlos Jose Mazieri <
<email address hidden>>:
> Hello Arto and Sam,
>
> The "apt-get install libsmbclient-dev" used to fail on any armf kit, so it
> was impossible to generate the click package in the qtcreator.
>
> The build on device used to work because "apt-get install
> libsmbclient-dev" on device used to work.
>
> That is the reason why Alan Pope and Stefano Verzegnassi came with
> solution of archiving samba libraries in the project.
>
> --
>
> https:/
> You are the owner of lp:~sam-sgrs/ubuntu-filemanager-app/fix-1579487.
>
Unmerged revisions
- 568. By Sam Segers on 2016-08-22
-
Fix shared libraries on the desktop
The plugin uses the vivid samba dev packages as headers and the packaged libs to link to when in CLICK_MODE.
All the packaged libs also get stripped from the rpath with chrpath so that LD_LIBRARY_PATH works and the system libs don't get used.

Hello Sam,
It is OK to me, just a question:
Have you tested building for armf on device and building for armf on qtcreator using a sdk like click-ubuntu- sdk-13. 10-armhf?
This build was done by Alan Pope and Stefano Verzegnassi to prevent a bug that did not allow to install libsmbclien-dev in armf sdk, see https:/ /code.launchpad .net/~popey/ ubuntu- filemanager- app/add- click-deps/ +merge/ 270287.