[Freewx-maint] Bug#738849: Please enable webview support for wx3.0

costamagnagianfranco at yahoo.it costamagnagianfranco at yahoo.it
Wed Apr 30 18:34:03 UTC 2014


> Il Mercoledì 30 Aprile 2014 12:39, Olly Betts <olly at survex.com> ha scritto:
> > On Wed, Apr 30, 2014 at 08:45:47AM +0100, Gianfranco Costamagna wrote:
>>  Isn't the "-Wl,--as-needed" automatically passed by dh 
> system? are you
>>  overriding LDFLAGS somewhere?
> 
> I don't believe either is true.  Passing it unconditionally wouldn't be
> a good plan, as it breaks some cases (as I mentioned above).
> 
> Are you perhaps thinking of "-Wl,-z,relro" (which is related to
> hardening)?
> 

ok can it be that ubuntu enables them by default and debian not?
https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-Wl.2C--as-needed

ubuntu is using them since three years, and why should removing a not used library be a problem?
I mean if no symbols are used we can drop safely right?

I can understand that having as-needed flag may introduce some weird build failures, such when you wrongly build with commands like
gcc -lm -library file.c

in this way with --as-needed the math link is dropped and you won't likely be able to build correctly the c code (I fixed many of this kind of wrong makefiles when I started contributing in debian, because ubuntu was failing to build almost every package I was able to build in debian).

So, with the new flag the package is building, and the unneeded libraries seems to have gone.

Can we safely leave them inside?

The patch is so ugly, but the libraries are not there anymore
https://github.com/LocutusOfBorg/wx/commit/e18d875c355096e458371d7f83910d02c926c294

>>  I'll rebuild and give you results soon, in the meanwhile I attach the 
> two build logs
> 
> Aha, this part is interesting (and suggests that "-Wl,--as-needed" 
> will
> fix this, if it doesn't break anything; and if not, sorting out the -l
> flags passed should resolve it):
> 
>>  dpkg-shlibdeps: warning: package could avoid a useless dependency if 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_xrc-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_ribbon-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_richtext-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_qa-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_propgrid-3.0.so.0.0.0 
> were not linked against libjavascriptcoregtk-1.0.so.0 (they use none of the 
> library's symbols)
>>  dpkg-shlibdeps: warning: package could avoid a useless dependency if 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_xrc-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_ribbon-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_richtext-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_qa-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_propgrid-3.0.so.0.0.0 
> were not linked against libwebkitgtk-1.0.so.0 (they use none of the 
> library's symbols)
>>  dpkg-shlibdeps: warning: package could avoid a useless dependency if 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_xrc-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_ribbon-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_richtext-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_qa-3.0.so.0.0.0 
> debian/libwxgtk3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_propgrid-3.0.so.0.0.0 
> were not linked against libsoup-2.4.so.1 (they use none of the library's 
> symbols)
>>  dpkg-shlibdeps: warning: package could avoid a useless dependency if 
> debian/libwxgtk-media3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_media-3.0.so.0.0.0 
> was not linked against libsoup-2.4.so.1 (it uses none of the library's 
> symbols)
>>  dpkg-shlibdeps: warning: package could avoid a useless dependency if 
> debian/libwxgtk-media3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_media-3.0.so.0.0.0 
> was not linked against libjavascriptcoregtk-1.0.so.0 (it uses none of the 
> library's symbols)
>>  dpkg-shlibdeps: warning: package could avoid a useless dependency if 
> debian/libwxgtk-media3.0-0/usr/lib/x86_64-linux-gnu/libwx_gtk2u_media-3.0.so.0.0.0 
> was not linked against libwebkitgtk-1.0.so.0 (it uses none of the library's 
> symbols)
> 
>>  Last thing:
>>  I installed in a sid chroot the wx-3 package, with also the webview support 
> package.
>> 
>>  After that I removed the libwebkitgtk-dev and dpkg didn't complain, 
> also didn't complain about anything else.
>>  So can we say libwebkitgtk-dev is just a build dep and not a runtime one? 
> Can this simplify things?
>>  (I think it doesn't simplify anything because the package brings other 
> dependencies)
> 
> libwebkitgtk-dev should only be a build dependency - it's the runtime
> dependencies which are the issue here.
> 

yes, so the new package is likely necessary if I understand correctly

Attached the log of the new debdiffs

bests,

Gianfranco

> 
> Cheers,
>     Olly
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/freewx-maint/attachments/20140430/34d896b6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log2
Type: application/octet-stream
Size: 17766 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/freewx-maint/attachments/20140430/34d896b6/attachment-0001.obj>


More information about the Freewx-maint mailing list