[Bug 1794383] [NEW] ubuntu-cpc project: Add a hack for git empty directory handling

Robert C Jennings 1794383 at bugs.launchpad.net
Tue Sep 25 22:15:37 UTC 2018


Public bug reported:

We use a LP build recipe that includes livecd-rootfs.
We are moving from bzr to git due to other projects moving to git.
When we import livecd-rootfs into git it does not commit empty
directories into the git tree.  The livecd-build/ubuntu-
cpc/includes.chroot/etc/network/interfaces.d/ directory is dropped
when we do this import.

[Impact]

 * Importing the package and committing it to a git repository
   drops empty directories from the ubuntu-cpc/includes.chroot tree
 * Images built in the ubuntu-cpc project drop this directory which
   is a regression

[Test Case]

 * Create a bare git repo,
 * Pull the livecd-rootfs from xenial-updates into the repo,
 * Commit the code to git
 * Use the committed code (fresh clone) to build the ubuntu-cpc project
 * Inspect the images to see if /etc/network/interfaces.d exists

[Regression Potential]

 * Low.  This create a directory if it does or doesn't exist so builds from
   sources that include the empty directory should not be impacted.  The
   difference would be owner or permissions between the two methods (includes.chroot
   and the chroot hook) and my testing with this patch has shown that to
   be correct.

** Affects: livecd-rootfs (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "livecd-rootfs_2.408.37.debdiff"
   https://bugs.launchpad.net/bugs/1794383/+attachment/5192923/+files/livecd-rootfs_2.408.37.debdiff

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

Title:
  ubuntu-cpc project: Add a hack for git empty directory handling

Status in livecd-rootfs package in Ubuntu:
  New

Bug description:
  We use a LP build recipe that includes livecd-rootfs.
  We are moving from bzr to git due to other projects moving to git.
  When we import livecd-rootfs into git it does not commit empty
  directories into the git tree.  The livecd-build/ubuntu-
  cpc/includes.chroot/etc/network/interfaces.d/ directory is dropped
  when we do this import.

  [Impact]

   * Importing the package and committing it to a git repository
     drops empty directories from the ubuntu-cpc/includes.chroot tree
   * Images built in the ubuntu-cpc project drop this directory which
     is a regression

  [Test Case]

   * Create a bare git repo,
   * Pull the livecd-rootfs from xenial-updates into the repo,
   * Commit the code to git
   * Use the committed code (fresh clone) to build the ubuntu-cpc project
   * Inspect the images to see if /etc/network/interfaces.d exists

  [Regression Potential]

   * Low.  This create a directory if it does or doesn't exist so builds from
     sources that include the empty directory should not be impacted.  The
     difference would be owner or permissions between the two methods (includes.chroot
     and the chroot hook) and my testing with this patch has shown that to
     be correct.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1794383/+subscriptions



More information about the foundations-bugs mailing list