#1045919 rocsparse: Fails to build source after successful build

Package:
src:rocsparse
Source:
src:rocsparse
Submitter:
Lucas Nussbaum
Date:
2026-02-19 13:05:03 UTC
Severity:
normal
Tags:
#1045919#5
Date:
2023-08-13 19:21:23 UTC
From:
To:
Hi,

This package fails to build a source package after a successful build
(dpkg-buildpackage ; dpkg-buildpackage -S).

This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.

More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/SourceAfterBuild

Relevant part of the build log:
The full build log is available from:
http://qa-logs.debian.net/2023/08/13/rocsparse_5.5.1-1_unstable.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

#1045919#8
Date:
2023-08-16 08:30:38 UTC
From:
To:
Hello,

Bug #1045919 in rocsparse reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/rocm-team/rocsparse/-/commit/4f79148c6e7bfa1f224db4e605a60ca7817de0f8
------------------------------------------------------------------------
Add debian/clean

Closes: #1045919
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1045919

#1045919#15
Date:
2023-09-14 12:19:43 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rocsparse, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1045919@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Kastner <ckk@debian.org> (supplier of updated rocsparse package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 14 Sep 2023 12:26:57 +0200
Source: rocsparse
Architecture: source
Version: 5.5.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian ROCm Team <debian-ai@lists.debian.org>
Changed-By: Christian Kastner <ckk@debian.org>
Closes: 1045919
Changes:
 rocsparse (5.5.1-2) unstable; urgency=medium
 .
   * Add debian/clean (Closes: #1045919)
   * Filter cf-protection hardening from device code.
     Fixes a FTBFS with dpkg >= 1.22
Checksums-Sha1:
 1002a4949c4170e955d0733d4296a3a1a5c6808a 2841 rocsparse_5.5.1-2.dsc
 8dcb7fbe96029e0225e7943bac98addf2bf29e6a 10656 rocsparse_5.5.1-2.debian.tar.xz
 3b0d1ed1b529297b7d326da1aa7cd2bdf6cb9691 7140 rocsparse_5.5.1-2_source.buildinfo
Checksums-Sha256:
 3389def2d749dcffdffd8dcf1b492e74c6dd5a7f10f502b5720b94e59e73c12a 2841 rocsparse_5.5.1-2.dsc
 62aae185d7c39a0630b4c86e29a209b0ee6281800ec4fdedd623da72d4c2f45f 10656 rocsparse_5.5.1-2.debian.tar.xz
 bed1df30d6418551e4499611706fdfbd50ceec08b8bf77abcdae55a114384e40 7140 rocsparse_5.5.1-2_source.buildinfo
Files:
 d7b628049a6fb6e5ef0cb0afca971760 2841 devel optional rocsparse_5.5.1-2.dsc
 7af695e9df00f24957fb83bb95efb2d0 10656 devel optional rocsparse_5.5.1-2.debian.tar.xz
 0785672601c6578242ee1af6bd882bdb 7140 devel optional rocsparse_5.5.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQZ9+mkfDq5UZ8bCjOZU6N95Os2sFAmUC9eIACgkQOZU6N95O
s2s67w//UtrDIws80fvbJ8MMPFo16EFWUWjI+6avDAX7FM8is5Qhb+UU1/bzJ+3K
7xEFIU8L09xzZMgf9lgnZ93HNhfci8irz9ItV1ZHeM8+WqZbsxnP4RYnolMqLBVs
NX/y8qU9vQb5mvL7Q8HLc74F9WTOkVUUBzQXeXbwCjA7TjmnSEutZcu+zWca8el/
RF3YtAjRkoJJ0t/JQFKiQIDxpJE57uGZ1GYDaKVwS1EYl4bTW4gL2K+EbZ3COjiF
3MmdsqjrphmTlihUVmtmuvFp1Z1Kk6/MARsd889jcra8acZJKjGpHaEMt7cWt1Fx
IHymk00R62KpgzsJr8LLEq6R9KSLUgPIFpB/CFvNs8hZZkq9FwcoJzcv3rizQ3LJ
b7v71VUjiPjIAfvDBPYQ1LZStBC/NqtWY01/9CCopbX+xq8aZWk3xoVgqMoDBkIk
C/UodTadJZHBkfGblCeeYHAlTGHdFkqXAiELNulVSJBoaAeF4tpGKMxDvIsWR3Zr
fVjETAjlpfuUMBqImpUWWefPwB62D6BKVhEBp1hKLz+TLdZ01oiQRF9qGy2TSvPs
xI8jyywhJBqGAPI0zSIUAMpzQQA2q6sy+Vdp++qQwwGtLyIe0KSqMGowfTqNAp14
FV/GFPWp0KGrOua7vWyFCrqhcS2UMi3BjfPLRqRRPH93Scx3rZQ=
=ZpZY
-----END PGP SIGNATURE-----

#1045919#24
Date:
2026-02-19 13:02:27 UTC
From:
To:
found 1045919 6.4.3-3
tags 1045919 patch
severity 1045919 normal
thanks

Hi.

[ I'm reopening this for convenience only, as I don't want to file new
  bugs of this kind yet ]

The current build log (when trying to build source after binary build)
is full of messages like this one:

cannot represent change to build/html/[...]

However, because of bug #1126665 in dpkg-dev, we can't trust
dpkg-source output to be complete, so it would be quite pointless to
post the build log here.

Here is my proposal to fix the current "does not build source after
binary build" issue, which I have carefully verified to work, including
the fact that neither "html/" or "docs/_doxygen/" need to be present
in debian/clean anymore.

(The patch is quite similar to the one I sent for rocblas).

Thanks.