libcdio: fix build against upcoming ncurses-6.3
On ncurses-6.3 with extra printf() annotations gcc now detects use of user input in place of format strings: cdda-player.c:1032:31: error: format not a string literal and no format arguments [-Werror=format-security] 1032 | mvprintw(i_line++, 0, line); | ^~~~
This commit is contained in:
parent
fdcee2eb3b
commit
475cc96c02
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, libcddb, pkg-config, ncurses, help2man, libiconv, Carbon, IOKit }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, libcddb, pkg-config, ncurses, help2man, libiconv, Carbon, IOKit }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libcdio-2.1.0";
|
||||
|
@ -8,6 +8,16 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0avi6apv5ydjy6b9c3z9a46rvp5i57qyr09vr7x4nndxkmcfjl45";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# pull pending upstream patch to fix build on ncurses-6.3:
|
||||
# https://savannah.gnu.org/patch/index.php?10130
|
||||
(fetchpatch {
|
||||
name = "ncurses-6.3.patch";
|
||||
url = "https://savannah.gnu.org/patch/download.php?file_id=52179";
|
||||
sha256 = "1v15gxhpi4bgcr12pb3d9c3hiwj0drvc832vic7sham34lhjmcbb";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue