Received: by mail.netbsd.org (Postfix, from userid 605) id EBAD684D9F; Tue, 20 Nov 2018 17:45:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D26E784CEF for ; Tue, 20 Nov 2018 17:45:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id cWKPLLNZvppq for ; Tue, 20 Nov 2018 17:45:39 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 19E5784CD9 for ; Tue, 20 Nov 2018 17:45:39 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 12C63FB20; Tue, 20 Nov 2018 17:45:39 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1542735939127960" MIME-Version: 1.0 Date: Tue, 20 Nov 2018 17:45:39 +0000 From: "Maya Rashish" Subject: CVS commit: pkgsrc/devel/lua-posix To: pkgsrc-changes@NetBSD.org Reply-To: maya@netbsd.org X-Mailer: log_accum Message-Id: <20181120174539.12C63FB20@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1542735939127960 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: maya Date: Tue Nov 20 17:45:38 UTC 2018 Modified Files: pkgsrc/devel/lua-posix: distinfo Added Files: pkgsrc/devel/lua-posix/patches: patch-ext_posix_time.c Log Message: lua-posix: Only use CLOCK_{PROCESS,THREAD}_CPUTIME_ID if defined This is needed for netbsd<8. From Edgar Fuß in PR pkg/53600 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/lua-posix/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1542735939127960 Content-Disposition: inline Content-Length: 1843 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/lua-posix/distinfo diff -u pkgsrc/devel/lua-posix/distinfo:1.6 pkgsrc/devel/lua-posix/distinfo:1.7 --- pkgsrc/devel/lua-posix/distinfo:1.6 Tue Sep 18 03:37:03 2018 +++ pkgsrc/devel/lua-posix/distinfo Tue Nov 20 17:45:38 2018 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2018/09/18 03:37:03 maya Exp $ +$NetBSD: distinfo,v 1.7 2018/11/20 17:45:38 maya Exp $ SHA1 (luaposix-34.0.4.tar.gz) = 848b18807f7906386354e0be74079c0ccc56aab9 RMD160 (luaposix-34.0.4.tar.gz) = 6aa8c5a57b1df85c00ffa3f24c5e6cecf28169c0 @@ -6,4 +6,5 @@ SHA512 (luaposix-34.0.4.tar.gz) = c6399d Size (luaposix-34.0.4.tar.gz) = 175194 bytes SHA1 (patch-ext_posix_stdlib.c) = 1ab4263d3578288ef54649ec6c91115019e664ce SHA1 (patch-ext_posix_sys_socket.c) = 665f96727cee1aa4a4841b83be5b7ff270a0b505 +SHA1 (patch-ext_posix_time.c) = 2ef51e2a5db9e41afa557954edf2ac6aff33e3f2 SHA1 (patch-lukefile) = 41773ee71524080a35c924bd623a250c44791a2b Added files: Index: pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c diff -u /dev/null pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c:1.1 --- /dev/null Tue Nov 20 17:45:38 2018 +++ pkgsrc/devel/lua-posix/patches/patch-ext_posix_time.c Tue Nov 20 17:45:38 2018 @@ -0,0 +1,21 @@ +$NetBSD: patch-ext_posix_time.c,v 1.1 2018/11/20 17:45:38 maya Exp $ + +Only use CLOCK_{PROCESS,THREAD}_CPUTIME_ID if defined + +--- ext/posix/time.c.orig 2018-11-20 17:41:28.954287969 +0000 ++++ ext/posix/time.c +@@ -350,10 +350,14 @@ luaopen_posix_time(lua_State *L) + + #if defined _POSIX_TIMERS && _POSIX_TIMERS != -1 + LPOSIX_CONST( CLOCK_MONOTONIC ); ++#if defined CLOCK_PROCESS_CPUTIME_ID + LPOSIX_CONST( CLOCK_PROCESS_CPUTIME_ID ); ++#endif + LPOSIX_CONST( CLOCK_REALTIME ); ++#if defined CLOCK_THREAD_CPUTIME_ID + LPOSIX_CONST( CLOCK_THREAD_CPUTIME_ID ); + #endif ++#endif + + return 1; + } --_----------=_1542735939127960--