Das Debian-Paket wird auf meinem Computer erstellt, schlägt jedoch in Launchpad und pbuilder fehl – ​​„msgfmt: ITS-Regeln können nicht gefunden werden“

Das Debian-Paket wird auf meinem Computer erstellt, schlägt jedoch in Launchpad und pbuilder fehl – ​​„msgfmt: ITS-Regeln können nicht gefunden werden“

Ich machte einenDebian-PaketfürDecke, und habe versucht, es mit dem Launchpad-Rezept zu erstellen.

Während es auf meinem Computer (Xubuntu 20.04) erfolgreich erstellt wird,kann nicht gebaut werdenfür Focal im Launchpad. Hier ist der relevante Teil des Buildlogs.

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.

Auf meinem Computer (wenn ich ausführe debuild) ist der relevante Teil der Ausgabe

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

und der Build wird erfolgreich fortgesetzt. Wie vorgeschlagen vonDas, habe ich libappstream-glib-devdem build-dependsFeld hinzugefügt, aber das hat nicht funktioniert.

Ich erhalte denselben Fehler in einer pbuilderChroot-Umgebung. Fehlt mir eine Build-Abhängigkeit, wenn ich sie in Launchpad erstelle?

Antwort1

Die fehlende Build-Abhängigkeit war appstream(nicht libappstream-glib-dev). Sie muss build-dependsin hinzugefügt werden debian/control.

Dank anColin Watson, der diese Informationen inLaunchpad.

verwandte Informationen