[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1104515: blends fails to reproduce due to emtpy apt cache (future FTBFS)



Hi,

I plan to clean the apt cache by default for forky and implement that already in the trixie sbuild. This would make blends FTBFS unless the proposed patch (or something similar) is applied in forky. Please speak up if there is any problem with this plan. You can test the new behaviour with:

sbuild --starting-build-commands='apt-get distclean' -d unstable blends

Cheers Jochen

* Jochen Sprickerhof <jspricke@debian.org> [2025-05-01 14:37]:
Source: blends
Version: 0.7.10
Severity: normal
Tags: ftbfs patch
User: debian-qa@lists.debian.org
Usertags: apt-cache

Hi,

blends uses the apt cache during testing. This breaks on reproduce.d.n
as it has an empty apt cache:

https://reproduce.debian.net/all/#blends-common

The attached patch avoids running the test in that case.

In addition the sbuild team plans to clean the apt cache before building
the package by default in forky which would make this package FTBFS.
This would also be fixed with the patch.

Cheers Jochen

diff --git a/debian/rules b/debian/rules
index 478475a..99c34ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,10 +17,12 @@ override_dh_auto_build:

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(wildcard /var/lib/apt/lists/*Packages))
	pytest-3 --doctest-modules
	rm -f education # clean up test remnants
	find . -type d -name __pycache__ | xargs rm -rf
endif
+endif

override_dh_installchangelogs:
	for pkgnews in $(DEB_SOURCE)-common $(DEB_SOURCE)-dev ; do \

Attachment: signature.asc
Description: PGP signature


Reply to: