![Debian 软件包在我的计算机上构建,但无法在 Launchpad 和 pbuilder 中构建 - “msgfmt:无法找到 ITS 规则”](https://linux22.com/image/929202/Debian%20%E8%BD%AF%E4%BB%B6%E5%8C%85%E5%9C%A8%E6%88%91%E7%9A%84%E8%AE%A1%E7%AE%97%E6%9C%BA%E4%B8%8A%E6%9E%84%E5%BB%BA%EF%BC%8C%E4%BD%86%E6%97%A0%E6%B3%95%E5%9C%A8%20Launchpad%20%E5%92%8C%20pbuilder%20%E4%B8%AD%E6%9E%84%E5%BB%BA%20-%20%E2%80%9Cmsgfmt%EF%BC%9A%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%20ITS%20%E8%A7%84%E5%88%99%E2%80%9D.png)
我制造了一个Debian 软件包为了毯子,并尝试使用 Launchpad 配方来构建它。
虽然它在我的计算机(Xubuntu 20.04)上成功构建,但它构建失败用于 Launchpad 中的焦点。以下是 buildlog 的相关部分。
Found ninja-1.10.0 at /usr/bin/ninja
dh_auto_build
cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j4 -v
[1/3] glib-compile-resources ../data/resources/blanket.gresource.xml --sourcedir ../data/resources --internal --generate --target data/resources/blanket.gresource --dependency-file data/resources/blanket.gresource.d
xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
[2/3] /usr/bin/meson --internal msgfmthelper ../data/com.rafaelmardojai.Blanket.metainfo.xml.in data/com.rafaelmardojai.Blanket.metainfo.xml xml ../data/../po
FAILED: data/com.rafaelmardojai.Blanket.metainfo.xml
/usr/bin/meson --internal msgfmthelper ../data/com.rafaelmardojai.Blanket.metainfo.xml.in data/com.rafaelmardojai.Blanket.metainfo.xml xml ../data/../po
msgfmt: cannot locate ITS rules for ../data/com.rafaelmardojai.Blanket.metainfo.xml.in
[3/3] /usr/bin/meson --internal msgfmthelper ../data/com.rafaelmardojai.Blanket.desktop.in data/com.rafaelmardojai.Blanket.desktop desktop ../data/../po
ninja: build stopped: subcommand failed.
在我的计算机上(当我运行 时debuild
),输出的相关部分是
Found ninja-1.10.0 at /usr/bin/ninja
dh_auto_build
cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j4 -v
[1/3] glib-compile-resources ../data/resources/blanket.gresource.xml --sourcedir ../data/resources --internal --generate --target data/resources/blanket.gresource --dependency-file data/resources/blanket.gresource.d
xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
[2/3] /usr/bin/meson --internal msgfmthelper ../data/com.rafaelmardojai.Blanket.desktop.in data/com.rafaelmardojai.Blanket.desktop desktop ../data/../po
[3/3] /usr/bin/meson --internal msgfmthelper ../data/com.rafaelmardojai.Blanket.metainfo.xml.in data/com.rafaelmardojai.Blanket.metainfo.xml xml ../data/../po
dh_auto_test
cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 MESON_TESTTHREADS=4 ninja test
[0/1] Running all tests.
1/2 Validate desktop file OK 0.01 s
2/2 Validate schema file OK 0.01 s
Ok: 2
并且构建继续成功。正如建议的那样这,我将其添加到libappstream-glib-dev
了该build-depends
字段,但是没有作用。
我在 chroot 环境中遇到了同样的错误pbuilder
。我在 Launchpad 中构建时是否缺少某些构建依赖项?