[Bug 1852962] [NEW] %e / %SBUILD_CHROOT_EXEC expansions fail

Chris Halse Rogers raof at ubuntu.com
Mon Nov 18 05:23:25 UTC 2019


Public bug reported:

If you run something like:

'''
sbuild -A -j 8 -d eoan --pre-build-commands 'cat foo | %SBUILD_CHROOT_EXEC sh -c "cat > bar"'  zfs-linux_0.8.1-1ubuntu14.1.dsc
'''

it will fail with

'''
+------------------------------------------------------------------------------+
| Pre Build Commands                                                           |
+------------------------------------------------------------------------------+

cat foo | %SBUILD_CHROOT_EXEC sh -c "cat > bar"
------------------------------

/bin/sh: 1: %SBUILD_CHROOT_EXEC: not found
cat: foo: No such file or directory

E: Command 'cat foo | %SBUILD_CHROOT_EXEC sh -c "cat > bar"' failed to
run.

Finished processing commands.
--------------------------------------------------------------------------------
E: Failed to execute pre-build-commands

'''

The sbuild manpage documents this command example as a way to pipe a
file into the build chroot.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: sbuild 0.78.1-2ubuntu1
ProcVersionSignature: Ubuntu 5.2.21+bcachefs.git20191114.70e03772-1-generic 5.2.21
Uname: Linux 5.2.21+bcachefs.git20191114.70e03772-1-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 18 16:12:55 2019
InstallationDate: Installed on 2019-08-29 (81 days ago)
InstallationMedia: Ubuntu 19.10 bcachefs (20190828)
PackageArchitecture: all
SourcePackage: sbuild
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: sbuild (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug eoan

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sbuild in Ubuntu.
https://bugs.launchpad.net/bugs/1852962

Title:
  %e / %SBUILD_CHROOT_EXEC expansions fail

Status in sbuild package in Ubuntu:
  New

Bug description:
  If you run something like:

  '''
  sbuild -A -j 8 -d eoan --pre-build-commands 'cat foo | %SBUILD_CHROOT_EXEC sh -c "cat > bar"'  zfs-linux_0.8.1-1ubuntu14.1.dsc
  '''

  it will fail with

  '''
  +------------------------------------------------------------------------------+
  | Pre Build Commands                                                           |
  +------------------------------------------------------------------------------+

  cat foo | %SBUILD_CHROOT_EXEC sh -c "cat > bar"
  ------------------------------

  /bin/sh: 1: %SBUILD_CHROOT_EXEC: not found
  cat: foo: No such file or directory

  E: Command 'cat foo | %SBUILD_CHROOT_EXEC sh -c "cat > bar"' failed to
  run.

  Finished processing commands.
  --------------------------------------------------------------------------------
  E: Failed to execute pre-build-commands

  '''

  The sbuild manpage documents this command example as a way to pipe a
  file into the build chroot.

  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: sbuild 0.78.1-2ubuntu1
  ProcVersionSignature: Ubuntu 5.2.21+bcachefs.git20191114.70e03772-1-generic 5.2.21
  Uname: Linux 5.2.21+bcachefs.git20191114.70e03772-1-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu8.2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Nov 18 16:12:55 2019
  InstallationDate: Installed on 2019-08-29 (81 days ago)
  InstallationMedia: Ubuntu 19.10 bcachefs (20190828)
  PackageArchitecture: all
  SourcePackage: sbuild
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbuild/+bug/1852962/+subscriptions



More information about the foundations-bugs mailing list