Некоторые файлы, перечисленные в Debian / package.install, не устанавливаются при сборке deb

Я пытаюсь встроить GIMP 2.10.20 в Ubuntu PPA. Все хорошо, GIMP построен успешно и работает хорошо, за исключением языков (отсутствуют файлы * gimp20 * .mo ).

Они не включены в пакеты libgimp2.0 и gimp-data , тогда как исходная сборка Debian с той же папкой debian / включает их файлы.

Вот что находится в debian / gimp-date.install :

# The following line is prefixed as the source contains an etc/ dir, and
# dh_install will prefer to install its entire contents, instead of the
# installed debian/tmp/etc directory. Prefixing it works around this.
debian/tmp/etc/
usr/share/gimp/
usr/share/icons/
usr/share/locale/*/LC_MESSAGES/gimp20.mo
usr/share/locale/*/LC_MESSAGES/gimp20-python.mo
usr/share/locale/*/LC_MESSAGES/gimp20-script-fu.mo
usr/share/locale/*/LC_MESSAGES/gimp20-std-plug-ins.mo
usr/share/locale/*/LC_MESSAGES/gimp20-tips.mo
usr/share/man/man5/gimprc.5
usr/share/man/man5/gimprc-?.??.5

И debian / libgimp2.0.install :

usr/lib/lib*.so.*
usr/share/locale/*/LC_MESSAGES/gimp20-libgimp.mo

И debian / rules ]:

#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed

ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
    BUGTRACKER = https://bugs.launchpad.net/ubuntu/+source/gimp/+filebug?no-redirect
else
    BUGTRACKER = https://www.debian.org/Bugs/Reporting
endif

%:
    dh $@

# Don't switch to Multi-Arch yet because of potential incompatibility with
# third-party add-ons
override_dh_auto_configure:
    dh_auto_configure -- \
        --libdir=/usr/lib \
        --libexecdir=/usr/lib/gimp \
        --disable-static \
        --disable-python \
        --disable-check-update \
        --enable-default-binary \
        --enable-gtk-doc \
        --without-appdata-test \
        --without-webkit \
        --without-xvfb-run \
        --with-bug-report-url=$(BUGTRACKER)

override_dh_autoreconf:
    dh_autoreconf --as-needed

# exclude since we manually add the Suggests in debian/control
override_dh_shlibdeps:
    dh_shlibdeps -Xusr/lib/gimp/2.0/modules/libcontroller-midi.so \
        -Llibgimp2.0 -l$(CURDIR)/debian/libgimp2.0/usr/lib

override_dh_makeshlibs:
    dh_makeshlibs -X/usr/lib/gimp/2.0/modules -- -c4

override_dh_install-arch:
    find debian/tmp -name '*.la' -print -delete
    dh_install -a

override_dh_install-indep:
    find debian/tmp -name '*.la' -print -delete
    dh_install -i

override_dh_missing:
    dh_missing --fail-missing

И журнал сборки: launchpadlibrarian.net

0
задан 30 August 2020 в 06:11

1 ответ

Это новое изменение, новое и для меня. Просмотр журнала сборки. На самом деле были созданы файлы *.mo.

installing am.gmo as /<<PKGBUILDDIR>>/debian/tmp/usr/share/locale/am/LC_MESSAGES/gimp20.mo
installing ar.gmo as /<<PKGBUILDDIR>>/debian/tmp/usr/share/locale/ar/LC_MESSAGES/gimp20.mo
...

Обработал

dh_strip_nondeterminism
 Normalized debian/gimp-data/usr/share/locale/nb/LC_MESSAGES/gimp20-tips.mo
 Normalized debian/gimp-data/usr/share/locale/nb/LC_MESSAGES/gimp20-python.mo
 ...

Затем разделил и выложил в отдельный архив

pkgstriptranslations: processing gimp (in debian/gimp); do_strip: 1, oemstrip: 
pkgstriptranslations: processing libgimp2.0-doc (in debian/libgimp2.0-doc); do_strip: 1, oemstrip: 
pkgstriptranslations: processing libgimp2.0 (in debian/libgimp2.0); do_strip: 1, oemstrip: 
pkgstriptranslations: libgimp2.0-doc does not contain translations, skipping
pkgstriptranslations: preparing translation tarball gimp_2.10.20-0focal5_amd64_translations.tar.gz...done
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'libgimp2.0-doc' in '../libgimp2.0-doc_2.10.20-0focal5_all.deb'.
debian/gimp/usr/share/applications/gimp.desktop: stripping translations
pkgstriptranslations: gimp does not contain translations, skipping
pkgstriptranslations: no translation files, not creating tarball
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'gimp' in '../gimp_2.10.20-0focal5_amd64.deb'.
INFO: pkgstriptranslations version 144
pkgstriptranslations: processing gimp-data (in debian/gimp-data); do_strip: 1, oemstrip: 
pkgstriptranslations: updating translation tarball gimp_2.10.20-0focal5_amd64_translations.tar.gz...done
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'gimp-data' in '../gimp-data_2.10.20-0focal5_all.deb'.
pkgstriptranslations: updating translation tarball gimp_2.10.20-0focal5_amd64_translations.tar.gz...done
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: building package 'libgimp2.0' in '../libgimp2.0_2.10.20-0focal5_amd64.deb'.
INFO: pkgstriptranslations version 144
pkgstriptranslations: processing libgimp2.0-dev (in debian/libgimp2.0-dev); do_strip: 1, oemstrip: 
pkgstriptranslations: libgimp2.0-dev does not contain translations, skipping
pkgstriptranslations: no translation files, not creating tarball

Итак, перевод лежит в gimp_2.10.20-0focal5_amd64_translations.tar.gz.

Текущая проблема gimp_2.10.20-0focal5_amd64_translations.tar.gz все равно не опубликована, ничего нет в вашем PPA. Мое единственное объяснение на данный момент, эта функция разделения переводов работает только для официального репозитория, где они собирают их в один файл для каждого канала, но для PPA я не уверен, работает ли это.

0
ответ дан 29 October 2020 в 22:38

Другие вопросы по тегам:

Похожие вопросы: