[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gdb-arm fails to install



I just tried installing our lovely new gdb-arm-linux and
gdb-arm-linux-gnueabi packjages but found that there is a problem:

Selecting previously deselected package gdb-arm-linux-gnu.
(Reading database ... 122780 files and directories currently installed.)
Unpacking gdb-arm-linux-gnu (from .../gdb-arm-linux-gnu_6.8-3_amd64.deb) ...
dpkg: error processing
/var/cache/apt/archives/gdb-arm-linux-gnu_6.8-3_amd64.deb (--unpack):
 trying to overwrite /usr/share/man/man1/gdb.1.gz', which is also in package gdb
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package gdb-arm-linux-gnueabi.
Unpacking gdb-arm-linux-gnueabi (from .../gdb-arm-linux-gnueabi_6.8-3_amd64.deb) ...
dpkg: error processing
/var/cache/apt/archives/gdb-arm-linux-gnueabi_6.8-3_amd64.deb (--unpack):
 trying to overwrite /usr/share/man/man1/gdb.1.gz', which is also in package gdb
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/gdb-arm-linux-gnu_6.8-3_amd64.deb
 /var/cache/apt/archives/gdb-arm-linux-gnueabi_6.8-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Looks like that man page needs removing.

I _think_ this fixes it. It may break the native build as I don't grok
what is actually installing the gdb-arm-linux-foo version of the
manpages now.

--- gdb-6.8/debian/rules	2009-06-09 04:20:12.000000000 +0100
+++ gdb-6.8.new/debian/rules	2009-06-09 03:37:28.000000000 +0100
@@ -159,9 +159,9 @@
 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;		\
+		  debian/gdb$(TS)/usr/bin/$(TP)run;		\
 		mv debian/tmp/usr/share/man/man1/run.1			\
-		  debian/gdb$(TS)/usr/share/man/man1/$(DEB_TARGET_ALIAS)-run.1;	\
+		  debian/gdb$(TS)/usr/share/man/man1/$(TP)run.1;	\
 	fi
 ifeq ($(run_tests),yes)
 	install -d debian/gdb$(TS)/usr/share/doc/gdb
@@ -169,6 +169,12 @@
 		debian/gdb$(TS)/usr/share/doc/gdb/check.log
 endif
 
+ifeq ($(DEB_CROSS),yes)
+	# Ensure there is no gdb manpage in cross package.
+	# it clashes with native package
+	rm -f debian/gdb$(TS)/usr/share/man/man1/gdb.1
+endif
+
 ifneq ($(DEB_CROSS),yes)
 	# Gcore is only useful for native GDB.
 	$(INSTALL) -m 755 -o root -g root \
@@ -189,6 +195,10 @@
 	# not the real manuals.
 	rm -rf debian/tmp/usr/share/info
 
 ifneq ($(DEB_CROSS),yes)
 	# libgdb-dev is only required for native GDB.
 	install -d debian/tmp/usr/lib
@@ -212,7 +222,7 @@
 DEB_INSTALL_DOCS_gdb$(TS) = gdb/NEWS gdb/README gdb/doc/refcard.tex \
 		objdir/gdb/doc/refcard.dvi objdir/gdb/doc/refcard.ps
 DEB_INSTALL_CHANGELOGS_gdb$(TS) = gdb/ChangeLog
-DEB_INSTALL_MANPAGES_gdb$(TS) = gdb/gdb.1
+#DEB_INSTALL_MANPAGES_gdb$(TS) = gdb/gdb.1
 ifneq ($(DEB_CROSS),yes)
 DEB_INSTALL_MANPAGES_gdb$(TS) += debian/gcore.1
 endif


Wookey
-- 
Principal hats:  iEndian - Balloonboard - Toby Churchill - Emdebian
http://wookware.org/


Reply to: