mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
udftools: fix compiling with gcc5 and turn off fortify
This commit is contained in:
parent
0c5b86b607
commit
801b80299c
@ -10,6 +10,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ ncurses readline ];
|
||||
|
||||
patches = [ ./gcc5.patch ];
|
||||
hardening_fortify = false;
|
||||
|
||||
preConfigure = ''
|
||||
sed -e '1i#include <limits.h>' -i cdrwtool/cdrwtool.c -i pktsetup/pktsetup.c
|
||||
sed -e 's@[(]char[*][)]spm [+]=@spm = ((char*) spm) + @' -i wrudf/wrudf.c
|
||||
|
17
pkgs/tools/filesystems/udftools/gcc5.patch
Normal file
17
pkgs/tools/filesystems/udftools/gcc5.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- udftools-1.0.0b3/libudffs/desc.c 2016-02-07 23:21:38.595391610 +0000
|
||||
+++ udftools-1.0.0b3/libudffs/desc.c 2016-02-07 23:21:57.759756269 +0000
|
||||
@@ -34,12 +34,12 @@
|
||||
#include "libudffs.h"
|
||||
#include "config.h"
|
||||
|
||||
-inline struct impUseVolDescImpUse *query_iuvdiu(struct udf_disc *disc)
|
||||
+extern struct impUseVolDescImpUse *query_iuvdiu(struct udf_disc *disc)
|
||||
{
|
||||
return (struct impUseVolDescImpUse *)disc->udf_iuvd[0]->impUse;
|
||||
}
|
||||
|
||||
-inline struct logicalVolIntegrityDescImpUse *query_lvidiu(struct udf_disc *disc)
|
||||
+extern struct logicalVolIntegrityDescImpUse *query_lvidiu(struct udf_disc *disc)
|
||||
{
|
||||
return (struct logicalVolIntegrityDescImpUse *)&(disc->udf_lvid->impUse[le32_to_cpu(disc->udf_lvd[0]->numPartitionMaps) * 2 * sizeof(uint32_t)]);
|
||||
}
|
Loading…
Reference in New Issue
Block a user