tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
setools: 3.3.8 -> 2015-02-12
William A. Kennington III
10 years ago
3ada0134
b7389a2d
+17
-32
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
setools
default.nix
ftbfs-invalid-operands-of-types.patch
+17
-17
pkgs/os-specific/linux/setools/default.nix
···
1
-
{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, bison, flex
2
, python, swig2, tcl, libsepol, libselinux, libxml2, sqlite, bzip2 }:
3
4
stdenv.mkDerivation rec {
5
-
name = "setools-3.3.8";
6
7
-
src = fetchurl {
8
-
url = "http://oss.tresys.com/projects/setools/chrome/site/dists/${name}/${name}.tar.bz2";
9
-
sha256 = "16g987ijaxabc30zyjzia4nafq49rm038y1pm4vca7i3kb67wf24";
0
0
10
};
11
12
-
patches = [ ./ftbfs-invalid-operands-of-types.patch ];
13
-
14
-
# SWIG-TCL is broken in 3.3.8
15
-
configureFlags = ''
16
-
--with-tcl=${tcl}/lib
17
-
--with-sepol-devel=${libsepol}
18
-
--with-selinux-devel=${libselinux}
19
-
--disable-gui
20
-
--disable-swig-tcl
21
-
'';
22
23
-
buildInputs = [ autoreconfHook pkgconfig bison flex python swig2 ];
0
24
25
-
nativeBuildInputs = [ tcl libsepol libselinux libxml2 sqlite bzip2 ];
0
26
27
meta = {
28
description = "SELinux Tools";
···
1
+
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, bison, flex
2
, python, swig2, tcl, libsepol, libselinux, libxml2, sqlite, bzip2 }:
3
4
stdenv.mkDerivation rec {
5
+
name = "setools-2015-02-12";
6
7
+
src = fetchFromGitHub {
8
+
owner = "TresysTechnology";
9
+
repo = "setools3";
10
+
rev = "f1e5b208d507171968ca4d2eeefd7980f1004a3c";
11
+
sha256 = "02gzy2kpszhr13f0d9qfiwh2hj4201g2x366j53v5n5qz481aykd";
12
};
13
14
+
configureFlags = [
15
+
"--disable-gui"
16
+
"--with-sepol-devel=${libsepol}"
17
+
"--with-selinux-devel=${libselinux}"
18
+
"--with-tcl=${tcl}/lib"
19
+
];
0
0
0
0
20
21
+
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
22
+
NIX_LDFLAGS = "-L${libsepol}/lib -L${libselinux}/lib";
23
24
+
nativeBuildInputs = [ autoreconfHook pkgconfig python swig2 bison flex ];
25
+
buildInputs = [ tcl libxml2 sqlite bzip2 ];
26
27
meta = {
28
description = "SELinux Tools";
-15
pkgs/os-specific/linux/setools/ftbfs-invalid-operands-of-types.patch
···
1
-
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750331
2
-
3
-
Index: setools-git/secmds/replcon.cc
4
-
===================================================================
5
-
--- setools-git.orig/secmds/replcon.cc
6
-
+++ setools-git/secmds/replcon.cc
7
-
@@ -60,7 +60,7 @@ static struct option const longopts[] =
8
-
{NULL, 0, NULL, 0}
9
-
};
10
-
11
-
-extern int lsetfilecon_raw(const char *, security_context_t) __attribute__ ((weak));
12
-
+extern int lsetfilecon_raw(const char *, const char *) __attribute__ ((weak));
13
-
14
-
/**
15
-
* As that setools must work with older libselinux versions that may
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0