On Sat, Jan 01, 2022 at 10:52:37AM +0100, Jeremie Courreges-Anglas wrote:
> On Sat, Jan 01 2022, Jeremie Courreges-Anglas <j...@wxcvbn.org> wrote:
> > On Fri, Dec 31 2021, Stefan Hagen <sh+openbsd-po...@codevoid.de> wrote:
> >> Christian Weisgerber wrote:
> >>> Here's a reminder that these ports still fail to build since the
> >>> LLVM 13 update:
> >>> 
> >>>   devel/qbs
> >>>   lang/libv8
> >>>   misc/posixtestsuite
> >>
> >> Here -Werror is set and some variables now throw an -Wunused-but-set error.
> >> This happens frequently in this testsuite.
> >>
> >> Shall we switch it off?
> >
> > This is a clang-only flag, you can't use it with base-gcc.  Here's a way
> > to handle this.
> 
> That would work if CFLAGS was respected, but it isn't...

Who needs this -Werror anyway?  Without it, it manages to compile
more tests.

ok?

bluhm

Index: misc/posixtestsuite/Makefile
===================================================================
RCS file: /data/mirror/openbsd/cvs/ports/misc/posixtestsuite/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- misc/posixtestsuite/Makefile        12 Jul 2019 20:47:53 -0000      1.6
+++ misc/posixtestsuite/Makefile        10 Jan 2022 20:36:09 -0000
@@ -3,7 +3,7 @@
 COMMENT =      open POSIX test suite
 
 DISTNAME =     posixtestsuite-1.5.2
-REVISION =     3
+REVISION =     4
 
 CATEGORIES =   misc
 
Index: misc/posixtestsuite/patches/patch-Makefile
===================================================================
RCS file: 
/data/mirror/openbsd/cvs/ports/misc/posixtestsuite/patches/patch-Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 patch-Makefile
--- misc/posixtestsuite/patches/patch-Makefile  8 May 2018 22:14:19 -0000       
1.2
+++ misc/posixtestsuite/patches/patch-Makefile  10 Jan 2022 17:27:38 -0000
@@ -22,7 +22,7 @@ Index: Makefile
        $(MAKE) all | column -t -s:
  
 -CFLAGS = -g -O2 -Wall -Werror -D_POSIX_C_SOURCE=200112L
-+CFLAGS = -g -O2 -Wall -Werror -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 
++CFLAGS += -g -O2 -Wall -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 
  
  # add -std=c99, -std=gnu99 if compiler supports it (gcc-2.95.3 does not).
  check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 
2>&1; then echo "$(1)"; else echo "$(2)"; fi)
Index: misc/posixtestsuite/pkg/PLIST
===================================================================
RCS file: /data/mirror/openbsd/cvs/ports/misc/posixtestsuite/pkg/PLIST,v
retrieving revision 1.5
diff -u -p -r1.5 PLIST
--- misc/posixtestsuite/pkg/PLIST       23 May 2018 20:28:34 -0000      1.5
+++ misc/posixtestsuite/pkg/PLIST       10 Jan 2022 20:05:34 -0000
@@ -4371,6 +4371,8 @@ libexec/posixtestsuite/conformance/behav
 @bin libexec/posixtestsuite/conformance/behavior/WIFEXITED/1-1.test
 @bin libexec/posixtestsuite/conformance/behavior/WIFEXITED/1-2.test
 @bin libexec/posixtestsuite/conformance/behavior/WIFEXITED/1-3.test
+libexec/posixtestsuite/conformance/behavior/timers/
+@bin libexec/posixtestsuite/conformance/behavior/timers/1-1.test
 libexec/posixtestsuite/conformance/interfaces/
 libexec/posixtestsuite/conformance/interfaces/asctime/
 @bin libexec/posixtestsuite/conformance/interfaces/asctime/1-1.test
@@ -4395,6 +4397,8 @@ libexec/posixtestsuite/conformance/inter
 @bin libexec/posixtestsuite/conformance/interfaces/clock_gettime/1-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/clock_gettime/1-2.test
 @bin libexec/posixtestsuite/conformance/interfaces/clock_gettime/2-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/clock_gettime/3-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/clock_gettime/4-1.test
 libexec/posixtestsuite/conformance/interfaces/clock_gettime/6-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/clock_gettime/7-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/clock_gettime/8-1.test
@@ -4489,6 +4493,8 @@ libexec/posixtestsuite/conformance/inter
 @bin libexec/posixtestsuite/conformance/interfaces/mmap/1-2.test
 @bin libexec/posixtestsuite/conformance/interfaces/mmap/10-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/mmap/11-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/mmap/11-2.test
+@bin libexec/posixtestsuite/conformance/interfaces/mmap/11-3.test
 @bin libexec/posixtestsuite/conformance/interfaces/mmap/11-4.test
 @bin libexec/posixtestsuite/conformance/interfaces/mmap/11-5.test
 @bin libexec/posixtestsuite/conformance/interfaces/mmap/12-1.test
@@ -4566,6 +4572,8 @@ libexec/posixtestsuite/conformance/inter
 @bin libexec/posixtestsuite/conformance/interfaces/munlockall/5-1.test
 libexec/posixtestsuite/conformance/interfaces/munlockall/6-1.test
 libexec/posixtestsuite/conformance/interfaces/munmap/
+@bin libexec/posixtestsuite/conformance/interfaces/munmap/1-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/munmap/1-2.test
 libexec/posixtestsuite/conformance/interfaces/munmap/10-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/munmap/2-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/munmap/3-1.test
@@ -4788,6 +4796,7 @@ libexec/posixtestsuite/conformance/inter
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_create/1-5.test
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_create/1-6.test
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_create/10-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/pthread_create/11-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_create/12-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_create/14-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_create/15-1.test
@@ -4849,6 +4858,7 @@ libexec/posixtestsuite/conformance/inter
 libexec/posixtestsuite/conformance/interfaces/pthread_key_create/
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_key_create/1-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_key_create/1-2.test
+@bin libexec/posixtestsuite/conformance/interfaces/pthread_key_create/2-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/pthread_key_create/3-1.test
 libexec/posixtestsuite/conformance/interfaces/pthread_key_create/speculative/
 @bin 
libexec/posixtestsuite/conformance/interfaces/pthread_key_create/speculative/5-1.test
@@ -5183,6 +5193,7 @@ libexec/posixtestsuite/conformance/inter
 @bin libexec/posixtestsuite/conformance/interfaces/sem_init/7-1.test
 libexec/posixtestsuite/conformance/interfaces/sem_open/
 @bin libexec/posixtestsuite/conformance/interfaces/sem_open/1-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/sem_open/1-2.test
 @bin libexec/posixtestsuite/conformance/interfaces/sem_open/1-3.test
 @bin libexec/posixtestsuite/conformance/interfaces/sem_open/1-4.test
 @bin libexec/posixtestsuite/conformance/interfaces/sem_open/10-1.test
@@ -5266,6 +5277,7 @@ libexec/posixtestsuite/conformance/inter
 @bin libexec/posixtestsuite/conformance/interfaces/shm_open/34-1.test
 libexec/posixtestsuite/conformance/interfaces/shm_open/35-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/shm_open/36-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/shm_open/37-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/shm_open/38-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/shm_open/39-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/shm_open/39-2.test
@@ -5859,6 +5871,10 @@ libexec/posixtestsuite/conformance/inter
 @bin libexec/posixtestsuite/conformance/interfaces/signal/5-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/signal/6-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/signal/7-1.test
+libexec/posixtestsuite/conformance/interfaces/sigpause/
+@bin libexec/posixtestsuite/conformance/interfaces/sigpause/1-2.test
+@bin libexec/posixtestsuite/conformance/interfaces/sigpause/3-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/sigpause/4-1.test
 libexec/posixtestsuite/conformance/interfaces/sigpending/
 @bin libexec/posixtestsuite/conformance/interfaces/sigpending/1-1.test
 @bin libexec/posixtestsuite/conformance/interfaces/sigpending/1-2.test
@@ -5903,23 +5919,33 @@ libexec/posixtestsuite/conformance/inter
 libexec/posixtestsuite/conformance/interfaces/timer_create/14-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_create/4-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_create/6-1.test
+@bin libexec/posixtestsuite/conformance/interfaces/timer_create/8-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_create/speculative/
 @bin 
libexec/posixtestsuite/conformance/interfaces/timer_create/speculative/15-1.test
+@bin 
libexec/posixtestsuite/conformance/interfaces/timer_create/speculative/5-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_delete/
 libexec/posixtestsuite/conformance/interfaces/timer_delete/2-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_delete/3-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_delete/4-1.test
+libexec/posixtestsuite/conformance/interfaces/timer_delete/speculative/
+@bin 
libexec/posixtestsuite/conformance/interfaces/timer_delete/speculative/5-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_getoverrun/
 @bin libexec/posixtestsuite/conformance/interfaces/timer_getoverrun/3-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_getoverrun/4-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_getoverrun/5-1.test
+libexec/posixtestsuite/conformance/interfaces/timer_getoverrun/speculative/
+@bin 
libexec/posixtestsuite/conformance/interfaces/timer_getoverrun/speculative/6-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_gettime/
 libexec/posixtestsuite/conformance/interfaces/timer_gettime/4-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_gettime/5-1.test
+libexec/posixtestsuite/conformance/interfaces/timer_gettime/speculative/
+@bin 
libexec/posixtestsuite/conformance/interfaces/timer_gettime/speculative/6-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_settime/
 libexec/posixtestsuite/conformance/interfaces/timer_settime/10-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_settime/11-1.test
 libexec/posixtestsuite/conformance/interfaces/timer_settime/4-1.test
+libexec/posixtestsuite/conformance/interfaces/timer_settime/speculative/
+@bin 
libexec/posixtestsuite/conformance/interfaces/timer_settime/speculative/12-1.test
 libexec/posixtestsuite/functional/
 libexec/posixtestsuite/functional/threads/
 libexec/posixtestsuite/functional/threads/schedule/

Reply via email to