Как обычно в дебиане: разархивировал gcc-4.7_4.7.2.orig.tar.gz, получил gcc-4.7-4.7.2.orig/gcc-4.7.2-dfsg.tar.xz. Хм, вот это необычно.
Разархивировал и его. Заархивировал как gcc-4.7_4.7.2.orig.tar.gz. Наложил diff.gz. И вперёд с dpkg-buildpackage.
Похоже, нужно как-то по-другому. Кто-то знает, что это за вид упаковки и как с ним правильно обращаться?
gag@debian:/home/gag/gcc/gcc-4.7-4.7.2.orig/gcc-4.7-4.7.2$ dpkg-buildpackage -uc -us
dpkg-buildpackage: source package gcc-4.7
dpkg-buildpackage: source version 4.7.2-6
dpkg-buildpackage: source changed by gag <g@g.org>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build gcc-4.7-4.7.2
fakeroot debian/rules clean
rm -rf stamps
rm -rf d
/usr/bin/make -f debian/rules2 clean
make[1]: Entering directory `/home/gag/gcc/gcc-4.7-4.7.2.orig/gcc-4.7-4.7.2'
debian/rules2:10: debian/rules.parameters: No such file or directory
make[1]: *** No rule to make target `debian/rules.parameters'. Stop.
make[1]: Leaving directory `/home/gag/gcc/gcc-4.7-4.7.2.orig/gcc-4.7-4.7.2'
make: [clean] Error 2 (ignored)
rm -rf /home/gag/gcc/gcc-4.7-4.7.2.orig/gcc-4.7-4.7.2/src* /home/gag/gcc/gcc-4.7-4.7.2.orig/gcc-4.7-4.7.2/build* debian/tmp* html
rm -f bootstrap-* first-move-stamp
rm -f autotools_files
rm -f debian/*.tmp
rm -f debian/soname-cache
find debian -name '.#*' | xargs -r rm -f
rm -f debian/patches/series*
dh_clean
dpkg-source -b gcc-4.7-4.7.2
dpkg-source: info: using source format `1.0'
dpkg-source: info: building gcc-4.7 using existing gcc-4.7_4.7.2.orig.tar.gz
dpkg-source: info: building gcc-4.7 in gcc-4.7_4.7.2-6.diff.gz
dpkg-source: warning: executable mode 0755 of 'debian/dh_rmemptydirs' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/dh_doclink' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/locale-gen' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/reduce-test-diff.awk' will not be represented in diff
dpkg-source: warning: executable mode 0755 of 'debian/logwatch.sh' will not be represented in diff
dpkg-source: info: building gcc-4.7 in gcc-4.7_4.7.2-6.dsc
debian/rules build
echo -e "\nBuilt from Debian source package gcc-4.7-4.7.2-6" \
> pxxx
echo -e "Integrated upstream packages in this version:\n" >> pxxx
for i in ; do echo " $i" >> pxxx; done
mv -f pxxx stamps/01-unpack-stamp
mv: cannot move `pxxx' to `stamps/01-unpack-stamp': No such file or directory
make: *** [stamps/01-unpack-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
gag@debian:/home/gag/gcc/gcc-4.7-4.7.2.orig/gcc-4.7-4.7.2$