On Wed, Dec 04, 2024 at 06:10:23PM +0000, Mark Hindley wrote:
> On Wed, Dec 04, 2024 at 04:29:31PM +0000, Colin Watson wrote:
> > Package: ucf
> > Version: 3.0044
> > Severity: important
> > 
> > I noticed https://salsa.debian.org/cjwatson/debusine/-/jobs/6699495
> > today, containing:
> 
> Thanks for this.
> 
> I think using awk might work well here. Suggested patch attached.
> 
> Mu initial test here is promising. Can you verify it fixes the behaviour for 
> you?

My reproducer is very much arm's-length, so it's hard to verify
directly.  However, I came up with a recipe that you can use (replace
incus with whatever other "make a fresh system container" arrangement
you prefer):

  $ incus launch images:debian/trixie test-ucf
  $ incus shell test-ucf
  # echo 'deb http://deb.debian.org/debian sid main' >/etc/apt/sources.list
  # apt full-upgrade --update
  # FOO='One line
  > Another line' apt install postgresql-common
  ...
  Setting up postgresql-common (267) ...
  /usr/bin/ucf: 13: unset: Another line: bad variable name
  dpkg: error processing package postgresql-common (--configure):
   installed postgresql-common package post-installation script subprocess 
returned error exit status 2

Of course if you install ucf separately before postgresql-common then
you can fiddle with it in-place.

-- 
Colin Watson (he/him)                              [[email protected]]

Reply via email to