Package Details: xdpi-git 0.0.0.r48.924fcc5-1

Git Clone URL: (read-only, click to copy)
Package Base: xdpi-git
Description: X11 DPI information retrieval
Upstream URL:
Licenses: MPL
Conflicts: xdpi
Provides: xdpi
Submitter: codyps
Maintainer: codyps
Last Packager: codyps
Votes: 1
Popularity: 0.000016
First Submitted: 2018-10-08 00:02 (UTC)
Last Updated: 2018-10-08 00:03 (UTC)

Latest Comments

Crystal4276 commented on 2022-11-23 20:28 (UTC)

Hello, the package cannot be built:

==> Starting build()...
cc -std=c99 -g -Wall -Wextra -DWITH_XCB=1 -Werror -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now  xdpi.c  -lm -lX11 -lXrandr -lXinerama -lxcb -lxcb-randr -lxcb-xinerama -lxcb-xrm -o xdpi
xdpi.c: In function ‘do_xlib_dpi’:
xdpi.c:368:46: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Werror=format-truncation=]
  368 |                                 "_XSETTINGS_S%d", i);
      |                                              ^~
xdpi.c:368:33: note: directive argument in the range [0, 2147483646]
  368 |                                 "_XSETTINGS_S%d", i);
      |                                 ^~~~~~~~~~~~~~~~
xdpi.c:367:25: note: ‘snprintf’ output between 14 and 23 bytes into a destination of size 20
  367 |                         snprintf(xsettings_name[i], xsettings_max_name_len,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  368 |                                 "_XSETTINGS_S%d", i);
      |                                 ~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: xdpi] Error 1
==> ERROR: A failure occurred in build().
error: failed to build 'xdpi-git-0.0.0.r48.924fcc5-1': 
error: packages failed to build: xdpi-git-0.0.0.r48.924fcc5-1