Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691260 - =dev-libs/libdbusmenu-16.04.0 fails to build as libdbusmenu-glib/client.c:1343:50: error: unused parameter 'sender' [-Werror=unused-parameter]
Summary: =dev-libs/libdbusmenu-16.04.0 fails to build as libdbusmenu-glib/client.c:134...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2019-08-01 22:37 UTC by Sergei Trofimovich (RETIRED)
Modified: 2019-08-11 10:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-libs:libdbusmenu-16.04.0:20190801-184629.log (dev-libs:libdbusmenu-16.04.0:20190801-184629.log,89.94 KB, text/x-log)
2019-08-01 22:37 UTC, Sergei Trofimovich (RETIRED)
Details
emerge --info (emerge--info,19.75 KB, text/plain)
2019-08-01 22:39 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-01 22:37:18 UTC
Created attachment 585406 [details]
dev-libs:libdbusmenu-16.04.0:20190801-184629.log

libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/tmp/portage-tmpdir/portage/dev-libs/libdbusmenu-16.04.0/work/libdbusmenu-16.04.0/libdbusmenu-glib -I.. -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib/libffi-3.3_rc0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Werror -Wno-error=deprecated-declarations -DG_LOG_DOMAIN=\"LIBDBUSMENU-GLIB\" -march=sandybridge -mtune=sandybridge -maes --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=8192 -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -Wall -Wextra -Wstack-protector -Wno-error -c /tmp/portage-tmpdir/portage/dev-libs/libdbusmenu-16.04.0/work/libdbusmenu-16.04.0/libdbusmenu-glib/client.c  -fPIC -DPIC -o .libs/libdbusmenu_glib_la-client.o
...

../../libdbusmenu-16.04.0/libdbusmenu-glib/client.c: In function 'dbusmenu_client_class_init':
../../libdbusmenu-16.04.0/libdbusmenu-glib/client.c:204:2: warning: 'g_type_class_add_private' is deprecated [-Wdeprecated-declarations]
  204 |  g_type_class_add_private (klass, sizeof (DbusmenuClientPrivate));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from ../../libdbusmenu-16.04.0/libdbusmenu-glib/client.c:33:
/usr/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
 1303 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
../../libdbusmenu-16.04.0/libdbusmenu-glib/client.c: In function 'dbusmenu_client_dispose':
../../libdbusmenu-16.04.0/libdbusmenu-glib/client.c:466:17: error: comparison of integer expressions of different signedness: 'gint' {aka 'int'} and 'guint' {aka 'unsigned int'} [-Werror=sign-compare]
  466 |   for (i = 0; i < priv->delayed_property_listeners->len; i++) {
      |                 ^
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-01 22:39:22 UTC
Created attachment 585470 [details]
emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-01 22:45:47 UTC
Looks like the following is enough to reproduce it in ~arch chroot without extras:
    # USE='-test gtk' FEATURES=-test CFLAGS="-O2 -Wall -Wextra" emerge -v1 =dev-libs/libdbusmenu-16.04.0
Comment 3 Larry the Git Cow gentoo-dev 2019-08-11 10:44:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0778a51ae1cc7db7aaffb790a5225e644cd98f3f

commit 0778a51ae1cc7db7aaffb790a5225e644cd98f3f
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-08-11 10:44:36 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-08-11 10:44:46 +0000

    dev-libs/libdbusmenu: drop werror, bug #691260
    
    Closes: https://bugs.gentoo.org/691260
    Package-Manager: Portage-2.3.71, Repoman-2.3.17
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../files/libdbusmenu-16.04.0-werror.patch         | 37 ++++++++++++++++++++++
 dev-libs/libdbusmenu/libdbusmenu-16.04.0.ebuild    |  3 +-
 2 files changed, 39 insertions(+), 1 deletion(-)