Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919380 - dev-util/umockdev-0.17.18 - libumockdev.so.0.3.0.p/.../umockdev-pcap.c: error: umockdev_ioctl_usb_pcap_handler_properties defined but not used [-Werro
Summary: dev-util/umockdev-0.17.18 - libumockdev.so.0.3.0.p/.../umockdev-pcap.c: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 919400 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-06 21:27 UTC by Toralf Förster
Modified: 2024-01-07 17:26 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.36 KB, text/plain)
2023-12-06 21:27 UTC, Toralf Förster
Details
dev-util:umockdev-0.17.18:20231206-204149.log (dev-util:umockdev-0.17.18:20231206-204149.log,54.85 KB, text/plain)
2023-12-06 21:27 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,104.29 KB, application/x-xz)
2023-12-06 21:27 UTC, Toralf Förster
Details
environment (environment,138.57 KB, text/plain)
2023-12-06 21:27 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.07 KB, application/x-xz)
2023-12-06 21:27 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,30.80 KB, application/x-xz)
2023-12-06 21:27 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,4.11 KB, application/x-xz)
2023-12-06 21:27 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,105.51 KB, application/x-xz)
2023-12-06 21:27 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,35.88 KB, application/x-xz)
2023-12-06 21:27 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-06 21:27:40 UTC
  715 |                         gint _tmp11__length1;
      |                              ^~~~~~~~~~~~~~~
libumockdev.so.0.3.0.p/src/umockdev-pcap.c:668:14: warning: variable '_tmp1__length1' set but not used [-Wunused-but-set-variable]
  668 |         gint _tmp1__length1;
      |              ^~~~~~~~~~~~~~
libumockdev.so.0.3.0.p/src/umockdev-pcap.c: At top level:
libumockdev.so.0.3.0.p/src/umockdev-pcap.c:62:20: error: 'umockdev_ioctl_usb_pcap_handler_properties' defined but not used [-Werror=unused-variable]
   62 | static GParamSpec* umockdev_ioctl_usb_pcap_handler_properties[UMOCKDEV_IOCTL_USB_PCAP_HANDLER_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-20231125-151036

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0
  [2]   rust-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 64305965077fa0ba644ad43e658f0ce065165213
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 6 19:07:41 2023 +0000

    2023-12-06 19:07:41 UTC

emerge -qpvO dev-util/umockdev
[ebuild  N    ] dev-util/umockdev-0.17.18  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2023-12-06 21:27:41 UTC
Created attachment 877959 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-06 21:27:42 UTC
Created attachment 877960 [details]
dev-util:umockdev-0.17.18:20231206-204149.log
Comment 3 Toralf Förster gentoo-dev 2023-12-06 21:27:43 UTC
Created attachment 877961 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-06 21:27:45 UTC
Created attachment 877962 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-06 21:27:46 UTC
Created attachment 877963 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-06 21:27:47 UTC
Created attachment 877964 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-06 21:27:48 UTC
Created attachment 877965 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-06 21:27:49 UTC
Created attachment 877966 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-06 21:27:50 UTC
Created attachment 877967 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-07 17:22:55 UTC
*** Bug 919400 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2024-01-07 17:23:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34cf0a8d2ab1c37cbe725117a8e3edc565b1ef1c

commit 34cf0a8d2ab1c37cbe725117a8e3edc565b1ef1c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-07 17:23:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-07 17:23:48 +0000

    dev-util/umockdev: drop -Werror=unused-variable (for Vala)
    
    Exposed by a change in Meson to stop inhibiting Vala warnings, e.g.
    ```
    umockdev-record.p/src/umockdev-pcap.c: At top level:
    umockdev-record.p/src/umockdev-pcap.c:101:20: error: ‘umockdev_ioctl_usb_pcap_handler_properties’ defined but not used [-Werror=unused-variable]
      101 | static GParamSpec* umockdev_ioctl_usb_pcap_handler_properties[UMOCKDEV_IOCTL_USB_PCAP_HANDLER_NUM_PROPERTIES];
          |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
    
    See https://github.com/mesonbuild/meson/commit/5f659af870011e74299d1455a65c2cd5f5ace51f.
    
    Closes: https://bugs.gentoo.org/919380
    Signed-off-by: Sam James <sam@gentoo.org>

 ...ckdev-0.17.18-vala-unused-variable-werror.patch | 22 ++++++++++++++++++++++
 dev-util/umockdev/umockdev-0.17.18.ebuild          |  6 +++++-
 2 files changed, 27 insertions(+), 1 deletion(-)