[Buildroot] [PATCH v2 1/1] turbovnc: new package

Stefan Fröberg stefan.froberg at petroprogram.com
Mon Nov 6 13:13:21 UTC 2017


Hi

I have now successfully compiled latest TurboVNC from git and with 
bzip2,freetype and zlib as
external dependencies, also, libXau, libXdmcp and libXfont are now external.

But there are two issues that need resolving:

1. TurboVNC really does depend of turbo-jpeg, that's one of the reasons 
it's so fast.
So for now I have made it "depends on BR2_PACKAGE_JPEG_TURBO" so that 
turbovnc
package will only appear to menu only if jpeg-turbo has been also selected.
Is that okay?

2. TurboVNC (Xvnc binary) really is two servers rolled into one. Actual 
normally working,
altought TurboVNC patched Xorg server and VNC server.
So, maybe the right place for turbovnc in the menus would be below 
"Alternate X servers",
below Xvfb.
And then I just copy dependencies from xorg package, so that if the user 
want's both
VNC and Xorg then he just selects the turbovnc without needing to waste 
space for
the real, vanilla Xorg installation.
Is that okay?

Maybe in future, there could be even virtual package virtual-xvnc, like 
"Xvnc --->"  below Xvfb in the
menu where user could select what Xvnc implementation (TurboVNC, 
TightVNC, TigerVNC etc...)
he/she want's to use.

Tought?

-S-

2.11.2017, 23:28, Thomas Petazzoni kirjoitti:
> Hello,
>
> On Thu, 02 Nov 2017 23:21:45 +0200, Stefan Fröberg wrote:
>
>
>> libbzip2.a      libfontenc.a    librandr.a    libXau.a libxkb.a
>> libcomposite.a  libfreetype2.a  librender.a   libXdmcp.a libXNVCtrl.a
>> libdamage.a     libmain.a       libsha1.a     libXext-server.a libzlib.a
>> libdamageext.a  libmi.a         libsync.a     libxfixes.a
>> libdix.a        libos.a         libvnc.a      libXfont.a
>> libfb.a         libpixman.a     libvncauth.a  libXi.a
> That's a lot of static libraries, but I'm sure TurboVNC didn't
> duplicate the source code for all of these. Perhaps it is copying them
> from their system-wide location to its build directory, for some funky
> reason?
>
>> But then doing ldd for Xvnc binary gives this:
>> Xvnc:
>>           linux-vdso.so.1 (0x00007fffbbffe000)
>>           libturbojpeg.so.0 => /usr/lib64/libturbojpeg.so.0
>> (0x00007f1d221b8000)
>>           libm.so.6 => /lib64/libm.so.6 (0x00007f1d21eba000)
>>           libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1d21c9e000)
>>           libpam.so.0 => /lib64/libpam.so.0 (0x00007f1d21a90000)
>>           libdl.so.2 => /lib64/libdl.so.2 (0x00007f1d2188c000)
>>           libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f1d21683000)
>>           libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f1d21466000)
>>           libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f1d21124000)
>>           libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f1d20f12000)
>>           libc.so.6 => /lib64/libc.so.6 (0x00007f1d20b76000)
>>           /lib64/ld-linux-x86-64.so.2 (0x00007f1d2242b000)
>>           libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f1d20971000)
>>           libbsd.so.0 => /usr/lib64/libbsd.so.0 (0x00007f1d2075b000)
>>           libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f1d20532000)
>>           librt.so.1 => /lib64/librt.so.1 (0x00007f1d2032a000)
>>           libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f1d20126000)
>>           libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f1d1ff20000)
>>
>> So it builds a static versions of libXau.a libXdmcp.a for example, but
>> then does not use them anyway in the final link but instead the system
>> wide versions ?
>>
>> I posted question to github if bzip2, freetype2 and zlib can be external
>> dependencies or if they contain some TurboVNC specific stuff.
> Thanks. Let's see what upstream says.
>
> Best regards,
>
> Thomas




More information about the buildroot mailing list