On Tue, 27 Jan 2009 12:26:10 +0100 Evgeni Golov wrote:

> Well, it's available on i386, and prolly just needs a build on amd64?
> AFAIK non-free isn't autobuilt, so just fetch the source and try to
> build it.

Okay, it was a bit more than "just" a rebuild:
I had to adjust DYNAMIPS_ARCH so it builds with correct amd64 headers.
Patch is attached.

Alexander, can you try installing
http://die-welt.net/~evgeni/tmp/dynamips_0.2.7-0.2.8RC2-3.1_amd64.deb
and tell me whether gns3 will work with it correctly?

Regards
Evgeni

-- 
Bruce Schneier Fact Number 930:
Bruce Schneier can decipher NaN
diff -u dynamips-0.2.7-0.2.8RC2/debian/changelog dynamips-0.2.7-0.2.8RC2/debian/changelog
--- dynamips-0.2.7-0.2.8RC2/debian/changelog
+++ dynamips-0.2.7-0.2.8RC2/debian/changelog
@@ -1,3 +1,10 @@
+dynamips (0.2.7-0.2.8RC2-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Enable building for arches !i386.
+
+ -- Evgeni Golov <sarge...@die-welt.net>  Tue, 27 Jan 2009 12:40:36 +0100
+
 dynamips (0.2.7-0.2.8RC2-3) unstable; urgency=low
 
   * [1a8805d8] [rules] added mode fix for debian patches in clean target
diff -u dynamips-0.2.7-0.2.8RC2/debian/rules dynamips-0.2.7-0.2.8RC2/debian/rules
--- dynamips-0.2.7-0.2.8RC2/debian/rules
+++ dynamips-0.2.7-0.2.8RC2/debian/rules
@@ -6,6 +6,19 @@
 include /usr/share/cdbs/1/rules/dpatch.mk
 include /usr/share/cdbs/1/class/makefile.mk
 
+DEB_BUILD_ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)
+ifeq ($(DEB_BUILD_ARCH),i386)
+ DYNAMIPS_ARCH=x86
+else
+ ifeq ($(DEB_BUILD_ARCH),amd64)
+  DYNAMIPS_ARCH=amd64
+ else
+  DYNAMIPS_ARCH=nojit
+ endif
+endif
+
+export DYNAMIPS_ARCH
+
 # define clean taget
 DEB_MAKE_CLEAN_TARGET = clean
 

Attachment: pgp3vbHM5F26J.pgp
Description: PGP signature

Reply via email to