pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/nspr nspr: properly fix nspr/pr/src/pthreads/ptt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f12485b1762
branches:  trunk
changeset: 390076:0f12485b1762
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 15 23:01:17 2022 +0000

description:
nspr: properly fix nspr/pr/src/pthreads/ptthread.c; pkglint fixes

diffstat:

 devel/nspr/Makefile                                      |   6 +++---
 devel/nspr/buildlink3.mk                                 |   4 ++--
 devel/nspr/distinfo                                      |   4 ++--
 devel/nspr/patches/patch-nspr_pr_src_pthreads_ptthread.c |  11 +++++++----
 4 files changed, 14 insertions(+), 11 deletions(-)

diffs (83 lines):

diff -r 545b4caa8619 -r 0f12485b1762 devel/nspr/Makefile
--- a/devel/nspr/Makefile       Thu Dec 15 22:47:58 2022 +0000
+++ b/devel/nspr/Makefile       Thu Dec 15 23:01:17 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.121 2022/09/12 13:12:44 wiz Exp $
+# $NetBSD: Makefile,v 1.122 2022/12/15 23:01:17 adam Exp $
 
 DISTNAME=      nspr-${NSPR_RELEASE:S/.0$//}
 NSPR_RELEASE=  4.35.0
@@ -27,11 +27,11 @@
 
 CONFIGURE_ARGS+=       --disable-debug
 CONFIGURE_ARGS+=       --with-pthreads
-CONFIGURE_ENV+=                LIBRUNPATH=${PREFIX:Q}/lib/nspr
+CONFIGURE_ENV+=                LIBRUNPATH=${PREFIX}/lib/nspr
 
 .include "../../mk/bsd.prefs.mk"
 
-.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+.if ${USE_CROSS_COMPILE:U:tl} == yes
 MAKE_FLAGS+=           HOST_CC=${NATIVE_CC:Q}
 MAKE_FLAGS+=           HOST_CXX=${NATIVE_CXX:Q}
 .endif
diff -r 545b4caa8619 -r 0f12485b1762 devel/nspr/buildlink3.mk
--- a/devel/nspr/buildlink3.mk  Thu Dec 15 22:47:58 2022 +0000
+++ b/devel/nspr/buildlink3.mk  Thu Dec 15 23:01:17 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.27 2022/06/28 11:31:49 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.28 2022/12/15 23:01:17 adam Exp $
 
 BUILDLINK_TREE+=       nspr
 
@@ -6,7 +6,7 @@
 NSPR_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.nspr+=   nspr>=4.9.3.2
-BUILDLINK_ABI_DEPENDS.nspr?=   nspr>=4.34nb1
+BUILDLINK_ABI_DEPENDS.nspr+=   nspr>=4.34nb1
 BUILDLINK_PKGSRCDIR.nspr?=     ../../devel/nspr
 
 BUILDLINK_LIBDIRS.nspr+=       lib/nspr
diff -r 545b4caa8619 -r 0f12485b1762 devel/nspr/distinfo
--- a/devel/nspr/distinfo       Thu Dec 15 22:47:58 2022 +0000
+++ b/devel/nspr/distinfo       Thu Dec 15 23:01:17 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.69 2022/09/12 13:12:44 wiz Exp $
+$NetBSD: distinfo,v 1.70 2022/12/15 23:01:17 adam Exp $
 
 BLAKE2s (nspr-4.35.tar.gz) = c6c0e92a5198ff08e84ff1342b0ca2106e77062ca3109704f17d7d9c34084dbe
 SHA512 (nspr-4.35.tar.gz) = 502815833116e25f79ddf71d1526484908aa92fbc55f8a892729cb404a4daafcc0470a89854cd080d2d20299fdb7d9662507c5362c7ae661cbacf308ac56ef7f
@@ -8,4 +8,4 @@
 SHA1 (patch-ba) = 35f7cc7bbe7fa0f72eb7b506094ad1812b754aa5
 SHA1 (patch-nspr_pr_include_md___netbsd.cfg) = a3aba89d02cd61f748862ebb3b76050873ccdd69
 SHA1 (patch-nspr_pr_src_pthreads_ptsynch.c) = 77fc5653bcfaf39f55f26b301992aaeb2ff2401c
-SHA1 (patch-nspr_pr_src_pthreads_ptthread.c) = 187fdad28d0407c440154a614d38d860b71bfad1
+SHA1 (patch-nspr_pr_src_pthreads_ptthread.c) = af881ec2be2b6b37f435751cd1ac7ad4634e5f0f
diff -r 545b4caa8619 -r 0f12485b1762 devel/nspr/patches/patch-nspr_pr_src_pthreads_ptthread.c
--- a/devel/nspr/patches/patch-nspr_pr_src_pthreads_ptthread.c  Thu Dec 15 22:47:58 2022 +0000
+++ b/devel/nspr/patches/patch-nspr_pr_src_pthreads_ptthread.c  Thu Dec 15 23:01:17 2022 +0000
@@ -1,16 +1,19 @@
-$NetBSD: patch-nspr_pr_src_pthreads_ptthread.c,v 1.2 2021/07/01 07:23:00 wiz Exp $
+$NetBSD: patch-nspr_pr_src_pthreads_ptthread.c,v 1.3 2022/12/15 23:01:17 adam Exp $
 
 pthread_t may be 64-bit, avoid casting it.
 https://bugzilla.mozilla.org/show_bug.cgi?id=1718835
 
---- nspr/pr/src/pthreads/ptthread.c.orig       2018-01-18 12:37:14.000000000 +0000
+--- nspr/pr/src/pthreads/ptthread.c.orig       2022-09-12 11:40:15.000000000 +0000
 +++ nspr/pr/src/pthreads/ptthread.c
-@@ -1122,7 +1122,7 @@ PR_IMPLEMENT(void) PR_ProcessExit(PRIntn
+@@ -1183,9 +1183,9 @@ PR_IMPLEMENT(void) PR_ProcessExit(PRIntn
      _exit(status);
  }
  
 -PR_IMPLEMENT(PRUint32) PR_GetThreadID(PRThread *thred)
 +PR_IMPLEMENT(pthread_t) PR_GetThreadID(PRThread *thred)
  {
-     return (PRUint32)thred->id;  /* and I don't know what they will do with it */
+-    return (PRUint32)thred->id;  /* and I don't know what they will do with it */
++    return (pthread_t)thred->id;  /* and I don't know what they will do with it */
  }
+ 
+ /*



Home | Main Index | Thread Index | Old Index