[Bug 1057886] [NEW] dpkg-source regression when a patch removes all files from a directory

Tyler Hicks tyhicks at canonical.com
Fri Sep 28 03:57:44 UTC 2012


Public bug reported:

I was recently working on a package update and created a patch which
deleted all files in a directory. When I tried to build the package, I
hit an unexpected dpkg-source error:

dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building ruby1.9.1 using existing ./ruby1.9.1_1.9.3.194.orig.tar.gz
dpkg-source: info: building ruby1.9.1 in ruby1.9.1_1.9.3.194-1ubuntu1.debian.tar.gz
dpkg-source: info: building ruby1.9.1 in ruby1.9.1_1.9.3.194-1ubuntu1.dsc
 dpkg-genchanges -S >../ruby1.9.1_1.9.3.194-1ubuntu1_source.changes
dpkg-genchanges: not including original source code in upload
 dpkg-source --after-build ruby1.9.1-1.9.3.194
dpkg-source: error: failed to copy ruby1.9.1-1.9.3.194/.pc/20120927-rubygems_disable_upstream_certs.patch/lib/rubygems/ssl_certs/AddTrustExternalCARoot.pem to ruby1.9.1-1.9.3.194/lib/rubygems/ssl_certs/AddTrustExternalCARoot.pem: No such file or directory
dpkg-source: info: unapplying 20120927-rubygems_disable_upstream_certs.patch
dpkg-buildpackage: error: dpkg-source --after-build ruby1.9.1-1.9.3.194 gave error exit status 2
debuild: fatal error at line 1357:
dpkg-buildpackage -rfakeroot -d -us -uc -S failed

After doing some research, I found that it is a known bug and has a fix
applied in upstream dpkg. The Debian bug report also has a reproducer.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683547

** Affects: dpkg (Ubuntu)
     Importance: Medium
     Assignee: Tyler Hicks (tyhicks)
         Status: In Progress

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

Title:
  dpkg-source regression when a patch removes all files from a directory

Status in “dpkg” package in Ubuntu:
  In Progress

Bug description:
  I was recently working on a package update and created a patch which
  deleted all files in a directory. When I tried to build the package, I
  hit an unexpected dpkg-source error:

  dpkg-source: info: using source format `3.0 (quilt)'
  dpkg-source: info: building ruby1.9.1 using existing ./ruby1.9.1_1.9.3.194.orig.tar.gz
  dpkg-source: info: building ruby1.9.1 in ruby1.9.1_1.9.3.194-1ubuntu1.debian.tar.gz
  dpkg-source: info: building ruby1.9.1 in ruby1.9.1_1.9.3.194-1ubuntu1.dsc
   dpkg-genchanges -S >../ruby1.9.1_1.9.3.194-1ubuntu1_source.changes
  dpkg-genchanges: not including original source code in upload
   dpkg-source --after-build ruby1.9.1-1.9.3.194
  dpkg-source: error: failed to copy ruby1.9.1-1.9.3.194/.pc/20120927-rubygems_disable_upstream_certs.patch/lib/rubygems/ssl_certs/AddTrustExternalCARoot.pem to ruby1.9.1-1.9.3.194/lib/rubygems/ssl_certs/AddTrustExternalCARoot.pem: No such file or directory
  dpkg-source: info: unapplying 20120927-rubygems_disable_upstream_certs.patch
  dpkg-buildpackage: error: dpkg-source --after-build ruby1.9.1-1.9.3.194 gave error exit status 2
  debuild: fatal error at line 1357:
  dpkg-buildpackage -rfakeroot -d -us -uc -S failed

  After doing some research, I found that it is a known bug and has a
  fix applied in upstream dpkg. The Debian bug report also has a
  reproducer.

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683547

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




More information about the foundations-bugs mailing list