pkgsrc-Changes archive

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

CVS commit: pkgsrc/news/canlock-hp



Module Name:    pkgsrc
Committed By:   micha
Date:           Wed Sep  9 16:03:19 UTC 2026

Modified Files:
        pkgsrc/news/canlock-hp: distinfo
Added Files:
        pkgsrc/news/canlock-hp/patches: patch-hp_util_hfp__lexer.l
            patch-hp_util_hfp__parser.y

Log Message:
news/canlock-hp: Build fix for SunOS


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/news/canlock-hp/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__lexer.l \
    pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__parser.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/news/canlock-hp/distinfo
diff -u pkgsrc/news/canlock-hp/distinfo:1.13 pkgsrc/news/canlock-hp/distinfo:1.14
--- pkgsrc/news/canlock-hp/distinfo:1.13        Wed Jul  8 11:50:45 2026
+++ pkgsrc/news/canlock-hp/distinfo     Wed Sep  9 16:03:19 2026
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.13 2026/07/08 11:50:45 micha Exp $
+$NetBSD: distinfo,v 1.14 2026/09/09 16:03:19 micha Exp $
 
 BLAKE2s (libcanlock-3.3.3.tar.bz2) = 78b5a6f547d3f3f1cec6627eda57559b28c75909fb892f10a2517624641124bf
 SHA512 (libcanlock-3.3.3.tar.bz2) = 400eadd3990c67aa10b48d9c52a9ad75de64d193995551f945b51142ddddbd9d7691ad92308cc319a5d0c76b4a1345fd6c29bba2d262bb8adaa890b4f2dc28c3
 Size (libcanlock-3.3.3.tar.bz2) = 638066 bytes
+SHA1 (patch-hp_util_hfp__lexer.l) = 75208408e4a30b35d2a6b4c527a1c795f276e794
+SHA1 (patch-hp_util_hfp__parser.y) = 1d4eed8a3e3dcf071369cc1c9412e0965b9ec902

Added files:

Index: pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__lexer.l
diff -u /dev/null pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__lexer.l:1.1
--- /dev/null   Wed Sep  9 16:03:19 2026
+++ pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__lexer.l   Wed Sep  9 16:03:19 2026
@@ -0,0 +1,25 @@
+$NetBSD: patch-hp_util_hfp__lexer.l,v 1.1 2026/09/09 16:03:19 micha Exp $
+
+lex on SunOS generates code that does not compile without POSIX declaration.
+
+--- hp/util/hfp_lexer.l.orig   2026-05-13 14:05:43.000000000 +0000
++++ hp/util/hfp_lexer.l
+@@ -1,7 +1,7 @@
+ %{
+ /*
+  * SPDX-FileType: SOURCE
+- * SPDX-FileCopyrightText: (c) 2018-2021 Michael Baeuerle
++ * SPDX-FileCopyrightText: (c) 2018-2026 Michael Baeuerle
+  * SPDX-License-Identifier: ICU
+  */
+ 
+@@ -9,6 +9,9 @@
+ /* ========================================================================== */
+ /* Code copied verbatim by lexer */
+ 
++/*! Tell headers that they should be POSIX compliant */
++#define _POSIX_C_SOURCE  200112L
++
+ #include <ctype.h>
+ #include <stdlib.h>
+ #include <stdio.h>
Index: pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__parser.y
diff -u /dev/null pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__parser.y:1.1
--- /dev/null   Wed Sep  9 16:03:19 2026
+++ pkgsrc/news/canlock-hp/patches/patch-hp_util_hfp__parser.y  Wed Sep  9 16:03:19 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-hp_util_hfp__parser.y,v 1.1 2026/09/09 16:03:19 micha Exp $
+
+Same as for lex (proactively).
+
+--- hp/util/hfp_parser.y.orig  2026-05-01 16:50:10.000000000 +0000
++++ hp/util/hfp_parser.y
+@@ -1,6 +1,6 @@
+ /*
+  * SPDX-FileType: SOURCE
+- * SPDX-FileCopyrightText: (c) 2018 Michael Baeuerle
++ * SPDX-FileCopyrightText: (c) 2018-2026 Michael Baeuerle
+  * SPDX-License-Identifier: ICU
+  */
+ 
+@@ -12,6 +12,9 @@
+ ********************************************************************************
+ */
+ 
++/*! Tell headers that they should be POSIX compliant */
++#define _POSIX_C_SOURCE  200112L
++
+ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <stdio.h>



Home | Main Index | Thread Index | Old Index