Please also read insightful pages linked from «Notes on Debian» by Russ Allbery (long time Debian developer) which have best practices for advanced packaging topics.
If upstream documents are encoded in old encoding schemes, converting them to UTF-8 is a good idea.
Use the iconv command in the libc-bin package to convert the encoding of plain text files.
$ iconv -f latin1 -t utf8 foo_in.txt > foo_out.txt
Используйте w3m(1) для преобразования HTML-файлов в обычные текстовые файлы в кодировке UTF-8. При выполнении преобразования убедитесь, что у вас используется локаль UTF-8.
$ LC_ALL=C.UTF-8 w3m -o display_charset=UTF-8 \ -cols 70 -dump -no-graph -T text/html \ < foo_in.html > foo_out.txt
Запустите эти сценарии в цели override_dh_* файла debian/rules.
Когда вы сталкиваетесь с проблемами сборки или дампом памяти созданных двоичных программ, вам необходимо разрешить их самостоятельно. Это называется отладкой.
Это слишком обширная тема, чтобы обсуждать её в настоящем руководстве. Поэтому позвольте просто привести несколько ссылок и полезных советов по использованию типичных инструментов отладки.
Update the «/etc/security/limits.conf» file to include the following:
* soft core unlimited
gdb — отладчик GNU
strace — трассировка системных вызовов и сигналов
ltrace - трассировка библиотечных вызовов
«perl -d:Trace script.pl» - Trace a Perl script
lsof — вывод списка файлов, открытых процессами
![]() | Подсказка |
---|---|
The script command records console outputs. |
![]() | Подсказка |
---|---|
The screen and tmux commands used with the ssh command offer secure and robust remote connection terminals. |
![]() | Подсказка |
---|---|
A Python- and Shell-like REPL (=READ + EVAL + PRINT + LOOP) environment for Perl is offered by the reply command from the libreply-perl (new) package and the re.pl command from the libdevel-repl-perl (old) package. |
![]() | Подсказка |
---|---|
The rlwrap and rlfe commands add input line editing capability with history support to any interactive commands. E.g. «rlwrap dash -i'» . |