Hi Helge,

Am 15.01.2023 um 08:41 schrieb Helge Kreutzmann:

> On Fri, Jan 13, 2023 at 10:14:24PM +0100, Sven Joachim wrote:
>> Am 13.01.2023 um 21:50 schrieb Helge Kreutzmann:
>> > As you can see, "linuxinfo_4.1.2.orig.tar.xz.asc" is contained in the
>> > .dsc file, but not in the .changes file.
>>
>> This is the opposite of what you wrote in the original report (where the
>> .asc file was in the changes file and not in the .dsc), and is in fact
>> normal as you did not include the upstream sources (the default if
>> debian/changelog indicates that this is not the first debian revision).
>
> This was a mistake of mine, I probably failed to write it correctly. I
> apologize.

Thanks, now this makes sense.

>> > When I uploaded this (with -2) the archive rejected this.
>>
>> Yes, because your .dsc file referenced the .asc file, but the changes
>> file did not include it, nor was the file already in the archive.
>>
>> > I manually edited the .changes to add
>> > "linuxinfo_4.1.2.orig.tar.xz.asc", and this worked.
>>
>> I guess could also have passed "-sa" to dpkg-buildpackage to include the
>> full sources again, but whatever worked for you.
>
> So I understand, if I had included the full sources, then the .asc file
> would have been included as well?

Yes.

> And does this work? - I remember that
> in the past I was told that the sources are already in the archive,
> and hence cannot be uploaded again (but I might be wrong on this).

AFAIK you can include the upstream tarball again, as long as it is
identical to what is already in the archive - which is required anyway,
otherwise the hashsums in the .dsc would not match and the upload
rejected.

> Then this two things should be documented:
>
> 1. .asc files are always (automatically) included if the upstream
>    sources are included (either by default or by -sa)

As long as they are present, yes.

> 2. .asc files cannot be included on their own, but rather require the
>    corresponding upstream sources (which would make sense, indeed).
>    [1]

Yes, there does not seem to be an option to only include the .asc file,
you need to edit the .changes file after the build as you did.

Cheers,
       Sven

Reply via email to