[Slackbuilds-users] MEGAsync required deps?

Felipe Bugno capent at yahoo.com
Sun Mar 11 01:10:26 UTC 2018


Hi Fernando,

I'm the maintainer of MEGASync package.

About the Freeimage, the thing is: since MEGA is a fully encrypted file
hosting service, it can't create image thumbnails on server side. Thus,
file previews are sent by the application alongside the file during the
upload process. Without that, when you use the web version of MEGA, you
will not have image previews.

This is explained in their SDK docs (https://mega.nz/doc), section
6.4.4, that i quote below:

"6.4.4 Thumbnails

All applications capable of uploading image files should add thumbnails
in the process (remember that there is no way for us to do this on the
server side). Thumbnails are stored as type 0 file attributes and should
be 120p*120p JPEGs compressed to around 3-4 KB. The sample application
supplied with the SDK demonstrates how to do this using the FreeImage
library. As the extraction of a thumbnail from a large image can take a
considerable amount of time, it is also suggested to perform this in
separate worker threads to avoid stalling the application."

Taking a peek at their source, looks like it can fallback to QT to
create thumbnails if you compile without Freeimage, but it supports far
less file formats.

Why it don't show on ldd i don't know yet, maybe it compile statically
but i must confirm first by looking at SDK automake files. The reason
that i include --with-freeimage on SlackBuild is because the MEGA
developers themselves recommends that for the builds of every platform
(see: https://github.com/meganz/sdk/blob/master/doc/), thus i wanted do
provide the same functionality as the official binary.

On 10/03/2018 20:18, Fernando Lopez wrote:
> yeah I get your point, Jeremy and Watson... but in this
> case FreeImage is not being used
> at all by the program... not even with the switch "--with-freeimage"
> I don't think "--with-freeimage" is a valid switch or needed
> dependency for this program.
> I compiled all requirements:
> "libuv", "FreeImage", "cryptopp", "c-ares", "libsodium" then I
> compiled megasync from sbo.
> MEGAsync is not using FreeImage at all. It is not needed.
> I used a virtual machine with clean slackware 14.2
> this is the ldd of megasync:
> linux-vdso.so.1 (0x00007ffe49767000) libuv.so.1 =>
> /usr/lib64/libuv.so.1 (0x00007f0835f4d000) libsqlite3.so.0 =>
> /usr/lib64/libsqlite3.so.0 (0x00007f0835c7b000) librt.so.1 =>
> /lib64/librt.so.1 (0x00007f0835a73000) libcurl.so.4 =>
> /usr/lib64/libcurl.so.4 (0x00007f0835803000) libz.so.1 =>
> /lib64/libz.so.1 (0x00007f08355ed000) libcryptopp.so.5.6 =>
> /usr/lib64/libcryptopp.so.5.6 (0x00007f0835029000) libcares.so.2 =>
> /usr/lib64/libcares.so.2 (0x00007f0834e17000) libsodium.so.23 =>
> /usr/lib64/libsodium.so.23 (0x00007f0834bc0000) libssl.so.1 =>
> /lib64/libssl.so.1 (0x00007f083494e000) libcrypto.so.1 =>
> /lib64/libcrypto.so.1 (0x00007f08344fe000) libdl.so.2 =>
> /lib64/libdl.so.2 (0x00007f08342f9000) libQtDBus.so.4 =>
> /usr/lib64/qt/lib/libQtDBus.so.4 (0x00007f0834073000) libQtXml.so.4 =>
> /usr/lib64/qt/lib/libQtXml.so.4 (0x00007f0833e2e000) libQtSvg.so.4 =>
> /usr/lib64/qt/lib/libQtSvg.so.4 (0x00007f0833bd4000) libQtGui.so.4 =>
> /usr/lib64/qt/lib/libQtGui.so.4 (0x00007f0832ed8000) libQtNetwork.so.4
> => /usr/lib64/qt/lib/libQtNetwork.so.4 (0x00007f0832b83000)
> libQtCore.so.4 => /usr/lib64/qt/lib/libQtCore.so.4
> (0x00007f0832688000) libpthread.so.0 => /lib64/libpthread.so.0
> (0x00007f083246b000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6
> (0x00007f08320f1000) libm.so.6 => /lib64/libm.so.6
> (0x00007f0831de7000) libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1
> (0x00007f0831bd0000) libc.so.6 => /lib64/libc.so.6
> (0x00007f0831807000) libnsl.so.1 => /lib64/libnsl.so.1
> (0x00007f08315ec000) libicui18n.so.56 => /usr/lib64/libicui18n.so.56
> (0x00007f083115b000) libicuuc.so.56 => /usr/lib64/libicuuc.so.56
> (0x00007f0830dc3000) libicudata.so.56 => /usr/lib64/libicudata.so.56
> (0x00007f082f3df000) libidn.so.11 => /usr/lib64/libidn.so.11
> (0x00007f082f1ac000) libssh2.so.1 => /usr/lib64/libssh2.so.1
> (0x00007f082ef7f000) liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2
> (0x00007f082ed70000) libldap-2.4.so.2 => /usr/lib64/libldap-2.4.so.2
> (0x00007f082eb27000) /lib64/ld-linux-x86-64.so.2 (0x000055c5ae190000)
> libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0
> (0x00007f082e925000) libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0
> (0x00007f082e5ef000) libpng16.so.16 => /usr/lib64/libpng16.so.16
> (0x00007f082e3bd000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6
> (0x00007f082e120000) libgobject-2.0.so.0 =>
> /usr/lib64/libgobject-2.0.so.0 (0x00007f082decf000) libSM.so.6 =>
> /usr/lib64/libSM.so.6 (0x00007f082dcc8000) libICE.so.6 =>
> /usr/lib64/libICE.so.6 (0x00007f082daac000) libXrender.so.1 =>
> /usr/lib64/libXrender.so.1 (0x00007f082d8a3000) libfontconfig.so.1 =>
> /usr/lib64/libfontconfig.so.1 (0x00007f082d667000) libXext.so.6 =>
> /usr/lib64/libXext.so.6 (0x00007f082d454000) libX11.so.6 =>
> /usr/lib64/libX11.so.6 (0x00007f082d117000) libresolv.so.2 =>
> /lib64/libresolv.so.2 (0x00007f082cefb000) libsasl2.so.3 =>
> /usr/lib64/libsasl2.so.3 (0x00007f082ccdf000) libharfbuzz.so.0 =>
> /usr/lib64/libharfbuzz.so.0 (0x00007f082ca61000) libbz2.so.1 =>
> /lib64/libbz2.so.1 (0x00007f082c850000) libffi.so.6 =>
> /usr/lib64/../lib64/libffi.so.6 (0x00007f082c648000) libuuid.so.1 =>
> /lib64/libuuid.so.1 (0x00007f082c443000) libxcb.so.1 =>
> /usr/lib64/libxcb.so.1 (0x00007f082c224000) libXau.so.6 =>
> /usr/lib64/libXau.so.6 (0x00007f082c021000) libXdmcp.so.6 =>
> /usr/lib64/libXdmcp.so.6 (0x00007f082be1b000) libexpat.so.1 =>
> /usr/lib64/libexpat.so.1 (0x00007f082bbf2000)
> and this is the contents of FreeImage-3.17.0-x86_64-1_SBo.tgz sbo package:
> drwxr-xr-x root/root 0 2018-03-10 16:00 ./ drwxr-xr-x root/root 0
> 2018-03-10 16:00 install/ -rw-r--r-- root/root 450 2018-03-10 16:00
> install/doinst.sh -rw-r--r-- root/root 974 2018-03-10 16:00
> install/slack-desc drwxr-xr-x root/root 0 2018-03-10 16:00 usr/
> drwxr-xr-x root/root 0 2018-03-10 16:00 usr/include/ -rw-r--r--
> root/root 57727 2018-03-10 16:00 usr/include/FreeImage.h -rw-r--r--
> root/root 54371 2018-03-10 16:00 usr/include/FreeImagePlus.h
> drwxr-xr-x root/root 0 2018-03-10 16:00 usr/doc/ drwxr-xr-x root/root
> 0 2018-03-10 16:00 usr/doc/FreeImage-3.17.0/ -rw-r--r-- root/root
> 17878 2012-02-25 04:16 usr/doc/FreeImage-3.17.0/license-gplv2.txt
> -rw-r--r-- root/root 77077 2015-03-15 16:16
> usr/doc/FreeImage-3.17.0/Whatsnew.txt -rw-r--r-- root/root 2425
> 2018-03-10 16:00 usr/doc/FreeImage-3.17.0/FreeImage.SlackBuild
> drwxr-xr-x root/root 0 2015-03-15 16:18
> usr/doc/FreeImage-3.17.0/Examples/ drwxr-xr-x root/root 0 2015-03-15
> 16:18 usr/doc/FreeImage-3.17.0/Examples/Plugin/ -rw-r--r-- root/root
> 9455 2004-07-20 09:48
> usr/doc/FreeImage-3.17.0/Examples/Plugin/PluginCradle.cpp -rw-r--r--
> root/root 1501 2015-03-02 01:50
> usr/doc/FreeImage-3.17.0/Examples/Plugin/PluginCradle.h drwxr-xr-x
> root/root 0 2015-03-15 16:18 usr/doc/FreeImage-3.17.0/Examples/OpenGL/
> drwxr-xr-x root/root 0 2015-03-15 16:18
> usr/doc/FreeImage-3.17.0/Examples/OpenGL/TextureManager/ -rw-r--r--
> root/root 3933 2008-01-29 14:13
> usr/doc/FreeImage-3.17.0/Examples/OpenGL/TextureManager/TextureManager.cpp
> -rw-r--r-- root/root 1426 2015-03-02 01:50
> usr/doc/FreeImage-3.17.0/Examples/OpenGL/TextureManager/TextureManager.h
> -rw-r--r-- root/root 1124 2008-01-29 14:11
> usr/doc/FreeImage-3.17.0/Examples/OpenGL/TextureManager/readme.txt
> drwxr-xr-x root/root 0 2015-03-15 16:18
> usr/doc/FreeImage-3.17.0/Examples/Linux/ -rw-r--r-- root/root 2181
> 2010-06-30 16:56 usr/doc/FreeImage-3.17.0/Examples/Linux/linux-gtk.c
> -rw-r--r-- root/root 1599 2005-10-23 07:59
> usr/doc/FreeImage-3.17.0/Examples/Linux/linux-svgalib.c -rw-r--r--
> root/root 568 2010-06-30 16:56
> usr/doc/FreeImage-3.17.0/Examples/Linux/Makefile drwxr-xr-x root/root
> 0 2015-03-15 16:18 usr/doc/FreeImage-3.17.0/Examples/Generic/
> -rw-r--r-- root/root 3832 2004-07-20 09:48
> usr/doc/FreeImage-3.17.0/Examples/Generic/FIIO_Mem.cpp -rw-r--r--
> root/root 10081 2007-01-22 14:25
> usr/doc/FreeImage-3.17.0/Examples/Generic/ShowMetadata.cpp -rw-r--r--
> root/root 5016 2004-09-04 08:56
> usr/doc/FreeImage-3.17.0/Examples/Generic/FIFImportExport.cpp
> -rw-r--r-- root/root 4265 2007-01-22 14:30
> usr/doc/FreeImage-3.17.0/Examples/Generic/LoadFromHandle.cpp
> -rw-r--r-- root/root 2760 2004-03-29 16:45
> usr/doc/FreeImage-3.17.0/Examples/Generic/LoadFromMemory.cpp
> -rw-r--r-- root/root 3413 2004-09-04 08:56
> usr/doc/FreeImage-3.17.0/Examples/Generic/CloneMultiPage.cpp
> -rw-r--r-- root/root 2555 2015-03-02 01:50
> usr/doc/FreeImage-3.17.0/Examples/Generic/FIIO_Mem.h -rw-r--r--
> root/root 5650 2007-01-22 14:30
> usr/doc/FreeImage-3.17.0/Examples/Generic/CreateAlpha.cpp -rw-r--r--
> root/root 2966 2004-03-29 16:45
> usr/doc/FreeImage-3.17.0/Examples/Generic/LoadFromMemory-classified.cpp
> -rw-r--r-- root/root 6507 2007-01-22 14:30
> usr/doc/FreeImage-3.17.0/Examples/Generic/BatchLoad.cpp -rw-r--r--
> root/root 2072 2007-09-06 01:08 usr/doc/FreeImage-3.17.0/README.linux
> -rw-r--r-- root/root 34801 2012-02-25 04:17
> usr/doc/FreeImage-3.17.0/license-gplv3.txt drwxr-xr-x root/root 0
> 2015-03-15 16:18 usr/doc/FreeImage-3.17.0/TestAPI/ -rw-r--r--
> root/root 14124 2014-10-13 17:23
> usr/doc/FreeImage-3.17.0/TestAPI/Test.2013.vcxproj -rw-r--r--
> root/root 4672 2015-02-25 11:04
> usr/doc/FreeImage-3.17.0/TestAPI/testMemIO.cpp -rw-r--r-- root/root
> 4047 2014-04-08 06:36
> usr/doc/FreeImage-3.17.0/TestAPI/testThumbnail.cpp -rw-r--r--
> root/root 1227 2014-10-12 04:02
> usr/doc/FreeImage-3.17.0/TestAPI/Test.2008.sln -rw-r--r-- root/root
> 9766 2014-03-19 09:03 usr/doc/FreeImage-3.17.0/TestAPI/testJPEG.cpp
> -rw-r--r-- root/root 3110 2015-03-02 01:50
> usr/doc/FreeImage-3.17.0/TestAPI/TestSuite.h -rw-r--r-- root/root 8403
> 2010-04-26 15:46 usr/doc/FreeImage-3.17.0/TestAPI/testMPageMemory.cpp
> -rw-r--r-- root/root 10186 2014-10-01 21:42
> usr/doc/FreeImage-3.17.0/TestAPI/Test.2008.vcproj -rw-r--r-- root/root
> 3970 2014-04-08 07:51
> usr/doc/FreeImage-3.17.0/TestAPI/testWrappedBuffer.cpp -rw-r--r--
> root/root 872 2010-02-09 21:46
> usr/doc/FreeImage-3.17.0/TestAPI/Test.2005.sln -rw-r--r-- root/root
> 1610 2004-03-29 16:45 usr/doc/FreeImage-3.17.0/TestAPI/testPlugins.cpp
> -rw-r--r-- root/root 6438 2010-04-26 13:19
> usr/doc/FreeImage-3.17.0/TestAPI/testMPageStream.cpp -rw-r--r--
> root/root 5448 2010-07-11 15:43
> usr/doc/FreeImage-3.17.0/TestAPI/Test.2005.vcproj -rw-r--r-- root/root
> 3232 2015-02-25 09:08
> usr/doc/FreeImage-3.17.0/TestAPI/MainTestSuite.cpp -rw-r--r--
> root/root 261497 2015-02-25 09:04
> usr/doc/FreeImage-3.17.0/TestAPI/exif.jxr -rw-r--r-- root/root 123
> 2004-07-20 09:48 usr/doc/FreeImage-3.17.0/TestAPI/Makefile -rw-r--r--
> root/root 7158 2010-07-15 17:22
> usr/doc/FreeImage-3.17.0/TestAPI/testHeaderOnly.cpp -rw-r--r--
> root/root 2686 2010-04-24 19:35
> usr/doc/FreeImage-3.17.0/TestAPI/testTools.cpp -rw-r--r-- root/root
> 5933 2010-04-24 18:05 usr/doc/FreeImage-3.17.0/TestAPI/testMPage.cpp
> -rw-r--r-- root/root 3902 2010-04-24 19:38
> usr/doc/FreeImage-3.17.0/TestAPI/testChannels.cpp -rw-r--r-- root/root
> 44606 2005-01-04 15:34 usr/doc/FreeImage-3.17.0/TestAPI/exif.jpg
> -rw-r--r-- root/root 14579 2010-08-17 06:10
> usr/doc/FreeImage-3.17.0/TestAPI/testImageType.cpp -rw-r--r--
> root/root 42913 2004-12-09 13:09
> usr/doc/FreeImage-3.17.0/TestAPI/sample.png -rw-r--r-- root/root 1335
> 2014-10-12 03:59 usr/doc/FreeImage-3.17.0/TestAPI/Test.2013.sln
> -rw-r--r-- root/root 17577 2004-03-29 16:45
> usr/doc/FreeImage-3.17.0/license-fi.txt drwxr-xr-x root/root 0
> 2018-03-10 16:00 usr/lib64/ -rw-r--r-- root/root 11079976 2018-03-10
> 16:00 usr/lib64/libfreeimage.a -rwxr-xr-x root/root 6306904 2018-03-10
> 16:00 usr/lib64/libfreeimageplus-3.17.0.so
> <http://libfreeimageplus-3.17.0.so> -rwxr-xr-x root/root 6277752
> 2018-03-10 16:00 usr/lib64/libfreeimage-3.17.0.so
> <http://libfreeimage-3.17.0.so> -rw-r--r-- root/root 11146412
> 2018-03-10 16:00 usr/lib64/libfreeimageplus.a
>
> On Sat, Mar 10, 2018 at 3:50 PM, B Watson <yalhcru at gmail.com
> <mailto:yalhcru at gmail.com>> wrote:
>
>     On 3/10/18, Jeremy Hansen <jebrhansen+SBo at gmail.com
>     <mailto:jebrhansen%2BSBo at gmail.com>> wrote:
>     > Just so you know, a "required" dependency on SBo is something the
>     > maintainer decided was required, not necessarily something that
>     is actually
>     > required for compilation/running. It may provide a feature that the
>     > maintainer feels is a big enough deal to make it required on his
>     package.
>
>     Thanks for putting that into words. I wish it were part of the SBo
>     documentation.
>
>     There's a guy on IRC who insists that e.g. my espeak build shouldn't
>     have portaudio listed as a dependency, because espeak can be
>     compiled &
>     run without it... but if you want it to actually *speak* in realtime
>     (instead of rendering to a .wav file), portaudio is required.
>
>     Another example: gzdoom can be built & run without OpenAL, but in that
>     case it will make NO sound at all, which is definitely not what people
>     expect when they play a game of Doom.
>     _______________________________________________
>     SlackBuilds-users mailing list
>     SlackBuilds-users at slackbuilds.org
>     <mailto:SlackBuilds-users at slackbuilds.org>
>     https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>     <https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users>
>     Archives -
>     https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>     <https://lists.slackbuilds.org/pipermail/slackbuilds-users/>
>     FAQ - https://slackbuilds.org/faq/
>
>
>
>
> -- 
>
> ------------
> Regards,
>     Fernando Lopez Jr.
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180310/10b50a81/attachment-0001.html>


More information about the SlackBuilds-users mailing list