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

Bug#369657: dh_install error of copy librpcsvc,.a at cross-compiling.



Hi,

How about this patch?

Regards,

Kazuhiro Inaoka

Kazuhiro Inaoka wrote:

Package:glibc
Versio:2.3.6-11
Serverity:wishlist

The following error of dh_install happened at cross-compiling.

dh_install -plibc6-dev
cp: cannot stat `./debian/tmp-libc/usr/lib/librpcsvc.a': No such file or directory
dh_install: command returned error code 256

The librpcsvc.a is not created at cross-compiling.

Regards,

Kazuhiro Inaoka


--- rules.d/debhelper.mk.org	2006-06-07 11:17:10.171419822 +0900
+++ rules.d/debhelper.mk	2006-05-31 15:32:42.000000000 +0900
@@ -252,6 +252,12 @@
 	  esac; \
 	done
 
+	if [ $(DEB_HOST_ARCH) != $(DEB_BUILD_ARCH) ]; then \
+	  sed -e "s/^.*librpcsvc.*//g" -i debian/libc6-alt-dev.install; \
+	  sed -e "s/^.*librpcsvc.*//g" -i debian/libc6-dev.install; \
+	  sed -e "s/^.*librpcsvc.*//g" -i debian/libc6-dev.install.hurd-i386; \
+	fi
+
 	# Substitute __SUPPORTED_LOCALES__.
 	perl -i -pe 'BEGIN {undef $$/; open(IN, "debian/tmp-libc/usr/share/i18n/SUPPORTED"); $$j=<IN>;} s/__SUPPORTED_LOCALES__/$$j/g;' debian/locales.config
 

Reply to: