[libsys-syscall-perl] 01/02: Add support for mips, mipsel and mips64el

Niko Tyni ntyni at moszumanska.debian.org
Sat May 21 14:32:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

ntyni pushed a commit to branch master
in repository libsys-syscall-perl.

commit b13197ff697754540f76b8de8e12743e56dc9a91
Author: Niko Tyni <ntyni at debian.org>
Date:   Sat May 21 17:09:19 2016 +0300

    Add support for mips, mipsel and mips64el
---
 debian/patches/mips.patch | 50 +++++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series     |  1 +
 2 files changed, 51 insertions(+)

diff --git a/debian/patches/mips.patch b/debian/patches/mips.patch
new file mode 100644
index 0000000..992ac5f
--- /dev/null
+++ b/debian/patches/mips.patch
@@ -0,0 +1,50 @@
+From 27084cb9b8a0cdc0bdaae792a329ea3b35a9ef92 Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Sat, 21 May 2016 14:05:31 +0000
+Subject: [PATCH] Add mips* support
+
+Bug-Debian: https://bugs.debian.org/824936
+---
+ lib/Sys/Syscall.pm | 19 +++++++++++++++++++
+ 1 file changed, 19 insertions(+)
+
+diff --git a/lib/Sys/Syscall.pm b/lib/Sys/Syscall.pm
+index b7ac0ce..165b152 100644
+--- a/lib/Sys/Syscall.pm
++++ b/lib/Sys/Syscall.pm
+@@ -64,6 +64,11 @@ if ($^O eq "linux") {
+         $machine = "i386";
+     }
+ 
++    # Similarly for mips64 vs mips
++    if ($machine eq "mips64" && $Config{ptrsize} == 4) {
++        $machine = "mips";
++    }
++
+     if ($machine =~ m/^i[3456]86$/) {
+         $SYS_epoll_create = 254;
+         $SYS_epoll_ctl    = 255;
+@@ -113,6 +118,20 @@ if ($^O eq "linux") {
+         $SYS_sendfile     = 187;
+         $SYS_readahead    = 225;
+         $u64_mod_8        = 1;
++    } elsif ($machine =~ m/^mips64/) {
++        $SYS_sendfile     = 5039;
++        $SYS_epoll_create = 5207;
++        $SYS_epoll_ctl    = 5208;
++        $SYS_epoll_wait   = 5209;
++        $SYS_readahead    = 5179;
++        $u64_mod_8        = 1;
++    } elsif ($machine =~ m/^mips/) {
++        $SYS_sendfile     = 4207;
++        $SYS_epoll_create = 4248;
++        $SYS_epoll_ctl    = 4249;
++        $SYS_epoll_wait   = 4250;
++        $SYS_readahead    = 4223;
++        $u64_mod_8        = 1;
+     } else {
+         # as a last resort, try using the *.ph files which may not
+         # exist or may be wrong
+-- 
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
index fe0a255..7095c29 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 ppc64le.patch
 s390x.patch
 aarch64.patch
+mips.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsys-syscall-perl.git



More information about the Pkg-perl-cvs-commits mailing list