Debian Codegraph @

man1/pkgkde-symbolshelper.1

raw
1 .TH PKGKDE\-SYMBOLSHELPER 1 "2015-04-18" "0.15" "Debian KDE symbols helper"
2 .SH NAME
3 .B pkgkde\-symbolshelper
4 \- a tool to help simplify managing C++ symbols files for the KDE project.
5 .SH SYNOPSIS
6 .B pkgkde\-symbolshelper
7 \fBcreate\fR | \fBpatch\fR | \fBbatchpatch\fR | \fBrewrite\fR
8 .P
9 .SH DESCRIPTION
10 .B pkgkde-symbolshelper
11 provides helps to automate the process of managing your
12 .BR deb\-symbols (5)
13 files.
14 .P
15 There are four commands, create, patch, batchpatch, and rewrite.
16 .P
17 .SH CREATING SYMBOLS FILE
18 To create the symbols file for a library package libfoo1 whose version
19 is 1.7
20 .nf
21 .RS
22 \f(CW
23 pkgkde-gensymbols -plibfoo1 -v1.7 -Osymbols.amd64 -edebian/libfoo1/usr/lib/libfoo.so.1
24 pkgkde-symbolshelper create -o debian/libfoo1.symbols -v 1.7 symbols.amd64
25 \fR
26 .RE
27 .fi
28 .P
29 The above commands should be invoked from the top level directory of
30 your package's source after having built the package before cleaning,
31 so that debian/libfoo1/usr/lib/libfoo.so.1 exists).
32 .P
33 "symbols.amd64" is the filename of the intermediate symbols file that
34 will be generated by pkgkde-gensymbols. This filename must be in the
35 format "name.architecture" or "name_architecture" where "architecture"
36 is the cpu architecture on which you have built this package.
37 .SH UPDATING A SYMBOLS FILE FOR A NEW LIBRARY VERSION
38 After building a new version of the library (for instance 1.8 of our
39 libfoo1 library from above), symbols may have been added or removed,
40 and in both cases one must check and update the symbols file. During
41 the build, a diff between the current symbols file and the one based
42 on the current built library will printed in the output.
43 .BR pkgkde-symbolshelper
44 can read the build log to find this diff, to save the build log one may want
45 to do:
46 .nf
47 .RS
48 \f(CW
49 dpkg-buildpackage | tee buildlog
50 pkgkde-symbolshelper patch -p libfoo1 -v 1.8 < buildlog
51 \fR
52 .RE
53 .fi
54 .PP
55 .SH UPDATING MULTIPLE SYMBOLS FILES AT ONCE
56 For source packages that provide multiple binary library packages, it is
57 useful to have a method to patch all the symbol files at once,
58 .BR pkgkde-symbolshelper
59 offers a way to do this using the
60 .BR batchpatch
61 command. For example:
62 .nf
63 .RS
64 \f(CW
65 pkgkde-symbolshelper batchpatch -v 1.8 < buildlog
66 \fR
67 .RE
68 .fi
69 .PP
70 .BR batchpatch
71 can also be of use when one wants to update symbol files for multiple
72 architectures at once. There is an additional command
73 .BR pkgkde\-getbuildlogs
74 that will download the build logs for multiple architectures from
75 Debian's build servers.
76 .nf
77 .RS
78 \f(CW
79 pkgkde-getbuildlogs
80 pkgkde-symbolshelper batchpatch -v 1.8 foo_unstable_logs/foo_1.8-1*.build
81 \fR
82 .RE
83 .fi
84 .PP
85 .SH NOTES
86 This man page was based text written by others from the pkg-kde
87 symbols file help page.
88 .SH SEE ALSO
89 .BR https://qt-kde-team.pages.debian.net/symbolfiles.html
90 .br
91 .BR https://people.redhat.com/drepper/symbol\-versioning
92 .br
93 .BR https://people.redhat.com/drepper/goodpractice.pdf
94 .br
95 .BR https://people.redhat.com/drepper/dsohowto.pdf
96 .br
97 .BR dpkg\-gensymbols (1),
98 .BR deb\-symbols (5),
99 .BR dpkg\-shlibdeps (1).