aboutsummaryrefslogtreecommitdiff
blob: 202dd1194b88c0a45f33a4ec16acd6b7d74cb0be (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
.TH "AUTODEP" "1" "August 20, 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 (autodep) builder is a tool for the analysis of accessed files during
the build of a package. It also can be used for runtime dependencies analysis.
.sp
The tool can trace, log and block access to files of given packages.
.SH OPTIONS
.INDENT 0.0
.TP
.B \-\-help, \-h
Show this help message and exit.
.UNINDENT
.INDENT 0.0
.TP
.B \-b, \-\-block
strict mode: Deny all access to files from non\-dependency packages.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-blockpkgs=PACKAGES
Block access to files from this packages.
.UNINDENT
.INDENT 0.0
.TP
.B \-f, \-\-files
Show all files, accessed and missing (not found).
.UNINDENT
.INDENT 0.0
.TP
.B \-v, \-\-verbose
Show non\-important packages, unknown packages and unknown building stages.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-nocolor, \-C
Don\(aqt colorize output
.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{
Does approach allows to block access to files?
T}	T{
\fBYES\fP
T}	T{
\fBYES\fP
T}
_
T{
Is the overhead in performance noticeable?
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{
Analysis
of
\fIbuildtime\fP
dependencies
T}	T{
Analysis
of \fIruntime\fP
dependencies
T}
_
T{
Are there 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 filesystems are slower than a normal one. A Program accesses 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 for net\-irc/xchat:
.sp
autodep emerge net\-irc/xchat
.SS Get the potential dependencies for net\-irc/xchat, blocking files from x11\-misc/util\-macros package:
.sp
autodep emerge \-\-block x11\-misc/util\-macros emerge net\-irc/xchat
.SS Get the potential dependencies for net\-irc/xchat package, and show accessed files:
.sp
autodep \-\-files emerge net\-irc/xchat
.SS Get the runtime dependencies of a xchat and show accessed files:
.sp
autodep \-\-fusefs \-\-files xchat
.SH AUTHOR
Alexander Bersenev
.SH COPYRIGHT
2011, Alexander Bersenev
.\" Generated by docutils manpage writer.
.\" 
.