aboutsummaryrefslogtreecommitdiff
blob: da9aa10af1a9f265139741754ff78fcb72f90f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
.TH "AUTODEP" "1" "August 03, 2011" "0.1" "Autodep"
.SH NAME
autodep \- auto dependency builder for Gentoo
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.\" Man page generated from reStructeredText.
.
.SH SYNOPSIS
.sp
\fBautodep\fP [options] <command>
.SH DESCRIPTION
.sp
Auto dependency builder is a tool for analysis files accessed during
building a package. It also can be used for runtime dependencies analysis.
.sp
The tool can block an access to files of defined packages.
.SH OPTIONS
.INDENT 0.0
.TP
.B \-\-help, \-h
.sp
show this help message and exit
.UNINDENT
.INDENT 0.0
.TP
.B \-b, \-\-block
.sp
strict mode: deny all access to non\-dependency packages
.UNINDENT
.INDENT 0.0
.TP
.B \-\-blockpkgs=PACKAGES
.sp
block an access to files from this packages
.UNINDENT
.INDENT 0.0
.TP
.B \-f, \-\-files
.sp
show accessed files and not founded files
.UNINDENT
.INDENT 0.0
.TP
.B \-v, \-\-verbose
.sp
show non\-important packages, show unknown package and unknown stage
.UNINDENT
.INDENT 0.0
.TP
.B \-\-nocolor, \-C
.sp
don\(aqt output color
.UNINDENT
.INDENT 0.0
.TP
.B \-\-hooklib
.
use ld_preload logging approach(default)
.UNINDENT
.INDENT 0.0
.TP
.B \-\-fusefs
.
use fuse logging approach(slow, but reliable)
.UNINDENT
.SH HOOKLIB VS FUSEFS
.TS
center;
|l|l|l|.
_
T{
T}	T{
Hooklib
T}	T{
Fusefs
T}
_
T{
Who can use this approach?
T}	T{
\fBAny user\fP
T}	T{
Only root
T}
_
T{
Is approach allows blocking an access to files?
T}	T{
\fBYES\fP
T}	T{
\fBYES\fP
T}
_
T{
Is overhead in performance big?
T}	T{
\fBNO\fP
T}	T{
YES [1]
T}
_
T{
What events are logged?
T}	T{
Most [2]
T}	T{
\fBALL\fP
T}
_
T{
When is it recomended to use an approach?
T}	T{
For analysis
of
\fIbuildtime\fP
dependencies
T}	T{
For analysis
of \fIruntime\fP
dependencies
T}
_
T{
Is any pre\-requirements for using an approach?
T}	T{
\fBNO\fP
T}	T{
FUSE must be
enabled in
kernel
T}
_
.TE
Notes
.IP [1] 5
.
Fuse file system is slower than normal one. Program reads many files
while launching, so this will take more time than usual.
.IP [2] 5
.
Loading of dynamic libraries and direct syscalls will not be logged.
.SH EXAMPLES
.SS Get the potential dependencies of a xchat package:
.sp
autodep emerge xchat
.SS Get the potential dependencies of a xchat package, blocking x11\-misc/util\-macros package:
.sp
autodep emerge \-\-block x11\-misc/util\-macros emerge xchat
.SS Get the potential dependencies of a xchat package, and show files accessed:
.sp
autodep \-\-files emerge xchat
.SS Get the runtime dependencies of a xchat and show files accessed:
.sp
autodep \-\-fusefs \-\-files xchat
.SH AUTHOR
Alexander Bersenev
.SH COPYRIGHT
2011, Alexander Bersenev
.\" Generated by docutils manpage writer.
.\" 
.