|
442.
|
|
|
For more information on CDBS, see Marc Dequènes's guide at <ulink url="https://perso.duckcorp.org/duck/cdbs-doc/cdbs-doc.xhtml">https://perso.duckcorp.org/duck/cdbs-doc/cdbs-doc.xhtml</ulink>.
|
|
|
|
CDBS에 대한 더 많은 정보는, <ulink url="https://perso.duckcorp.org/duck/cdbs-doc/cdbs-doc.xhtml">https://perso.duckcorp.org/duck/cdbs-doc/cdbs-doc.xhtml</ulink> 에 있는 Marc Dequènes 의 안내서를 보십시오.
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1093(para)
|
|
443.
|
|
|
Updating Packages
|
|
|
|
패키지 업데이트 하기
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1101(title)
|
|
444.
|
|
|
If you have been around Linux distributions for any amount of time, you have realized that there are sometimes bugs in programs. In the Debian and <phrase>Ubuntu</phrase> distributions, bugs are often fixed through the packaging by patching the source code. Sometimes there are bugs in the packaging itself that can cause difficulties.
|
|
|
|
만약 여러분이 어느 정도의 시간 동안 리눅스 배포판을 사용하였다면, 여러분은 때때로 프로그램들에 버그가 있다는 것을 깨달았을 겁니다. 데비안과 <phrase>우분투</phrase> 배포판에서는, 버그는 소스 코드를 패칭하는 것으로 패키징을 통해 종종 고쳐지게 됩니다. 때로는 패키징 자체에 있는 버그가 문제를 일으키기도 합니다.
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1103(para)
|
|
445.
|
|
|
To patch the program's source code, you could simply download the current <phrase>Ubuntu</phrase> source package (with <application>apt-get source</application>) and make the needed changes. You can then add a new entry to the <filename>debian/changelog</filename> using <application>dch -i</application> or <application>dch -v <version>-<revision></application> to specify the new revision. When you run <application>debuild -S</application> from the source directory you will have a new source package with a new <filename>.diff.gz</filename> in the parent directory that contains your changes. A problem with this approach is that the distinction between source and patches is unclear.
|
|
|
|
프로그램의 소스 코드를 패치하려면, 간단히 현재 <phrase>우분투</phrase> 소스 패키지를 내려받고 (<application>apt-get source</application>으로) 필요한 변경을 만듭니다. 그런 후 새 개정판을 지정하기 위하여 application>dch -i</application> 또는 <application>dch -v <version>-<revision></application> 을 사용하여 <filename>debian/changelog</filename> 에 새 항목을 추가할 수 있습니다. 소스 디렉토리에서 <application>debuild -S</application> 를 실행할 때 여러분의 변경을 포함하는, 상위 디렉토리 내에 새로운 <filename>.diff.gz</filename> 를 가지는, 새로운 소스 패키지를 가지게 될 겁니다. 이 접근 방법의 문제는 소스와 패치 간의 구분이 불분명하다는 것 입니다.
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1110(para)
|
|
446.
|
|
|
A solution to this problem is to separate the changes to the source code into individual patches stored in the <filename>debian</filename> directory. One such patch system is called <application>dpatch</application>. The patches are stored in the <filename>debian/patches/</filename> directory and have a special format.
|
|
|
|
이 문제의 해결책은 소스 코드의 변경을 각각의 <filename>debian</filename> 디렉토리로 저장할 패치들로 나누는 것 입니다. 하나의 이러한 패치 시스템은 <application>dpatch</application> 로 불려집니다. 패치들은 <filename>debian/patches/</filename> 디렉토리에 저장되고 특별한 형식을 가지고 있습니다.
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1125(para)
|
|
447.
|
|
|
To create a <application>dpatch</application>, perform the following steps sequentially.
|
|
|
|
<application>dpatch</application> 를 만들기 위해, 다음의 단계를 순서적으로 수행 합니다.
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1132(para)
|
|
448.
|
|
|
Create a temporary work space and two copies of the current source directory:
|
|
|
|
임시 작업 장소를 만들고 현재 소스 디렉토리의 두 복사본을 만듭니다:
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1135(para)
|
|
449.
|
|
|
![](/@@/translation-newline)
mkdir tmp ![](/@@/translation-newline)
cd tmp ![](/@@/translation-newline)
cp -a ../<package>-<version> . ![](/@@/translation-newline)
cp -a <package>-<version> <package>-<version>.orig
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
![](/@@/translation-newline)
mkdir tmp ![](/@@/translation-newline)
cd tmp ![](/@@/translation-newline)
cp -a ../<package>-<version> . ![](/@@/translation-newline)
cp -a <package>-<version> <package>-<version>.orig
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1138(screen)
|
|
450.
|
|
|
Make the changes in the <filename><package>-<version></filename> directory.
|
|
|
|
<filename><package>-<version></filename> 디렉토리에서 변경을 합니다.
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1145(para)
|
|
451.
|
|
|
Create a patch file using <application>diff</application> and place it in the <filename>debian/patches</filename> directory:
|
|
|
|
<application>diff</application> 를 사용하여 패치를 만들고 <filename>debian/patches</filename> 디렉토리에 그것을 가져다 놓습니다:
|
|
Translated and reviewed by
atie
|
|
|
|
Located in
C/basic.xml:1149(para)
|