以下是我发现的最相关的指导:
# Apply a debdiff patch.
# - PKGNAME: Name of the package
# - DEBDIFF: Deb diff file.
# - RESPACKAGE: Resulting package of debuild
# Neccesary packages to make the deb package
sudo apt-get install build-essential fakeroot devscripts
apt-get source PKGNAME
sudo apt-get build-dep PKGNAME
cd PKGNAME-*
patch -p1 < ../DEBDIFF
debuild -uc -us
sudo dpkg -i ../RESPACKAGE
# Thanks to https://wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff
(https://snipt.net/gjulian/apply-a-debdiff-patch/)
这是我的困惑/担忧:
- 这段代码很古老。它仍然有意义吗?
- 哪儿是
PCKGNAME
? fix_aliasmatch_long_uri.debdiff
是个DEBDIFF
?- 啥是
RESPACKAGE
? apt-get
@root/
?