[gcc-6] 93/401: ada-hurd.diff: Make pthread_mutexattr_setprotocol/prioceiling return 0 like on android, they are not actually implemented.

Ximin Luo infinity0 at debian.org
Wed Apr 5 15:48:07 UTC 2017


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

infinity0 pushed a commit to branch pu/reproducible_builds
in repository gcc-6.

commit 22ac60d4a72428505a06d5651b9c685ca0b3cbbd
Author: sthibault <sthibault at 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>
Date:   Fri Feb 26 00:55:10 2016 +0000

    ada-hurd.diff: Make pthread_mutexattr_setprotocol/prioceiling return 0
    like on android, they are not actually implemented.
    
    
    git-svn-id: svn://anonscm.debian.org/gcccvs/branches/sid/gcc-6@8698 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
---
 debian/changelog             |  4 ++++
 debian/patches/ada-hurd.diff | 22 +++-------------------
 2 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fe87ba6..f60c4c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ gcc-6 (6-20160225-2) UNRELEASED; urgency=medium
 
   * libgo: Port syscall.SetsockoptUcred from golang (Michael Vogt).
 
+  [ Samuel Thibault ]
+  * ada-hurd.diff: Make pthread_mutexattr_setprotocol/prioceiling return 0
+    like on android, they are not actually implemented.
+
  -- Matthias Klose <doko at debian.org>  Thu, 25 Feb 2016 20:43:06 +0100
 
 gcc-6 (6-20160225-1) experimental; urgency=medium
diff --git a/debian/patches/ada-hurd.diff b/debian/patches/ada-hurd.diff
index 9c49f2b..9037a1d 100644
--- a/debian/patches/ada-hurd.diff
+++ b/debian/patches/ada-hurd.diff
@@ -2,7 +2,7 @@ Index: b/src/gcc/ada/s-osinte-gnu.ads
 ===================================================================
 --- /dev/null
 +++ b/src/gcc/ada/s-osinte-gnu.ads
-@@ -0,0 +1,801 @@
+@@ -0,0 +1,785 @@
 +------------------------------------------------------------------------------
 +--                                                                          --
 +--                GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS               --
@@ -506,27 +506,11 @@ Index: b/src/gcc/ada/s-osinte-gnu.ads
 +   --  From: /usr/include/pthread/pthread.h
 +   function pthread_mutexattr_setprotocol
 +     (attr     : access pthread_mutexattr_t;
-+      protocol : int) return int;
-+   pragma Import (C, pthread_mutexattr_setprotocol,
-+     "pthread_mutexattr_setprotocol");
-+
-+   function pthread_mutexattr_getprotocol
-+     (attr     : access pthread_mutexattr_t;
-+      protocol : access int) return int;
-+   pragma Import (C, pthread_mutexattr_getprotocol,
-+     "pthread_mutexattr_getprotocol");
++      protocol : int) return int is (0);
 +
 +   function pthread_mutexattr_setprioceiling
 +     (attr     : access pthread_mutexattr_t;
-+      prioceiling : int) return int;
-+   pragma Import (C, pthread_mutexattr_setprioceiling,
-+     "pthread_mutexattr_setprioceiling");
-+
-+   function pthread_mutexattr_getprioceiling
-+     (attr     : access pthread_mutexattr_t;
-+      prioceiling : access int) return int;
-+   pragma Import (C, pthread_mutexattr_getprioceiling,
-+     "pthread_mutexattr_getprioceiling");
++      prioceiling : int) return int is (0);
 +
 +   type struct_sched_param is record
 +      sched_priority : int;  --  scheduling priority

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/gcc-6.git



More information about the Reproducible-commits mailing list