On Sat, 2025-11-22 at 16:40 -0300, Aeliton G. Silva wrote:
> On Sat, 2025-11-22 at 21:46 +0500, Andrey Rakhmatullin wrote:
> > On Sat, Nov 22, 2025 at 01:39:05PM -0300, Aeliton G. Silva wrote:
> > > $ export DEB_BUILD_OPTIONS=nocheck
> > > $ export DEB_BUILD_OPTIONS="nocheck"
> > > $ gbp buildpackage
> >
> > Unless the build runs in a minimal chroot, this test doesn't make
> > sure that
> > the optional deps aren't installed.
> > I also can't say if this actually uses the build profile or not.
>
> I executed the following commands on my second test:
>
> 1. remove old debs from previous tests
>
> $ rm -f ../profiles/nocheck/python3-pylsp_1.13.2-1_all.deb
> ../profiles/default/python3-pylsp_1.13.2-1_all.deb
>
> 2. Remove all packages tagged with !nocheck (all nocheck in d/control
> are preceded by !)
> $ cat debian/control | grep nocheck | sed 's/Build-Depends://'| sed
> 's/<.*$//' | sed 's/(.*$//'|
> xargs sudo apt-get -qy remove
>
> $ sudo apt-get -qy autoremove
>
> 3. Set nocheck profile & build
> $ export DEB_BUILD_OPTIONS="nocheck"
> $ export DEB_BUILD_PROFILES="nocheck"
> $ git clean -dfx
> $ git checkout .
> $ gbp buildpackage
>
> 4. Move the generated package
> $ mv ../python3-pylsp_1.13.2-1_all.deb ../profiles/nocheck/python3-
> pylsp_1.13.2-1_all.deb
>
> 5. Prepare normal build & build
> $ unset DEB_BUILD_PROFILES
> $ unset DEB_BUILD_OPTIONS
> $ git clean -dfx
> $ git checkout .
> $ gbp buildpackage # fails
> $ sudo apt-get install -qqy black flake8 pylint python3-autopep8
> python3-flaky python3-matplotlib python3-numpy python3-pandas
> python3-
> pydocstyle python3-pyqt6 python3-pytest python3-rope python3-
> websockets
> python3-whatthepatch python3-yapf
> $ git clean -dfx
> $ git checkout .
> $ gbp buildpackage
>
> 6. Move the generaged package
> mv ../python3-pylsp_1.13.2-1_all.deb ../profiles/default/python3-
> pylsp_1.13.2-1_all.deb
>
> 7. Diffoscope the two versions
> diffoscope ../profiles/default/python3-pylsp_1.13.2-1_all.deb
> ../profiles/nocheck/python3-pylsp_1.13.2-1_all.deb&& echo "\n\nThe
> two
> files are identical"
>
> I can confirm the two files are identical.
>
I'll test this with pbuilder too. I'll post results soon.