Package: src:gdb Version: 7.7.1+dfsg-1 Severity: important Tags: patch User: debian-powe...@lists.debian.org Usertags: ppc64el
Hi maintainers, I've noticed a couple of failures when building gdb 7.7.1+dfsg-1 from src on ppc64el. One of them was already fixed on upstream git repo (fix FTBFS on non-x86 trying to install unbuilt libinproctrace.so <http://anonscm.debian.org/cgit/pkg-gdb/gdb.git/commit/?id=72635370173bd44addd08053c5f235e3805f342b>) but there was another issue with run.1 manpage, that was recently removed from Debian src: ... /bin/bash /home/debian/gdb/debian/gdb.git/sim/common/../../mkinstalldirs /home/debian/gdb/debian/gdb.git/debian/tmp/usr/share/man/man1 mkdir -p -- /home/debian/gdb/debian/gdb.git/debian/tmp/usr/share/man/man1 n=`echo run | sed 's,y,y,'`; \ /usr/bin/install -p -m 644 /home/debian/gdb/debian/gdb.git/sim/common/run.1 /home/debian/gdb/debian/gdb.git/debian/tmp/usr/share/man/man1/$n.1 /usr/bin/install: cannot stat ‘/home/debian/gdb/debian/gdb.git/sim/common/run.1’: No such file or directory make[4]: *** [install-man] Error 1 make[4]: Leaving directory `/home/debian/gdb/debian/gdb.git/build/objdir/sim/common' make[3]: *** [install] Error 1 make[3]: Leaving directory `/home/debian/gdb/debian/gdb.git/build/objdir/sim' make[2]: *** [install-sim] Error 2 make[2]: Leaving directory `/home/debian/gdb/debian/gdb.git/build/objdir' make[1]: *** [install] Error 2 make[1]: Leaving directory `/home/debian/gdb/debian/gdb.git/build/objdir' make: *** [debian/stamp-makefile-install] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 It seems this was also happening in other archs, such as armel and mipsel (https://buildd.debian.org/status/logs.php?pkg=gdb&ver=7.7.1%2Bdfsg-2) Please consider the attached patch (against git HEAD commit id a0095d) that intends to fix this issue. Thanks and regards, -- Edjunior
diff --git a/debian/patches/fix-run.1-install.patch b/debian/patches/fix-run.1-install.patch new file mode 100644 index 0000000..3575afa --- /dev/null +++ b/debian/patches/fix-run.1-install.patch @@ -0,0 +1,18 @@ +--- a/sim/common/Makefile.in 2014-08-13 13:14:35.632343417 -0500 ++++ b/sim/common/Makefile.in 2014-08-13 13:14:49.802243957 -0500 +@@ -116,14 +116,7 @@ distclean mostlyclean maintainer-clean r + force: + + # Copy the files into directories where they will be run. +-install: install-man +- +-install-man: installdirs +- n=`echo run | sed '$(program_transform_name)'`; \ +- $(INSTALL_DATA) $(srcdir)/run.1 $(DESTDIR)$(man1dir)/$$n.1 +- +-installdirs: +- $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir) ++install: + + Makefile: Makefile.in config.status + $(SHELL) ./config.status diff --git a/debian/patches/series b/debian/patches/series index 17707fe..6c1e086 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +fix-run.1-install.patch gdb-fortran-main.patch linuxthreads_signal_handling.patch solve_PATH_MAX_issue.patch diff --git a/debian/rules b/debian/rules index 3a526c2..e1a907e 100755 --- a/debian/rules +++ b/debian/rules @@ -255,8 +255,6 @@ binary-post-install/gdb$(TS) :: if [ -x debian/tmp/usr/bin/run ]; then \ mv debian/tmp/usr/bin/run \ debian/gdb$(TS)/usr/bin/$(DEB_TARGET_ALIAS)-run; \ - mv debian/tmp/usr/share/man/man1/run.1 \ - debian/gdb$(TS)/usr/share/man/man1/$(DEB_TARGET_ALIAS)-run.1; \ fi ifeq ($(run_tests),yes) install -d debian/gdb$(TS)/usr/share/doc/gdb