diff -Nru pkg-create-dbgsym-0.70/debian/changelog pkg-create-dbgsym-0.71/debian/changelog --- pkg-create-dbgsym-0.70/debian/changelog 2015-10-23 08:50:29.000000000 +0000 +++ pkg-create-dbgsym-0.71/debian/changelog 2016-03-15 21:07:49.000000000 +0000 @@ -1,3 +1,10 @@ +pkg-create-dbgsym (0.71) xenial; urgency=medium + + * Fix race in dpkg-gencontrol by writing to one file list per package. + * Drop deprecated '-is' and '-ip' options from dpkg-gencontrol calls. + + -- Adam Conrad Tue, 15 Mar 2016 15:06:33 -0600 + pkg-create-dbgsym (0.70) xenial; urgency=medium * Add test case for a package using dh. diff -Nru pkg-create-dbgsym-0.70/pkg_create_dbgsym pkg-create-dbgsym-0.71/pkg_create_dbgsym --- pkg-create-dbgsym-0.70/pkg_create_dbgsym 2015-10-23 08:47:52.000000000 +0000 +++ pkg-create-dbgsym-0.71/pkg_create_dbgsym 2016-03-15 21:06:30.000000000 +0000 @@ -188,13 +188,13 @@ # generate a control file for current package (since it is usually not yet # existing) and adapt it to be suitable for the dbgsym package perl -p000 -e 's/^#.*?\n//msg; s/^(?:Pre-Depends|Depends|Recommends|Suggests|Conflicts|Provides|Replaces|Breaks|Enhances|Essential):.*?\n(?![ \t])//msg' debian/control | - dpkg-gencontrol -c- -fdhstrip-dummy-debian-files -p$pkgname -is -ip -Pdebian/$pkgname-dbgsym -Tdebian/$pkgname.substvars -O | + dpkg-gencontrol -c- -fdhstrip-dummy-debian-files.${pkgname} -p$pkgname -Pdebian/$pkgname-dbgsym -Tdebian/$pkgname.substvars -O | sed "s/^Priority:.*$/Priority: extra/; s/^Version: \(.*\)$/&\nDepends: $depends/; s/^Package:.*$/&-dbgsym/; s/^Description:.*$/Description: debug symbols for package $pkgname/" \ > $dp/DEBIAN/control -rm -f dhstrip-dummy-debian-files +rm -f dhstrip-dummy-debian-files.${pkgname} # binaries named the same as the source will lack a Source field. # since we are renaming binaries, we might need to add one.