summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-02 17:53:36 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-02 17:53:36 +0000
commit487d49ae17453581365359db152f944948c2a297 (patch)
tree54cbae19da05d2a497c2b62c1b61a8d34ae0dd99 /devel
parentb7e9b0d17432fcb51aaabceb7d4115c8ee83bbdf (diff)
downloadpkgsrc-487d49ae17453581365359db152f944948c2a297.tar.gz
Disable pentium specific instructions, one reason being that it breaks
amd64 compilation.
Diffstat (limited to 'devel')
-rw-r--r--devel/ode/distinfo3
-rw-r--r--devel/ode/patches/patch-ac30
2 files changed, 32 insertions, 1 deletions
diff --git a/devel/ode/distinfo b/devel/ode/distinfo
index c7e99390367..946d364fc43 100644
--- a/devel/ode/distinfo
+++ b/devel/ode/distinfo
@@ -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 --git a/devel/ode/patches/patch-ac b/devel/ode/patches/patch-ac
new file mode 100644
index 00000000000..3c7e2600b90
--- /dev/null
+++ b/devel/ode/patches/patch-ac
@@ -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");
+ }
+
+ /****************************************************************************/