Hi Sebastian! I know that Build-Depends must be installed prior to clean target, however git-pbuilder introduced the way to skip installing build-dependencies if pbuilder chroot is used. I like this idea, because host system is not bloated by unaccountable dependencies. I had a recent discussion with Mattia on that matter, and he recommended me to use dh-sequence-XXX under Build-Depends-Arch (and/or Build-Depends-Indep if needed) to extend this behaviour to packages requiring 'special' dependencies.
I think it won't hurt anyone to apply this technique to libsrt which I did in proposed patches. Anyway, more robust build and more proper usage of chroot (on my strong belief) is worth the additional work. -- Vasyl Gello ================================================== Certified SolidWorks Expert Mob.:+380 (98) 465 66 77 E-Mail: vasek.ge...@gmail.com Skype: vasek.gello ================================================== 호랑이는 죽어서 가죽을 남기고 사람은 죽어서 이름을 남긴다 July 3, 2020 7:07:36 AM UTC, Sebastian Ramacher <sramac...@debian.org> написав(-ла): >Control: tags -1 - ftbfs >Control: retitle -1 srt: empty documentation package > >On 2020-06-27 13:04:06 +0000, Vasyl Gello wrote: >> Source: srt >> Version: 1.4.1-5 >> Severity: serious >> Tags: patch ftbfs >> Justification: fails to build from source (but built successfully in the >> past) >> >> Dear colleagues, >> >> Doing a no-change rebuild of srt for buster-backports/amd64, I noticed that >> 'gbp buildpackage' fails on 'dh clean --with sphinxdoc': >> >> dpkg-checkbuilddeps: error: Unmet build dependencies: cmake chrpath help2man >> libgnutls28-dev libssl-dev pkg-config tclsh >> .[1;33mW: Unmet build-dependency in source.[0m >> dpkg-source: info: using patch list from debian/patches/series >> dpkg-source: info: applying 001-multiarch-rpath.patch >> dh clean --with sphinxdoc >> dh: error: unable to load addon sphinxdoc: Can't locate >> Debian/Debhelper/Sequence/sphinxdoc.pm in @INC (you may need to install the >> Debian::Debhelper::Sequence >> BEGIN failed--compilation aborted at (eval 14) line 1. >> >> make: *** [debian/rules:21: clean] Error 25 >> >> The core issue is that sphinxdoc is installed in chroot while dh_clean is >> first >> called on host system. > >Build-Depends and Build-Conflicts must be satisfied for the clean >target. When you run that outside of the pbuilder chroot, you have to >install Build-Depends there as well. See >https://www.debian.org/doc/debian-policy/ch-relationships.html#relationships-between-source-and-binary-packages-build-depends-build-depends-indep-build-depends-arch-build-conflicts-build-conflicts-indep-build-conflicts-arch > >Cheers >-- >Sebastian Ramacher
signature.asc
Description: PGP signature