Merge 171819: makeBinaryWrapper: add -Wno-overlength-strings

...into staging-next
main
Vladimír Čunát 2 years ago
commit 3dc2052b50
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 4
      pkgs/build-support/setup-hooks/make-binary-wrapper.sh
  2. 2
      pkgs/desktops/gnome/apps/cheese/default.nix
  3. 2
      pkgs/desktops/gnome/apps/gnome-maps/default.nix
  4. 2
      pkgs/desktops/gnome/apps/gnome-music/default.nix
  5. 2
      pkgs/desktops/gnome/core/gnome-shell/default.nix
  6. 2
      pkgs/desktops/gnome/core/totem/default.nix
  7. 1
      pkgs/test/make-binary-wrapper/default.nix
  8. 25
      pkgs/test/make-binary-wrapper/overlength-strings.c
  9. 1
      pkgs/test/make-binary-wrapper/overlength-strings.cmdline
  10. 3
      pkgs/test/make-binary-wrapper/overlength-strings.env

@ -33,8 +33,7 @@ assertExecutable() {
# To troubleshoot a binary wrapper after you compiled it, # To troubleshoot a binary wrapper after you compiled it,
# use the `strings` command or open the binary file in a text editor. # use the `strings` command or open the binary file in a text editor.
makeWrapper() { makeWrapper() {
local NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK local NIX_CFLAGS_COMPILE= NIX_CFLAGS_LINK=
unset NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK
local original="$1" local original="$1"
local wrapper="$2" local wrapper="$2"
shift 2 shift 2
@ -46,6 +45,7 @@ makeWrapper() {
makeDocumentedCWrapper "$original" "$@" | \ makeDocumentedCWrapper "$original" "$@" | \
@CC@ \ @CC@ \
-Wall -Werror -Wpedantic \ -Wall -Werror -Wpedantic \
-Wno-overlength-strings \
-Os \ -Os \
-x c \ -x c \
-o "$wrapper" - -o "$wrapper" -

@ -80,8 +80,6 @@ stdenv.mkDerivation rec {
pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video
]; ];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
postPatch = '' postPatch = ''
chmod +x meson_post_install.py chmod +x meson_post_install.py
patchShebangs meson_post_install.py patchShebangs meson_post_install.py

@ -69,8 +69,6 @@ stdenv.mkDerivation rec {
webkitgtk webkitgtk
]; ];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
postPatch = '' postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py patchShebangs meson_post_install.py

@ -76,8 +76,6 @@ python3.pkgs.buildPythonApplication rec {
gst-plugins-ugly gst-plugins-ugly
]); ]);
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
pythonPath = with python3.pkgs; [ pythonPath = with python3.pkgs; [
pycairo pycairo
dbus-python dbus-python

@ -175,8 +175,6 @@ stdenv.mkDerivation rec {
pythonEnv pythonEnv
]; ];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
mesonFlags = [ mesonFlags = [
"-Dgtk_doc=true" "-Dgtk_doc=true"
]; ];

@ -77,8 +77,6 @@ stdenv.mkDerivation rec {
xvfb-run xvfb-run
]; ];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
mesonFlags = [ mesonFlags = [
# TODO: https://github.com/NixOS/nixpkgs/issues/36468 # TODO: https://github.com/NixOS/nixpkgs/issues/36468
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0" "-Dc_args=-I${glib.dev}/include/gio-unix-2.0"

@ -44,6 +44,7 @@ let
"invalid-env" "invalid-env"
"prefix" "prefix"
"suffix" "suffix"
"overlength-strings"
]; ];
f = name: lib.nameValuePair name (makeGoldenTest name); f = name: lib.nameValuePair name (makeGoldenTest name);
in builtins.listToAttrs (builtins.map f names); in builtins.listToAttrs (builtins.map f names);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save