mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
qimageblitz: Mark stack as non-executable (patch taken from Gentoo)
This allows applications such as okular and kolourpaint to run in grsecurity kernels, which disallow executable stacks by default.
This commit is contained in:
parent
1c2aacb5d8
commit
aab9b733c2
|
@ -7,14 +7,16 @@ in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "${pn}-${v}";
|
name = "${pn}-${v}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/${pn}/${pn}-${v}.tar.bz2";
|
url = "mirror://sourceforge/${pn}/${pn}-${v}.tar.bz2";
|
||||||
sha256 = "0pnaf3qi7rgkxzs2mssmslb3f9ya4cyx09wzwlis3ppyvf72j0p9";
|
sha256 = "0pnaf3qi7rgkxzs2mssmslb3f9ya4cyx09wzwlis3ppyvf72j0p9";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake qt4 ];
|
buildInputs = [ cmake qt4 ];
|
||||||
|
|
||||||
|
patches = [ ./qimageblitz-9999-exec-stack.patch ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Graphical effect and filter library for KDE4";
|
description = "Graphical effect and filter library for KDE4";
|
||||||
license = "BSD";
|
license = "BSD";
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
diff -uar qimageblitz/blitz/asm_scale.S qimageblitz~/blitz/asm_scale.S
|
||||||
|
--- qimageblitz-orig/blitz/asm_scale.S 2007-10-17 01:17:57.000000000 +0200
|
||||||
|
+++ qimageblitz/blitz/asm_scale.S 2007-10-17 01:19:12.000000000 +0200
|
||||||
|
@@ -814,3 +814,7 @@
|
||||||
|
SIZE(qimageScale_mmx_AARGBA)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
+#if defined(__linux__) && defined(__ELF__)
|
||||||
|
+.section .note.GNU-stack,"",%progbits
|
||||||
|
+#endif
|
||||||
|
+
|
Loading…
Reference in a new issue