pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ode Disable pentium specific instructions, one r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1bb0dd7bca1c
branches:  trunk
changeset: 547777:1bb0dd7bca1c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Oct 02 17:53:36 2008 +0000

description:
Disable pentium specific instructions, one reason being that it breaks
amd64 compilation.

diffstat:

 devel/ode/distinfo         |   3 ++-
 devel/ode/patches/patch-ac |  30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r ee0f9f7f15e3 -r 1bb0dd7bca1c devel/ode/distinfo
--- a/devel/ode/distinfo        Thu Oct 02 17:49:00 2008 +0000
+++ b/devel/ode/distinfo        Thu Oct 02 17:53:36 2008 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2006/03/19 15:05:39 joerg Exp $
+$NetBSD: distinfo,v 1.6 2008/10/02 17:53:36 joerg Exp $
 
 SHA1 (ode-0.5.tgz) = f13756f1192d24101b6d1a3c14feb43efbf0b281
 RMD160 (ode-0.5.tgz) = 3410a842731c1bb24f306f4d23509533664321aa
 Size (ode-0.5.tgz) = 1710720 bytes
 SHA1 (patch-aa) = 216a15a8ebfd7195215e1396ac94c4508fafbf30
 SHA1 (patch-ab) = 87b7914946fca9362ab7334525b6c982b9981cad
+SHA1 (patch-ac) = 858cfe364bbfe5b637d63b564a54e4615fcf2f85
diff -r ee0f9f7f15e3 -r 1bb0dd7bca1c devel/ode/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ode/patches/patch-ac        Thu Oct 02 17:53:36 2008 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ac,v 1.1 2008/10/02 17:53:37 joerg Exp $
+
+Avoid Pentium specific assembly for binary packages. Also breaks AMD64.
+
+--- configurator.c.orig        2008-10-02 19:50:59.000000000 +0200
++++ configurator.c
+@@ -219,23 +219,7 @@ void run (char *filename)
+ 
+ void check_if_this_is_a_pentium (FILE *file)
+ {
+-  write_header_comment (file,"is this a pentium on a gcc-based platform?");
+-  write_to_file ("ctest.cpp",
+-               "int main() {\n"
+-               "  asm (\"mov $0,%%eax\\n cpuid\\n\" : : : \"%eax\");\n"
+-               "  return 0;\n"
+-               "}\n");
+-  delete_file ("ctest.exe");
+-  compile ("ctest.exe","ctest.cpp");
+-  if (file_exists ("ctest.exe")) {
+-    fprintf (file,"#define PENTIUM 1\n\n");
+-  }
+-  else {
+     fprintf (file,"/* #define PENTIUM 1 -- not a pentium */\n\n");
+-  }
+-
+-  delete_file ("ctest.cpp");
+-  delete_file ("ctest.exe");
+ }
+ 
+ /****************************************************************************/



Home | Main Index | Thread Index | Old Index