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


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

Bug#1090358: sbuild: please pre-set config variables with their defaults

From Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1090358: sbuild: please pre-set config variables with their defaults
Date 2024-12-18 00:10 +0100
Message-ID <JUORr-jTd-1@gated-at.bofh.it> (permalink)
References (1 earlier) <JUGKe-eHG-9@gated-at.bofh.it> <JUFO9-e8g-3@gated-at.bofh.it> <JUN90-iMd-9@gated-at.bofh.it> <JUFO9-e8g-3@gated-at.bofh.it> <JUN90-iMd-9@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 Chris Hofstaedtler (2024-12-17 22:09:58)
> Please test this scenario, and see if that works for you / what happens:
> 
> cd /var/tmp
> apt source hello
> cd hello-2.10
> sbuild --chroot-mode=unshare --no-run-lintian
> test -e hello_*changes && echo "whoops, wrote to wrong dir"

thank you. This is because of the convenience feature that sbuild gained in
2011 with commit 601af3d6f3a7028b88e1b88e7e3afeeeef4877bb. If you run sbuild
inside an unpacked source directory, then sbuild will automatically run
"dpkg-source -b ." for you and place the build artifacts in the parent.  It
does so by changing the working directory of the process to the parent and
setting the *default* of BUILD_DIR to that directory. But at that point,
the ~/.sbuildrc has long since been evaluated. And at the point where it
got evaluated, the working directory was still the unpacked source
directory and not its parent. The patch in this bug report sets the value
of BUILD_DIR to the unpacked source dir and thus, changing the default of
BUILD_DIR later on has no effect anymore because the value was already
set to the default from back then...

The fix is not trivial considering that we don't want the fix to this to break
more things...

Thanks!

cheers, josch

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


Thread

Bug#1090358: sbuild: please pre-set config variables with their defaults Chris Hofstaedtler <zeha@debian.org> - 2024-12-17 14:30 +0100
  Bug#1090358: sbuild: please pre-set config variables with their defaults Chris Hofstaedtler <zeha@debian.org> - 2024-12-17 15:10 +0100
    Bug#1090358: sbuild: please pre-set config variables with their defaults Chris Hofstaedtler <zeha@debian.org> - 2024-12-17 15:30 +0100
  Bug#1090358: sbuild: please pre-set config variables with their defaults Johannes Schauer Marin Rodrigues <josch@debian.org> - 2024-12-17 15:30 +0100
    Bug#1090358: sbuild: please pre-set config variables with their defaults Chris Hofstaedtler <zeha@debian.org> - 2024-12-17 16:00 +0100
    Bug#1090358: sbuild: please pre-set config variables with their defaults Chris Hofstaedtler <zeha@debian.org> - 2024-12-17 22:20 +0100
      Bug#1090358: sbuild: please pre-set config variables with their defaults Johannes Schauer Marin Rodrigues <josch@debian.org> - 2024-12-18 00:10 +0100
        Bug#1090358: sbuild: please pre-set config variables with their defaults Chris Hofstaedtler <zeha@debian.org> - 2024-12-18 09:00 +0100
          Bug#1090358: sbuild: please pre-set config variables with their defaults Chris Hofstaedtler <zeha@debian.org> - 2024-12-18 09:20 +0100
            Bug#1090358: sbuild: please pre-set config variables with their defaults Johannes Schauer Marin Rodrigues <josch@debian.org> - 2024-12-18 17:10 +0100

csiph-web