#1043940 alpine: Fails to build source after successful build

Package:
src:alpine
Source:
src:alpine
Submitter:
Lucas Nussbaum
Date:
2025-12-17 10:51:04 UTC
Severity:
normal
Tags:
#1043940#5
Date:
2023-08-13 13:17:53 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/alpine_2.26+dfsg-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.

#1043940#12
Date:
2025-12-15 16:54:59 UTC
From:
To:
owner 1043940 !
severity 1043940 normal
thanks

I'm going to fix this in the next upload, but first I'd like to see
what Eduardo thinks about it, as it seems an upstream bug to me.

Thanks.

#1043940#21
Date:
2025-12-15 17:15:35 UTC
From:
To:
Hello from Debian.

Some time ago, there was a QA effort by Lucas Nussbaum to ensure that
the clean target of Debian packages was correct. The alpine package
was affected, and this was the error:

These kind of errors are first and foremost a problem in the Debian
package, but in some cases, and I believe this is one of them, it may
indicate a problem in the upstream makefiles.

In this case one would wonder why

./configure; make; make clean

would leave those three Makefiles there:

web/src/Makefile
web/src/alpined.d/Makefile
web/src/pubcookie/Makefile

instead of they being removed, which is what one would naturally
expect from "make clean" when it's the case that those Makefiles
are generated from their Makefile.in templates.

Thanks.

#1043940#24
Date:
2025-12-15 17:15:35 UTC
From:
To:
Hello from Debian.

Some time ago, there was a QA effort by Lucas Nussbaum to ensure that
the clean target of Debian packages was correct. The alpine package
was affected, and this was the error:

These kind of errors are first and foremost a problem in the Debian
package, but in some cases, and I believe this is one of them, it may
indicate a problem in the upstream makefiles.

In this case one would wonder why

./configure; make; make clean

would leave those three Makefiles there:

web/src/Makefile
web/src/alpined.d/Makefile
web/src/pubcookie/Makefile

instead of they being removed, which is what one would naturally
expect from "make clean" when it's the case that those Makefiles
are generated from their Makefile.in templates.

Thanks.

#1043940#29
Date:
2025-12-17 07:59:05 UTC
From:
To:
Hi Santiago,

   Is there any reason why the make clean command should remove Makefiles.
To me the easier fix is not to build web alpine, just add '--without-tcl'
as one of the options of the configure script.

   Does this address this issue to your satisfaction.

#1043940#34
Date:
2025-12-17 09:25:18 UTC
From:
To:
So, if those Makefiles are created when building the program, then they are
expected to be removed by make clean.

That's the problem, we are already passing --without-tcl to the configure script.
Looks like make should not recurse into web/src when such option is used.
That way, no Makefiles created, no Makefiles to remove later.

Thanks.

#1043940#39
Date:
2025-12-17 09:53:43 UTC
From:
To:
Dear Santiago,

   it looks like the problem is in the packaging of the source code. There
are Makefiles distributed with Alpine in the web/ directory. That is
wrong, and it will be fixed. Thank you.

#1043940#46
Date:
2025-12-17 10:49:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
alpine, 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 1043940@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated alpine 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: Wed, 17 Dec 2025 11:30:00 +0100
Source: alpine
Architecture: source
Version: 2.26+dfsg-5
Distribution: unstable
Urgency: medium
Maintainer: Asheesh Laroia <asheesh@asheesh.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1043940 1053915
Changes:
 alpine (2.26+dfsg-5) unstable; urgency=medium
 .
   * Team upload.
   * Fix clean target. Closes: #1043940.
   * Apply upstream patch to reflect the change from alpine.x10host.com
     to alpineapp.email. This is complementary to the "update homepage"
     fix in version 2.26+dfsg-2. Closes: #1053915.
   * d/control: Drop "Priority: optional" (default).
Checksums-Sha1:
 d08187551e38951594c02faf74112c258e3a7a20 1838 alpine_2.26+dfsg-5.dsc
 bcc6996d3657c09ca06fce7274227c255f3b740d 43172 alpine_2.26+dfsg-5.debian.tar.xz
 c191f60925f00b59f735dd7c4881970822df5a77 6174 alpine_2.26+dfsg-5_source.buildinfo
Checksums-Sha256:
 940112e2c24d391f3724ef7ca13ff9dcb60a926dc4a31601efefcd85cee2d073 1838 alpine_2.26+dfsg-5.dsc
 2891f79028e1493812fa3e42ec7f44f1180e4981c5a3a9f5de668997d6a697bc 43172 alpine_2.26+dfsg-5.debian.tar.xz
 a353f4cad039ecffc1d189d10cb2597d3ab4d12da00108ed20d1d6010cbbba78 6174 alpine_2.26+dfsg-5_source.buildinfo
Files:
 856a6a9131f662e17eae6e9d5fc47de2 1838 mail optional alpine_2.26+dfsg-5.dsc
 e07b5c2107079712300f07d0ad5a1e2c 43172 mail optional alpine_2.26+dfsg-5.debian.tar.xz
 e0b3d9bafe4bbca5f3d121bb9ffef069 6174 mail optional alpine_2.26+dfsg-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmlChqEACgkQQc5/C58b
izK3Egf/dk0da5hwnYHBVxNZEOiL3baVMTrkHp8ydVoNYj8p1Oj23BdmIA/Mzpqk
rEsEdB0SsFJP0GTtFKy7DbWZxqQqmTwHoyxIoR0J/ah8sDkhGPqRj64GY3PnfYRH
ntcsgBvBBBysNPi+ubJAk7d5S9REJko1zi9xnTmJojSvHz2Vn3YGzY26m4XeUzcv
nDa6HVpoxV5+yEKhCiyAdn63DiO4t1MFC6d6mqWaFI8DKctcx7YbRIU5c/BhTRsa
tRYDfE3HmFbZWQkUexpS+atIRD5kIBzMZPKzB4i39tEdmRmO0R9n9njlvBEFkv3S
rXS5eb7wIsFg2VhqgkKeZgaSIdV2zg==
=YDsK
-----END PGP SIGNATURE-----