Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1270756

Bug#1120549: sbuild: unclear how to do a source-only build

From Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1120549: sbuild: unclear how to do a source-only build
Date 2025-11-19 07:30 +0100
Message-ID <LSJRv-e4fH-1@gated-at.bofh.it> (permalink)
References (2 earlier) <LSp6p-dQ8J-1@gated-at.bofh.it> <LQ6rf-ch6s-5@gated-at.bofh.it> <LSFEd-e16Z-3@gated-at.bofh.it> <LQ6rf-ch6s-5@gated-at.bofh.it> <LSFEd-e16Z-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

Quoting Soren Stoutner (2025-11-19 02:52:50)
> On Tuesday, November 18, 2025 1:12:22 AM Mountain Standard Time Johannes 
> Schauer Marin Rodrigues wrote:
> > I would like for you to revert your revert or explain why you think that 
> this
> > is incorrect information.
> 
> The information in the wiki has been specifically written so that the example 
> .sbuildrc produces a source.changes file and a <BINARY>.changes file suitable 
> for upload to Debian with each build.  This makes it so that a user can easily 
> do either of the following without needing any extra commands.
> 
> $ gbp buildpackage
> $ cd ..
> $ debsign <PACKAGE>_source.changes
> $ dput <PACKAGE>_source.changes
> 
> or
> 
> $ gbp buildpackage
> $ cd ..
> $ debsign <PACKAGE>_amd64.changes
> $ dput <PACKAGE>_amd64.changes
> 
> Having a .sbuildrc that does this is desirable to many users, particularly new 
> users.  In fact, this entire bug report exists because a user was uncertain 
> how to generate a source.changes file.  Having instructions in the wiki that
> accomplish this goal by default is important.

okay, so you want the .changes file. The --source argument gives you that but
it does more and it does undesirable things which are explained in the text
that you removed.

> I am unaware of any downsides to having sbuild always generate functional
> copies of both changes files. If there are, please feel free to enlighten me.

The problem is not generating the .changes files. That's also why the
convenience option --source-only-changes exists.

> Otherwise, it is important that both of the following commands be included in
> the example .sbuildrc or one or both of the .changes files will either not be
> produced or not be produced correctly.
> 
> # Build the source in addition to the other requested build artifacts.  
> Without this, <BINARY>.changes files will not include the upstream source in 
> their list and will fail uploads to Debian if they are for a -1 revision that 
> includes a new upstream release; this is the same as passing `-s` to sbuild.
> $build_source = 1;
> 
> # Produce a source.changes file suitable for a source-only upload; this is the 
> same as passing `--source-only-changes` to sbuild.
> $source_only_changes = 1;
> 
> Of course, an individual user may prefer to not follow the example or to
> disable these commands to their liking.

I think I understand your problem now. Your problem is, that you do not get a
*_$arch.changes file which includes references to the source package and adding
the --source option or $build_source=1 does this and that's why you recommend
adding it. Is that correct?

Thanks!

cheers, josch

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1120549: Reverting incorrect wiki changes Soren Stoutner <soren@debian.org> - 2025-11-18 03:10 +0100
  Bug#1120549: Reverting incorrect wiki changes Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-11-18 09:20 +0100
    Bug#1120549: sbuild: unclear how to do a source-only build Soren Stoutner <soren@debian.org> - 2025-11-19 03:00 +0100
      Bug#1120549: sbuild: unclear how to do a source-only build Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-11-19 07:30 +0100
        Bug#1120549: sbuild: unclear how to do a source-only build Soren Stoutner <soren@debian.org> - 2025-11-19 18:20 +0100
          Bug#1120549: sbuild: unclear how to do a source-only build Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-11-20 02:30 +0100
            Bug#1120549: sbuild: unclear how to do a source-only build Soren Stoutner <soren@debian.org> - 2025-11-20 20:30 +0100
              Bug#1120549: sbuild: unclear how to do a source-only build Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-11-20 23:00 +0100
                Bug#1120549: sbuild: unclear how to do a source-only build Soren Stoutner <soren@debian.org> - 2025-11-20 23:30 +0100
                Bug#1120549: sbuild: unclear how to do a source-only build Johannes Schauer Marin Rodrigues <josch@debian.org> - 2025-11-21 00:50 +0100
                Bug#1120549: sbuild: unclear how to do a source-only build Soren Stoutner <soren@debian.org> - 2025-11-22 05:10 +0100

csiph-web