After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784097 - meson build port flags fixes
meson build port flags fixes
Status: RESOLVED FIXED
Product: libgepub
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libgepub Maintainer(s)
libgepub Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-06-22 15:45 UTC by Iñigo Martínez
Modified: 2017-06-23 06:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fied meson build port flags (5.44 KB, patch)
2017-06-22 15:45 UTC, Iñigo Martínez
none Details | Review
Fixed meson build port flags (2.78 KB, patch)
2017-06-22 17:02 UTC, Iñigo Martínez
committed Details | Review
Removed flags available as meson options (3.30 KB, patch)
2017-06-22 17:03 UTC, Iñigo Martínez
committed Details | Review

Description Iñigo Martínez 2017-06-22 15:45:15 UTC
Created attachment 354252 [details] [review]
Fied meson build port flags

A symbol visibility map file has been created for ld and the invalid libtool flag has been removed.

All CFLAGS and LDFLAGS that can be enabled by using meson options have also been removed.
Comment 1 Bastien Nocera 2017-06-22 15:58:54 UTC
Review of attachment 354252 [details] [review]:

Rest looks fine.

::: meson.build
@@ -59,3 @@
 config_h.set('HAVE_UNISTD_H', cc.has_header('unistd.h'))
 
-# Compiler flags

I don't think those changes are necessary.
Comment 2 Iñigo Martínez 2017-06-22 16:26:22 UTC
meson adds by default '-Wall' and '-Winvalid-pch' at warning level 1, '-Wextra' at level 2 and finally '-Wpedantic' al level 3.

Although it's true that any developer may just want those flags at any warning level, I've thought that it would be good idea to take advantage of the available meson options, in the same way as linker flags' options. Hence, I've removed all the flags already included in those levels.

Do you think that the original flags should be restored?
Comment 3 Bastien Nocera 2017-06-22 16:35:48 UTC
(In reply to Iñigo Martínez from comment #2)
> meson adds by default '-Wall' and '-Winvalid-pch' at warning level 1,
> '-Wextra' at level 2 and finally '-Wpedantic' al level 3.
> 
> Although it's true that any developer may just want those flags at any
> warning level, I've thought that it would be good idea to take advantage of
> the available meson options, in the same way as linker flags' options.
> Hence, I've removed all the flags already included in those levels.
> 
> Do you think that the original flags should be restored?

I don't think you should change them in a completely unrelated patch.
Comment 4 Iñigo Martínez 2017-06-22 17:02:40 UTC
Created attachment 354258 [details] [review]
Fixed meson build port flags
Comment 5 Iñigo Martínez 2017-06-22 17:03:08 UTC
Created attachment 354259 [details] [review]
Removed flags available as meson options
Comment 6 Iñigo Martínez 2017-06-22 17:05:23 UTC
(In reply to Bastien Nocera from comment #3)
> (In reply to Iñigo Martínez from comment #2)
> > meson adds by default '-Wall' and '-Winvalid-pch' at warning level 1,
> > '-Wextra' at level 2 and finally '-Wpedantic' al level 3.
> > 
> > Although it's true that any developer may just want those flags at any
> > warning level, I've thought that it would be good idea to take advantage of
> > the available meson options, in the same way as linker flags' options.
> > Hence, I've removed all the flags already included in those levels.
> > 
> > Do you think that the original flags should be restored?
> 
> I don't think you should change them in a completely unrelated patch.

I agree with you. I have split the patch in two :)