Re: sbuild dh: error: unable to load addon python3
On Fri, Jul 02, 2021 at 01:26:01AM -0400, Sergio Durigan Junior wrote: > On Thursday, July 01 2021, Geert Stappers wrote: > > > Invoking sbuild with just 'sbuild' gives me: > > > > $ sbuild > > dh clean --with python3 --buildsystem=pybuild > > dh: error: unable to load addon python3: Can't locate > > Debian/Debhelper/Sequence/python3.pm in @INC > > (you may need to install the Debian::Debhelper::Sequence::python3 > > module) > > > > > > Doing `apt-file search Debian/Debhelper/Sequence/python3.pm` yields > > dh-python: /usr/share/perl5/Debian/Debhelper/Sequence/python3.pm > > > > > > Why doesn't sbuild fetch and install build dependencies? > > This happens because sbuild runs the "dh clean" (actually, the > "debian/rules clean" target) step *outside* of the chroot, before the > build actually starts. This means that sbuild expects you to have the > build deps installed on your host. > > This is usually not desirable/required, so you can tell sbuild to not > clean the source tree by passing the --no-clean-source option to it, or > by adding the line "$clean_source = 0;" to your ~/.sbuildrc. Yes, that does work. > Thanks, Thank YOU > Sergio Groeten Geert Stappers -- Silence is hard to parse
Re: sbuild dh: error: unable to load addon python3
On Thursday, July 01 2021, Geert Stappers wrote: > Invoking sbuild with just 'sbuild' gives me: > > $ sbuild > dh clean --with python3 --buildsystem=pybuild > dh: error: unable to load addon python3: Can't locate > Debian/Debhelper/Sequence/python3.pm in @INC > (you may need to install the Debian::Debhelper::Sequence::python3 module) > > > Doing `apt-file search Debian/Debhelper/Sequence/python3.pm` yields > dh-python: /usr/share/perl5/Debian/Debhelper/Sequence/python3.pm > > > Why doesn't sbuild fetch and install build dependencies? This happens because sbuild runs the "dh clean" (actually, the "debian/rules clean" target) step *outside* of the chroot, before the build actually starts. This means that sbuild expects you to have the build deps installed on your host. This is usually not desirable/required, so you can tell sbuild to not clean the source tree by passing the --no-clean-source option to it, or by adding the line "$clean_source = 0;" to your ~/.sbuildrc. Thanks, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible https://sergiodj.net/ signature.asc Description: PGP signature
sbuild dh: error: unable to load addon python3
Hello Mentors, Your insights on `sbuild` are desired. For an yet unknown reason does `sbuild` NOT honour Build-Depends request. My sbuild has version 0.81.2 git clone URL https://salsa.debian.org/obfusk/kanjidraw.git branch debian/sid In debian/control is Build-Depends: debhelper-compat (= 13), dh-python, python3-all, python3-setuptools, Invoking sbuild with just 'sbuild' gives me: $ sbuild dh clean --with python3 --buildsystem=pybuild dh: error: unable to load addon python3: Can't locate Debian/Debhelper/Sequence/python3.pm in @INC (you may need to install the Debian::Debhelper::Sequence::python3 module) Doing `apt-file search Debian/Debhelper/Sequence/python3.pm` yields dh-python: /usr/share/perl5/Debian/Debhelper/Sequence/python3.pm Why doesn't sbuild fetch and install build dependencies? How deal with it?? Groeten Geert Stappers -- Silence is hard to parse